@eliseubatista99/react-scaffold-core 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/carousel/carousel.d.ts +12 -0
- package/dist/components/carousel/index.d.ts +1 -0
- package/dist/components/carousel/stories/carousel.stories.d.ts +21 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs.js +11 -7
- package/dist/index.es.js +4293 -1905
- package/dist/react-scaffold-core.css +1 -0
- package/package.json +6 -4
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react");function vn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const _=vn(B);var tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yn(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function o(){var i=!1;try{i=this instanceof o}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),r}var rt={exports:{}},Ae={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Xt;function gn(){if(Xt)return Ae;Xt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(o,i,a){var l=null;if(a!==void 0&&(l=""+a),i.key!==void 0&&(l=""+i.key),"key"in i){a={};for(var f in i)f!=="key"&&(a[f]=i[f])}else a=i;return i=a.ref,{$$typeof:e,type:o,key:l,ref:i!==void 0?i:null,props:a}}return Ae.Fragment=t,Ae.jsx=r,Ae.jsxs=r,Ae}var ze={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,12 +14,16 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var Gt;function bn(){return Gt||(Gt=1,process.env.NODE_ENV!=="production"&&function(){function e(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===c?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case v:return"Fragment";case O:return"Profiler";case I:return"StrictMode";case p:return"Suspense";case y:return"SuspenseList";case m:return"Activity"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case C:return"Portal";case q:return(n.displayName||"Context")+".Provider";case H:return(n._context.displayName||"Context")+".Consumer";case U:var u=n.render;return n=n.displayName,n||(n=u.displayName||u.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case g:return u=n.displayName||null,u!==null?u:e(n.type)||"Memo";case k:u=n._payload,n=n._init;try{return e(n(u))}catch{}}return null}function t(n){return""+n}function r(n){try{t(n);var u=!1}catch{u=!0}if(u){u=console;var S=u.error,M=typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return S.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",M),t(n)}}function o(n){if(n===v)return"<>";if(typeof n=="object"&&n!==null&&n.$$typeof===k)return"<...>";try{var u=e(n);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function i(){var n=P.A;return n===null?null:n.getOwner()}function a(){return Error("react-stack-top-frame")}function l(n){if(L.call(n,"key")){var u=Object.getOwnPropertyDescriptor(n,"key").get;if(u&&u.isReactWarning)return!1}return n.key!==void 0}function f(n,u){function S(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}S.isReactWarning=!0,Object.defineProperty(n,"key",{get:S,configurable:!0})}function d(){var n=e(this.type);return F[n]||(F[n]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),n=this.props.ref,n!==void 0?n:null}function h(n,u,S,M,j,N,A,$){return S=N.ref,n={$$typeof:z,type:n,key:u,props:N,_owner:j},(S!==void 0?S:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:d}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(n,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(n,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function w(n,u,S,M,j,N,A,$){var Y=u.children;if(Y!==void 0)if(M)if(x(Y)){for(M=0;M<Y.length;M++)R(Y[M]);Object.freeze&&Object.freeze(Y)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else R(Y);if(L.call(u,"key")){Y=e(n);var V=Object.keys(u).filter(function(re){return re!=="key"});M=0<V.length?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}",b[Y+M]||(V=0<V.length?"{"+V.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,M,Y,V,Y),b[Y+M]=!0)}if(Y=null,S!==void 0&&(r(S),Y=""+S),l(u)&&(r(u.key),Y=""+u.key),"key"in u){S={};for(var X in u)X!=="key"&&(S[X]=u[X])}else S=u;return Y&&f(S,typeof n=="function"?n.displayName||n.name||"Unknown":n),h(n,Y,N,j,i(),S,A,$)}function R(n){typeof n=="object"&&n!==null&&n.$$typeof===z&&n._store&&(n._store.validated=1)}var E=B,z=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),q=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),c=Symbol.for("react.client.reference"),P=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,x=Array.isArray,T=console.createTask?console.createTask:function(){return null};E={"react-stack-bottom-frame":function(n){return n()}};var D,F={},s=E["react-stack-bottom-frame"].bind(E,a)(),J=T(o(a)),b={};ze.Fragment=v,ze.jsx=function(n,u,S,M,j){var N=1e4>P.recentlyCreatedOwnerStacks++;return w(n,u,S,!1,M,j,N?Error("react-stack-top-frame"):s,N?T(o(n)):J)},ze.jsxs=function(n,u,S,M,j){var N=1e4>P.recentlyCreatedOwnerStacks++;return w(n,u,S,!0,M,j,N?Error("react-stack-top-frame"):s,N?T(o(n)):J)}}()),ze}var Kt;function wn(){return Kt||(Kt=1,process.env.NODE_ENV==="production"?rt.exports=gn():rt.exports=bn()),rt.exports}var G=wn();const Sn=({children:e,onClick:t,styles:r})=>G.jsx("button",{style:{border:"none",borderRadius:"1000px",background:"#d6d6d6ff",padding:"12px 18px",fontSize:"16px",width:"fit-content",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"row",...r},onClick:()=>t?.(),children:e});var St={},xt={},Ne={},kt={},Jt;function xn(){return Jt||(Jt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.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};e.default=t}(kt)),kt}var Ot,Zt;function kn(){if(Zt)return Ot;Zt=1;var e="Expected a function",t=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,f=parseInt,d=typeof tt=="object"&&tt&&tt.Object===Object&&tt,h=typeof self=="object"&&self&&self.Object===Object&&self,w=d||h||Function("return this")(),R=Object.prototype,E=R.toString,z=Math.max,C=Math.min,v=function(){return w.Date.now()};function I(p,y,g){var k,m,c,P,L,x,T=0,D=!1,F=!1,s=!0;if(typeof p!="function")throw new TypeError(e);y=U(y)||0,O(g)&&(D=!!g.leading,F="maxWait"in g,c=F?z(U(g.maxWait)||0,y):c,s="trailing"in g?!!g.trailing:s);function J($){var Y=k,V=m;return k=m=void 0,T=$,P=p.apply(V,Y),P}function b($){return T=$,L=setTimeout(S,y),D?J($):P}function n($){var Y=$-x,V=$-T,X=y-Y;return F?C(X,c-V):X}function u($){var Y=$-x,V=$-T;return x===void 0||Y>=y||Y<0||F&&V>=c}function S(){var $=v();if(u($))return M($);L=setTimeout(S,n($))}function M($){return L=void 0,s&&k?J($):(k=m=void 0,P)}function j(){L!==void 0&&clearTimeout(L),T=0,k=x=m=L=void 0}function N(){return L===void 0?P:M(v())}function A(){var $=v(),Y=u($);if(k=arguments,m=this,x=$,Y){if(L===void 0)return b(x);if(F)return L=setTimeout(S,y),J(x)}return L===void 0&&(L=setTimeout(S,y)),P}return A.cancel=j,A.flush=N,A}function O(p){var y=typeof p;return!!p&&(y=="object"||y=="function")}function H(p){return!!p&&typeof p=="object"}function q(p){return typeof p=="symbol"||H(p)&&E.call(p)==r}function U(p){if(typeof p=="number")return p;if(q(p))return t;if(O(p)){var y=typeof p.valueOf=="function"?p.valueOf():p;p=O(y)?y+"":y}if(typeof p!="string")return p===0?p:+p;p=p.replace(o,"");var g=a.test(p);return g||l.test(p)?f(p.slice(2),g?2:8):i.test(p)?t:+p}return Ot=I,Ot}var Ct={exports:{}};/*!
|
|
23
|
+
Copyright (c) 2018 Jed Watson.
|
|
24
|
+
Licensed under the MIT License (MIT), see
|
|
25
|
+
http://jedwatson.github.io/classnames
|
|
26
|
+
*/var Qt;function ht(){return Qt||(Qt=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var f=arguments[l];f&&(a=i(a,o(f)))}return a}function o(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var f in a)t.call(a,f)&&a[f]&&(l=i(l,f));return l}function i(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(Ct)),Ct.exports}var W={},Pt={},er;function Pr(){return er||(er=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(B);function r(i){return i&&i.__esModule?i:{default:i}}var o={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(a){return t.default.createElement("ul",{style:{display:"block"}},a)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(a){return t.default.createElement("button",null,a+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,verticalSwiping:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};e.default=o}(Pt)),Pt}var tr;function Xe(){if(tr)return W;tr=1,Object.defineProperty(W,"__esModule",{value:!0}),W.checkSpecKeys=W.checkNavigable=W.changeSlide=W.canUseDOM=W.canGoNext=void 0,W.clamp=h,W.extractObject=void 0,W.filterSettings=J,W.validSettings=W.swipeStart=W.swipeMove=W.swipeEnd=W.slidesOnRight=W.slidesOnLeft=W.slideHandler=W.siblingDirection=W.safePreventDefault=W.lazyStartIndex=W.lazySlidesOnRight=W.lazySlidesOnLeft=W.lazyEndIndex=W.keyHandler=W.initializedState=W.getWidth=W.getTrackLeft=W.getTrackCSS=W.getTrackAnimateCSS=W.getTotalSlides=W.getSwipeDirection=W.getSlideCount=W.getRequiredLazySlides=W.getPreClones=W.getPostClones=W.getOnDemandLazySlides=W.getNavigableIndexes=W.getHeight=void 0;var e=r(B),t=r(Pr());function r(b){return b&&b.__esModule?b:{default:b}}function o(b){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},o(b)}function i(b,n){var u=Object.keys(b);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(b);n&&(S=S.filter(function(M){return Object.getOwnPropertyDescriptor(b,M).enumerable})),u.push.apply(u,S)}return u}function a(b){for(var n=1;n<arguments.length;n++){var u=arguments[n]!=null?arguments[n]:{};n%2?i(Object(u),!0).forEach(function(S){l(b,S,u[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(u)):i(Object(u)).forEach(function(S){Object.defineProperty(b,S,Object.getOwnPropertyDescriptor(u,S))})}return b}function l(b,n,u){return(n=f(n))in b?Object.defineProperty(b,n,{value:u,enumerable:!0,configurable:!0,writable:!0}):b[n]=u,b}function f(b){var n=d(b,"string");return o(n)=="symbol"?n:n+""}function d(b,n){if(o(b)!="object"||!b)return b;var u=b[Symbol.toPrimitive];if(u!==void 0){var S=u.call(b,n);if(o(S)!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(b)}function h(b,n,u){return Math.max(n,Math.min(b,u))}var w=W.safePreventDefault=function(n){var u=["onTouchStart","onTouchMove","onWheel"];u.includes(n._reactName)||n.preventDefault()},R=W.getOnDemandLazySlides=function(n){for(var u=[],S=E(n),M=z(n),j=S;j<M;j++)n.lazyLoadedList.indexOf(j)<0&&u.push(j);return u};W.getRequiredLazySlides=function(n){for(var u=[],S=E(n),M=z(n),j=S;j<M;j++)u.push(j);return u};var E=W.lazyStartIndex=function(n){return n.currentSlide-C(n)},z=W.lazyEndIndex=function(n){return n.currentSlide+v(n)},C=W.lazySlidesOnLeft=function(n){return n.centerMode?Math.floor(n.slidesToShow/2)+(parseInt(n.centerPadding)>0?1:0):0},v=W.lazySlidesOnRight=function(n){return n.centerMode?Math.floor((n.slidesToShow-1)/2)+1+(parseInt(n.centerPadding)>0?1:0):n.slidesToShow},I=W.getWidth=function(n){return n&&n.offsetWidth||0},O=W.getHeight=function(n){return n&&n.offsetHeight||0},H=W.getSwipeDirection=function(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S,M,j,N;return S=n.startX-n.curX,M=n.startY-n.curY,j=Math.atan2(M,S),N=Math.round(j*180/Math.PI),N<0&&(N=360-Math.abs(N)),N<=45&&N>=0||N<=360&&N>=315?"left":N>=135&&N<=225?"right":u===!0?N>=35&&N<=135?"up":"down":"vertical"},q=W.canGoNext=function(n){var u=!0;return n.infinite||(n.centerMode&&n.currentSlide>=n.slideCount-1||n.slideCount<=n.slidesToShow||n.currentSlide>=n.slideCount-n.slidesToShow)&&(u=!1),u};W.extractObject=function(n,u){var S={};return u.forEach(function(M){return S[M]=n[M]}),S},W.initializedState=function(n){var u=e.default.Children.count(n.children),S=n.listRef,M=Math.ceil(I(S)),j=n.trackRef&&n.trackRef.node,N=Math.ceil(I(j)),A;if(n.vertical)A=M;else{var $=n.centerMode&&parseInt(n.centerPadding)*2;typeof n.centerPadding=="string"&&n.centerPadding.slice(-1)==="%"&&($*=M/100),A=Math.ceil((M-$)/n.slidesToShow)}var Y=S&&O(S.querySelector('[data-index="0"]')),V=Y*n.slidesToShow,X=n.currentSlide===void 0?n.initialSlide:n.currentSlide;n.rtl&&n.currentSlide===void 0&&(X=u-1-n.initialSlide);var re=n.lazyLoadedList||[],ie=R(a(a({},n),{},{currentSlide:X,lazyLoadedList:re}));re=re.concat(ie);var Q={slideCount:u,slideWidth:A,listWidth:M,trackWidth:N,currentSlide:X,slideHeight:Y,listHeight:V,lazyLoadedList:re};return n.autoplaying===null&&n.autoplay&&(Q.autoplaying="playing"),Q},W.slideHandler=function(n){var u=n.waitForAnimate,S=n.animating,M=n.fade,j=n.infinite,N=n.index,A=n.slideCount,$=n.lazyLoad,Y=n.currentSlide,V=n.centerMode,X=n.slidesToScroll,re=n.slidesToShow,ie=n.useCSS,Q=n.lazyLoadedList;if(u&&S)return{};var Z=N,ne,le,K,ae={},ue={},ce=j?N:h(N,0,A-1);if(M){if(!j&&(N<0||N>=A))return{};N<0?Z=N+A:N>=A&&(Z=N-A),$&&Q.indexOf(Z)<0&&(Q=Q.concat(Z)),ae={animating:!0,currentSlide:Z,lazyLoadedList:Q,targetSlide:Z},ue={animating:!1,targetSlide:Z}}else ne=Z,Z<0?(ne=Z+A,j?A%X!==0&&(ne=A-A%X):ne=0):!q(n)&&Z>Y?Z=ne=Y:V&&Z>=A?(Z=j?A:A-1,ne=j?0:A-1):Z>=A&&(ne=Z-A,j?A%X!==0&&(ne=0):ne=A-re),!j&&Z+re>=A&&(ne=A-re),le=c(a(a({},n),{},{slideIndex:Z})),K=c(a(a({},n),{},{slideIndex:ne})),j||(le===K&&(Z=ne),le=K),$&&(Q=Q.concat(R(a(a({},n),{},{currentSlide:Z})))),ie?(ae={animating:!0,currentSlide:ne,trackStyle:m(a(a({},n),{},{left:le})),lazyLoadedList:Q,targetSlide:ce},ue={animating:!1,currentSlide:ne,trackStyle:k(a(a({},n),{},{left:K})),swipeLeft:null,targetSlide:ce}):ae={currentSlide:ne,trackStyle:k(a(a({},n),{},{left:K})),lazyLoadedList:Q,targetSlide:ce};return{state:ae,nextState:ue}},W.changeSlide=function(n,u){var S,M,j,N,A,$=n.slidesToScroll,Y=n.slidesToShow,V=n.slideCount,X=n.currentSlide,re=n.targetSlide,ie=n.lazyLoad,Q=n.infinite;if(N=V%$!==0,S=N?0:(V-X)%$,u.message==="previous")j=S===0?$:Y-S,A=X-j,ie&&!Q&&(M=X-j,A=M===-1?V-1:M),Q||(A=re-$);else if(u.message==="next")j=S===0?$:S,A=X+j,ie&&!Q&&(A=(X+$)%V+S),Q||(A=re+$);else if(u.message==="dots")A=u.index*u.slidesToScroll;else if(u.message==="children"){if(A=u.index,Q){var Z=T(a(a({},n),{},{targetSlide:A}));A>u.currentSlide&&Z==="left"?A=A-V:A<u.currentSlide&&Z==="right"&&(A=A+V)}}else u.message==="index"&&(A=Number(u.index));return A},W.keyHandler=function(n,u,S){return n.target.tagName.match("TEXTAREA|INPUT|SELECT")||!u?"":n.keyCode===37?S?"next":"previous":n.keyCode===39?S?"previous":"next":""},W.swipeStart=function(n,u,S){return n.target.tagName==="IMG"&&w(n),!u||!S&&n.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:n.touches?n.touches[0].pageX:n.clientX,startY:n.touches?n.touches[0].pageY:n.clientY,curX:n.touches?n.touches[0].pageX:n.clientX,curY:n.touches?n.touches[0].pageY:n.clientY}}},W.swipeMove=function(n,u){var S=u.scrolling,M=u.animating,j=u.vertical,N=u.swipeToSlide,A=u.verticalSwiping,$=u.rtl,Y=u.currentSlide,V=u.edgeFriction,X=u.edgeDragged,re=u.onEdge,ie=u.swiped,Q=u.swiping,Z=u.slideCount,ne=u.slidesToScroll,le=u.infinite,K=u.touchObject,ae=u.swipeEvent,ue=u.listHeight,ce=u.listWidth;if(!S){if(M)return w(n);j&&N&&A&&w(n);var he,Pe={},et=c(u);K.curX=n.touches?n.touches[0].pageX:n.clientX,K.curY=n.touches?n.touches[0].pageY:n.clientY,K.swipeLength=Math.round(Math.sqrt(Math.pow(K.curX-K.startX,2)));var Vt=Math.round(Math.sqrt(Math.pow(K.curY-K.startY,2)));if(!A&&!Q&&Vt>10)return{scrolling:!0};A&&(K.swipeLength=Vt);var Me=($?-1:1)*(K.curX>K.startX?1:-1);A&&(Me=K.curY>K.startY?1:-1);var hn=Math.ceil(Z/ne),Oe=H(u.touchObject,A),Ie=K.swipeLength;return le||(Y===0&&(Oe==="right"||Oe==="down")||Y+1>=hn&&(Oe==="left"||Oe==="up")||!q(u)&&(Oe==="left"||Oe==="up"))&&(Ie=K.swipeLength*V,X===!1&&re&&(re(Oe),Pe.edgeDragged=!0)),!ie&&ae&&(ae(Oe),Pe.swiped=!0),j?he=et+Ie*(ue/ce)*Me:$?he=et-Ie*Me:he=et+Ie*Me,A&&(he=et+Ie*Me),Pe=a(a({},Pe),{},{touchObject:K,swipeLeft:he,trackStyle:k(a(a({},u),{},{left:he}))}),Math.abs(K.curX-K.startX)<Math.abs(K.curY-K.startY)*.8||K.swipeLength>10&&(Pe.swiping=!0,w(n)),Pe}},W.swipeEnd=function(n,u){var S=u.dragging,M=u.swipe,j=u.touchObject,N=u.listWidth,A=u.touchThreshold,$=u.verticalSwiping,Y=u.listHeight,V=u.swipeToSlide,X=u.scrolling,re=u.onSwipe,ie=u.targetSlide,Q=u.currentSlide,Z=u.infinite;if(!S)return M&&w(n),{};var ne=$?Y/A:N/A,le=H(j,$),K={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(X||!j.swipeLength)return K;if(j.swipeLength>ne){w(n),re&&re(le);var ae,ue,ce=Z?Q:ie;switch(le){case"left":case"up":ue=ce+y(u),ae=V?p(u,ue):ue,K.currentDirection=0;break;case"right":case"down":ue=ce-y(u),ae=V?p(u,ue):ue,K.currentDirection=1;break;default:ae=ce}K.triggerSlideHandler=ae}else{var he=c(u);K.trackStyle=m(a(a({},u),{},{left:he}))}return K};var U=W.getNavigableIndexes=function(n){for(var u=n.infinite?n.slideCount*2:n.slideCount,S=n.infinite?n.slidesToShow*-1:0,M=n.infinite?n.slidesToShow*-1:0,j=[];S<u;)j.push(S),S=M+n.slidesToScroll,M+=Math.min(n.slidesToScroll,n.slidesToShow);return j},p=W.checkNavigable=function(n,u){var S=U(n),M=0;if(u>S[S.length-1])u=S[S.length-1];else for(var j in S){if(u<S[j]){u=M;break}M=S[j]}return u},y=W.getSlideCount=function(n){var u=n.centerMode?n.slideWidth*Math.floor(n.slidesToShow/2):0;if(n.swipeToSlide){var S,M=n.listRef,j=M.querySelectorAll&&M.querySelectorAll(".slick-slide")||[];if(Array.from(j).every(function($){if(n.vertical){if($.offsetTop+O($)/2>n.swipeLeft*-1)return S=$,!1}else if($.offsetLeft-u+I($)/2>n.swipeLeft*-1)return S=$,!1;return!0}),!S)return 0;var N=n.rtl===!0?n.slideCount-n.currentSlide:n.currentSlide,A=Math.abs(S.dataset.index-N)||1;return A}else return n.slidesToScroll},g=W.checkSpecKeys=function(n,u){return u.reduce(function(S,M){return S&&n.hasOwnProperty(M)},!0)?null:console.error("Keys Missing:",n)},k=W.getTrackCSS=function(n){g(n,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var u,S;if(!n.vertical)u=x(n)*n.slideWidth;else{var M=n.unslick?n.slideCount:n.slideCount+2*n.slidesToShow;S=M*n.slideHeight}var j={opacity:1,transition:"",WebkitTransition:""};if(n.useTransform){var N=n.vertical?"translate3d(0px, "+n.left+"px, 0px)":"translate3d("+n.left+"px, 0px, 0px)",A=n.vertical?"translate3d(0px, "+n.left+"px, 0px)":"translate3d("+n.left+"px, 0px, 0px)",$=n.vertical?"translateY("+n.left+"px)":"translateX("+n.left+"px)";j=a(a({},j),{},{WebkitTransform:N,transform:A,msTransform:$})}else n.vertical?j.top=n.left:j.left=n.left;return n.fade&&(j={opacity:1}),u&&(j.width=u),S&&(j.height=S),window&&!window.addEventListener&&window.attachEvent&&(n.vertical?j.marginTop=n.left+"px":j.marginLeft=n.left+"px"),j},m=W.getTrackAnimateCSS=function(n){g(n,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var u=k(n);return n.useTransform?(u.WebkitTransition="-webkit-transform "+n.speed+"ms "+n.cssEase,u.transition="transform "+n.speed+"ms "+n.cssEase):n.vertical?u.transition="top "+n.speed+"ms "+n.cssEase:u.transition="left "+n.speed+"ms "+n.cssEase,u},c=W.getTrackLeft=function(n){if(n.unslick)return 0;g(n,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var u=n.slideIndex,S=n.trackRef,M=n.infinite,j=n.centerMode,N=n.slideCount,A=n.slidesToShow,$=n.slidesToScroll,Y=n.slideWidth,V=n.listWidth,X=n.variableWidth,re=n.slideHeight,ie=n.fade,Q=n.vertical,Z=0,ne,le,K=0;if(ie||n.slideCount===1)return 0;var ae=0;if(M?(ae=-P(n),N%$!==0&&u+$>N&&(ae=-(u>N?A-(u-N):N%$)),j&&(ae+=parseInt(A/2))):(N%$!==0&&u+$>N&&(ae=A-N%$),j&&(ae=parseInt(A/2))),Z=ae*Y,K=ae*re,Q?ne=u*re*-1+K:ne=u*Y*-1+Z,X===!0){var ue,ce=S&&S.node;if(ue=u+P(n),le=ce&&ce.childNodes[ue],ne=le?le.offsetLeft*-1:0,j===!0){ue=M?u+P(n):u,le=ce&&ce.children[ue],ne=0;for(var he=0;he<ue;he++)ne-=ce&&ce.children[he]&&ce.children[he].offsetWidth;ne-=parseInt(n.centerPadding),ne+=le&&(V-le.offsetWidth)/2}}return ne},P=W.getPreClones=function(n){return n.unslick||!n.infinite?0:n.variableWidth?n.slideCount:n.slidesToShow+(n.centerMode?1:0)},L=W.getPostClones=function(n){return n.unslick||!n.infinite?0:n.variableWidth?n.slideCount:n.slidesToShow+(n.centerMode?1:0)},x=W.getTotalSlides=function(n){return n.slideCount===1?1:P(n)+n.slideCount+L(n)},T=W.siblingDirection=function(n){return n.targetSlide>n.currentSlide?n.targetSlide>n.currentSlide+D(n)?"left":"right":n.targetSlide<n.currentSlide-F(n)?"right":"left"},D=W.slidesOnRight=function(n){var u=n.slidesToShow,S=n.centerMode,M=n.rtl,j=n.centerPadding;if(S){var N=(u-1)/2+1;return parseInt(j)>0&&(N+=1),M&&u%2===0&&(N+=1),N}return M?0:u-1},F=W.slidesOnLeft=function(n){var u=n.slidesToShow,S=n.centerMode,M=n.rtl,j=n.centerPadding;if(S){var N=(u-1)/2+1;return parseInt(j)>0&&(N+=1),!M&&u%2===0&&(N+=1),N}return M?u-1:0};W.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var s=W.validSettings=Object.keys(t.default);function J(b){return s.reduce(function(n,u){return b.hasOwnProperty(u)&&(n[u]=b[u]),n},{})}return W}var He={},rr;function On(){if(rr)return He;rr=1,Object.defineProperty(He,"__esModule",{value:!0}),He.Track=void 0;var e=o(B),t=o(ht()),r=Xe();function o(m){return m&&m.__esModule?m:{default:m}}function i(m){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},i(m)}function a(){return a=Object.assign?Object.assign.bind():function(m){for(var c=1;c<arguments.length;c++){var P=arguments[c];for(var L in P)({}).hasOwnProperty.call(P,L)&&(m[L]=P[L])}return m},a.apply(null,arguments)}function l(m,c){if(!(m instanceof c))throw new TypeError("Cannot call a class as a function")}function f(m,c){for(var P=0;P<c.length;P++){var L=c[P];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(m,q(L.key),L)}}function d(m,c,P){return c&&f(m.prototype,c),Object.defineProperty(m,"prototype",{writable:!1}),m}function h(m,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(c&&c.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),c&&w(m,c)}function w(m,c){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,L){return P.__proto__=L,P},w(m,c)}function R(m){var c=C();return function(){var P,L=v(m);if(c){var x=v(this).constructor;P=Reflect.construct(L,arguments,x)}else P=L.apply(this,arguments);return E(this,P)}}function E(m,c){if(c&&(i(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z(m)}function z(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function C(){try{var m=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C=function(){return!!m})()}function v(m){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)},v(m)}function I(m,c){var P=Object.keys(m);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(m);c&&(L=L.filter(function(x){return Object.getOwnPropertyDescriptor(m,x).enumerable})),P.push.apply(P,L)}return P}function O(m){for(var c=1;c<arguments.length;c++){var P=arguments[c]!=null?arguments[c]:{};c%2?I(Object(P),!0).forEach(function(L){H(m,L,P[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(P)):I(Object(P)).forEach(function(L){Object.defineProperty(m,L,Object.getOwnPropertyDescriptor(P,L))})}return m}function H(m,c,P){return(c=q(c))in m?Object.defineProperty(m,c,{value:P,enumerable:!0,configurable:!0,writable:!0}):m[c]=P,m}function q(m){var c=U(m,"string");return i(c)=="symbol"?c:c+""}function U(m,c){if(i(m)!="object"||!m)return m;var P=m[Symbol.toPrimitive];if(P!==void 0){var L=P.call(m,c);if(i(L)!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(m)}var p=function(c){var P,L,x,T,D;c.rtl?D=c.slideCount-1-c.index:D=c.index,x=D<0||D>=c.slideCount,c.centerMode?(T=Math.floor(c.slidesToShow/2),L=(D-c.currentSlide)%c.slideCount===0,D>c.currentSlide-T-1&&D<=c.currentSlide+T&&(P=!0)):P=c.currentSlide<=D&&D<c.currentSlide+c.slidesToShow;var F;c.targetSlide<0?F=c.targetSlide+c.slideCount:c.targetSlide>=c.slideCount?F=c.targetSlide-c.slideCount:F=c.targetSlide;var s=D===F;return{"slick-slide":!0,"slick-active":P,"slick-center":L,"slick-cloned":x,"slick-current":s}},y=function(c){var P={};return(c.variableWidth===void 0||c.variableWidth===!1)&&(P.width=c.slideWidth),c.fade&&(P.position="relative",c.vertical?P.top=-c.index*parseInt(c.slideHeight):P.left=-c.index*parseInt(c.slideWidth),P.opacity=c.currentSlide===c.index?1:0,P.zIndex=c.currentSlide===c.index?999:998,c.useCSS&&(P.transition="opacity "+c.speed+"ms "+c.cssEase+", visibility "+c.speed+"ms "+c.cssEase)),P},g=function(c,P){return c.key||P},k=function(c){var P,L=[],x=[],T=[],D=e.default.Children.count(c.children),F=(0,r.lazyStartIndex)(c),s=(0,r.lazyEndIndex)(c);return e.default.Children.forEach(c.children,function(J,b){var n,u={message:"children",index:b,slidesToScroll:c.slidesToScroll,currentSlide:c.currentSlide};!c.lazyLoad||c.lazyLoad&&c.lazyLoadedList.indexOf(b)>=0?n=J:n=e.default.createElement("div",null);var S=y(O(O({},c),{},{index:b})),M=n.props.className||"",j=p(O(O({},c),{},{index:b}));if(L.push(e.default.cloneElement(n,{key:"original"+g(n,b),"data-index":b,className:(0,t.default)(j,M),tabIndex:"-1","aria-hidden":!j["slick-active"],style:O(O({outline:"none"},n.props.style||{}),S),onClick:function($){n.props&&n.props.onClick&&n.props.onClick($),c.focusOnSelect&&c.focusOnSelect(u)}})),c.infinite&&D>1&&c.fade===!1&&!c.unslick){var N=D-b;N<=(0,r.getPreClones)(c)&&(P=-N,P>=F&&(n=J),j=p(O(O({},c),{},{index:P})),x.push(e.default.cloneElement(n,{key:"precloned"+g(n,P),"data-index":P,tabIndex:"-1",className:(0,t.default)(j,M),"aria-hidden":!j["slick-active"],style:O(O({},n.props.style||{}),S),onClick:function($){n.props&&n.props.onClick&&n.props.onClick($),c.focusOnSelect&&c.focusOnSelect(u)}}))),b<(0,r.getPostClones)(c)&&(P=D+b,P<s&&(n=J),j=p(O(O({},c),{},{index:P})),T.push(e.default.cloneElement(n,{key:"postcloned"+g(n,P),"data-index":P,tabIndex:"-1",className:(0,t.default)(j,M),"aria-hidden":!j["slick-active"],style:O(O({},n.props.style||{}),S),onClick:function($){n.props&&n.props.onClick&&n.props.onClick($),c.focusOnSelect&&c.focusOnSelect(u)}})))}}),c.rtl?x.concat(L,T).reverse():x.concat(L,T)};return He.Track=function(m){h(P,m);var c=R(P);function P(){var L;l(this,P);for(var x=arguments.length,T=new Array(x),D=0;D<x;D++)T[D]=arguments[D];return L=c.call.apply(c,[this].concat(T)),H(z(L),"node",null),H(z(L),"handleRef",function(F){L.node=F}),L}return d(P,[{key:"render",value:function(){var x=k(this.props),T=this.props,D=T.onMouseEnter,F=T.onMouseOver,s=T.onMouseLeave,J={onMouseEnter:D,onMouseOver:F,onMouseLeave:s};return e.default.createElement("div",a({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},J),x)}}]),P}(e.default.PureComponent),He}var Fe={},nr;function Cn(){if(nr)return Fe;nr=1;function e(p){"@babel/helpers - typeof";return e=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},e(p)}Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.Dots=void 0;var t=i(B),r=i(ht()),o=Xe();function i(p){return p&&p.__esModule?p:{default:p}}function a(p,y){var g=Object.keys(p);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(p);y&&(k=k.filter(function(m){return Object.getOwnPropertyDescriptor(p,m).enumerable})),g.push.apply(g,k)}return g}function l(p){for(var y=1;y<arguments.length;y++){var g=arguments[y]!=null?arguments[y]:{};y%2?a(Object(g),!0).forEach(function(k){f(p,k,g[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(g)):a(Object(g)).forEach(function(k){Object.defineProperty(p,k,Object.getOwnPropertyDescriptor(g,k))})}return p}function f(p,y,g){return(y=R(y))in p?Object.defineProperty(p,y,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[y]=g,p}function d(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function h(p,y){for(var g=0;g<y.length;g++){var k=y[g];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(p,R(k.key),k)}}function w(p,y,g){return y&&h(p.prototype,y),Object.defineProperty(p,"prototype",{writable:!1}),p}function R(p){var y=E(p,"string");return e(y)=="symbol"?y:y+""}function E(p,y){if(e(p)!="object"||!p)return p;var g=p[Symbol.toPrimitive];if(g!==void 0){var k=g.call(p,y);if(e(k)!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}function z(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(y&&y.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),y&&C(p,y)}function C(p,y){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,k){return g.__proto__=k,g},C(p,y)}function v(p){var y=H();return function(){var g,k=q(p);if(y){var m=q(this).constructor;g=Reflect.construct(k,arguments,m)}else g=k.apply(this,arguments);return I(this,g)}}function I(p,y){if(y&&(e(y)=="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O(p)}function O(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function H(){try{var p=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H=function(){return!!p})()}function q(p){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},q(p)}var U=function(y){var g;return y.infinite?g=Math.ceil(y.slideCount/y.slidesToScroll):g=Math.ceil((y.slideCount-y.slidesToShow)/y.slidesToScroll)+1,g};return Fe.Dots=function(p){z(g,p);var y=v(g);function g(){return d(this,g),y.apply(this,arguments)}return w(g,[{key:"clickHandler",value:function(m,c){c.preventDefault(),this.props.clickHandler(m)}},{key:"render",value:function(){for(var m=this.props,c=m.onMouseEnter,P=m.onMouseOver,L=m.onMouseLeave,x=m.infinite,T=m.slidesToScroll,D=m.slidesToShow,F=m.slideCount,s=m.currentSlide,J=U({slideCount:F,slidesToScroll:T,slidesToShow:D,infinite:x}),b={onMouseEnter:c,onMouseOver:P,onMouseLeave:L},n=[],u=0;u<J;u++){var S=(u+1)*T-1,M=x?S:(0,o.clamp)(S,0,F-1),j=M-(T-1),N=x?j:(0,o.clamp)(j,0,F-1),A=(0,r.default)({"slick-active":x?s>=N&&s<=M:s===N}),$={message:"dots",index:u,slidesToScroll:T,currentSlide:s},Y=this.clickHandler.bind(this,$);n=n.concat(t.default.createElement("li",{key:u,className:A},t.default.cloneElement(this.props.customPaging(u),{onClick:Y})))}return t.default.cloneElement(this.props.appendDots(n),l({className:this.props.dotsClass},b))}}]),g}(t.default.PureComponent),Fe}var Ee={},ir;function Pn(){if(ir)return Ee;ir=1;function e(p){"@babel/helpers - typeof";return e=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},e(p)}Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.PrevArrow=Ee.NextArrow=void 0;var t=i(B),r=i(ht()),o=Xe();function i(p){return p&&p.__esModule?p:{default:p}}function a(){return a=Object.assign?Object.assign.bind():function(p){for(var y=1;y<arguments.length;y++){var g=arguments[y];for(var k in g)({}).hasOwnProperty.call(g,k)&&(p[k]=g[k])}return p},a.apply(null,arguments)}function l(p,y){var g=Object.keys(p);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(p);y&&(k=k.filter(function(m){return Object.getOwnPropertyDescriptor(p,m).enumerable})),g.push.apply(g,k)}return g}function f(p){for(var y=1;y<arguments.length;y++){var g=arguments[y]!=null?arguments[y]:{};y%2?l(Object(g),!0).forEach(function(k){d(p,k,g[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(g)):l(Object(g)).forEach(function(k){Object.defineProperty(p,k,Object.getOwnPropertyDescriptor(g,k))})}return p}function d(p,y,g){return(y=E(y))in p?Object.defineProperty(p,y,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[y]=g,p}function h(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function w(p,y){for(var g=0;g<y.length;g++){var k=y[g];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(p,E(k.key),k)}}function R(p,y,g){return y&&w(p.prototype,y),Object.defineProperty(p,"prototype",{writable:!1}),p}function E(p){var y=z(p,"string");return e(y)=="symbol"?y:y+""}function z(p,y){if(e(p)!="object"||!p)return p;var g=p[Symbol.toPrimitive];if(g!==void 0){var k=g.call(p,y);if(e(k)!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}function C(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(y&&y.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),y&&v(p,y)}function v(p,y){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,k){return g.__proto__=k,g},v(p,y)}function I(p){var y=q();return function(){var g,k=U(p);if(y){var m=U(this).constructor;g=Reflect.construct(k,arguments,m)}else g=k.apply(this,arguments);return O(this,g)}}function O(p,y){if(y&&(e(y)=="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H(p)}function H(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function q(){try{var p=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q=function(){return!!p})()}function U(p){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},U(p)}return Ee.PrevArrow=function(p){C(g,p);var y=I(g);function g(){return h(this,g),y.apply(this,arguments)}return R(g,[{key:"clickHandler",value:function(m,c){c&&c.preventDefault(),this.props.clickHandler(m,c)}},{key:"render",value:function(){var m={"slick-arrow":!0,"slick-prev":!0},c=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(m["slick-disabled"]=!0,c=null);var P={key:"0","data-role":"none",className:(0,r.default)(m),style:{display:"block"},onClick:c},L={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},x;return this.props.prevArrow?x=t.default.cloneElement(this.props.prevArrow,f(f({},P),L)):x=t.default.createElement("button",a({key:"0",type:"button"},P)," ","Previous"),x}}]),g}(t.default.PureComponent),Ee.NextArrow=function(p){C(g,p);var y=I(g);function g(){return h(this,g),y.apply(this,arguments)}return R(g,[{key:"clickHandler",value:function(m,c){c&&c.preventDefault(),this.props.clickHandler(m,c)}},{key:"render",value:function(){var m={"slick-arrow":!0,"slick-next":!0},c=this.clickHandler.bind(this,{message:"next"});(0,o.canGoNext)(this.props)||(m["slick-disabled"]=!0,c=null);var P={key:"1","data-role":"none",className:(0,r.default)(m),style:{display:"block"},onClick:c},L={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},x;return this.props.nextArrow?x=t.default.cloneElement(this.props.nextArrow,f(f({},P),L)):x=t.default.createElement("button",a({key:"1",type:"button"},P)," ","Next"),x}}]),g}(t.default.PureComponent),Ee}var Er=function(){if(typeof Map<"u")return Map;function e(t,r){var o=-1;return t.some(function(i,a){return i[0]===r?(o=a,!0):!1}),o}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(r){var o=e(this.__entries__,r),i=this.__entries__[o];return i&&i[1]},t.prototype.set=function(r,o){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=o:this.__entries__.push([r,o])},t.prototype.delete=function(r){var o=this.__entries__,i=e(o,r);~i&&o.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,o){o===void 0&&(o=null);for(var i=0,a=this.__entries__;i<a.length;i++){var l=a[i];r.call(o,l[1],l[0])}},t}()}(),Lt=typeof window<"u"&&typeof document<"u"&&window.document===document,ct=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")()}(),En=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ct):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Rn=2;function _n(e,t){var r=!1,o=!1,i=0;function a(){r&&(r=!1,e()),o&&f()}function l(){En(a)}function f(){var d=Date.now();if(r){if(d-i<Rn)return;o=!0}else r=!0,o=!1,setTimeout(l,t);i=d}return f}var Tn=20,jn=["top","right","bottom","left","width","height","size","weight"],Ln=typeof MutationObserver<"u",Dn=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=_n(this.refresh.bind(this),Tn)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,o=r.indexOf(t);~o&&r.splice(o,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Lt||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ln?(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)},e.prototype.disconnect_=function(){!Lt||!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)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,o=r===void 0?"":r,i=jn.some(function(a){return!!~o.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Rr=function(e,t){for(var r=0,o=Object.keys(t);r<o.length;r++){var i=o[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},_e=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ct},_r=vt(0,0,0,0);function ft(e){return parseFloat(e)||0}function or(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(o,i){var a=e["border-"+i+"-width"];return o+ft(a)},0)}function Mn(e){for(var t=["top","right","bottom","left"],r={},o=0,i=t;o<i.length;o++){var a=i[o],l=e["padding-"+a];r[a]=ft(l)}return r}function In(e){var t=e.getBBox();return vt(0,0,t.width,t.height)}function An(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return _r;var o=_e(e).getComputedStyle(e),i=Mn(o),a=i.left+i.right,l=i.top+i.bottom,f=ft(o.width),d=ft(o.height);if(o.boxSizing==="border-box"&&(Math.round(f+a)!==t&&(f-=or(o,"left","right")+a),Math.round(d+l)!==r&&(d-=or(o,"top","bottom")+l)),!Nn(e)){var h=Math.round(f+a)-t,w=Math.round(d+l)-r;Math.abs(h)!==1&&(f-=h),Math.abs(w)!==1&&(d-=w)}return vt(i.left,i.top,f,d)}var zn=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof _e(e).SVGGraphicsElement}:function(e){return e instanceof _e(e).SVGElement&&typeof e.getBBox=="function"}}();function Nn(e){return e===_e(e).document.documentElement}function Hn(e){return Lt?zn(e)?In(e):An(e):_r}function Fn(e){var t=e.x,r=e.y,o=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return Rr(l,{x:t,y:r,width:o,height:i,top:r,right:t+o,bottom:i+r,left:t}),l}function vt(e,t,r,o){return{x:e,y:t,width:r,height:o}}var $n=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=vt(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Hn(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Wn=function(){function e(t,r){var o=Fn(r);Rr(this,{target:t,contentRect:o})}return e}(),qn=function(){function e(t,r,o){if(this.activeObservations_=[],this.observations_=new Er,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=o}return e.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 _e(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new $n(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.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 _e(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(o){return new Wn(o.target,o.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Tr=typeof WeakMap<"u"?new WeakMap:new Er,jr=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Dn.getInstance(),o=new qn(t,r,this);Tr.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){jr.prototype[e]=function(){var t;return(t=Tr.get(this))[e].apply(t,arguments)}});var Bn=function(){return typeof ct.ResizeObserver<"u"?ct.ResizeObserver:jr}();const Un=Object.freeze(Object.defineProperty({__proto__:null,default:Bn},Symbol.toStringTag,{value:"Module"})),Yn=yn(Un);var ar;function Vn(){if(ar)return Ne;ar=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.InnerSlider=void 0;var e=h(B),t=h(xn()),r=h(kn()),o=h(ht()),i=Xe(),a=On(),l=Cn(),f=Pn(),d=h(Yn);function h(x){return x&&x.__esModule?x:{default:x}}function w(x){"@babel/helpers - typeof";return w=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},w(x)}function R(){return R=Object.assign?Object.assign.bind():function(x){for(var T=1;T<arguments.length;T++){var D=arguments[T];for(var F in D)({}).hasOwnProperty.call(D,F)&&(x[F]=D[F])}return x},R.apply(null,arguments)}function E(x,T){if(x==null)return{};var D,F,s=z(x,T);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(x);for(F=0;F<J.length;F++)D=J[F],T.includes(D)||{}.propertyIsEnumerable.call(x,D)&&(s[D]=x[D])}return s}function z(x,T){if(x==null)return{};var D={};for(var F in x)if({}.hasOwnProperty.call(x,F)){if(T.includes(F))continue;D[F]=x[F]}return D}function C(x,T){var D=Object.keys(x);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(x);T&&(F=F.filter(function(s){return Object.getOwnPropertyDescriptor(x,s).enumerable})),D.push.apply(D,F)}return D}function v(x){for(var T=1;T<arguments.length;T++){var D=arguments[T]!=null?arguments[T]:{};T%2?C(Object(D),!0).forEach(function(F){c(x,F,D[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(D)):C(Object(D)).forEach(function(F){Object.defineProperty(x,F,Object.getOwnPropertyDescriptor(D,F))})}return x}function I(x,T){if(!(x instanceof T))throw new TypeError("Cannot call a class as a function")}function O(x,T){for(var D=0;D<T.length;D++){var F=T[D];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(x,P(F.key),F)}}function H(x,T,D){return T&&O(x.prototype,T),Object.defineProperty(x,"prototype",{writable:!1}),x}function q(x,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(T&&T.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),Object.defineProperty(x,"prototype",{writable:!1}),T&&U(x,T)}function U(x,T){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,F){return D.__proto__=F,D},U(x,T)}function p(x){var T=k();return function(){var D,F=m(x);if(T){var s=m(this).constructor;D=Reflect.construct(F,arguments,s)}else D=F.apply(this,arguments);return y(this,D)}}function y(x,T){if(T&&(w(T)=="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g(x)}function g(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function k(){try{var x=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k=function(){return!!x})()}function m(x){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(T){return T.__proto__||Object.getPrototypeOf(T)},m(x)}function c(x,T,D){return(T=P(T))in x?Object.defineProperty(x,T,{value:D,enumerable:!0,configurable:!0,writable:!0}):x[T]=D,x}function P(x){var T=L(x,"string");return w(T)=="symbol"?T:T+""}function L(x,T){if(w(x)!="object"||!x)return x;var D=x[Symbol.toPrimitive];if(D!==void 0){var F=D.call(x,T);if(w(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(x)}return Ne.InnerSlider=function(x){q(D,x);var T=p(D);function D(F){var s;I(this,D),s=T.call(this,F),c(g(s),"listRefHandler",function(b){return s.list=b}),c(g(s),"trackRefHandler",function(b){return s.track=b}),c(g(s),"adaptHeight",function(){if(s.props.adaptiveHeight&&s.list){var b=s.list.querySelector('[data-index="'.concat(s.state.currentSlide,'"]'));s.list.style.height=(0,i.getHeight)(b)+"px"}}),c(g(s),"componentDidMount",function(){if(s.props.onInit&&s.props.onInit(),s.props.lazyLoad){var b=(0,i.getOnDemandLazySlides)(v(v({},s.props),s.state));b.length>0&&(s.setState(function(u){return{lazyLoadedList:u.lazyLoadedList.concat(b)}}),s.props.onLazyLoad&&s.props.onLazyLoad(b))}var n=v({listRef:s.list,trackRef:s.track},s.props);s.updateState(n,!0,function(){s.adaptHeight(),s.props.autoplay&&s.autoPlay("update")}),s.props.lazyLoad==="progressive"&&(s.lazyLoadTimer=setInterval(s.progressiveLazyLoad,1e3)),s.ro=new d.default(function(){s.state.animating?(s.onWindowResized(!1),s.callbackTimers.push(setTimeout(function(){return s.onWindowResized()},s.props.speed))):s.onWindowResized()}),s.ro.observe(s.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(u){u.onfocus=s.props.pauseOnFocus?s.onSlideFocus:null,u.onblur=s.props.pauseOnFocus?s.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",s.onWindowResized):window.attachEvent("onresize",s.onWindowResized)}),c(g(s),"componentWillUnmount",function(){s.animationEndCallback&&clearTimeout(s.animationEndCallback),s.lazyLoadTimer&&clearInterval(s.lazyLoadTimer),s.callbackTimers.length&&(s.callbackTimers.forEach(function(b){return clearTimeout(b)}),s.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",s.onWindowResized):window.detachEvent("onresize",s.onWindowResized),s.autoplayTimer&&clearInterval(s.autoplayTimer),s.ro.disconnect()}),c(g(s),"componentDidUpdate",function(b){if(s.checkImagesLoad(),s.props.onReInit&&s.props.onReInit(),s.props.lazyLoad){var n=(0,i.getOnDemandLazySlides)(v(v({},s.props),s.state));n.length>0&&(s.setState(function(M){return{lazyLoadedList:M.lazyLoadedList.concat(n)}}),s.props.onLazyLoad&&s.props.onLazyLoad(n))}s.adaptHeight();var u=v(v({listRef:s.list,trackRef:s.track},s.props),s.state),S=s.didPropsChange(b);S&&s.updateState(u,S,function(){s.state.currentSlide>=e.default.Children.count(s.props.children)&&s.changeSlide({message:"index",index:e.default.Children.count(s.props.children)-s.props.slidesToShow,currentSlide:s.state.currentSlide}),s.props.autoplay?s.autoPlay("update"):s.pause("paused")})}),c(g(s),"onWindowResized",function(b){s.debouncedResize&&s.debouncedResize.cancel(),s.debouncedResize=(0,r.default)(function(){return s.resizeWindow(b)},50),s.debouncedResize()}),c(g(s),"resizeWindow",function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,n=!!(s.track&&s.track.node);if(n){var u=v(v({listRef:s.list,trackRef:s.track},s.props),s.state);s.updateState(u,b,function(){s.props.autoplay?s.autoPlay("update"):s.pause("paused")}),s.setState({animating:!1}),clearTimeout(s.animationEndCallback),delete s.animationEndCallback}}),c(g(s),"updateState",function(b,n,u){var S=(0,i.initializedState)(b);b=v(v(v({},b),S),{},{slideIndex:S.currentSlide});var M=(0,i.getTrackLeft)(b);b=v(v({},b),{},{left:M});var j=(0,i.getTrackCSS)(b);(n||e.default.Children.count(s.props.children)!==e.default.Children.count(b.children))&&(S.trackStyle=j),s.setState(S,u)}),c(g(s),"ssrInit",function(){if(s.props.variableWidth){var b=0,n=0,u=[],S=(0,i.getPreClones)(v(v(v({},s.props),s.state),{},{slideCount:s.props.children.length})),M=(0,i.getPostClones)(v(v(v({},s.props),s.state),{},{slideCount:s.props.children.length}));s.props.children.forEach(function(le){u.push(le.props.style.width),b+=le.props.style.width});for(var j=0;j<S;j++)n+=u[u.length-1-j],b+=u[u.length-1-j];for(var N=0;N<M;N++)b+=u[N];for(var A=0;A<s.state.currentSlide;A++)n+=u[A];var $={width:b+"px",left:-n+"px"};if(s.props.centerMode){var Y="".concat(u[s.state.currentSlide],"px");$.left="calc(".concat($.left," + (100% - ").concat(Y,") / 2 ) ")}return{trackStyle:$}}var V=e.default.Children.count(s.props.children),X=v(v(v({},s.props),s.state),{},{slideCount:V}),re=(0,i.getPreClones)(X)+(0,i.getPostClones)(X)+V,ie=100/s.props.slidesToShow*re,Q=100/re,Z=-Q*((0,i.getPreClones)(X)+s.state.currentSlide)*ie/100;s.props.centerMode&&(Z+=(100-Q*ie/100)/2);var ne={width:ie+"%",left:Z+"%"};return{slideWidth:Q+"%",trackStyle:ne}}),c(g(s),"checkImagesLoad",function(){var b=s.list&&s.list.querySelectorAll&&s.list.querySelectorAll(".slick-slide img")||[],n=b.length,u=0;Array.prototype.forEach.call(b,function(S){var M=function(){return++u&&u>=n&&s.onWindowResized()};if(!S.onclick)S.onclick=function(){return S.parentNode.focus()};else{var j=S.onclick;S.onclick=function(N){j(N),S.parentNode.focus()}}S.onload||(s.props.lazyLoad?S.onload=function(){s.adaptHeight(),s.callbackTimers.push(setTimeout(s.onWindowResized,s.props.speed))}:(S.onload=M,S.onerror=function(){M(),s.props.onLazyLoadError&&s.props.onLazyLoadError()}))})}),c(g(s),"progressiveLazyLoad",function(){for(var b=[],n=v(v({},s.props),s.state),u=s.state.currentSlide;u<s.state.slideCount+(0,i.getPostClones)(n);u++)if(s.state.lazyLoadedList.indexOf(u)<0){b.push(u);break}for(var S=s.state.currentSlide-1;S>=-(0,i.getPreClones)(n);S--)if(s.state.lazyLoadedList.indexOf(S)<0){b.push(S);break}b.length>0?(s.setState(function(M){return{lazyLoadedList:M.lazyLoadedList.concat(b)}}),s.props.onLazyLoad&&s.props.onLazyLoad(b)):s.lazyLoadTimer&&(clearInterval(s.lazyLoadTimer),delete s.lazyLoadTimer)}),c(g(s),"slideHandler",function(b){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=s.props,S=u.asNavFor,M=u.beforeChange,j=u.onLazyLoad,N=u.speed,A=u.afterChange,$=s.state.currentSlide,Y=(0,i.slideHandler)(v(v(v({index:b},s.props),s.state),{},{trackRef:s.track,useCSS:s.props.useCSS&&!n})),V=Y.state,X=Y.nextState;if(V){M&&M($,V.currentSlide);var re=V.lazyLoadedList.filter(function(ie){return s.state.lazyLoadedList.indexOf(ie)<0});j&&re.length>0&&j(re),!s.props.waitForAnimate&&s.animationEndCallback&&(clearTimeout(s.animationEndCallback),A&&A($),delete s.animationEndCallback),s.setState(V,function(){S&&s.asNavForIndex!==b&&(s.asNavForIndex=b,S.innerSlider.slideHandler(b)),X&&(s.animationEndCallback=setTimeout(function(){var ie=X.animating,Q=E(X,["animating"]);s.setState(Q,function(){s.callbackTimers.push(setTimeout(function(){return s.setState({animating:ie})},10)),A&&A(V.currentSlide),delete s.animationEndCallback})},N))})}}),c(g(s),"changeSlide",function(b){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=v(v({},s.props),s.state),S=(0,i.changeSlide)(u,b);if(!(S!==0&&!S)&&(n===!0?s.slideHandler(S,n):s.slideHandler(S),s.props.autoplay&&s.autoPlay("update"),s.props.focusOnSelect)){var M=s.list.querySelectorAll(".slick-current");M[0]&&M[0].focus()}}),c(g(s),"clickHandler",function(b){s.clickable===!1&&(b.stopPropagation(),b.preventDefault()),s.clickable=!0}),c(g(s),"keyHandler",function(b){var n=(0,i.keyHandler)(b,s.props.accessibility,s.props.rtl);n!==""&&s.changeSlide({message:n})}),c(g(s),"selectHandler",function(b){s.changeSlide(b)}),c(g(s),"disableBodyScroll",function(){var b=function(u){u=u||window.event,u.preventDefault&&u.preventDefault(),u.returnValue=!1};window.ontouchmove=b}),c(g(s),"enableBodyScroll",function(){window.ontouchmove=null}),c(g(s),"swipeStart",function(b){s.props.verticalSwiping&&s.disableBodyScroll();var n=(0,i.swipeStart)(b,s.props.swipe,s.props.draggable);n!==""&&s.setState(n)}),c(g(s),"swipeMove",function(b){var n=(0,i.swipeMove)(b,v(v(v({},s.props),s.state),{},{trackRef:s.track,listRef:s.list,slideIndex:s.state.currentSlide}));n&&(n.swiping&&(s.clickable=!1),s.setState(n))}),c(g(s),"swipeEnd",function(b){var n=(0,i.swipeEnd)(b,v(v(v({},s.props),s.state),{},{trackRef:s.track,listRef:s.list,slideIndex:s.state.currentSlide}));if(n){var u=n.triggerSlideHandler;delete n.triggerSlideHandler,s.setState(n),u!==void 0&&(s.slideHandler(u),s.props.verticalSwiping&&s.enableBodyScroll())}}),c(g(s),"touchEnd",function(b){s.swipeEnd(b),s.clickable=!0}),c(g(s),"slickPrev",function(){s.callbackTimers.push(setTimeout(function(){return s.changeSlide({message:"previous"})},0))}),c(g(s),"slickNext",function(){s.callbackTimers.push(setTimeout(function(){return s.changeSlide({message:"next"})},0))}),c(g(s),"slickGoTo",function(b){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(b=Number(b),isNaN(b))return"";s.callbackTimers.push(setTimeout(function(){return s.changeSlide({message:"index",index:b,currentSlide:s.state.currentSlide},n)},0))}),c(g(s),"play",function(){var b;if(s.props.rtl)b=s.state.currentSlide-s.props.slidesToScroll;else if((0,i.canGoNext)(v(v({},s.props),s.state)))b=s.state.currentSlide+s.props.slidesToScroll;else return!1;s.slideHandler(b)}),c(g(s),"autoPlay",function(b){s.autoplayTimer&&clearInterval(s.autoplayTimer);var n=s.state.autoplaying;if(b==="update"){if(n==="hovered"||n==="focused"||n==="paused")return}else if(b==="leave"){if(n==="paused"||n==="focused")return}else if(b==="blur"&&(n==="paused"||n==="hovered"))return;s.autoplayTimer=setInterval(s.play,s.props.autoplaySpeed+50),s.setState({autoplaying:"playing"})}),c(g(s),"pause",function(b){s.autoplayTimer&&(clearInterval(s.autoplayTimer),s.autoplayTimer=null);var n=s.state.autoplaying;b==="paused"?s.setState({autoplaying:"paused"}):b==="focused"?(n==="hovered"||n==="playing")&&s.setState({autoplaying:"focused"}):n==="playing"&&s.setState({autoplaying:"hovered"})}),c(g(s),"onDotsOver",function(){return s.props.autoplay&&s.pause("hovered")}),c(g(s),"onDotsLeave",function(){return s.props.autoplay&&s.state.autoplaying==="hovered"&&s.autoPlay("leave")}),c(g(s),"onTrackOver",function(){return s.props.autoplay&&s.pause("hovered")}),c(g(s),"onTrackLeave",function(){return s.props.autoplay&&s.state.autoplaying==="hovered"&&s.autoPlay("leave")}),c(g(s),"onSlideFocus",function(){return s.props.autoplay&&s.pause("focused")}),c(g(s),"onSlideBlur",function(){return s.props.autoplay&&s.state.autoplaying==="focused"&&s.autoPlay("blur")}),c(g(s),"render",function(){var b=(0,o.default)("slick-slider",s.props.className,{"slick-vertical":s.props.vertical,"slick-initialized":!0}),n=v(v({},s.props),s.state),u=(0,i.extractObject)(n,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),S=s.props.pauseOnHover;u=v(v({},u),{},{onMouseEnter:S?s.onTrackOver:null,onMouseLeave:S?s.onTrackLeave:null,onMouseOver:S?s.onTrackOver:null,focusOnSelect:s.props.focusOnSelect&&s.clickable?s.selectHandler:null});var M;if(s.props.dots===!0&&s.state.slideCount>=s.props.slidesToShow){var j=(0,i.extractObject)(n,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),N=s.props.pauseOnDotsHover;j=v(v({},j),{},{clickHandler:s.changeSlide,onMouseEnter:N?s.onDotsLeave:null,onMouseOver:N?s.onDotsOver:null,onMouseLeave:N?s.onDotsLeave:null}),M=e.default.createElement(l.Dots,j)}var A,$,Y=(0,i.extractObject)(n,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Y.clickHandler=s.changeSlide,s.props.arrows&&(A=e.default.createElement(f.PrevArrow,Y),$=e.default.createElement(f.NextArrow,Y));var V=null;s.props.vertical&&(V={height:s.state.listHeight});var X=null;s.props.vertical===!1?s.props.centerMode===!0&&(X={padding:"0px "+s.props.centerPadding}):s.props.centerMode===!0&&(X={padding:s.props.centerPadding+" 0px"});var re=v(v({},V),X),ie=s.props.touchMove,Q={className:"slick-list",style:re,onClick:s.clickHandler,onMouseDown:ie?s.swipeStart:null,onMouseMove:s.state.dragging&&ie?s.swipeMove:null,onMouseUp:ie?s.swipeEnd:null,onMouseLeave:s.state.dragging&&ie?s.swipeEnd:null,onTouchStart:ie?s.swipeStart:null,onTouchMove:s.state.dragging&&ie?s.swipeMove:null,onTouchEnd:ie?s.touchEnd:null,onTouchCancel:s.state.dragging&&ie?s.swipeEnd:null,onKeyDown:s.props.accessibility?s.keyHandler:null},Z={className:b,dir:"ltr",style:s.props.style};return s.props.unslick&&(Q={className:"slick-list"},Z={className:b,style:s.props.style}),e.default.createElement("div",Z,s.props.unslick?"":A,e.default.createElement("div",R({ref:s.listRefHandler},Q),e.default.createElement(a.Track,R({ref:s.trackRefHandler},u),s.props.children)),s.props.unslick?"":$,s.props.unslick?"":M)}),s.list=null,s.track=null,s.state=v(v({},t.default),{},{currentSlide:s.props.initialSlide,targetSlide:s.props.initialSlide?s.props.initialSlide:0,slideCount:e.default.Children.count(s.props.children)}),s.callbackTimers=[],s.clickable=!0,s.debouncedResize=null;var J=s.ssrInit();return s.state=v(v({},s.state),J),s}return H(D,[{key:"didPropsChange",value:function(s){for(var J=!1,b=0,n=Object.keys(this.props);b<n.length;b++){var u=n[b];if(!s.hasOwnProperty(u)){J=!0;break}if(!(w(s[u])==="object"||typeof s[u]=="function"||isNaN(s[u]))&&s[u]!==this.props[u]){J=!0;break}}return J||e.default.Children.count(this.props.children)!==e.default.Children.count(s.children)}}]),D}(e.default.Component),Ne}var Et,sr;function Xn(){if(sr)return Et;sr=1;var e=function(t){return t.replace(/[A-Z]/g,function(r){return"-"+r.toLowerCase()}).toLowerCase()};return Et=e,Et}var Rt,lr;function Gn(){if(lr)return Rt;lr=1;var e=Xn(),t=function(i){var a=/[height|width]$/;return a.test(i)},r=function(i){var a="",l=Object.keys(i);return l.forEach(function(f,d){var h=i[f];f=e(f),t(f)&&typeof h=="number"&&(h=h+"px"),h===!0?a+=f:h===!1?a+="not "+f:a+="("+f+": "+h+")",d<l.length-1&&(a+=" and ")}),a},o=function(i){var a="";return typeof i=="string"?i:i instanceof Array?(i.forEach(function(l,f){a+=r(l),f<i.length-1&&(a+=", ")}),a):r(i)};return Rt=o,Rt}var ur;function Kn(){return ur||(ur=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l(B),r=Vn(),o=l(Gn()),i=l(Pr()),a=Xe();function l(k){return k&&k.__esModule?k:{default:k}}function f(k){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},f(k)}function d(){return d=Object.assign?Object.assign.bind():function(k){for(var m=1;m<arguments.length;m++){var c=arguments[m];for(var P in c)({}).hasOwnProperty.call(c,P)&&(k[P]=c[P])}return k},d.apply(null,arguments)}function h(k,m){var c=Object.keys(k);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(k);m&&(P=P.filter(function(L){return Object.getOwnPropertyDescriptor(k,L).enumerable})),c.push.apply(c,P)}return c}function w(k){for(var m=1;m<arguments.length;m++){var c=arguments[m]!=null?arguments[m]:{};m%2?h(Object(c),!0).forEach(function(P){p(k,P,c[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(c)):h(Object(c)).forEach(function(P){Object.defineProperty(k,P,Object.getOwnPropertyDescriptor(c,P))})}return k}function R(k,m){if(!(k instanceof m))throw new TypeError("Cannot call a class as a function")}function E(k,m){for(var c=0;c<m.length;c++){var P=m[c];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(k,y(P.key),P)}}function z(k,m,c){return m&&E(k.prototype,m),Object.defineProperty(k,"prototype",{writable:!1}),k}function C(k,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(m&&m.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),m&&v(k,m)}function v(k,m){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,P){return c.__proto__=P,c},v(k,m)}function I(k){var m=q();return function(){var c,P=U(k);if(m){var L=U(this).constructor;c=Reflect.construct(P,arguments,L)}else c=P.apply(this,arguments);return O(this,c)}}function O(k,m){if(m&&(f(m)=="object"||typeof m=="function"))return m;if(m!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H(k)}function H(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function q(){try{var k=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q=function(){return!!k})()}function U(k){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(m){return m.__proto__||Object.getPrototypeOf(m)},U(k)}function p(k,m,c){return(m=y(m))in k?Object.defineProperty(k,m,{value:c,enumerable:!0,configurable:!0,writable:!0}):k[m]=c,k}function y(k){var m=g(k,"string");return f(m)=="symbol"?m:m+""}function g(k,m){if(f(k)!="object"||!k)return k;var c=k[Symbol.toPrimitive];if(c!==void 0){var P=c.call(k,m);if(f(P)!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(k)}e.default=function(k){C(c,k);var m=I(c);function c(P){var L;return R(this,c),L=m.call(this,P),p(H(L),"innerSliderRefHandler",function(x){return L.innerSlider=x}),p(H(L),"slickPrev",function(){return L.innerSlider.slickPrev()}),p(H(L),"slickNext",function(){return L.innerSlider.slickNext()}),p(H(L),"slickGoTo",function(x){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return L.innerSlider.slickGoTo(x,T)}),p(H(L),"slickPause",function(){return L.innerSlider.pause("paused")}),p(H(L),"slickPlay",function(){return L.innerSlider.autoPlay("play")}),L.state={breakpoint:null},L._responsiveMediaHandlers=[],L}return z(c,[{key:"media",value:function(L,x){var T=window.matchMedia(L),D=function(s){var J=s.matches;J&&x()};T.addListener(D),this._responsiveMediaHandlers.push({mql:T,query:L,listener:D})}},{key:"componentDidMount",value:function(){var L=this;if(this.props.responsive){var x=this.props.responsive.map(function(D){return D.breakpoint});x.sort(function(D,F){return D-F}),x.forEach(function(D,F){var s;F===0?s=(0,o.default)({minWidth:0,maxWidth:D}):s=(0,o.default)({minWidth:x[F-1]+1,maxWidth:D}),(0,a.canUseDOM)()&&L.media(s,function(){L.setState({breakpoint:D})})});var T=(0,o.default)({minWidth:x.slice(-1)[0]});(0,a.canUseDOM)()&&this.media(T,function(){L.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(L){L.mql.removeListener(L.listener)})}},{key:"render",value:function(){var L=this,x,T;this.state.breakpoint?(T=this.props.responsive.filter(function(j){return j.breakpoint===L.state.breakpoint}),x=T[0].settings==="unslick"?"unslick":w(w(w({},i.default),this.props),T[0].settings)):x=w(w({},i.default),this.props),x.centerMode&&(x.slidesToScroll>1&&process.env.NODE_ENV!=="production"&&console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(x.slidesToScroll)),x.slidesToScroll=1),x.fade&&(x.slidesToShow>1&&process.env.NODE_ENV!=="production"&&console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(x.slidesToShow)),x.slidesToScroll>1&&process.env.NODE_ENV!=="production"&&console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(x.slidesToScroll)),x.slidesToShow=1,x.slidesToScroll=1);var D=t.default.Children.toArray(this.props.children);D=D.filter(function(j){return typeof j=="string"?!!j.trim():!!j}),x.variableWidth&&(x.rows>1||x.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),x.variableWidth=!1);for(var F=[],s=null,J=0;J<D.length;J+=x.rows*x.slidesPerRow){for(var b=[],n=J;n<J+x.rows*x.slidesPerRow;n+=x.slidesPerRow){for(var u=[],S=n;S<n+x.slidesPerRow&&(x.variableWidth&&D[S].props.style&&(s=D[S].props.style.width),!(S>=D.length));S+=1)u.push(t.default.cloneElement(D[S],{key:100*J+10*n+S,tabIndex:-1,style:{width:"".concat(100/x.slidesPerRow,"%"),display:"inline-block"}}));b.push(t.default.createElement("div",{key:10*J+n},u))}x.variableWidth?F.push(t.default.createElement("div",{key:J,style:{width:s}},b)):F.push(t.default.createElement("div",{key:J},b))}if(x==="unslick"){var M="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:M},D)}else F.length<=x.slidesToShow&&(x.unslick=!0);return t.default.createElement(r.InnerSlider,d({style:this.props.style,ref:this.innerSliderRefHandler},(0,a.filterSettings)(x)),F)}}]),c}(t.default.Component)}(xt)),xt}var cr;function Jn(){return cr||(cr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Kn());function r(o){return o&&o.__esModule?o:{default:o}}e.default=t.default}(St)),St}var Zn=Jn();const Qn=mn(Zn),ei=({styles:e,content:t,settings:r})=>{var o={dots:!1,speed:500,slidesToScroll:1,infinite:!1,variableWidth:!0,...r};const i=t.map(a=>G.jsx("div",{style:{display:"flex",flexDirection:"column",minWidth:"fit-content",position:"relative",boxSizing:"border-box",...a.styles},className:"carousel-slide-item",children:a.content}));return G.jsx("div",{style:{width:"100%",height:"250px",...e},children:G.jsx(Qn,{...o,children:i})})},ti=e=>B.useEffect(e,[]),Lr=()=>{const[e,t]=B.useState({}),[r,o]=B.useState(!1);return B.useEffect(()=>{const i=f=>{t({x:f.clientX,y:f.clientY})},a=f=>{o(!0)},l=f=>{o(!1)};return window.addEventListener("pointermove",i),window.addEventListener("pointerdown",a),window.addEventListener("pointerup",l),()=>{window.removeEventListener("pointermove",i),window.removeEventListener("pointerdown",a),window.removeEventListener("pointerup",l)}},[]),{pointerPosition:e,isPointerDown:r}},Dr=({ref:e,onDrag:t,onDragStart:r,onDragEnd:o})=>{const i=B.useRef(!1),a=B.useRef(!1),{pointerPosition:l,isPointerDown:f}=Lr(),d=B.useRef({isDragging:!1}),h=B.useCallback(C=>{if(!e||!e.current||!d.current)return;const v={...d.current};return v.posY=C.y,v.posX=C.x,d.current.startPosX&&d.current.posX&&(v.distanceX=d.current.startPosX-d.current.posX),d.current.startPosY&&d.current.posY&&(v.distanceY=-(d.current.startPosY-d.current.posY)),v},[]),w=B.useCallback(C=>{C.preventDefault(),C.stopPropagation(),d.current.isDragging=!0,d.current.startPosY=C.clientY,d.current.startPosX=C.clientX;const v=h({x:C.clientX,y:C.clientY});v&&(d.current=v,r?.(v))},[h]),R=B.useCallback(C=>{d.current.isDragging=!1;const v=h(l);v&&(o?.(v),v.startPosX=void 0,v.startPosY=void 0,d.current=v)},[h,l]),E=B.useCallback(C=>{if(console.debug("useDrag > onPointerMove > Is Dragging >",d.current.isDragging),!d.current.isDragging)return;const v=h(l);console.debug("useDrag > onPointerMove > Drag Result >",v),v&&(t?.(v),d.current=v)},[h,l]),z=B.useCallback(async()=>{if(!i.current){for(;!e?.current;)await new Promise(C=>setTimeout(C,300));i.current=!0,e.current.onpointerdown=w,e.current.style.touchAction="none"}},[e?.current,w]);B.useEffect(()=>{z()},[z]),B.useEffect(()=>{E()},[l]),B.useEffect(()=>{f!==a.current&&(a.current=f,f||R())},[f,a.current])},ri=()=>{const e=(r,o)=>{let i=0,a=`${r}?`;for(const l in o){const f=o[l];i>0&&(a=`${a}&`),a=`${a}${l}=${f}`,i++}return a};return async(r,o)=>{const i=e(r,o);return await(await fetch(i)).json()}},Mr={xs:0,sm:420,md:768,lg:991,xl:1200,xxl:1440},ni=e=>{const t={...Mr,...e?.breakpointConfiguration},[r,o]=B.useState(fr(t)),i=()=>{o(fr(t))};return B.useEffect(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[]),B.useMemo(()=>r,[r])},ii=(e,t)=>e<t.sm?"xs":e<t.md?"sm":e<t.lg?"md":e<t.xl?"lg":e<t.xxl?"xl":"xxl",oi=(e,t)=>e<=t.sm?"mobile":e<=t.md?"tablet":"desktop",fr=e=>{const t=window.innerWidth,r=window.innerHeight,o=ii(t,e),i=oi(t,e);return{currentWidth:t,currentHeight:r,currentBreakpoint:o,currentSize:i}},ai=e=>{const t=e.translations,r=e.language,o=(a,l)=>{if(!a)return;let f=a[r];if(f)return l&&Object.keys(l).forEach(d=>{const h=l[d];f=f.replaceAll(`{{${d}}}`,`${h}`)}),f};return{t:(a,l)=>{if(t[a]){const f=o(t[a],l);return f??a}return a},getTranslation:o}};var $e={},dr;function si(){if(dr)return $e;dr=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.parse=l,$e.serialize=h;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const E=function(){};return E.prototype=Object.create(null),E})();function l(E,z){const C=new a,v=E.length;if(v<2)return C;const I=z?.decode||w;let O=0;do{const H=E.indexOf("=",O);if(H===-1)break;const q=E.indexOf(";",O),U=q===-1?v:q;if(H>U){O=E.lastIndexOf(";",H-1)+1;continue}const p=f(E,O,H),y=d(E,H,p),g=E.slice(p,y);if(C[g]===void 0){let k=f(E,H+1,U),m=d(E,U,k);const c=I(E.slice(k,m));C[g]=c}O=U+1}while(O<v);return C}function f(E,z,C){do{const v=E.charCodeAt(z);if(v!==32&&v!==9)return z}while(++z<C);return C}function d(E,z,C){for(;z>C;){const v=E.charCodeAt(--z);if(v!==32&&v!==9)return z+1}return C}function h(E,z,C){const v=C?.encode||encodeURIComponent;if(!e.test(E))throw new TypeError(`argument name is invalid: ${E}`);const I=v(z);if(!t.test(I))throw new TypeError(`argument val is invalid: ${z}`);let O=E+"="+I;if(!C)return O;if(C.maxAge!==void 0){if(!Number.isInteger(C.maxAge))throw new TypeError(`option maxAge is invalid: ${C.maxAge}`);O+="; Max-Age="+C.maxAge}if(C.domain){if(!r.test(C.domain))throw new TypeError(`option domain is invalid: ${C.domain}`);O+="; Domain="+C.domain}if(C.path){if(!o.test(C.path))throw new TypeError(`option path is invalid: ${C.path}`);O+="; Path="+C.path}if(C.expires){if(!R(C.expires)||!Number.isFinite(C.expires.valueOf()))throw new TypeError(`option expires is invalid: ${C.expires}`);O+="; Expires="+C.expires.toUTCString()}if(C.httpOnly&&(O+="; HttpOnly"),C.secure&&(O+="; Secure"),C.partitioned&&(O+="; Partitioned"),C.priority)switch(typeof C.priority=="string"?C.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${C.priority}`)}if(C.sameSite)switch(typeof C.sameSite=="string"?C.sameSite.toLowerCase():C.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${C.sameSite}`)}return O}function w(E){if(E.indexOf("%")===-1)return E;try{return decodeURIComponent(E)}catch{return E}}function R(E){return i.call(E)==="[object Date]"}return $e}si();/**
|
|
23
27
|
* react-router v7.6.3
|
|
24
28
|
*
|
|
25
29
|
* Copyright (c) Remix Software Inc.
|
|
@@ -28,9 +32,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
28
32
|
* LICENSE.md file in the root directory of this source tree.
|
|
29
33
|
*
|
|
30
34
|
* @license MIT
|
|
31
|
-
*/var pt="popstate";function Rr(e={}){function t(a,n){let{pathname:i,search:o,hash:l}=a.location;return Be("",{pathname:i,search:o,hash:l},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function r(a,n){return typeof n=="string"?n:de(n)}return kr(t,r,null,e)}function $(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function X(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Cr(){return Math.random().toString(36).substring(2,10)}function mt(e,t){return{usr:e.state,key:e.key,idx:t}}function Be(e,t,r=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ae(t):t,state:r,key:t&&t.key||a||Cr()}}function de({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function ae(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function kr(e,t,r,a={}){let{window:n=document.defaultView,v5Compat:i=!1}=a,o=n.history,l="POP",s=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function g(){l="POP";let v=c(),d=v==null?null:v-u;u=v,s&&s({action:l,location:h.location,delta:d})}function m(v,d){l="PUSH";let w=Be(h.location,v,d);u=c()+1;let R=mt(w,u),T=h.createHref(w);try{o.pushState(R,"",T)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;n.location.assign(T)}i&&s&&s({action:l,location:h.location,delta:1})}function x(v,d){l="REPLACE";let w=Be(h.location,v,d);u=c();let R=mt(w,u),T=h.createHref(w);o.replaceState(R,"",T),i&&s&&s({action:l,location:h.location,delta:0})}function f(v){return Er(v)}let h={get action(){return l},get location(){return e(n,o)},listen(v){if(s)throw new Error("A history only accepts one active listener");return n.addEventListener(pt,g),s=v,()=>{n.removeEventListener(pt,g),s=null}},createHref(v){return t(n,v)},createURL:f,encodeLocation(v){let d=f(v);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:m,replace:x,go(v){return o.go(v)}};return h}function Er(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),$(r,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:de(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function Ot(e,t,r="/"){return Sr(e,t,r,!1)}function Sr(e,t,r,a){let n=typeof t=="string"?ae(t):t,i=K(n.pathname||"/",r);if(i==null)return null;let o=At(e);Pr(o);let l=null;for(let s=0;l==null&&s<o.length;++s){let u=Nr(i);l=Fr(o[s],u,a)}return l}function At(e,t=[],r=[],a=""){let n=(i,o,l)=>{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};s.relativePath.startsWith("/")&&($(s.relativePath.startsWith(a),`Absolute route path "${s.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(a.length));let u=J([a,s.relativePath]),c=r.concat(s);i.children&&i.children.length>0&&($(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),At(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:_r(u,i.index),routesMeta:c})};return e.forEach((i,o)=>{if(i.path===""||!i.path?.includes("?"))n(i,o);else for(let l of $t(i.path))n(i,o,l)}),t}function $t(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,n=r.endsWith("?"),i=r.replace(/\?$/,"");if(a.length===0)return n?[i,""]:[i];let o=$t(a.join("/")),l=[];return l.push(...o.map(s=>s===""?i:[i,s].join("/"))),n&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function Pr(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Dr(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var Tr=/^:[\w-]+$/,Ir=3,Or=2,Ar=1,$r=10,Lr=-2,gt=e=>e==="*";function _r(e,t){let r=e.split("/"),a=r.length;return r.some(gt)&&(a+=Lr),t&&(a+=Or),r.filter(n=>!gt(n)).reduce((n,i)=>n+(Tr.test(i)?Ir:i===""?Ar:$r),a)}function Dr(e,t){return e.length===t.length&&e.slice(0,-1).every((a,n)=>a===t[n])?e[e.length-1]-t[t.length-1]:0}function Fr(e,t,r=!1){let{routesMeta:a}=e,n={},i="/",o=[];for(let l=0;l<a.length;++l){let s=a[l],u=l===a.length-1,c=i==="/"?t:t.slice(i.length)||"/",g=Ie({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c),m=s.route;if(!g&&u&&r&&!a[a.length-1].route.index&&(g=Ie({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!g)return null;Object.assign(n,g.params),o.push({params:n,pathname:J([i,g.pathname]),pathnameBase:Ur(J([i,g.pathnameBase])),route:m}),g.pathnameBase!=="/"&&(i=J([i,g.pathnameBase]))}return o}function Ie(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=jr(e.path,e.caseSensitive,e.end),n=t.match(r);if(!n)return null;let i=n[0],o=i.replace(/(.)\/+$/,"$1"),l=n.slice(1);return{params:a.reduce((u,{paramName:c,isOptional:g},m)=>{if(c==="*"){let f=l[m]||"";o=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}const x=l[m];return g&&!x?u[c]=void 0:u[c]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function jr(e,t=!1,r=!0){X(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s)=>(a.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),a]}function Nr(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return X(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function K(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function Mr(e,t="/"){let{pathname:r,search:a="",hash:n=""}=typeof e=="string"?ae(e):e;return{pathname:r?r.startsWith("/")?r:Hr(r,t):t,search:Br(a),hash:Wr(n)}}function Hr(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function He(e,t,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zr(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Lt(e){let t=zr(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function _t(e,t,r,a=!1){let n;typeof e=="string"?n=ae(e):(n={...e},$(!n.pathname||!n.pathname.includes("?"),He("?","pathname","search",n)),$(!n.pathname||!n.pathname.includes("#"),He("#","pathname","hash",n)),$(!n.search||!n.search.includes("#"),He("#","search","hash",n)));let i=e===""||n.pathname==="",o=i?"/":n.pathname,l;if(o==null)l=r;else{let g=t.length-1;if(!a&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),g-=1;n.pathname=m.join("/")}l=g>=0?t[g]:"/"}let s=Mr(n,l),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var J=e=>e.join("/").replace(/\/\/+/g,"/"),Ur=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Br=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Wr=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Vr(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Dt=["POST","PUT","PATCH","DELETE"];new Set(Dt);var Yr=["GET",...Dt];new Set(Yr);var ie=p.createContext(null);ie.displayName="DataRouter";var Ae=p.createContext(null);Ae.displayName="DataRouterState";var Ft=p.createContext({isTransitioning:!1});Ft.displayName="ViewTransition";var qr=p.createContext(new Map);qr.displayName="Fetchers";var Xr=p.createContext(null);Xr.displayName="Await";var G=p.createContext(null);G.displayName="Navigation";var ge=p.createContext(null);ge.displayName="Location";var Z=p.createContext({outlet:null,matches:[],isDataRoute:!1});Z.displayName="Route";var Ge=p.createContext(null);Ge.displayName="RouteError";function Gr(e,{relative:t}={}){$(ye(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=p.useContext(G),{hash:n,pathname:i,search:o}=ve(e,{relative:t}),l=i;return r!=="/"&&(l=i==="/"?r:J([r,i])),a.createHref({pathname:l,search:o,hash:n})}function ye(){return p.useContext(ge)!=null}function ee(){return $(ye(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(ge).location}var jt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nt(e){p.useContext(G).static||p.useLayoutEffect(e)}function Mt(){let{isDataRoute:e}=p.useContext(Z);return e?un():Jr()}function Jr(){$(ye(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(ie),{basename:t,navigator:r}=p.useContext(G),{matches:a}=p.useContext(Z),{pathname:n}=ee(),i=JSON.stringify(Lt(a)),o=p.useRef(!1);return Nt(()=>{o.current=!0}),p.useCallback((s,u={})=>{if(X(o.current,jt),!o.current)return;if(typeof s=="number"){r.go(s);return}let c=_t(s,JSON.parse(i),n,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:J([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,i,n,e])}p.createContext(null);function ve(e,{relative:t}={}){let{matches:r}=p.useContext(Z),{pathname:a}=ee(),n=JSON.stringify(Lt(r));return p.useMemo(()=>_t(e,JSON.parse(n),a,t==="path"),[e,n,a,t])}function Kr(e,t){return Ht(e,t)}function Ht(e,t,r,a){$(ye(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=p.useContext(G),{matches:i}=p.useContext(Z),o=i[i.length-1],l=o?o.params:{},s=o?o.pathname:"/",u=o?o.pathnameBase:"/",c=o&&o.route;{let d=c&&c.path||"";zt(s,!c||d.endsWith("*")||d.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${d}">) 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.
|
|
35
|
+
*/var pr="popstate";function li(e={}){function t(o,i){let{pathname:a,search:l,hash:f}=o.location;return Dt("",{pathname:a,search:l,hash:f},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(o,i){return typeof i=="string"?i:Be(i)}return ci(t,r,null,e)}function oe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function be(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ui(){return Math.random().toString(36).substring(2,10)}function hr(e,t){return{usr:e.state,key:e.key,idx:t}}function Dt(e,t,r=null,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?je(t):t,state:r,key:t&&t.key||o||ui()}}function Be({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function je(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let o=e.indexOf("?");o>=0&&(t.search=e.substring(o),e=e.substring(0,o)),e&&(t.pathname=e)}return t}function ci(e,t,r,o={}){let{window:i=document.defaultView,v5Compat:a=!1}=o,l=i.history,f="POP",d=null,h=w();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function w(){return(l.state||{idx:null}).idx}function R(){f="POP";let I=w(),O=I==null?null:I-h;h=I,d&&d({action:f,location:v.location,delta:O})}function E(I,O){f="PUSH";let H=Dt(v.location,I,O);h=w()+1;let q=hr(H,h),U=v.createHref(H);try{l.pushState(q,"",U)}catch(p){if(p instanceof DOMException&&p.name==="DataCloneError")throw p;i.location.assign(U)}a&&d&&d({action:f,location:v.location,delta:1})}function z(I,O){f="REPLACE";let H=Dt(v.location,I,O);h=w();let q=hr(H,h),U=v.createHref(H);l.replaceState(q,"",U),a&&d&&d({action:f,location:v.location,delta:0})}function C(I){return fi(I)}let v={get action(){return f},get location(){return e(i,l)},listen(I){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(pr,R),d=I,()=>{i.removeEventListener(pr,R),d=null}},createHref(I){return t(i,I)},createURL:C,encodeLocation(I){let O=C(I);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:E,replace:z,go(I){return l.go(I)}};return v}function fi(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),oe(r,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:Be(e);return o=o.replace(/ $/,"%20"),!t&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function Ir(e,t,r="/"){return di(e,t,r,!1)}function di(e,t,r,o){let i=typeof t=="string"?je(t):t,a=xe(i.pathname||"/",r);if(a==null)return null;let l=Ar(e);pi(l);let f=null;for(let d=0;f==null&&d<l.length;++d){let h=Oi(a);f=xi(l[d],h,o)}return f}function Ar(e,t=[],r=[],o=""){let i=(a,l,f)=>{let d={relativePath:f===void 0?a.path||"":f,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};d.relativePath.startsWith("/")&&(oe(d.relativePath.startsWith(o),`Absolute route path "${d.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(o.length));let h=Se([o,d.relativePath]),w=r.concat(d);a.children&&a.children.length>0&&(oe(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Ar(a.children,t,w,h)),!(a.path==null&&!a.index)&&t.push({path:h,score:wi(h,a.index),routesMeta:w})};return e.forEach((a,l)=>{if(a.path===""||!a.path?.includes("?"))i(a,l);else for(let f of zr(a.path))i(a,l,f)}),t}function zr(e){let t=e.split("/");if(t.length===0)return[];let[r,...o]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(o.length===0)return i?[a,""]:[a];let l=zr(o.join("/")),f=[];return f.push(...l.map(d=>d===""?a:[a,d].join("/"))),i&&f.push(...l),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function pi(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Si(t.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var hi=/^:[\w-]+$/,vi=3,mi=2,yi=1,gi=10,bi=-2,vr=e=>e==="*";function wi(e,t){let r=e.split("/"),o=r.length;return r.some(vr)&&(o+=bi),t&&(o+=mi),r.filter(i=>!vr(i)).reduce((i,a)=>i+(hi.test(a)?vi:a===""?yi:gi),o)}function Si(e,t){return e.length===t.length&&e.slice(0,-1).every((o,i)=>o===t[i])?e[e.length-1]-t[t.length-1]:0}function xi(e,t,r=!1){let{routesMeta:o}=e,i={},a="/",l=[];for(let f=0;f<o.length;++f){let d=o[f],h=f===o.length-1,w=a==="/"?t:t.slice(a.length)||"/",R=dt({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},w),E=d.route;if(!R&&h&&r&&!o[o.length-1].route.index&&(R=dt({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},w)),!R)return null;Object.assign(i,R.params),l.push({params:i,pathname:Se([a,R.pathname]),pathnameBase:Ri(Se([a,R.pathnameBase])),route:E}),R.pathnameBase!=="/"&&(a=Se([a,R.pathnameBase]))}return l}function dt(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=ki(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],l=a.replace(/(.)\/+$/,"$1"),f=i.slice(1);return{params:o.reduce((h,{paramName:w,isOptional:R},E)=>{if(w==="*"){let C=f[E]||"";l=a.slice(0,a.length-C.length).replace(/(.)\/+$/,"$1")}const z=f[E];return R&&!z?h[w]=void 0:h[w]=(z||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:l,pattern:e}}function ki(e,t=!1,r=!0){be(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,f,d)=>(o.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),o]}function Oi(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return be(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function xe(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}function Ci(e,t="/"){let{pathname:r,search:o="",hash:i=""}=typeof e=="string"?je(e):e;return{pathname:r?r.startsWith("/")?r:Pi(r,t):t,search:_i(o),hash:Ti(i)}}function Pi(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function _t(e,t,r,o){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ei(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Nr(e){let t=Ei(e);return t.map((r,o)=>o===t.length-1?r.pathname:r.pathnameBase)}function Hr(e,t,r,o=!1){let i;typeof e=="string"?i=je(e):(i={...e},oe(!i.pathname||!i.pathname.includes("?"),_t("?","pathname","search",i)),oe(!i.pathname||!i.pathname.includes("#"),_t("#","pathname","hash",i)),oe(!i.search||!i.search.includes("#"),_t("#","search","hash",i)));let a=e===""||i.pathname==="",l=a?"/":i.pathname,f;if(l==null)f=r;else{let R=t.length-1;if(!o&&l.startsWith("..")){let E=l.split("/");for(;E[0]==="..";)E.shift(),R-=1;i.pathname=E.join("/")}f=R>=0?t[R]:"/"}let d=Ci(i,f),h=l&&l!=="/"&&l.endsWith("/"),w=(a||l===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(h||w)&&(d.pathname+="/"),d}var Se=e=>e.join("/").replace(/\/\/+/g,"/"),Ri=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_i=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ti=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ji(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Fr=["POST","PUT","PATCH","DELETE"];new Set(Fr);var Li=["GET",...Fr];new Set(Li);var Le=_.createContext(null);Le.displayName="DataRouter";var mt=_.createContext(null);mt.displayName="DataRouterState";var $r=_.createContext({isTransitioning:!1});$r.displayName="ViewTransition";var Di=_.createContext(new Map);Di.displayName="Fetchers";var Mi=_.createContext(null);Mi.displayName="Await";var we=_.createContext(null);we.displayName="Navigation";var Ge=_.createContext(null);Ge.displayName="Location";var ke=_.createContext({outlet:null,matches:[],isDataRoute:!1});ke.displayName="Route";var Ht=_.createContext(null);Ht.displayName="RouteError";function Ii(e,{relative:t}={}){oe(Ke(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=_.useContext(we),{hash:i,pathname:a,search:l}=Je(e,{relative:t}),f=a;return r!=="/"&&(f=a==="/"?r:Se([r,a])),o.createHref({pathname:f,search:l,hash:i})}function Ke(){return _.useContext(Ge)!=null}function Ce(){return oe(Ke(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Ge).location}var Wr="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function qr(e){_.useContext(we).static||_.useLayoutEffect(e)}function Br(){let{isDataRoute:e}=_.useContext(ke);return e?Xi():Ai()}function Ai(){oe(Ke(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(Le),{basename:t,navigator:r}=_.useContext(we),{matches:o}=_.useContext(ke),{pathname:i}=Ce(),a=JSON.stringify(Nr(o)),l=_.useRef(!1);return qr(()=>{l.current=!0}),_.useCallback((d,h={})=>{if(be(l.current,Wr),!l.current)return;if(typeof d=="number"){r.go(d);return}let w=Hr(d,JSON.parse(a),i,h.relative==="path");e==null&&t!=="/"&&(w.pathname=w.pathname==="/"?t:Se([t,w.pathname])),(h.replace?r.replace:r.push)(w,h.state,h)},[t,r,a,i,e])}_.createContext(null);function Je(e,{relative:t}={}){let{matches:r}=_.useContext(ke),{pathname:o}=Ce(),i=JSON.stringify(Nr(r));return _.useMemo(()=>Hr(e,JSON.parse(i),o,t==="path"),[e,i,o,t])}function zi(e,t){return Ur(e,t)}function Ur(e,t,r,o){oe(Ke(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=_.useContext(we),{matches:a}=_.useContext(ke),l=a[a.length-1],f=l?l.params:{},d=l?l.pathname:"/",h=l?l.pathnameBase:"/",w=l&&l.route;{let O=w&&w.path||"";Yr(d,!w||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${O}">) 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.
|
|
32
36
|
|
|
33
|
-
Please change the parent <Route path="${d}"> to <Route path="${d==="/"?"*":`${d}/*`}">.`)}let g=ee(),m;if(t){let d=typeof t=="string"?ae(t):t;$(u==="/"||d.pathname?.startsWith(u),`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 "${u}" but pathname "${d.pathname}" was given in the \`location\` prop.`),m=d}else m=g;let x=m.pathname||"/",f=x;if(u!=="/"){let d=u.replace(/^\//,"").split("/");f="/"+x.replace(/^\//,"").split("/").slice(d.length).join("/")}let h=Ot(e,{pathname:f});X(c||h!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),X(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.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 v=rn(h&&h.map(d=>Object.assign({},d,{params:Object.assign({},l,d.params),pathname:J([u,n.encodeLocation?n.encodeLocation(d.pathname).pathname:d.pathname]),pathnameBase:d.pathnameBase==="/"?u:J([u,n.encodeLocation?n.encodeLocation(d.pathnameBase).pathname:d.pathnameBase])})),i,r,a);return t&&v?p.createElement(ge.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},v):v}function Zr(){let e=ln(),t=Vr(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:i},"ErrorBoundary")," or"," ",p.createElement("code",{style:i},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:n},r):null,o)}var Qr=p.createElement(Zr,null),en=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?p.createElement(Z.Provider,{value:this.props.routeContext},p.createElement(Ge.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function tn({routeContext:e,match:t,children:r}){let a=p.useContext(ie);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(Z.Provider,{value:e},r)}function rn(e,t=[],r=null,a=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let n=e,i=r?.errors;if(i!=null){let s=n.findIndex(u=>u.route.id&&i?.[u.route.id]!==void 0);$(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),n=n.slice(0,Math.min(n.length,s+1))}let o=!1,l=-1;if(r)for(let s=0;s<n.length;s++){let u=n[s];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(l=s),u.route.id){let{loaderData:c,errors:g}=r,m=u.route.loader&&!c.hasOwnProperty(u.route.id)&&(!g||g[u.route.id]===void 0);if(u.route.lazy||m){o=!0,l>=0?n=n.slice(0,l+1):n=[n[0]];break}}}return n.reduceRight((s,u,c)=>{let g,m=!1,x=null,f=null;r&&(g=i&&u.route.id?i[u.route.id]:void 0,x=u.route.errorElement||Qr,o&&(l<0&&c===0?(zt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,f=null):l===c&&(m=!0,f=u.route.hydrateFallbackElement||null)));let h=t.concat(n.slice(0,c+1)),v=()=>{let d;return g?d=x:m?d=f:u.route.Component?d=p.createElement(u.route.Component,null):u.route.element?d=u.route.element:d=s,p.createElement(tn,{match:u,routeContext:{outlet:s,matches:h,isDataRoute:r!=null},children:d})};return r&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?p.createElement(en,{location:r.location,revalidation:r.revalidation,component:x,error:g,children:v(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):v()},null)}function Je(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nn(e){let t=p.useContext(ie);return $(t,Je(e)),t}function an(e){let t=p.useContext(Ae);return $(t,Je(e)),t}function on(e){let t=p.useContext(Z);return $(t,Je(e)),t}function Ke(e){let t=on(e),r=t.matches[t.matches.length-1];return $(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function sn(){return Ke("useRouteId")}function ln(){let e=p.useContext(Ge),t=an("useRouteError"),r=Ke("useRouteError");return e!==void 0?e:t.errors?.[r]}function un(){let{router:e}=nn("useNavigate"),t=Ke("useNavigate"),r=p.useRef(!1);return Nt(()=>{r.current=!0}),p.useCallback(async(n,i={})=>{X(r.current,jt),r.current&&(typeof n=="number"?e.navigate(n):await e.navigate(n,{fromRouteId:t,...i}))},[e,t])}var yt={};function zt(e,t,r){!t&&!yt[e]&&(yt[e]=!0,X(!1,r))}p.memo(cn);function cn({routes:e,future:t,state:r}){return Ht(e,void 0,r,t)}function Ut(e){$(!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 fn({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:n,static:i=!1}){$(!ye(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=p.useMemo(()=>({basename:o,navigator:n,static:i,future:{}}),[o,n,i]);typeof r=="string"&&(r=ae(r));let{pathname:s="/",search:u="",hash:c="",state:g=null,key:m="default"}=r,x=p.useMemo(()=>{let f=K(s,o);return f==null?null:{location:{pathname:f,search:u,hash:c,state:g,key:m},navigationType:a}},[o,s,u,c,g,m,a]);return X(x!=null,`<Router basename="${o}"> is not able to match the URL "${s}${u}${c}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:p.createElement(G.Provider,{value:l},p.createElement(ge.Provider,{children:t,value:x}))}function dn({children:e,location:t}){return Kr(We(e),t)}function We(e,t=[]){let r=[];return p.Children.forEach(e,(a,n)=>{if(!p.isValidElement(a))return;let i=[...t,n];if(a.type===p.Fragment){r.push.apply(r,We(a.props.children,i));return}$(a.type===Ut,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),$(!a.props.index||!a.props.children,"An index route cannot have child routes.");let o={id:a.props.id||i.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(o.children=We(a.props.children,i)),r.push(o)}),r}var ke="get",Ee="application/x-www-form-urlencoded";function $e(e){return e!=null&&typeof e.tagName=="string"}function hn(e){return $e(e)&&e.tagName.toLowerCase()==="button"}function pn(e){return $e(e)&&e.tagName.toLowerCase()==="form"}function mn(e){return $e(e)&&e.tagName.toLowerCase()==="input"}function gn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yn(e,t){return e.button===0&&(!t||t==="_self")&&!gn(e)}var Re=null;function vn(){if(Re===null)try{new FormData(document.createElement("form"),0),Re=!1}catch{Re=!0}return Re}var xn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ze(e){return e!=null&&!xn.has(e)?(X(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ee}"`),null):e}function bn(e,t){let r,a,n,i,o;if(pn(e)){let l=e.getAttribute("action");a=l?K(l,t):null,r=e.getAttribute("method")||ke,n=ze(e.getAttribute("enctype"))||Ee,i=new FormData(e)}else if(hn(e)||mn(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(a=s?K(s,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||ke,n=ze(e.getAttribute("formenctype"))||ze(l.getAttribute("enctype"))||Ee,i=new FormData(l,e),!vn()){let{name:u,type:c,value:g}=e;if(c==="image"){let m=u?`${u}.`:"";i.append(`${m}x`,"0"),i.append(`${m}y`,"0")}else u&&i.append(u,g)}}else{if($e(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ke,a=null,n=Ee,o=e}return i&&n==="text/plain"&&(o=i,i=void 0),{action:a,method:r.toLowerCase(),encType:n,formData:i,body:o}}function Ze(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function wn(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Rn(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Cn(e,t,r){let a=await Promise.all(e.map(async n=>{let i=t.routes[n.route.id];if(i){let o=await wn(i,r);return o.links?o.links():[]}return[]}));return Pn(a.flat(1).filter(Rn).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function vt(e,t,r,a,n,i){let o=(s,u)=>r[u]?s.route.id!==r[u].route.id:!0,l=(s,u)=>r[u].pathname!==s.pathname||r[u].route.path?.endsWith("*")&&r[u].params["*"]!==s.params["*"];return i==="assets"?t.filter((s,u)=>o(s,u)||l(s,u)):i==="data"?t.filter((s,u)=>{let c=a.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(o(s,u)||l(s,u))return!0;if(s.route.shouldRevalidate){let g=s.route.shouldRevalidate({currentUrl:new URL(n.pathname+n.search+n.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function kn(e,t,{includeHydrateFallback:r}={}){return En(e.map(a=>{let n=t.routes[a.route.id];if(!n)return[];let i=[n.module];return n.clientActionModule&&(i=i.concat(n.clientActionModule)),n.clientLoaderModule&&(i=i.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(i=i.concat(n.hydrateFallbackModule)),n.imports&&(i=i.concat(n.imports)),i}).flat(1))}function En(e){return[...new Set(e)]}function Sn(e){let t={},r=Object.keys(e).sort();for(let a of r)t[a]=e[a];return t}function Pn(e,t){let r=new Set;return new Set(t),e.reduce((a,n)=>{let i=JSON.stringify(Sn(n));return r.has(i)||(r.add(i),a.push({key:i,link:n})),a},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Tn=new Set([100,101,204,205]);function In(e,t){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname="_root.data":t&&K(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Bt(){let e=p.useContext(ie);return Ze(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function On(){let e=p.useContext(Ae);return Ze(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Qe=p.createContext(void 0);Qe.displayName="FrameworkContext";function Wt(){let e=p.useContext(Qe);return Ze(e,"You must render this element inside a <HydratedRouter> element"),e}function An(e,t){let r=p.useContext(Qe),[a,n]=p.useState(!1),[i,o]=p.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:g}=t,m=p.useRef(null);p.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let h=d=>{d.forEach(w=>{o(w.isIntersecting)})},v=new IntersectionObserver(h,{threshold:.5});return m.current&&v.observe(m.current),()=>{v.disconnect()}}},[e]),p.useEffect(()=>{if(a){let h=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(h)}}},[a]);let x=()=>{n(!0)},f=()=>{n(!1),o(!1)};return r?e!=="intent"?[i,m,{}]:[i,m,{onFocus:ce(l,x),onBlur:ce(s,f),onMouseEnter:ce(u,x),onMouseLeave:ce(c,f),onTouchStart:ce(g,x)}]:[!1,m,{}]}function ce(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function $n({page:e,...t}){let{router:r}=Bt(),a=p.useMemo(()=>Ot(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?p.createElement(_n,{page:e,matches:a,...t}):null}function Ln(e){let{manifest:t,routeModules:r}=Wt(),[a,n]=p.useState([]);return p.useEffect(()=>{let i=!1;return Cn(e,t,r).then(o=>{i||n(o)}),()=>{i=!0}},[e,t,r]),a}function _n({page:e,matches:t,...r}){let a=ee(),{manifest:n,routeModules:i}=Wt(),{basename:o}=Bt(),{loaderData:l,matches:s}=On(),u=p.useMemo(()=>vt(e,t,s,n,a,"data"),[e,t,s,n,a]),c=p.useMemo(()=>vt(e,t,s,n,a,"assets"),[e,t,s,n,a]),g=p.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let f=new Set,h=!1;if(t.forEach(d=>{let w=n.routes[d.route.id];!w||!w.hasLoader||(!u.some(R=>R.route.id===d.route.id)&&d.route.id in l&&i[d.route.id]?.shouldRevalidate||w.hasClientLoader?h=!0:f.add(d.route.id))}),f.size===0)return[];let v=In(e,o);return h&&f.size>0&&v.searchParams.set("_routes",t.filter(d=>f.has(d.route.id)).map(d=>d.route.id).join(",")),[v.pathname+v.search]},[o,l,a,n,u,t,e,i]),m=p.useMemo(()=>kn(c,n),[c,n]),x=Ln(c);return p.createElement(p.Fragment,null,g.map(f=>p.createElement("link",{key:f,rel:"prefetch",as:"fetch",href:f,...r})),m.map(f=>p.createElement("link",{key:f,rel:"modulepreload",href:f,...r})),x.map(({key:f,link:h})=>p.createElement("link",{key:f,...h})))}function Dn(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Vt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Vt&&(window.__reactRouterVersion="7.6.3")}catch{}function Fn({basename:e,children:t,window:r}){let a=p.useRef();a.current==null&&(a.current=Rr({window:r,v5Compat:!0}));let n=a.current,[i,o]=p.useState({action:n.action,location:n.location}),l=p.useCallback(s=>{p.startTransition(()=>o(s))},[o]);return p.useLayoutEffect(()=>n.listen(l),[n,l]),p.createElement(fn,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n})}var Yt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qt=p.forwardRef(function({onClick:t,discover:r="render",prefetch:a="none",relative:n,reloadDocument:i,replace:o,state:l,target:s,to:u,preventScrollReset:c,viewTransition:g,...m},x){let{basename:f}=p.useContext(G),h=typeof u=="string"&&Yt.test(u),v,d=!1;if(typeof u=="string"&&h&&(v=u,Vt))try{let _=new URL(window.location.href),M=u.startsWith("//")?new URL(_.protocol+u):new URL(u),B=K(M.pathname,f);M.origin===_.origin&&B!=null?u=B+M.search+M.hash:d=!0}catch{X(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let w=Gr(u,{relative:n}),[R,T,I]=An(a,m),O=Hn(u,{replace:o,state:l,target:s,preventScrollReset:c,relative:n,viewTransition:g});function C(_){t&&t(_),_.defaultPrevented||O(_)}let z=p.createElement("a",{...m,...I,href:v||w,onClick:d||i?t:C,ref:Dn(x,T),target:s,"data-discover":!h&&r==="render"?"true":void 0});return R&&!h?p.createElement(p.Fragment,null,z,p.createElement($n,{page:w})):z});qt.displayName="Link";var jn=p.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:a="",end:n=!1,style:i,to:o,viewTransition:l,children:s,...u},c){let g=ve(o,{relative:u.relative}),m=ee(),x=p.useContext(Ae),{navigator:f,basename:h}=p.useContext(G),v=x!=null&&Vn(g)&&l===!0,d=f.encodeLocation?f.encodeLocation(g).pathname:g.pathname,w=m.pathname,R=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(w=w.toLowerCase(),R=R?R.toLowerCase():null,d=d.toLowerCase()),R&&h&&(R=K(R,h)||R);const T=d!=="/"&&d.endsWith("/")?d.length-1:d.length;let I=w===d||!n&&w.startsWith(d)&&w.charAt(T)==="/",O=R!=null&&(R===d||!n&&R.startsWith(d)&&R.charAt(d.length)==="/"),C={isActive:I,isPending:O,isTransitioning:v},z=I?t:void 0,_;typeof a=="function"?_=a(C):_=[a,I?"active":null,O?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let M=typeof i=="function"?i(C):i;return p.createElement(qt,{...u,"aria-current":z,className:_,ref:c,style:M,to:o,viewTransition:l},typeof s=="function"?s(C):s)});jn.displayName="NavLink";var Nn=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:n,state:i,method:o=ke,action:l,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:g,...m},x)=>{let f=Bn(),h=Wn(l,{relative:u}),v=o.toLowerCase()==="get"?"get":"post",d=typeof l=="string"&&Yt.test(l),w=R=>{if(s&&s(R),R.defaultPrevented)return;R.preventDefault();let T=R.nativeEvent.submitter,I=T?.getAttribute("formmethod")||o;f(T||R.currentTarget,{fetcherKey:t,method:I,navigate:r,replace:n,state:i,relative:u,preventScrollReset:c,viewTransition:g})};return p.createElement("form",{ref:x,method:v,action:h,onSubmit:a?s:w,...m,"data-discover":!d&&e==="render"?"true":void 0})});Nn.displayName="Form";function Mn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Xt(e){let t=p.useContext(ie);return $(t,Mn(e)),t}function Hn(e,{target:t,replace:r,state:a,preventScrollReset:n,relative:i,viewTransition:o}={}){let l=Mt(),s=ee(),u=ve(e,{relative:i});return p.useCallback(c=>{if(yn(c,t)){c.preventDefault();let g=r!==void 0?r:de(s)===de(u);l(e,{replace:g,state:a,preventScrollReset:n,relative:i,viewTransition:o})}},[s,l,u,r,a,t,e,n,i,o])}var zn=0,Un=()=>`__${String(++zn)}__`;function Bn(){let{router:e}=Xt("useSubmit"),{basename:t}=p.useContext(G),r=sn();return p.useCallback(async(a,n={})=>{let{action:i,method:o,encType:l,formData:s,body:u}=bn(a,t);if(n.navigate===!1){let c=n.fetcherKey||Un();await e.fetch(c,r,n.action||i,{preventScrollReset:n.preventScrollReset,formData:s,body:u,formMethod:n.method||o,formEncType:n.encType||l,flushSync:n.flushSync})}else await e.navigate(n.action||i,{preventScrollReset:n.preventScrollReset,formData:s,body:u,formMethod:n.method||o,formEncType:n.encType||l,replace:n.replace,state:n.state,fromRouteId:r,flushSync:n.flushSync,viewTransition:n.viewTransition})},[e,t,r])}function Wn(e,{relative:t}={}){let{basename:r}=p.useContext(G),a=p.useContext(Z);$(a,"useFormAction must be used inside a RouteContext");let[n]=a.matches.slice(-1),i={...ve(e||".",{relative:t})},o=ee();if(e==null){i.search=o.search;let l=new URLSearchParams(i.search),s=l.getAll("index");if(s.some(c=>c==="")){l.delete("index"),s.filter(g=>g).forEach(g=>l.append("index",g));let c=l.toString();i.search=c?`?${c}`:""}}return(!e||e===".")&&n.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:J([r,i.pathname])),de(i)}function Vn(e,t={}){let r=p.useContext(Ft);$(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Xt("useViewTransitionState"),n=ve(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=K(r.currentLocation.pathname,a)||r.currentLocation.pathname,o=K(r.nextLocation.pathname,a)||r.nextLocation.pathname;return Ie(n.pathname,o)!=null||Ie(n.pathname,i)!=null}[...Tn];const Gt=b.createContext({history:[],addToHistory:()=>{},popFromHistory:()=>"",replaceHistory:()=>{}}),Yn=({routes:e,children:t})=>{const r=b.useRef(["/"]),[a,n]=b.useState(["/"]),i=b.useCallback(c=>{r.current=c,n(c)},[]),o=c=>{i([...r.current,c])},l=c=>{let g="",m=[];return r.current.length===0?"/":(r.current.length<=c?(g=r.current[0],m=[g]):(m=r.current.slice(0,r.current.length-c),g=m[m.length-1]),i(m),g)},s=c=>{i(c)},u=e.map(c=>E.jsx(Ut,{path:c.path,element:c.render}));return E.jsx(Gt.Provider,{value:{history:a,addToHistory:o,popFromHistory:l,replaceHistory:s},children:E.jsxs(Fn,{children:[t,E.jsx(dn,{children:u})]})})},qn=()=>{const e=Mt(),t=ee(),r=b.useContext(Gt),a=b.useCallback((o,l=!0)=>{o!==t.pathname&&e(o,{replace:!0}),l&&r.addToHistory(o)},[t.pathname,e,r]),n=b.useCallback(o=>{const l=o||1,s=r.popFromHistory(l);a(s,!1)},[a,r]),i=b.useCallback(o=>{r.replaceHistory(o)},[r]);return{currentPath:t.pathname,history:r.history,goBack:n,goTo:a,replaceHistory:i}},Jt=b.createContext({visibleItems:[],isItemVisible:()=>!1,showItem:()=>{},hideItem:()=>{}}),Xn=({children:e})=>{const t=b.useRef([]),[r,a]=b.useState([]),n=b.useCallback(s=>{t.current=s,a(s)},[]),i=b.useCallback(s=>t.current.some(u=>u===s),[]),o=b.useCallback(s=>{i(s)||n([...t.current,s])},[i,n]),l=b.useCallback(s=>{i(s)&&n(t.current.filter(c=>c!==s))},[i,n]);return E.jsx(Jt.Provider,{value:{visibleItems:r,isItemVisible:i,showItem:o,hideItem:l},children:e})},xe=()=>{const e=b.useContext(Jt),t=n=>e.visibleItems.some(i=>i===n),r=n=>{e.showItem(n)},a=n=>{e.hideItem(n)};return{visibleItems:e.visibleItems,isItemVisible:t,showItem:r,hideItem:a}},Gn=({id:e,onCloseDrawer:t,drawerCloseOffset:r=15})=>{const{isItemVisible:a}=xe(),[n,i]=b.useState({isDragging:!1}),o=b.useRef(null),l=b.useRef(null),s=b.useRef(null),[u,c]=b.useState(0),g=f=>{i(f)},m=f=>{i(f),c(0)};return Tt({ref:s,onDrag:f=>{i(f);const h=l.current?.clientHeight||0;f.distanceY&&(c(f.distanceY<0?0:-f.distanceY),f.distanceY>=h-r&&(t?.(),m(f)))},onDragEnd:m,onDragStart:g}),{isVisible:a(e),drawerParentRef:o,drawerRef:l,drawerBottomDistance:u,handleRef:s}},Jn=e=>{const{children:t,backgroundStyles:r,contentStyles:a,handle:n}=e,{isVisible:i,drawerParentRef:o,drawerRef:l,handleRef:s,drawerBottomDistance:u}=Gn(e);return E.jsx(E.Fragment,{children:i&&E.jsx("div",{ref:o,style:{width:"100%",height:"100%",minHeight:"100vh",left:0,top:0,background:"#00000068",position:"fixed",zIndex:1e3,display:"flex",flexDirection:"column",touchAction:"none",...r},children:E.jsxs("div",{ref:l,style:{width:"100%",height:"fit-content",minHeight:"80px",maxHeight:"90%",background:"#ffffff",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"24px",zIndex:1001,position:"absolute",bottom:`${u}px`,...a},onClick:c=>{c.stopPropagation()},children:[E.jsx("div",{ref:s,style:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0px",height:"24px",width:"100%",cursor:"pointer",...n?.styles},children:n?.render}),t]})})})},Kn=({onSubmit:e,fields:t})=>{const r=b.useRef(null),a=b.useCallback(o=>{var l=Object.keys(o.currentTarget.elements),s=Object.values(o.currentTarget.elements),u=[];for(let c=0;c<l.length;c++){const g=l[c];if(t.findIndex(x=>x.name===g)===-1)continue;const m=s[c].value;u.push({name:g,value:m})}return u},[e]),n=b.useCallback(o=>{o.preventDefault();const l=a(o);e?.(l)},[e]);return{ref:r,submitForm:o=>{o.preventDefault(),o.stopPropagation(),r.current&&r.current.requestSubmit()},handleFormSubmission:n}},Zn=e=>{const{fields:t,styles:r,submitButton:a}=e,{ref:n,handleFormSubmission:i,submitForm:o}=Kn(e),l=b.useCallback(()=>t.map(s=>({...s.content,key:s.name})),[t]);return E.jsxs("form",{ref:n,onSubmit:i,style:{width:"100%",display:"flex",flexDirection:"column",gap:"8px",flex:1,...r},children:[l(),E.jsx("div",{onClick:o,style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",...a.styles},children:a.content})]})},Qn=({src:e,alt:t="",onClick:r,styles:a})=>E.jsx("img",{src:e,alt:t,style:{overflow:"hidden",position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",objectFit:"cover",...a},onClick:()=>r?.()});function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ve.apply(null,arguments)}function ea(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ta(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ra=function(){function e(r){var a=this;this._insertTag=function(n){var i;a.tags.length===0?a.insertionPoint?i=a.insertionPoint.nextSibling:a.prepend?i=a.container.firstChild:i=a.before:i=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(n,i),a.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ta(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=ea(n);try{i.insertRule(a,i.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){var n;return(n=a.parentNode)==null?void 0:n.removeChild(a)}),this.tags=[],this.ctr=0},e}(),N="-ms-",Oe="-moz-",S="-webkit-",Kt="comm",et="rule",tt="decl",na="@import",Zt="@keyframes",aa="@layer",ia=Math.abs,Le=String.fromCharCode,oa=Object.assign;function sa(e,t){return D(e,0)^45?(((t<<2^D(e,0))<<2^D(e,1))<<2^D(e,2))<<2^D(e,3):0}function Qt(e){return e.trim()}function la(e,t){return(e=t.exec(e))?e[0]:e}function P(e,t,r){return e.replace(t,r)}function Ye(e,t){return e.indexOf(t)}function D(e,t){return e.charCodeAt(t)|0}function he(e,t,r){return e.slice(t,r)}function V(e){return e.length}function rt(e){return e.length}function Ce(e,t){return t.push(e),e}function ua(e,t){return e.map(t).join("")}var _e=1,ne=1,er=0,H=0,L=0,oe="";function De(e,t,r,a,n,i,o){return{value:e,root:t,parent:r,type:a,props:n,children:i,line:_e,column:ne,length:o,return:""}}function fe(e,t){return oa(De("",null,null,"",null,null,0),e,{length:-e.length},t)}function ca(){return L}function fa(){return L=H>0?D(oe,--H):0,ne--,L===10&&(ne=1,_e--),L}function U(){return L=H<er?D(oe,H++):0,ne++,L===10&&(ne=1,_e++),L}function q(){return D(oe,H)}function Se(){return H}function be(e,t){return he(oe,e,t)}function pe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tr(e){return _e=ne=1,er=V(oe=e),H=0,[]}function rr(e){return oe="",e}function Pe(e){return Qt(be(H-1,qe(e===91?e+2:e===40?e+1:e)))}function da(e){for(;(L=q())&&L<33;)U();return pe(e)>2||pe(L)>3?"":" "}function ha(e,t){for(;--t&&U()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return be(e,Se()+(t<6&&q()==32&&U()==32))}function qe(e){for(;U();)switch(L){case e:return H;case 34:case 39:e!==34&&e!==39&&qe(L);break;case 40:e===41&&qe(e);break;case 92:U();break}return H}function pa(e,t){for(;U()&&e+L!==57;)if(e+L===84&&q()===47)break;return"/*"+be(t,H-1)+"*"+Le(e===47?e:U())}function ma(e){for(;!pe(q());)U();return be(e,H)}function ga(e){return rr(Te("",null,null,null,[""],e=tr(e),0,[0],e))}function Te(e,t,r,a,n,i,o,l,s){for(var u=0,c=0,g=o,m=0,x=0,f=0,h=1,v=1,d=1,w=0,R="",T=n,I=i,O=a,C=R;v;)switch(f=w,w=U()){case 40:if(f!=108&&D(C,g-1)==58){Ye(C+=P(Pe(w),"&","&\f"),"&\f")!=-1&&(d=-1);break}case 34:case 39:case 91:C+=Pe(w);break;case 9:case 10:case 13:case 32:C+=da(f);break;case 92:C+=ha(Se()-1,7);continue;case 47:switch(q()){case 42:case 47:Ce(ya(pa(U(),Se()),t,r),s);break;default:C+="/"}break;case 123*h:l[u++]=V(C)*d;case 125*h:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+c:d==-1&&(C=P(C,/\f/g,"")),x>0&&V(C)-g&&Ce(x>32?bt(C+";",a,r,g-1):bt(P(C," ","")+";",a,r,g-2),s);break;case 59:C+=";";default:if(Ce(O=xt(C,t,r,u,c,n,l,R,T=[],I=[],g),i),w===123)if(c===0)Te(C,t,O,O,T,i,g,l,I);else switch(m===99&&D(C,3)===110?100:m){case 100:case 108:case 109:case 115:Te(e,O,O,a&&Ce(xt(e,O,O,0,0,n,l,R,n,T=[],g),I),n,I,g,l,a?T:I);break;default:Te(C,O,O,O,[""],I,0,l,I)}}u=c=x=0,h=d=1,R=C="",g=o;break;case 58:g=1+V(C),x=f;default:if(h<1){if(w==123)--h;else if(w==125&&h++==0&&fa()==125)continue}switch(C+=Le(w),w*h){case 38:d=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(V(C)-1)*d,d=1;break;case 64:q()===45&&(C+=Pe(U())),m=q(),c=g=V(R=C+=ma(Se())),w++;break;case 45:f===45&&V(C)==2&&(h=0)}}return i}function xt(e,t,r,a,n,i,o,l,s,u,c){for(var g=n-1,m=n===0?i:[""],x=rt(m),f=0,h=0,v=0;f<a;++f)for(var d=0,w=he(e,g+1,g=ia(h=o[f])),R=e;d<x;++d)(R=Qt(h>0?m[d]+" "+w:P(w,/&\f/g,m[d])))&&(s[v++]=R);return De(e,t,r,n===0?et:l,s,u,c)}function ya(e,t,r){return De(e,t,r,Kt,Le(ca()),he(e,2,-2),0)}function bt(e,t,r,a){return De(e,t,r,tt,he(e,0,a),he(e,a+1,-1),a)}function re(e,t){for(var r="",a=rt(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function va(e,t,r,a){switch(e.type){case aa:if(e.children.length)break;case na:case tt:return e.return=e.return||e.value;case Kt:return"";case Zt:return e.return=e.value+"{"+re(e.children,a)+"}";case et:e.value=e.props.join(",")}return V(r=re(e.children,a))?e.return=e.value+"{"+r+"}":""}function xa(e){var t=rt(e);return function(r,a,n,i){for(var o="",l=0;l<t;l++)o+=e[l](r,a,n,i)||"";return o}}function ba(e){return function(t){t.root||(t=t.return)&&e(t)}}function nr(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var wa=function(t,r,a){for(var n=0,i=0;n=i,i=q(),n===38&&i===12&&(r[a]=1),!pe(i);)U();return be(t,H)},Ra=function(t,r){var a=-1,n=44;do switch(pe(n)){case 0:n===38&&q()===12&&(r[a]=1),t[a]+=wa(H-1,r,a);break;case 2:t[a]+=Pe(n);break;case 4:if(n===44){t[++a]=q()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=Le(n)}while(n=U());return t},Ca=function(t,r){return rr(Ra(tr(t),r))},wt=new WeakMap,ka=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,n=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!wt.get(a))&&!n){wt.set(t,!0);for(var i=[],o=Ca(r,i),l=a.props,s=0,u=0;s<o.length;s++)for(var c=0;c<l.length;c++,u++)t.props[u]=i[s]?o[s].replace(/&\f/g,l[c]):l[c]+" "+o[s]}}},Ea=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function ar(e,t){switch(sa(e,t)){case 5103:return S+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return S+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return S+e+Oe+e+N+e+e;case 6828:case 4268:return S+e+N+e+e;case 6165:return S+e+N+"flex-"+e+e;case 5187:return S+e+P(e,/(\w+).+(:[^]+)/,S+"box-$1$2"+N+"flex-$1$2")+e;case 5443:return S+e+N+"flex-item-"+P(e,/flex-|-self/,"")+e;case 4675:return S+e+N+"flex-line-pack"+P(e,/align-content|flex-|-self/,"")+e;case 5548:return S+e+N+P(e,"shrink","negative")+e;case 5292:return S+e+N+P(e,"basis","preferred-size")+e;case 6060:return S+"box-"+P(e,"-grow","")+S+e+N+P(e,"grow","positive")+e;case 4554:return S+P(e,/([^-])(transform)/g,"$1"+S+"$2")+e;case 6187:return P(P(P(e,/(zoom-|grab)/,S+"$1"),/(image-set)/,S+"$1"),e,"")+e;case 5495:case 3959:return P(e,/(image-set\([^]*)/,S+"$1$`$1");case 4968:return P(P(e,/(.+:)(flex-)?(.*)/,S+"box-pack:$3"+N+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+S+e+e;case 4095:case 3583:case 4068:case 2532:return P(e,/(.+)-inline(.+)/,S+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(V(e)-1-t>6)switch(D(e,t+1)){case 109:if(D(e,t+4)!==45)break;case 102:return P(e,/(.+:)(.+)-([^]+)/,"$1"+S+"$2-$3$1"+Oe+(D(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ye(e,"stretch")?ar(P(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(D(e,t+1)!==115)break;case 6444:switch(D(e,V(e)-3-(~Ye(e,"!important")&&10))){case 107:return P(e,":",":"+S)+e;case 101:return P(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+S+(D(e,14)===45?"inline-":"")+"box$3$1"+S+"$2$3$1"+N+"$2box$3")+e}break;case 5936:switch(D(e,t+11)){case 114:return S+e+N+P(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return S+e+N+P(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return S+e+N+P(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return S+e+N+e+e}return e}var Sa=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case tt:t.return=ar(t.value,t.length);break;case Zt:return re([fe(t,{value:P(t.value,"@","@"+S)})],n);case et:if(t.length)return ua(t.props,function(i){switch(la(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return re([fe(t,{props:[P(i,/:(read-\w+)/,":"+Oe+"$1")]})],n);case"::placeholder":return re([fe(t,{props:[P(i,/:(plac\w+)/,":"+S+"input-$1")]}),fe(t,{props:[P(i,/:(plac\w+)/,":"+Oe+"$1")]}),fe(t,{props:[P(i,/:(plac\w+)/,N+"input-$1")]})],n)}return""})}},Pa=[Sa],Ta=function(t){var r=t.key;if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(h){var v=h.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=t.stylisPlugins||Pa,i={},o,l=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),d=1;d<v.length;d++)i[v[d]]=!0;l.push(h)});var s,u=[ka,Ea];{var c,g=[va,ba(function(h){c.insert(h)})],m=xa(u.concat(n,g)),x=function(v){return re(ga(v),m)};s=function(v,d,w,R){c=w,x(v?v+"{"+d.styles+"}":d.styles),R&&(f.inserted[d.name]=!0)}}var f={key:r,sheet:new ra({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(l),f},Ia=!0;function Oa(e,t,r){var a="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(a+=n+" ")}),a}var ir=function(t,r,a){var n=t.key+"-"+r.name;(a===!1||Ia===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},Aa=function(t,r,a){ir(t,r,a);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+n:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function $a(e){for(var t=0,r,a=0,n=e.length;n>=4;++a,n-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var La={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_a=/[A-Z]|^ms/g,Da=/_EMO_([^_]+?)_([^]*?)_EMO_/g,or=function(t){return t.charCodeAt(1)===45},Rt=function(t){return t!=null&&typeof t!="boolean"},Ue=nr(function(e){return or(e)?e:e.replace(_a,"-$&").toLowerCase()}),Ct=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Da,function(a,n,i){return Y={name:n,styles:i,next:Y},n})}return La[t]!==1&&!or(t)&&typeof r=="number"&&r!==0?r+"px":r};function me(e,t,r){if(r==null)return"";var a=r;if(a.__emotion_styles!==void 0)return a;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return Y={name:n.name,styles:n.styles,next:Y},n.name;var i=r;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)Y={name:o.name,styles:o.styles,next:Y},o=o.next;var l=i.styles+";";return l}return Fa(e,t,r)}case"function":{if(e!==void 0){var s=Y,u=r(e);return Y=s,me(e,t,u)}break}}var c=r;if(t==null)return c;var g=t[c];return g!==void 0?g:c}function Fa(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=me(e,t,r[n])+";";else for(var i in r){var o=r[i];if(typeof o!="object"){var l=o;t!=null&&t[l]!==void 0?a+=i+"{"+t[l]+"}":Rt(l)&&(a+=Ue(i)+":"+Ct(i,l)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)Rt(o[s])&&(a+=Ue(i)+":"+Ct(i,o[s])+";");else{var u=me(e,t,o);switch(i){case"animation":case"animationName":{a+=Ue(i)+":"+u+";";break}default:a+=i+"{"+u+"}"}}}return a}var kt=/label:\s*([^\s;{]+)\s*(;|$)/g,Y;function ja(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,n="";Y=void 0;var i=e[0];if(i==null||i.raw===void 0)a=!1,n+=me(r,t,i);else{var o=i;n+=o[0]}for(var l=1;l<e.length;l++)if(n+=me(r,t,e[l]),a){var s=i;n+=s[l]}kt.lastIndex=0;for(var u="",c;(c=kt.exec(n))!==null;)u+="-"+c[1];var g=$a(n)+u;return{name:g,styles:n,next:Y}}var Na=function(t){return t()},Ma=p.useInsertionEffect?p.useInsertionEffect:!1,Ha=Ma||Na,sr=p.createContext(typeof HTMLElement<"u"?Ta({key:"css"}):null);sr.Provider;var za=function(t){return b.forwardRef(function(r,a){var n=b.useContext(sr);return t(r,n,a)})},Ua=p.createContext({}),Ba=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Wa=nr(function(e){return Ba.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Va=Wa,Ya=function(t){return t!=="theme"},Et=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Va:Ya},St=function(t,r,a){var n;if(r){var i=r.shouldForwardProp;n=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof n!="function"&&a&&(n=t.__emotion_forwardProp),n},qa=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return ir(r,a,n),Ha(function(){return Aa(r,a,n)}),null},Xa=function e(t,r){var a=t.__emotion_real===t,n=a&&t.__emotion_base||t,i,o;r!==void 0&&(i=r.label,o=r.target);var l=St(t,r,a),s=l||Et(n),u=!s("as");return function(){var c=arguments,g=a&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&g.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)g.push.apply(g,c);else{var m=c[0];g.push(m[0]);for(var x=c.length,f=1;f<x;f++)g.push(c[f],m[f])}var h=za(function(v,d,w){var R=u&&v.as||n,T="",I=[],O=v;if(v.theme==null){O={};for(var C in v)O[C]=v[C];O.theme=p.useContext(Ua)}typeof v.className=="string"?T=Oa(d.registered,I,v.className):v.className!=null&&(T=v.className+" ");var z=ja(g.concat(I),d.registered,O);T+=d.key+"-"+z.name,o!==void 0&&(T+=" "+o);var _=u&&l===void 0?Et(R):s,M={};for(var B in v)u&&B==="as"||_(B)&&(M[B]=v[B]);return M.className=T,w&&(M.ref=w),p.createElement(p.Fragment,null,p.createElement(qa,{cache:d,serialized:z,isStringTag:typeof R=="string"}),p.createElement(R,M))});return h.displayName=i!==void 0?i:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=n,h.__emotion_styles=g,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(v,d){var w=e(v,Ve({},r,d,{shouldForwardProp:St(h,d,!0)}));return w.apply(void 0,g)},h}},Ga=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Xe=Xa.bind(null);Ga.forEach(function(e){Xe[e]=Xe(e)});const Ja=Xe.div`
|
|
37
|
+
Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let R=Ce(),E;if(t){let O=typeof t=="string"?je(t):t;oe(h==="/"||O.pathname?.startsWith(h),`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 "${h}" but pathname "${O.pathname}" was given in the \`location\` prop.`),E=O}else E=R;let z=E.pathname||"/",C=z;if(h!=="/"){let O=h.replace(/^\//,"").split("/");C="/"+z.replace(/^\//,"").split("/").slice(O.length).join("/")}let v=Ir(e,{pathname:C});be(w||v!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),be(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.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 I=Wi(v&&v.map(O=>Object.assign({},O,{params:Object.assign({},f,O.params),pathname:Se([h,i.encodeLocation?i.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?h:Se([h,i.encodeLocation?i.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),a,r,o);return t&&I?_.createElement(Ge.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...E},navigationType:"POP"}},I):I}function Ni(){let e=Vi(),t=ji(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:o},a={padding:"2px 4px",backgroundColor:o},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:a},"ErrorBoundary")," or"," ",_.createElement("code",{style:a},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),r?_.createElement("pre",{style:i},r):null,l)}var Hi=_.createElement(Ni,null),Fi=class extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?_.createElement(ke.Provider,{value:this.props.routeContext},_.createElement(Ht.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function $i({routeContext:e,match:t,children:r}){let o=_.useContext(Le);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(ke.Provider,{value:e},r)}function Wi(e,t=[],r=null,o=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let d=i.findIndex(h=>h.route.id&&a?.[h.route.id]!==void 0);oe(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,f=-1;if(r)for(let d=0;d<i.length;d++){let h=i[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(f=d),h.route.id){let{loaderData:w,errors:R}=r,E=h.route.loader&&!w.hasOwnProperty(h.route.id)&&(!R||R[h.route.id]===void 0);if(h.route.lazy||E){l=!0,f>=0?i=i.slice(0,f+1):i=[i[0]];break}}}return i.reduceRight((d,h,w)=>{let R,E=!1,z=null,C=null;r&&(R=a&&h.route.id?a[h.route.id]:void 0,z=h.route.errorElement||Hi,l&&(f<0&&w===0?(Yr("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,C=null):f===w&&(E=!0,C=h.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,w+1)),I=()=>{let O;return R?O=z:E?O=C:h.route.Component?O=_.createElement(h.route.Component,null):h.route.element?O=h.route.element:O=d,_.createElement($i,{match:h,routeContext:{outlet:d,matches:v,isDataRoute:r!=null},children:O})};return r&&(h.route.ErrorBoundary||h.route.errorElement||w===0)?_.createElement(Fi,{location:r.location,revalidation:r.revalidation,component:z,error:R,children:I(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):I()},null)}function Ft(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qi(e){let t=_.useContext(Le);return oe(t,Ft(e)),t}function Bi(e){let t=_.useContext(mt);return oe(t,Ft(e)),t}function Ui(e){let t=_.useContext(ke);return oe(t,Ft(e)),t}function $t(e){let t=Ui(e),r=t.matches[t.matches.length-1];return oe(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Yi(){return $t("useRouteId")}function Vi(){let e=_.useContext(Ht),t=Bi("useRouteError"),r=$t("useRouteError");return e!==void 0?e:t.errors?.[r]}function Xi(){let{router:e}=qi("useNavigate"),t=$t("useNavigate"),r=_.useRef(!1);return qr(()=>{r.current=!0}),_.useCallback(async(i,a={})=>{be(r.current,Wr),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var mr={};function Yr(e,t,r){!t&&!mr[e]&&(mr[e]=!0,be(!1,r))}_.memo(Gi);function Gi({routes:e,future:t,state:r}){return Ur(e,void 0,r,t)}function Vr(e){oe(!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 Ki({basename:e="/",children:t=null,location:r,navigationType:o="POP",navigator:i,static:a=!1}){oe(!Ke(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),f=_.useMemo(()=>({basename:l,navigator:i,static:a,future:{}}),[l,i,a]);typeof r=="string"&&(r=je(r));let{pathname:d="/",search:h="",hash:w="",state:R=null,key:E="default"}=r,z=_.useMemo(()=>{let C=xe(d,l);return C==null?null:{location:{pathname:C,search:h,hash:w,state:R,key:E},navigationType:o}},[l,d,h,w,R,E,o]);return be(z!=null,`<Router basename="${l}"> is not able to match the URL "${d}${h}${w}" because it does not start with the basename, so the <Router> won't render anything.`),z==null?null:_.createElement(we.Provider,{value:f},_.createElement(Ge.Provider,{children:t,value:z}))}function Ji({children:e,location:t}){return zi(Mt(e),t)}function Mt(e,t=[]){let r=[];return _.Children.forEach(e,(o,i)=>{if(!_.isValidElement(o))return;let a=[...t,i];if(o.type===_.Fragment){r.push.apply(r,Mt(o.props.children,a));return}oe(o.type===Vr,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),oe(!o.props.index||!o.props.children,"An index route cannot have child routes.");let l={id:o.props.id||a.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(l.children=Mt(o.props.children,a)),r.push(l)}),r}var ot="get",at="application/x-www-form-urlencoded";function yt(e){return e!=null&&typeof e.tagName=="string"}function Zi(e){return yt(e)&&e.tagName.toLowerCase()==="button"}function Qi(e){return yt(e)&&e.tagName.toLowerCase()==="form"}function eo(e){return yt(e)&&e.tagName.toLowerCase()==="input"}function to(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ro(e,t){return e.button===0&&(!t||t==="_self")&&!to(e)}var nt=null;function no(){if(nt===null)try{new FormData(document.createElement("form"),0),nt=!1}catch{nt=!0}return nt}var io=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tt(e){return e!=null&&!io.has(e)?(be(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${at}"`),null):e}function oo(e,t){let r,o,i,a,l;if(Qi(e)){let f=e.getAttribute("action");o=f?xe(f,t):null,r=e.getAttribute("method")||ot,i=Tt(e.getAttribute("enctype"))||at,a=new FormData(e)}else if(Zi(e)||eo(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(o=d?xe(d,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||ot,i=Tt(e.getAttribute("formenctype"))||Tt(f.getAttribute("enctype"))||at,a=new FormData(f,e),!no()){let{name:h,type:w,value:R}=e;if(w==="image"){let E=h?`${h}.`:"";a.append(`${E}x`,"0"),a.append(`${E}y`,"0")}else h&&a.append(h,R)}}else{if(yt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ot,o=null,i=at,l=e}return a&&i==="text/plain"&&(l=a,a=void 0),{action:o,method:r.toLowerCase(),encType:i,formData:a,body:l}}function Wt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function ao(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function so(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function lo(e,t,r){let o=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let l=await ao(a,r);return l.links?l.links():[]}return[]}));return po(o.flat(1).filter(so).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function yr(e,t,r,o,i,a){let l=(d,h)=>r[h]?d.route.id!==r[h].route.id:!0,f=(d,h)=>r[h].pathname!==d.pathname||r[h].route.path?.endsWith("*")&&r[h].params["*"]!==d.params["*"];return a==="assets"?t.filter((d,h)=>l(d,h)||f(d,h)):a==="data"?t.filter((d,h)=>{let w=o.routes[d.route.id];if(!w||!w.hasLoader)return!1;if(l(d,h)||f(d,h))return!0;if(d.route.shouldRevalidate){let R=d.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof R=="boolean")return R}return!0}):[]}function uo(e,t,{includeHydrateFallback:r}={}){return co(e.map(o=>{let i=t.routes[o.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function co(e){return[...new Set(e)]}function fo(e){let t={},r=Object.keys(e).sort();for(let o of r)t[o]=e[o];return t}function po(e,t){let r=new Set;return new Set(t),e.reduce((o,i)=>{let a=JSON.stringify(fo(i));return r.has(a)||(r.add(a),o.push({key:a,link:i})),o},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ho=new Set([100,101,204,205]);function vo(e,t){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname="_root.data":t&&xe(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Xr(){let e=_.useContext(Le);return Wt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function mo(){let e=_.useContext(mt);return Wt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var qt=_.createContext(void 0);qt.displayName="FrameworkContext";function Gr(){let e=_.useContext(qt);return Wt(e,"You must render this element inside a <HydratedRouter> element"),e}function yo(e,t){let r=_.useContext(qt),[o,i]=_.useState(!1),[a,l]=_.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:h,onMouseLeave:w,onTouchStart:R}=t,E=_.useRef(null);_.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let v=O=>{O.forEach(H=>{l(H.isIntersecting)})},I=new IntersectionObserver(v,{threshold:.5});return E.current&&I.observe(E.current),()=>{I.disconnect()}}},[e]),_.useEffect(()=>{if(o){let v=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(v)}}},[o]);let z=()=>{i(!0)},C=()=>{i(!1),l(!1)};return r?e!=="intent"?[a,E,{}]:[a,E,{onFocus:We(f,z),onBlur:We(d,C),onMouseEnter:We(h,z),onMouseLeave:We(w,C),onTouchStart:We(R,z)}]:[!1,E,{}]}function We(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function go({page:e,...t}){let{router:r}=Xr(),o=_.useMemo(()=>Ir(r.routes,e,r.basename),[r.routes,e,r.basename]);return o?_.createElement(wo,{page:e,matches:o,...t}):null}function bo(e){let{manifest:t,routeModules:r}=Gr(),[o,i]=_.useState([]);return _.useEffect(()=>{let a=!1;return lo(e,t,r).then(l=>{a||i(l)}),()=>{a=!0}},[e,t,r]),o}function wo({page:e,matches:t,...r}){let o=Ce(),{manifest:i,routeModules:a}=Gr(),{basename:l}=Xr(),{loaderData:f,matches:d}=mo(),h=_.useMemo(()=>yr(e,t,d,i,o,"data"),[e,t,d,i,o]),w=_.useMemo(()=>yr(e,t,d,i,o,"assets"),[e,t,d,i,o]),R=_.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let C=new Set,v=!1;if(t.forEach(O=>{let H=i.routes[O.route.id];!H||!H.hasLoader||(!h.some(q=>q.route.id===O.route.id)&&O.route.id in f&&a[O.route.id]?.shouldRevalidate||H.hasClientLoader?v=!0:C.add(O.route.id))}),C.size===0)return[];let I=vo(e,l);return v&&C.size>0&&I.searchParams.set("_routes",t.filter(O=>C.has(O.route.id)).map(O=>O.route.id).join(",")),[I.pathname+I.search]},[l,f,o,i,h,t,e,a]),E=_.useMemo(()=>uo(w,i),[w,i]),z=bo(w);return _.createElement(_.Fragment,null,R.map(C=>_.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...r})),E.map(C=>_.createElement("link",{key:C,rel:"modulepreload",href:C,...r})),z.map(({key:C,link:v})=>_.createElement("link",{key:C,...v})))}function So(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Kr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Kr&&(window.__reactRouterVersion="7.6.3")}catch{}function xo({basename:e,children:t,window:r}){let o=_.useRef();o.current==null&&(o.current=li({window:r,v5Compat:!0}));let i=o.current,[a,l]=_.useState({action:i.action,location:i.location}),f=_.useCallback(d=>{_.startTransition(()=>l(d))},[l]);return _.useLayoutEffect(()=>i.listen(f),[i,f]),_.createElement(Ki,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i})}var Jr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zr=_.forwardRef(function({onClick:t,discover:r="render",prefetch:o="none",relative:i,reloadDocument:a,replace:l,state:f,target:d,to:h,preventScrollReset:w,viewTransition:R,...E},z){let{basename:C}=_.useContext(we),v=typeof h=="string"&&Jr.test(h),I,O=!1;if(typeof h=="string"&&v&&(I=h,Kr))try{let m=new URL(window.location.href),c=h.startsWith("//")?new URL(m.protocol+h):new URL(h),P=xe(c.pathname,C);c.origin===m.origin&&P!=null?h=P+c.search+c.hash:O=!0}catch{be(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let H=Ii(h,{relative:i}),[q,U,p]=yo(o,E),y=Po(h,{replace:l,state:f,target:d,preventScrollReset:w,relative:i,viewTransition:R});function g(m){t&&t(m),m.defaultPrevented||y(m)}let k=_.createElement("a",{...E,...p,href:I||H,onClick:O||a?t:g,ref:So(z,U),target:d,"data-discover":!v&&r==="render"?"true":void 0});return q&&!v?_.createElement(_.Fragment,null,k,_.createElement(go,{page:H})):k});Zr.displayName="Link";var ko=_.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:o="",end:i=!1,style:a,to:l,viewTransition:f,children:d,...h},w){let R=Je(l,{relative:h.relative}),E=Ce(),z=_.useContext(mt),{navigator:C,basename:v}=_.useContext(we),I=z!=null&&jo(R)&&f===!0,O=C.encodeLocation?C.encodeLocation(R).pathname:R.pathname,H=E.pathname,q=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;r||(H=H.toLowerCase(),q=q?q.toLowerCase():null,O=O.toLowerCase()),q&&v&&(q=xe(q,v)||q);const U=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let p=H===O||!i&&H.startsWith(O)&&H.charAt(U)==="/",y=q!=null&&(q===O||!i&&q.startsWith(O)&&q.charAt(O.length)==="/"),g={isActive:p,isPending:y,isTransitioning:I},k=p?t:void 0,m;typeof o=="function"?m=o(g):m=[o,p?"active":null,y?"pending":null,I?"transitioning":null].filter(Boolean).join(" ");let c=typeof a=="function"?a(g):a;return _.createElement(Zr,{...h,"aria-current":k,className:m,ref:w,style:c,to:l,viewTransition:f},typeof d=="function"?d(g):d)});ko.displayName="NavLink";var Oo=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:o,replace:i,state:a,method:l=ot,action:f,onSubmit:d,relative:h,preventScrollReset:w,viewTransition:R,...E},z)=>{let C=_o(),v=To(f,{relative:h}),I=l.toLowerCase()==="get"?"get":"post",O=typeof f=="string"&&Jr.test(f),H=q=>{if(d&&d(q),q.defaultPrevented)return;q.preventDefault();let U=q.nativeEvent.submitter,p=U?.getAttribute("formmethod")||l;C(U||q.currentTarget,{fetcherKey:t,method:p,navigate:r,replace:i,state:a,relative:h,preventScrollReset:w,viewTransition:R})};return _.createElement("form",{ref:z,method:I,action:v,onSubmit:o?d:H,...E,"data-discover":!O&&e==="render"?"true":void 0})});Oo.displayName="Form";function Co(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qr(e){let t=_.useContext(Le);return oe(t,Co(e)),t}function Po(e,{target:t,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:l}={}){let f=Br(),d=Ce(),h=Je(e,{relative:a});return _.useCallback(w=>{if(ro(w,t)){w.preventDefault();let R=r!==void 0?r:Be(d)===Be(h);f(e,{replace:R,state:o,preventScrollReset:i,relative:a,viewTransition:l})}},[d,f,h,r,o,t,e,i,a,l])}var Eo=0,Ro=()=>`__${String(++Eo)}__`;function _o(){let{router:e}=Qr("useSubmit"),{basename:t}=_.useContext(we),r=Yi();return _.useCallback(async(o,i={})=>{let{action:a,method:l,encType:f,formData:d,body:h}=oo(o,t);if(i.navigate===!1){let w=i.fetcherKey||Ro();await e.fetch(w,r,i.action||a,{preventScrollReset:i.preventScrollReset,formData:d,body:h,formMethod:i.method||l,formEncType:i.encType||f,flushSync:i.flushSync})}else await e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:d,body:h,formMethod:i.method||l,formEncType:i.encType||f,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,r])}function To(e,{relative:t}={}){let{basename:r}=_.useContext(we),o=_.useContext(ke);oe(o,"useFormAction must be used inside a RouteContext");let[i]=o.matches.slice(-1),a={...Je(e||".",{relative:t})},l=Ce();if(e==null){a.search=l.search;let f=new URLSearchParams(a.search),d=f.getAll("index");if(d.some(w=>w==="")){f.delete("index"),d.filter(R=>R).forEach(R=>f.append("index",R));let w=f.toString();a.search=w?`?${w}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Se([r,a.pathname])),Be(a)}function jo(e,t={}){let r=_.useContext($r);oe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Qr("useViewTransitionState"),i=Je(e,{relative:t.relative});if(!r.isTransitioning)return!1;let a=xe(r.currentLocation.pathname,o)||r.currentLocation.pathname,l=xe(r.nextLocation.pathname,o)||r.nextLocation.pathname;return dt(i.pathname,l)!=null||dt(i.pathname,a)!=null}[...ho];const en=B.createContext({history:[],addToHistory:()=>{},popFromHistory:()=>"",replaceHistory:()=>{}}),Lo=({routes:e,children:t})=>{const r=B.useRef(["/"]),[o,i]=B.useState(["/"]),a=B.useCallback(w=>{r.current=w,i(w)},[]),l=w=>{a([...r.current,w])},f=w=>{let R="",E=[];return r.current.length===0?"/":(r.current.length<=w?(R=r.current[0],E=[R]):(E=r.current.slice(0,r.current.length-w),R=E[E.length-1]),a(E),R)},d=w=>{a(w)},h=e.map(w=>G.jsx(Vr,{path:w.path,element:w.render}));return G.jsx(en.Provider,{value:{history:o,addToHistory:l,popFromHistory:f,replaceHistory:d},children:G.jsxs(xo,{children:[t,G.jsx(Ji,{children:h})]})})},Do=()=>{const e=Br(),t=Ce(),r=B.useContext(en),o=B.useCallback((l,f=!0)=>{l!==t.pathname&&e(l,{replace:!0}),f&&r.addToHistory(l)},[t.pathname,e,r]),i=B.useCallback(l=>{const f=l||1,d=r.popFromHistory(f);o(d,!1)},[o,r]),a=B.useCallback(l=>{r.replaceHistory(l)},[r]);return{currentPath:t.pathname,history:r.history,goBack:i,goTo:o,replaceHistory:a}},tn=B.createContext({visibleItems:[],isItemVisible:()=>!1,showItem:()=>{},hideItem:()=>{}}),Mo=({children:e})=>{const t=B.useRef([]),[r,o]=B.useState([]),i=B.useCallback(d=>{t.current=d,o(d)},[]),a=B.useCallback(d=>t.current.some(h=>h===d),[]),l=B.useCallback(d=>{a(d)||i([...t.current,d])},[a,i]),f=B.useCallback(d=>{a(d)&&i(t.current.filter(w=>w!==d))},[a,i]);return G.jsx(tn.Provider,{value:{visibleItems:r,isItemVisible:a,showItem:l,hideItem:f},children:e})},Ze=()=>{const e=B.useContext(tn),t=i=>e.visibleItems.some(a=>a===i),r=i=>{e.showItem(i)},o=i=>{e.hideItem(i)};return{visibleItems:e.visibleItems,isItemVisible:t,showItem:r,hideItem:o}},Io=({id:e,onCloseDrawer:t,drawerCloseOffset:r=15})=>{const{isItemVisible:o}=Ze(),[i,a]=B.useState({isDragging:!1}),l=B.useRef(null),f=B.useRef(null),d=B.useRef(null),[h,w]=B.useState(0),R=C=>{a(C)},E=C=>{a(C),w(0)};return Dr({ref:d,onDrag:C=>{a(C);const v=f.current?.clientHeight||0;C.distanceY&&(w(C.distanceY<0?0:-C.distanceY),C.distanceY>=v-r&&(t?.(),E(C)))},onDragEnd:E,onDragStart:R}),{isVisible:o(e),drawerParentRef:l,drawerRef:f,drawerBottomDistance:h,handleRef:d}},Ao=e=>{const{children:t,backgroundStyles:r,contentStyles:o,handle:i}=e,{isVisible:a,drawerParentRef:l,drawerRef:f,handleRef:d,drawerBottomDistance:h}=Io(e);return G.jsx(G.Fragment,{children:a&&G.jsx("div",{ref:l,style:{width:"100%",height:"100%",minHeight:"100vh",left:0,top:0,background:"#00000068",position:"fixed",zIndex:1e3,display:"flex",flexDirection:"column",touchAction:"none",...r},children:G.jsxs("div",{ref:f,style:{width:"100%",height:"fit-content",minHeight:"80px",maxHeight:"90%",background:"#ffffff",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"24px",zIndex:1001,position:"absolute",bottom:`${h}px`,...o},onClick:w=>{w.stopPropagation()},children:[G.jsx("div",{ref:d,style:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0px",height:"24px",width:"100%",cursor:"pointer",...i?.styles},children:i?.render}),t]})})})},zo=({onSubmit:e,fields:t})=>{const r=B.useRef(null),o=B.useCallback(l=>{var f=Object.keys(l.currentTarget.elements),d=Object.values(l.currentTarget.elements),h=[];for(let w=0;w<f.length;w++){const R=f[w];if(t.findIndex(z=>z.name===R)===-1)continue;const E=d[w].value;h.push({name:R,value:E})}return h},[e]),i=B.useCallback(l=>{l.preventDefault();const f=o(l);e?.(f)},[e]);return{ref:r,submitForm:l=>{l.preventDefault(),l.stopPropagation(),r.current&&r.current.requestSubmit()},handleFormSubmission:i}},No=e=>{const{fields:t,styles:r,submitButton:o}=e,{ref:i,handleFormSubmission:a,submitForm:l}=zo(e),f=B.useCallback(()=>t.map(d=>({...d.content,key:d.name})),[t]);return G.jsxs("form",{ref:i,onSubmit:a,style:{width:"100%",display:"flex",flexDirection:"column",gap:"8px",flex:1,...r},children:[f(),G.jsx("div",{onClick:l,style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",...o.styles},children:o.content})]})},Ho=({src:e,alt:t="",onClick:r,styles:o})=>G.jsx("img",{src:e,alt:t,style:{overflow:"hidden",position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",objectFit:"cover",...o},onClick:()=>r?.()});function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},It.apply(null,arguments)}function Fo(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function $o(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Wo=function(){function e(r){var o=this;this._insertTag=function(i){var a;o.tags.length===0?o.insertionPoint?a=o.insertionPoint.nextSibling:o.prepend?a=o.container.firstChild:a=o.before:a=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(i,a),o.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag($o(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Fo(i);try{a.insertRule(o,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var i;return(i=o.parentNode)==null?void 0:i.removeChild(o)}),this.tags=[],this.ctr=0},e}(),de="-ms-",pt="-moz-",ee="-webkit-",rn="comm",Bt="rule",Ut="decl",qo="@import",nn="@keyframes",Bo="@layer",Uo=Math.abs,gt=String.fromCharCode,Yo=Object.assign;function Vo(e,t){return fe(e,0)^45?(((t<<2^fe(e,0))<<2^fe(e,1))<<2^fe(e,2))<<2^fe(e,3):0}function on(e){return e.trim()}function Xo(e,t){return(e=t.exec(e))?e[0]:e}function te(e,t,r){return e.replace(t,r)}function At(e,t){return e.indexOf(t)}function fe(e,t){return e.charCodeAt(t)|0}function Ue(e,t,r){return e.slice(t,r)}function me(e){return e.length}function Yt(e){return e.length}function it(e,t){return t.push(e),e}function Go(e,t){return e.map(t).join("")}var bt=1,Te=1,an=0,pe=0,se=0,De="";function wt(e,t,r,o,i,a,l){return{value:e,root:t,parent:r,type:o,props:i,children:a,line:bt,column:Te,length:l,return:""}}function qe(e,t){return Yo(wt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ko(){return se}function Jo(){return se=pe>0?fe(De,--pe):0,Te--,se===10&&(Te=1,bt--),se}function ve(){return se=pe<an?fe(De,pe++):0,Te++,se===10&&(Te=1,bt++),se}function ge(){return fe(De,pe)}function st(){return pe}function Qe(e,t){return Ue(De,e,t)}function Ye(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sn(e){return bt=Te=1,an=me(De=e),pe=0,[]}function ln(e){return De="",e}function lt(e){return on(Qe(pe-1,zt(e===91?e+2:e===40?e+1:e)))}function Zo(e){for(;(se=ge())&&se<33;)ve();return Ye(e)>2||Ye(se)>3?"":" "}function Qo(e,t){for(;--t&&ve()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return Qe(e,st()+(t<6&&ge()==32&&ve()==32))}function zt(e){for(;ve();)switch(se){case e:return pe;case 34:case 39:e!==34&&e!==39&&zt(se);break;case 40:e===41&&zt(e);break;case 92:ve();break}return pe}function ea(e,t){for(;ve()&&e+se!==57;)if(e+se===84&&ge()===47)break;return"/*"+Qe(t,pe-1)+"*"+gt(e===47?e:ve())}function ta(e){for(;!Ye(ge());)ve();return Qe(e,pe)}function ra(e){return ln(ut("",null,null,null,[""],e=sn(e),0,[0],e))}function ut(e,t,r,o,i,a,l,f,d){for(var h=0,w=0,R=l,E=0,z=0,C=0,v=1,I=1,O=1,H=0,q="",U=i,p=a,y=o,g=q;I;)switch(C=H,H=ve()){case 40:if(C!=108&&fe(g,R-1)==58){At(g+=te(lt(H),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:g+=lt(H);break;case 9:case 10:case 13:case 32:g+=Zo(C);break;case 92:g+=Qo(st()-1,7);continue;case 47:switch(ge()){case 42:case 47:it(na(ea(ve(),st()),t,r),d);break;default:g+="/"}break;case 123*v:f[h++]=me(g)*O;case 125*v:case 59:case 0:switch(H){case 0:case 125:I=0;case 59+w:O==-1&&(g=te(g,/\f/g,"")),z>0&&me(g)-R&&it(z>32?br(g+";",o,r,R-1):br(te(g," ","")+";",o,r,R-2),d);break;case 59:g+=";";default:if(it(y=gr(g,t,r,h,w,i,f,q,U=[],p=[],R),a),H===123)if(w===0)ut(g,t,y,y,U,a,R,f,p);else switch(E===99&&fe(g,3)===110?100:E){case 100:case 108:case 109:case 115:ut(e,y,y,o&&it(gr(e,y,y,0,0,i,f,q,i,U=[],R),p),i,p,R,f,o?U:p);break;default:ut(g,y,y,y,[""],p,0,f,p)}}h=w=z=0,v=O=1,q=g="",R=l;break;case 58:R=1+me(g),z=C;default:if(v<1){if(H==123)--v;else if(H==125&&v++==0&&Jo()==125)continue}switch(g+=gt(H),H*v){case 38:O=w>0?1:(g+="\f",-1);break;case 44:f[h++]=(me(g)-1)*O,O=1;break;case 64:ge()===45&&(g+=lt(ve())),E=ge(),w=R=me(q=g+=ta(st())),H++;break;case 45:C===45&&me(g)==2&&(v=0)}}return a}function gr(e,t,r,o,i,a,l,f,d,h,w){for(var R=i-1,E=i===0?a:[""],z=Yt(E),C=0,v=0,I=0;C<o;++C)for(var O=0,H=Ue(e,R+1,R=Uo(v=l[C])),q=e;O<z;++O)(q=on(v>0?E[O]+" "+H:te(H,/&\f/g,E[O])))&&(d[I++]=q);return wt(e,t,r,i===0?Bt:f,d,h,w)}function na(e,t,r){return wt(e,t,r,rn,gt(Ko()),Ue(e,2,-2),0)}function br(e,t,r,o){return wt(e,t,r,Ut,Ue(e,0,o),Ue(e,o+1,-1),o)}function Re(e,t){for(var r="",o=Yt(e),i=0;i<o;i++)r+=t(e[i],i,e,t)||"";return r}function ia(e,t,r,o){switch(e.type){case Bo:if(e.children.length)break;case qo:case Ut:return e.return=e.return||e.value;case rn:return"";case nn:return e.return=e.value+"{"+Re(e.children,o)+"}";case Bt:e.value=e.props.join(",")}return me(r=Re(e.children,o))?e.return=e.value+"{"+r+"}":""}function oa(e){var t=Yt(e);return function(r,o,i,a){for(var l="",f=0;f<t;f++)l+=e[f](r,o,i,a)||"";return l}}function aa(e){return function(t){t.root||(t=t.return)&&e(t)}}function un(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var sa=function(t,r,o){for(var i=0,a=0;i=a,a=ge(),i===38&&a===12&&(r[o]=1),!Ye(a);)ve();return Qe(t,pe)},la=function(t,r){var o=-1,i=44;do switch(Ye(i)){case 0:i===38&&ge()===12&&(r[o]=1),t[o]+=sa(pe-1,r,o);break;case 2:t[o]+=lt(i);break;case 4:if(i===44){t[++o]=ge()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=gt(i)}while(i=ve());return t},ua=function(t,r){return ln(la(sn(t),r))},wr=new WeakMap,ca=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,i=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!wr.get(o))&&!i){wr.set(t,!0);for(var a=[],l=ua(r,a),f=o.props,d=0,h=0;d<l.length;d++)for(var w=0;w<f.length;w++,h++)t.props[h]=a[d]?l[d].replace(/&\f/g,f[w]):f[w]+" "+l[d]}}},fa=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function cn(e,t){switch(Vo(e,t)){case 5103:return ee+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+pt+e+de+e+e;case 6828:case 4268:return ee+e+de+e+e;case 6165:return ee+e+de+"flex-"+e+e;case 5187:return ee+e+te(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+de+"flex-$1$2")+e;case 5443:return ee+e+de+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return ee+e+de+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+de+te(e,"shrink","negative")+e;case 5292:return ee+e+de+te(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+te(e,"-grow","")+ee+e+de+te(e,"grow","positive")+e;case 4554:return ee+te(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+de+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return te(e,/(.+)-inline(.+)/,ee+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(me(e)-1-t>6)switch(fe(e,t+1)){case 109:if(fe(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+pt+(fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~At(e,"stretch")?cn(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(fe(e,t+1)!==115)break;case 6444:switch(fe(e,me(e)-3-(~At(e,"!important")&&10))){case 107:return te(e,":",":"+ee)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(fe(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+de+"$2box$3")+e}break;case 5936:switch(fe(e,t+11)){case 114:return ee+e+de+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+de+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+de+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+de+e+e}return e}var da=function(t,r,o,i){if(t.length>-1&&!t.return)switch(t.type){case Ut:t.return=cn(t.value,t.length);break;case nn:return Re([qe(t,{value:te(t.value,"@","@"+ee)})],i);case Bt:if(t.length)return Go(t.props,function(a){switch(Xo(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Re([qe(t,{props:[te(a,/:(read-\w+)/,":"+pt+"$1")]})],i);case"::placeholder":return Re([qe(t,{props:[te(a,/:(plac\w+)/,":"+ee+"input-$1")]}),qe(t,{props:[te(a,/:(plac\w+)/,":"+pt+"$1")]}),qe(t,{props:[te(a,/:(plac\w+)/,de+"input-$1")]})],i)}return""})}},pa=[da],ha=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(v){var I=v.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||pa,a={},l,f=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var I=v.getAttribute("data-emotion").split(" "),O=1;O<I.length;O++)a[I[O]]=!0;f.push(v)});var d,h=[ca,fa];{var w,R=[ia,aa(function(v){w.insert(v)})],E=oa(h.concat(i,R)),z=function(I){return Re(ra(I),E)};d=function(I,O,H,q){w=H,z(I?I+"{"+O.styles+"}":O.styles),q&&(C.inserted[O.name]=!0)}}var C={key:r,sheet:new Wo({key:r,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:d};return C.sheet.hydrate(f),C},va=!0;function ma(e,t,r){var o="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(o+=i+" ")}),o}var fn=function(t,r,o){var i=t.key+"-"+r.name;(o===!1||va===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},ya=function(t,r,o){fn(t,r,o);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function ga(e){for(var t=0,r,o=0,i=e.length;i>=4;++o,i-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ba={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wa=/[A-Z]|^ms/g,Sa=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dn=function(t){return t.charCodeAt(1)===45},Sr=function(t){return t!=null&&typeof t!="boolean"},jt=un(function(e){return dn(e)?e:e.replace(wa,"-$&").toLowerCase()}),xr=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Sa,function(o,i,a){return ye={name:i,styles:a,next:ye},i})}return ba[t]!==1&&!dn(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ve(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return ye={name:i.name,styles:i.styles,next:ye},i.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)ye={name:l.name,styles:l.styles,next:ye},l=l.next;var f=a.styles+";";return f}return xa(e,t,r)}case"function":{if(e!==void 0){var d=ye,h=r(e);return ye=d,Ve(e,t,h)}break}}var w=r;if(t==null)return w;var R=t[w];return R!==void 0?R:w}function xa(e,t,r){var o="";if(Array.isArray(r))for(var i=0;i<r.length;i++)o+=Ve(e,t,r[i])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var f=l;t!=null&&t[f]!==void 0?o+=a+"{"+t[f]+"}":Sr(f)&&(o+=jt(a)+":"+xr(a,f)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)Sr(l[d])&&(o+=jt(a)+":"+xr(a,l[d])+";");else{var h=Ve(e,t,l);switch(a){case"animation":case"animationName":{o+=jt(a)+":"+h+";";break}default:o+=a+"{"+h+"}"}}}return o}var kr=/label:\s*([^\s;{]+)\s*(;|$)/g,ye;function ka(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,i="";ye=void 0;var a=e[0];if(a==null||a.raw===void 0)o=!1,i+=Ve(r,t,a);else{var l=a;i+=l[0]}for(var f=1;f<e.length;f++)if(i+=Ve(r,t,e[f]),o){var d=a;i+=d[f]}kr.lastIndex=0;for(var h="",w;(w=kr.exec(i))!==null;)h+="-"+w[1];var R=ga(i)+h;return{name:R,styles:i,next:ye}}var Oa=function(t){return t()},Ca=_.useInsertionEffect?_.useInsertionEffect:!1,Pa=Ca||Oa,pn=_.createContext(typeof HTMLElement<"u"?ha({key:"css"}):null);pn.Provider;var Ea=function(t){return B.forwardRef(function(r,o){var i=B.useContext(pn);return t(r,i,o)})},Ra=_.createContext({}),_a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ta=un(function(e){return _a.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ja=Ta,La=function(t){return t!=="theme"},Or=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?ja:La},Cr=function(t,r,o){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof i!="function"&&o&&(i=t.__emotion_forwardProp),i},Da=function(t){var r=t.cache,o=t.serialized,i=t.isStringTag;return fn(r,o,i),Pa(function(){return ya(r,o,i)}),null},Ma=function e(t,r){var o=t.__emotion_real===t,i=o&&t.__emotion_base||t,a,l;r!==void 0&&(a=r.label,l=r.target);var f=Cr(t,r,o),d=f||Or(i),h=!d("as");return function(){var w=arguments,R=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&R.push("label:"+a+";"),w[0]==null||w[0].raw===void 0)R.push.apply(R,w);else{var E=w[0];R.push(E[0]);for(var z=w.length,C=1;C<z;C++)R.push(w[C],E[C])}var v=Ea(function(I,O,H){var q=h&&I.as||i,U="",p=[],y=I;if(I.theme==null){y={};for(var g in I)y[g]=I[g];y.theme=_.useContext(Ra)}typeof I.className=="string"?U=ma(O.registered,p,I.className):I.className!=null&&(U=I.className+" ");var k=ka(R.concat(p),O.registered,y);U+=O.key+"-"+k.name,l!==void 0&&(U+=" "+l);var m=h&&f===void 0?Or(q):d,c={};for(var P in I)h&&P==="as"||m(P)&&(c[P]=I[P]);return c.className=U,H&&(c.ref=H),_.createElement(_.Fragment,null,_.createElement(Da,{cache:O,serialized:k,isStringTag:typeof q=="string"}),_.createElement(q,c))});return v.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=R,v.__emotion_forwardProp=f,Object.defineProperty(v,"toString",{value:function(){return"."+l}}),v.withComponent=function(I,O){var H=e(I,It({},r,O,{shouldForwardProp:Cr(v,O,!0)}));return H.apply(void 0,R)},v}},Ia=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Nt=Ma.bind(null);Ia.forEach(function(e){Nt[e]=Nt(e)});const Aa=Nt.div`
|
|
34
38
|
display: flex;
|
|
35
39
|
flex-direction: column;
|
|
36
40
|
font-family: inherit;
|
|
@@ -48,4 +52,4 @@ Please change the parent <Route path="${d}"> to <Route path="${d==="/"?"*":`${d}
|
|
|
48
52
|
input:-webkit-autofill {
|
|
49
53
|
background-color: #00000000;
|
|
50
54
|
}
|
|
51
|
-
`,
|
|
55
|
+
`,za=({name:e,label:t,leftIcon:r,rightIcon:o,bottomMessage:i,placeHolder:a,autoComplete:l="off",value:f,initialValue:d,type:h="text",onChange:w,inputStyles:R,containerProps:E,step:z})=>{const C=v=>{w?.(v.currentTarget.value)};return G.jsxs(Aa,{style:{width:"100%",maxWidth:"357px",gap:"8px",...E},children:[t,G.jsxs("div",{style:{display:"flex",flexDirection:"row",width:"100%",height:"47px",margin:"8px auto 0 auto",border:"2px solid #000000",borderRadius:"5px",padding:"5px 15px",color:"#000000",fontFamily:"Poppins",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"24px",outline:"none",alignItems:"center",gap:"10px",...R},children:[r,G.jsx("input",{name:e,type:h,autoComplete:l,step:z,style:{flex:1,border:"none",color:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",outline:"inherit",background:"none"},placeholder:a,value:f,defaultValue:d,onChange:C}),o]}),i]})},Na=({id:e,styles:t,children:r})=>{const{isItemVisible:o}=Ze();return G.jsx(G.Fragment,{children:o(e)&&G.jsx("div",{style:{width:"100%",minHeight:"100%",left:0,top:0,position:"fixed",zIndex:1e3,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",...t},children:r})})},Ha=({id:e,children:t,backgroundStyles:r,contentStyles:o,onClickOutsideModal:i})=>{const{isItemVisible:a}=Ze();return G.jsx(G.Fragment,{children:a(e)&&G.jsx("div",{style:{width:"100%",height:"100%",minHeight:"100vh",background:"#00000068",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1e3,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",...r},onClick:()=>{i?.()},children:G.jsx("div",{style:{width:"90%",maxWidth:"375px",height:"fit-content",minHeight:"80px",maxHeight:"50%",background:"#ffffff",borderRadius:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:1001,position:"relative",padding:"24px",...o},onClick:l=>{l.stopPropagation()},children:t})})})},Fa=e=>{const t=B.useRef(null),r=B.useRef(null),[o,i]=B.useState(24),[a,l]=B.useState(24),f=B.useCallback(()=>{t.current&&i(t.current.clientHeight)},[t,t.current]),d=B.useCallback(()=>{r.current&&l(r.current.clientHeight)},[r,r.current]);return B.useEffect(()=>{f()},[f,t,t.current]),B.useEffect(()=>{d()},[d,r,r.current]),{header:{...e.header,visible:e.header!==void 0,height:e.header?.visibility==="fixed"?0:o,ref:t},footer:{...e.footer,visible:e.footer!==void 0,height:e.footer?.visibility==="fixed"?0:a,ref:r}}},$a=e=>{const{containerStyles:t,pageStyles:r,children:o,allowScroll:i=!0,floatingContent:a}=e,{footer:l,header:f}=Fa(e);return G.jsxs("div",{"data-testid":"page-container",style:{minHeight:"100vh",width:"100%",minWidth:"100%",overflow:"hidden",position:"relative",boxSizing:"border-box",top:0,bottom:0,left:0,right:0,display:"flex",flexDirection:"column",...t},children:[G.jsxs("div",{"data-testid":"page-layout",style:{minHeight:"100%",width:"100%",overflowY:i?"auto":"hidden",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[f.visible&&G.jsx("div",{ref:f.ref,"data-testid":"page-header",style:{width:"100%",zIndex:99,position:f.visibility==="fixed"?"relative":"fixed",top:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...f.styles},children:f.content}),G.jsx("div",{style:{width:"100%",flex:1,minHeight:"fit-content",marginTop:`${f.height}px`,marginBottom:`${l.height}px`,padding:"12px 24px",boxSizing:"border-box",overflowY:i?void 0:"hidden",...r},children:o})]}),l.visible&&G.jsx("div",{ref:l.ref,"data-testid":"page-footer",style:{width:"100%",zIndex:99,position:l.visibility==="fixed"?"relative":"fixed",bottom:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...l.styles},children:l.content})]})},Wa=({src:e,width:t="22",height:r="28",stroke:o,viewBox:i="0 0 22 28",fill:a="#000000",alt:l="",onClick:f,styles:d})=>G.jsx("div",{style:{width:"fit-content",height:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",...d},onClick:()=>f?.(),children:G.jsx("svg",{width:t,height:r,viewBox:i,fill:a,stroke:o,xmlns:"http://www.w3.org/2000/svg",style:{display:"flex"},children:e})}),qa=({id:e,children:t,styles:r,durationInSeconds:o=3})=>{const i=B.useRef(!1),{isItemVisible:a,hideItem:l}=Ze();return B.useEffect(()=>{const f=a(e);i.current!==f&&(i.current=f,f&&setTimeout(()=>l(e),o*1e3))},[i,a,l]),G.jsx(G.Fragment,{children:a(e)&&G.jsx("div",{style:{width:"100px",height:"40px",background:"#534a4aff",color:"#ffffff",position:"fixed",top:"10px",left:"50%",transform:"translateX(-50%)",zIndex:1e3,borderRadius:"20px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"solid 3px #000000ff",...r},onClick:f=>{f.stopPropagation()},children:t})})},Ba=({overflowEllipsis:e,children:t,styles:r})=>G.jsx("p",{style:{fontFamily:"inherit",maxWidth:"100%",overflow:"hidden",whiteSpace:e?"nowrap":"normal",textOverflow:"ellipsis",fontSize:"16px",fontStyle:"normal",lineHeight:"normal",color:"#000000",...r},children:t});class Ua{static isScrollEnabled=()=>document.body.style.overflow==="unset"||document.body.style.overflow==="auto";static disableScroll=()=>{document.body.style.overflow="hidden"};static enableScroll=()=>{document.body.style.overflow="unset"}}class Ya{static getPascalCase=t=>t.replace(/\w+/g,function(r){return r[0].toUpperCase()+r.slice(1).toLowerCase()});static isEqual=(t,r,o=!0)=>o?t===r:t.toUpperCase()===r.toUpperCase()}exports.Button=Sn;exports.Carousel=ei;exports.Drawer=Ao;exports.FeedbackProvider=Mo;exports.Form=No;exports.Image=Ho;exports.InputField=za;exports.Loader=Na;exports.Modal=Ha;exports.NavigationProvider=Lo;exports.PageLayout=$a;exports.ScrollHelper=Ua;exports.SvgImage=Wa;exports.TextHelper=Ya;exports.Toast=qa;exports.Typography=Ba;exports.defaultBreakpoints=Mr;exports.useDidMount=ti;exports.useDrag=Dr;exports.useFeedback=Ze;exports.useFetch=ri;exports.useNavigation=Do;exports.usePointer=Lr;exports.useResponsive=ni;exports.useTranslations=ai;
|