@dss-kit/ui-kit 0.2.14 → 0.2.16
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/builders/Box/Box.d.ts +2 -0
- package/dist/components/builders/Box/Box.d.ts.map +1 -1
- package/dist/components/builders/Text/Text.d.ts +2 -2
- package/dist/components/charts/LineChart/LineChart.d.ts +3 -2
- package/dist/components/charts/LineChart/LineChart.d.ts.map +1 -1
- package/dist/components/charts/LineChart/LineChart.stories.d.ts +3 -1
- package/dist/components/charts/LineChart/LineChart.stories.d.ts.map +1 -1
- package/dist/components/charts/LineChart/constants.d.ts.map +1 -1
- package/dist/components/charts/LineChart/types.d.ts +56 -13
- package/dist/components/charts/LineChart/types.d.ts.map +1 -1
- package/dist/components/charts/LineChart/utils.d.ts +3 -1
- package/dist/components/charts/LineChart/utils.d.ts.map +1 -1
- package/dist/components/charts/PieProgressChart/PieProgressChart.d.ts +2 -1
- package/dist/components/charts/PieProgressChart/PieProgressChart.d.ts.map +1 -1
- package/dist/components/controls/RadioGroup/Radio.d.ts +93 -0
- package/dist/components/controls/RadioGroup/Radio.d.ts.map +1 -0
- package/dist/components/controls/RadioGroup/RadioGroup.d.ts +116 -0
- package/dist/components/controls/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/dist/components/controls/RadioGroup/RadioGroup.stories.d.ts +16 -0
- package/dist/components/controls/RadioGroup/RadioGroup.stories.d.ts.map +1 -0
- package/dist/components/controls/RadioGroup/context.d.ts +87 -0
- package/dist/components/controls/RadioGroup/context.d.ts.map +1 -0
- package/dist/components/controls/RadioGroup/index.d.ts +3 -0
- package/dist/components/controls/RadioGroup/index.d.ts.map +1 -0
- package/dist/components/controls/index.d.ts +1 -0
- package/dist/components/controls/index.d.ts.map +1 -1
- package/dist/components/shared/Tooltip/Tooltip.d.ts +133 -0
- package/dist/components/shared/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/shared/Tooltip/Tooltip.stories.d.ts +34 -0
- package/dist/components/shared/Tooltip/Tooltip.stories.d.ts.map +1 -0
- package/dist/components/shared/Tooltip/constants.d.ts +14 -0
- package/dist/components/shared/Tooltip/constants.d.ts.map +1 -0
- package/dist/components/shared/Tooltip/index.d.ts +3 -0
- package/dist/components/shared/Tooltip/index.d.ts.map +1 -0
- package/dist/components/shared/Tooltip/types.d.ts +16 -0
- package/dist/components/shared/Tooltip/types.d.ts.map +1 -0
- package/dist/components/shared/Tooltip/utils.d.ts +14 -0
- package/dist/components/shared/Tooltip/utils.d.ts.map +1 -0
- package/dist/components/shared/index.d.ts +1 -0
- package/dist/components/shared/index.d.ts.map +1 -1
- package/dist/root.css +1 -1
- package/dist/ui-kit.cjs.js +14 -253
- package/dist/ui-kit.cjs.js.map +1 -1
- package/dist/ui-kit.css +1 -1
- package/dist/ui-kit.es.js +8399 -55309
- package/dist/ui-kit.es.js.map +1 -1
- package/package.json +7 -9
package/dist/ui-kit.cjs.js
CHANGED
|
@@ -1,40 +1,18 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("react/jsx-runtime"),Je=require("@emotion/css"),ge=require("react"),rd=require("react-dom");function NS(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Re=NS(ge),dR=NS(rd);function gR(n){const{h:e,w:t,m:i,mx:r,my:o,mt:s,mr:a,mb:l,ml:u,p:g,px:m,py:b,pt:w,pr:E,pb:T,pl:P,gap:M,xGap:I,yGap:L,row:H,flex:W,relative:G,absolute:J,display:Y,overflow:$,absoluteFill:re,center:be,justifyContent:we,alignItems:Ee,alignSelf:pe,borderWidth:me,borderBottomWidth:ee,borderColor:q,borderRadius:le,zIndex:Te,minWidth:he,minHeight:ue,maxWidth:Ne,maxHeight:We,flexWrap:Qe,flexGrow:_e,flexShrink:Ve,flexBasis:Oe,backgroundColor:qe,position:je,top:it,right:ct,bottom:li,left:tt,...Nt}=n;return{spacers:{h:e,w:t,m:i,mx:r,my:o,mt:s,mr:a,mb:l,ml:u,p:g,px:m,py:b,pt:w,pr:E,pb:T,pl:P,gap:M,xGap:I,yGap:L,row:H,flex:W,relative:G,absolute:J,display:Y,overflow:$,absoluteFill:re,center:be,justifyContent:we,alignItems:Ee,alignSelf:pe,borderWidth:me,borderBottomWidth:ee,borderColor:q,borderRadius:le,zIndex:Te,minWidth:he,minHeight:ue,maxWidth:Ne,maxHeight:We,flexWrap:Qe,flexGrow:_e,flexShrink:Ve,flexBasis:Oe,backgroundColor:qe,position:je,top:it,right:ct,bottom:li,left:tt},rest:Nt}}const pR=n=>Je.css({display:n.display??"flex",flexDirection:n.row?"row":"column",height:n.h==="screen"?"100vh":n.h==="full"?"100%":n.h,width:n.w==="screen"?"100vw":n.w==="full"?"100%":n.w,margin:n.m,marginTop:n.mt??n.my,marginBottom:n.mb??n.my,marginLeft:n.ml??n.mx,marginRight:n.mr??n.mx,padding:n.p,paddingTop:n.pt??n.py,paddingBottom:n.pb??n.py,paddingLeft:n.pl??n.px,paddingRight:n.pr??n.px,gap:n.gap,columnGap:n.xGap,rowGap:n.yGap,justifyContent:n.center?"center":n.justifyContent,alignItems:n.center?"center":n.alignItems,alignSelf:n.alignSelf,borderWidth:n.borderWidth,borderBottomWidth:n.borderBottomWidth,borderColor:n.borderColor,borderRadius:n.borderRadius,zIndex:n.zIndex,overflow:n.overflow,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,flex:n.flex===!0?1:n.flex,flexWrap:n.flexWrap,flexGrow:n.flexGrow,flexShrink:n.flexShrink,flexBasis:n.flexBasis,backgroundColor:n.backgroundColor,position:n?.position?n?.position:n?.absolute?"absolute":n?.relative?"relative":void 0,...n.absoluteFill&&{position:"absolute",top:0,right:0,bottom:0,left:0},top:n?.top,right:n?.right,bottom:n?.bottom,left:n?.left}),et=ge.forwardRef(({className:n,children:e,...t},i)=>{const{spacers:r,rest:o}=gR(t),s=ge.useMemo(()=>pR(r),[r]);return ae.jsx("div",{ref:i,className:Je.cx(s,n),...o,children:e})});et.displayName="Box";const mR="_loader_1qleq_8",vR={loader:mR},zS=({color:n="var(--text-accent)"})=>ae.jsx("span",{className:Je.cx(vR.loader,Je.css({"--loader-color":n}))}),HS=n=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));function yR(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Xm={exports:{}};/*!
|
|
2
|
-
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var q0;function bR(){return q0||(q0=1,(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=r(o,i(a)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)e.call(o,a)&&o[a]&&(s=r(s,a));return s}function r(o,s){return s?o?o+" "+s:o+s:o}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(Xm)),Xm.exports}var xR=bR();const Jf=yR(xR),wR="_rippleOverlay_s2kim_8",CR="_ripple_s2kim_8",$0={rippleOverlay:wR,ripple:CR},Ym="button, a, input, label, [role='button'], [data-ripple]";function SR(n){if(typeof n.composedPath=="function")return n.composedPath();const e=[];let t=n.target;for(;t;)e.push(t),t=t.parentNode||t.host;return e.push(window),e}const od=ge.forwardRef(({color:n="rgba(0,0,0,0.18)",duration:e=1e3,radius:t="auto",className:i},r)=>{const o=ge.useRef(null),[s,a]=ge.useState([]),l=ge.useRef([]),u=ge.useRef(1),g=ge.useRef(null),m=()=>{l.current.map(T=>clearTimeout(T)),l.current=[]},b=ge.useCallback((T,P,M,I)=>{if(typeof window>"u")return;const L=M.getBoundingClientRect(),H=t==="auto"?Math.max(L.width,L.height)*2:t,W=T-I.left,G=P-I.top,J=Math.max(0,L.top-I.top),Y=Math.max(0,L.left-I.left),$=Math.max(0,I.right-L.right),re=Math.max(0,I.bottom-L.bottom),we=window.getComputedStyle(M).borderRadius||"0px",Ee=u.current++,pe={id:Ee,left:W-H/2,top:G-H/2,size:Math.ceil(H),clip:{top:Math.round(J),right:Math.round($),bottom:Math.round(re),left:Math.round(Y)},borderRadius:we};a(ee=>[...ee,pe]);const me=window.setTimeout(()=>{a(ee=>ee.filter(q=>q.id!==Ee))},e+80);l.current.push(me)},[e,t]),w=ge.useCallback(T=>{try{if(!o.current)return;const P=o.current,M=P.parentElement;if(!M)return;const I=SR(T);let L=null;for(const Y of I)if(Y instanceof Element){if(Y===M)break;if(Y.matches&&Y.matches(Ym)){L=Y;break}}if(L||(L=M),L.closest&&(L.closest("[disabled]")||L.getAttribute("aria-disabled")==="true"||L.classList.contains("ripple-disabled")))return;const H=T.target;if(H?.closest&&(H.closest("[disabled]")||H.getAttribute?.("aria-disabled")==="true"))return;const W=P.getBoundingClientRect(),{clientX:G}=T,{clientY:J}=T;b(G,J,L,W)}catch{}},[b]),E=ge.useCallback(T=>{if(!o.current||!(T.key==="Enter"||T.key===" "))return;const P=o.current,M=P.parentElement;if(!M)return;const I=document.activeElement;let L=null;if(I instanceof Element&&I.matches(Ym)&&(L=I),L||(L=M),L.closest&&(L.closest("[disabled]")||L.getAttribute("aria-disabled")==="true"))return;const H=P.getBoundingClientRect(),W=L.getBoundingClientRect().left+L.getBoundingClientRect().width/2,G=L.getBoundingClientRect().top+L.getBoundingClientRect().height/2;b(W,G,L,H)},[b]);return ge.useImperativeHandle(r,()=>({trigger:({center:T=!0,x:P,y:M}={})=>{const I=o.current;if(!I)return;const L=I.parentElement;if(!L)return;const H=I.getBoundingClientRect(),W=document.activeElement instanceof Element&&document.activeElement.matches(Ym)?document.activeElement:L,G=T?W.getBoundingClientRect().left+W.getBoundingClientRect().width/2:P??H.left+H.width/2,J=T?W.getBoundingClientRect().top+W.getBoundingClientRect().height/2:M??H.top+H.height/2;b(G,J,W,H)}}),[b]),ge.useEffect(()=>{const T=o.current;if(!T)return;const P=T.parentElement;if(!P||typeof window>"u")return;const M=window.getComputedStyle(P);let I=!1;return M.position==="static"&&(P.style.position="relative",I=!0,g.current=P),P.addEventListener("pointerdown",w,!0),P.addEventListener("keydown",E),()=>{P.removeEventListener("pointerdown",w,!0),P.removeEventListener("keydown",E),I&&g.current&&(g.current.style.position="",g.current=null),m()}},[w,E]),ge.useEffect(()=>()=>m(),[]),ae.jsx("div",{ref:o,className:`${$0.rippleOverlay} ${i??""}`,"aria-hidden":!0,children:s.map(T=>ae.jsx("span",{className:$0.ripple,style:{left:`${T.left}px`,top:`${T.top}px`,width:`${T.size}px`,height:`${T.size}px`,backgroundColor:n,animationDuration:`${e}ms`,clipPath:`inset(${T.clip.top}px ${T.clip.right}px ${T.clip.bottom}px ${T.clip.left}px round ${T.borderRadius})`}},T.id))})});function zg(n,e){const{current:t}=ge.useRef(n!==void 0),[i,r]=ge.useState(e),o=t?n:i,s=ge.useCallback(a=>{t||r(a)},[]);return[o,s]}function mm(n,e,t,i=""){if(t)return n[`${e}_${t}${i}`]}function Pg(n,e,t){return mm(n,e,t,"Size")}const TR="_button_11ykb_8",ER="_button_primary_11ykb_19",RR="_button_secondary_11ykb_22",kR="_button_negative_11ykb_25",PR="_button_positive_11ykb_28",MR="_button_warning_11ykb_31",AR="_button_neutral_11ykb_34",_R="_button_mdSize_11ykb_118",OR="_button_smSize_11ykb_128",FR="_button_xsSize_11ykb_138",Zm={button:TR,button_primary:ER,button_secondary:RR,button_negative:kR,button_positive:PR,button_warning:MR,button_neutral:AR,"button_neutral-white":"_button_neutral-white_11ykb_37","button_no-bg":"_button_no-bg_11ykb_40",button_mdSize:_R,button_smSize:OR,button_xsSize:FR};function Mg({attr:n,children:e,className:t,type:i="button",color:r="primary",size:o="md",...s}){const a="button";return ae.jsxs("button",{...n,...s,type:i,className:Jf(Zm[a],t,Pg(Zm,a,o),mm(Zm,a,r)),children:[ae.jsx(od,{}),e]})}const WS=ge.createContext({isOpen:!1,onClose:()=>{}}),LR=()=>ge.useContext(WS),IR="_overlay_1gnp0_8",DR="_modal_1gnp0_12",BR="_closeButton_1gnp0_28",NR="_size_lg_1gnp0_35",zR="_size_md_1gnp0_38",HR="_size_sm_1gnp0_41",ep={overlay:IR,modal:DR,"modal-animation":"_modal-animation_1gnp0_1",closeButton:BR,size_lg:NR,size_md:zR,size_sm:HR},VS=ge.forwardRef(({isOpen:n,onClose:e,overlayClassName:t,modalClassName:i,size:r="md",closeOnBackdropClick:o=!0,closeOnEsc:s=!0,disableBodyScroll:a=!0,showAbsoluteCloseButton:l=!1,children:u},g)=>{ge.useEffect(()=>{if(a&&n&&typeof window<"u"&&typeof document<"u"){const w=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=w}}},[n,a]);const m=ge.useCallback(w=>{w.key==="Escape"&&e()},[e]);ge.useEffect(()=>{if(typeof window<"u"&&typeof document<"u"&&s&&n)return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[n,s,m]);const b=ge.useCallback(w=>{o&&w.target===w.currentTarget&&e()},[o,e]);return n?ae.jsx(Pm,{children:ae.jsx(WS.Provider,{value:{isOpen:n,onClose:e},children:ae.jsx(et,{position:"fixed",top:0,right:0,bottom:0,left:0,row:!0,center:!0,flex:1,onClick:b,backgroundColor:"var(--fill-bg-overlay-primary)",className:Je.cx(ep.overlay,t),zIndex:1,children:ae.jsxs(et,{ref:g,className:Je.cx(ep.modal,ep[`size_${r}`],i),relative:!0,children:[l&&ae.jsx(Mg,{className:ep.closeButton,onClick:e,color:"neutral",children:ae.jsx(HS,{})}),u]})})})}):null});VS.displayName="Modal";const WR="_footer_1bo08_8",VR={footer:WR},GS=ge.forwardRef(({children:n,row:e=!0,flex:t=!0,gap:i="var(--spacing-lg)",p:r="var(--spacing-2xl)",className:o,...s},a)=>ae.jsx(et,{flex:t,row:e,gap:i,p:r,className:Je.cx(VR.footer,o),ref:a,...s,children:n}));GS.displayName="ModalFooter";const Db=ge.createContext({});function Bb(n){const e=ge.useRef(null);return e.current===null&&(e.current=n()),e.current}const Nb=typeof window<"u",US=Nb?ge.useLayoutEffect:ge.useEffect,vm=ge.createContext(null);function zb(n,e){n.indexOf(e)===-1&&n.push(e)}function Hb(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}const Xh=(n,e,t)=>t>e?e:t<n?n:t;function Sy(n,e){return e?`${n}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:n}let zd=()=>{},Yh=()=>{};process.env.NODE_ENV!=="production"&&(zd=(n,e,t)=>{!n&&typeof console<"u"&&console.warn(Sy(e,t))},Yh=(n,e,t)=>{if(!n)throw new Error(Sy(e,t))});const Zh={},XS=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function YS(n){return typeof n=="object"&&n!==null}const ZS=n=>/^0[^.\s]+$/u.test(n);function Wb(n){let e;return()=>(e===void 0&&(e=n()),e)}const Rc=n=>n,GR=(n,e)=>t=>e(n(t)),Hg=(...n)=>n.reduce(GR),Ag=(n,e,t)=>{const i=e-n;return i===0?1:(t-n)/i};class Vb{constructor(){this.subscriptions=[]}add(e){return zb(this.subscriptions,e),()=>Hb(this.subscriptions,e)}notify(e,t,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,i);else for(let o=0;o<r;o++){const s=this.subscriptions[o];s&&s(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Cu=n=>n*1e3,Ec=n=>n/1e3;function KS(n,e){return e?n*(1e3/e):0}const ex=new Set;function Gb(n,e,t){n||ex.has(e)||(console.warn(Sy(e,t)),ex.add(e))}const JS=(n,e,t)=>(((1-3*t+3*e)*n+(3*t-6*e))*n+3*e)*n,UR=1e-7,XR=12;function YR(n,e,t,i,r){let o,s,a=0;do s=e+(t-e)/2,o=JS(s,i,r)-n,o>0?t=s:e=s;while(Math.abs(o)>UR&&++a<XR);return s}function Wg(n,e,t,i){if(n===e&&t===i)return Rc;const r=o=>YR(o,0,1,n,t);return o=>o===0||o===1?o:JS(r(o),e,i)}const QS=n=>e=>e<=.5?n(2*e)/2:(2-n(2*(1-e)))/2,jS=n=>e=>1-n(1-e),qS=Wg(.33,1.53,.69,.99),Ub=jS(qS),$S=QS(Ub),eT=n=>(n*=2)<1?.5*Ub(n):.5*(2-Math.pow(2,-10*(n-1))),Xb=n=>1-Math.sin(Math.acos(n)),tT=jS(Xb),nT=QS(Xb),ZR=Wg(.42,0,1,1),KR=Wg(0,0,.58,1),iT=Wg(.42,0,.58,1),JR=n=>Array.isArray(n)&&typeof n[0]!="number",rT=n=>Array.isArray(n)&&typeof n[0]=="number",tx={linear:Rc,easeIn:ZR,easeInOut:iT,easeOut:KR,circIn:Xb,circInOut:nT,circOut:tT,backIn:Ub,backInOut:$S,backOut:qS,anticipate:eT},QR=n=>typeof n=="string",nx=n=>{if(rT(n)){Yh(n.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,t,i,r]=n;return Wg(e,t,i,r)}else if(QR(n))return Yh(tx[n]!==void 0,`Invalid easing type '${n}'`,"invalid-easing-type"),tx[n];return n},tp=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function jR(n,e){let t=new Set,i=new Set,r=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(g){s.has(g)&&(u.schedule(g),n()),g(a)}const u={schedule:(g,m=!1,b=!1)=>{const E=b&&r?t:i;return m&&s.add(g),E.has(g)||E.add(g),g},cancel:g=>{i.delete(g),s.delete(g)},process:g=>{if(a=g,r){o=!0;return}r=!0,[t,i]=[i,t],t.forEach(l),t.clear(),r=!1,o&&(o=!1,u.process(g))}};return u}const qR=40;function oT(n,e){let t=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>t=!0,s=tp.reduce((L,H)=>(L[H]=jR(o),L),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:g,update:m,preRender:b,render:w,postRender:E}=s,T=()=>{const L=Zh.useManualTiming?r.timestamp:performance.now();t=!1,Zh.useManualTiming||(r.delta=i?1e3/60:Math.max(Math.min(L-r.timestamp,qR),1)),r.timestamp=L,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),g.process(r),m.process(r),b.process(r),w.process(r),E.process(r),r.isProcessing=!1,t&&e&&(i=!1,n(T))},P=()=>{t=!0,i=!0,r.isProcessing||n(T)};return{schedule:tp.reduce((L,H)=>{const W=s[H];return L[H]=(G,J=!1,Y=!1)=>(t||P(),W.schedule(G,J,Y)),L},{}),cancel:L=>{for(let H=0;H<tp.length;H++)s[tp[H]].cancel(L)},state:r,steps:s}}const{schedule:Di,cancel:xf,state:qo,steps:Km}=oT(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rc,!0);let Gp;function $R(){Gp=void 0}const Ka={now:()=>(Gp===void 0&&Ka.set(qo.isProcessing||Zh.useManualTiming?qo.timestamp:performance.now()),Gp),set:n=>{Gp=n,queueMicrotask($R)}},sT=n=>e=>typeof e=="string"&&e.startsWith(n),Yb=sT("--"),ek=sT("var(--"),Zb=n=>ek(n)?tk.test(n.split("/*")[0].trim()):!1,tk=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Hd={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},_g={...Hd,transform:n=>Xh(0,1,n)},np={...Hd,default:1},wg=n=>Math.round(n*1e5)/1e5,Kb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function nk(n){return n==null}const ik=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Jb=(n,e)=>t=>!!(typeof t=="string"&&ik.test(t)&&t.startsWith(n)||e&&!nk(t)&&Object.prototype.hasOwnProperty.call(t,e)),aT=(n,e,t)=>i=>{if(typeof i!="string")return i;const[r,o,s,a]=i.match(Kb);return{[n]:parseFloat(r),[e]:parseFloat(o),[t]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},rk=n=>Xh(0,255,n),Jm={...Hd,transform:n=>Math.round(rk(n))},Qf={test:Jb("rgb","red"),parse:aT("red","green","blue"),transform:({red:n,green:e,blue:t,alpha:i=1})=>"rgba("+Jm.transform(n)+", "+Jm.transform(e)+", "+Jm.transform(t)+", "+wg(_g.transform(i))+")"};function ok(n){let e="",t="",i="",r="";return n.length>5?(e=n.substring(1,3),t=n.substring(3,5),i=n.substring(5,7),r=n.substring(7,9)):(e=n.substring(1,2),t=n.substring(2,3),i=n.substring(3,4),r=n.substring(4,5),e+=e,t+=t,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(t,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Ty={test:Jb("#"),parse:ok,transform:Qf.transform},Vg=n=>({test:e=>typeof e=="string"&&e.endsWith(n)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${n}`}),mf=Vg("deg"),lh=Vg("%"),kt=Vg("px"),sk=Vg("vh"),ak=Vg("vw"),ix={...lh,parse:n=>lh.parse(n)/100,transform:n=>lh.transform(n*100)},Sd={test:Jb("hsl","hue"),parse:aT("hue","saturation","lightness"),transform:({hue:n,saturation:e,lightness:t,alpha:i=1})=>"hsla("+Math.round(n)+", "+lh.transform(wg(e))+", "+lh.transform(wg(t))+", "+wg(_g.transform(i))+")"},Ur={test:n=>Qf.test(n)||Ty.test(n)||Sd.test(n),parse:n=>Qf.test(n)?Qf.parse(n):Sd.test(n)?Sd.parse(n):Ty.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Qf.transform(n):Sd.transform(n),getAnimatableNone:n=>{const e=Ur.parse(n);return e.alpha=0,Ur.transform(e)}},lk=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ck(n){return isNaN(n)&&typeof n=="string"&&(n.match(Kb)?.length||0)+(n.match(lk)?.length||0)>0}const lT="number",cT="color",uk="var",hk="var(",rx="${}",fk=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Og(n){const e=n.toString(),t=[],i={color:[],number:[],var:[]},r=[];let o=0;const a=e.replace(fk,l=>(Ur.test(l)?(i.color.push(o),r.push(cT),t.push(Ur.parse(l))):l.startsWith(hk)?(i.var.push(o),r.push(uk),t.push(l)):(i.number.push(o),r.push(lT),t.push(parseFloat(l))),++o,rx)).split(rx);return{values:t,split:a,indexes:i,types:r}}function uT(n){return Og(n).values}function hT(n){const{split:e,types:t}=Og(n),i=e.length;return r=>{let o="";for(let s=0;s<i;s++)if(o+=e[s],r[s]!==void 0){const a=t[s];a===lT?o+=wg(r[s]):a===cT?o+=Ur.transform(r[s]):o+=r[s]}return o}}const dk=n=>typeof n=="number"?0:Ur.test(n)?Ur.getAnimatableNone(n):n;function gk(n){const e=uT(n);return hT(n)(e.map(dk))}const wf={test:ck,parse:uT,createTransformer:hT,getAnimatableNone:gk};function Qm(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*(2/3-t)*6:n}function pk({hue:n,saturation:e,lightness:t,alpha:i}){n/=360,e/=100,t/=100;let r=0,o=0,s=0;if(!e)r=o=s=t;else{const a=t<.5?t*(1+e):t+e-t*e,l=2*t-a;r=Qm(l,a,n+1/3),o=Qm(l,a,n),s=Qm(l,a,n-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function tm(n,e){return t=>t>0?e:n}const ir=(n,e,t)=>n+(e-n)*t,jm=(n,e,t)=>{const i=n*n,r=t*(e*e-i)+i;return r<0?0:Math.sqrt(r)},mk=[Ty,Qf,Sd],vk=n=>mk.find(e=>e.test(n));function ox(n){const e=vk(n);if(zd(!!e,`'${n}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let t=e.parse(n);return e===Sd&&(t=pk(t)),t}const sx=(n,e)=>{const t=ox(n),i=ox(e);if(!t||!i)return tm(n,e);const r={...t};return o=>(r.red=jm(t.red,i.red,o),r.green=jm(t.green,i.green,o),r.blue=jm(t.blue,i.blue,o),r.alpha=ir(t.alpha,i.alpha,o),Qf.transform(r))},Ey=new Set(["none","hidden"]);function yk(n,e){return Ey.has(n)?t=>t<=0?n:e:t=>t>=1?e:n}function bk(n,e){return t=>ir(n,e,t)}function Qb(n){return typeof n=="number"?bk:typeof n=="string"?Zb(n)?tm:Ur.test(n)?sx:Ck:Array.isArray(n)?fT:typeof n=="object"?Ur.test(n)?sx:xk:tm}function fT(n,e){const t=[...n],i=t.length,r=n.map((o,s)=>Qb(o)(o,e[s]));return o=>{for(let s=0;s<i;s++)t[s]=r[s](o);return t}}function xk(n,e){const t={...n,...e},i={};for(const r in t)n[r]!==void 0&&e[r]!==void 0&&(i[r]=Qb(n[r])(n[r],e[r]));return r=>{for(const o in i)t[o]=i[o](r);return t}}function wk(n,e){const t=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],s=n.indexes[o][i[o]],a=n.values[s]??0;t[r]=a,i[o]++}return t}const Ck=(n,e)=>{const t=wf.createTransformer(e),i=Og(n),r=Og(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Ey.has(n)&&!r.values.length||Ey.has(e)&&!i.values.length?yk(n,e):Hg(fT(wk(i,r),r.values),t):(zd(!0,`Complex values '${n}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),tm(n,e))};function dT(n,e,t){return typeof n=="number"&&typeof e=="number"&&typeof t=="number"?ir(n,e,t):Qb(n)(n,e)}const Sk=n=>{const e=({timestamp:t})=>n(t);return{start:(t=!0)=>Di.update(e,t),stop:()=>xf(e),now:()=>qo.isProcessing?qo.timestamp:Ka.now()}},gT=(n,e,t=10)=>{let i="";const r=Math.max(Math.round(e/t),2);for(let o=0;o<r;o++)i+=Math.round(n(o/(r-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},nm=2e4;function jb(n){let e=0;const t=50;let i=n.next(e);for(;!i.done&&e<nm;)e+=t,i=n.next(e);return e>=nm?1/0:e}function Tk(n,e=100,t){const i=t({...n,keyframes:[0,e]}),r=Math.min(jb(i),nm);return{type:"keyframes",ease:o=>i.next(r*o).value/e,duration:Ec(r)}}const Ek=5;function pT(n,e,t){const i=Math.max(e-Ek,0);return KS(t-n(i),e-i)}const nr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},qm=.001;function Rk({duration:n=nr.duration,bounce:e=nr.bounce,velocity:t=nr.velocity,mass:i=nr.mass}){let r,o;zd(n<=Cu(nr.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-e;s=Xh(nr.minDamping,nr.maxDamping,s),n=Xh(nr.minDuration,nr.maxDuration,Ec(n)),s<1?(r=u=>{const g=u*s,m=g*n,b=g-t,w=Ry(u,s),E=Math.exp(-m);return qm-b/w*E},o=u=>{const m=u*s*n,b=m*t+t,w=Math.pow(s,2)*Math.pow(u,2)*n,E=Math.exp(-m),T=Ry(Math.pow(u,2),s);return(-r(u)+qm>0?-1:1)*((b-w)*E)/T}):(r=u=>{const g=Math.exp(-u*n),m=(u-t)*n+1;return-qm+g*m},o=u=>{const g=Math.exp(-u*n),m=(t-u)*(n*n);return g*m});const a=5/n,l=Pk(r,o,a);if(n=Cu(n),isNaN(l))return{stiffness:nr.stiffness,damping:nr.damping,duration:n};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:s*2*Math.sqrt(i*u),duration:n}}}const kk=12;function Pk(n,e,t){let i=t;for(let r=1;r<kk;r++)i=i-n(i)/e(i);return i}function Ry(n,e){return n*Math.sqrt(1-e*e)}const Mk=["duration","bounce"],Ak=["stiffness","damping","mass"];function ax(n,e){return e.some(t=>n[t]!==void 0)}function _k(n){let e={velocity:nr.velocity,stiffness:nr.stiffness,damping:nr.damping,mass:nr.mass,isResolvedFromDuration:!1,...n};if(!ax(n,Ak)&&ax(n,Mk))if(n.visualDuration){const t=n.visualDuration,i=2*Math.PI/(t*1.2),r=i*i,o=2*Xh(.05,1,1-(n.bounce||0))*Math.sqrt(r);e={...e,mass:nr.mass,stiffness:r,damping:o}}else{const t=Rk(n);e={...e,...t,mass:nr.mass},e.isResolvedFromDuration=!0}return e}function im(n=nr.visualDuration,e=nr.bounce){const t=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:e}:n;let{restSpeed:i,restDelta:r}=t;const o=t.keyframes[0],s=t.keyframes[t.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:g,duration:m,velocity:b,isResolvedFromDuration:w}=_k({...t,velocity:-Ec(t.velocity||0)}),E=b||0,T=u/(2*Math.sqrt(l*g)),P=s-o,M=Ec(Math.sqrt(l/g)),I=Math.abs(P)<5;i||(i=I?nr.restSpeed.granular:nr.restSpeed.default),r||(r=I?nr.restDelta.granular:nr.restDelta.default);let L;if(T<1){const W=Ry(M,T);L=G=>{const J=Math.exp(-T*M*G);return s-J*((E+T*M*P)/W*Math.sin(W*G)+P*Math.cos(W*G))}}else if(T===1)L=W=>s-Math.exp(-M*W)*(P+(E+M*P)*W);else{const W=M*Math.sqrt(T*T-1);L=G=>{const J=Math.exp(-T*M*G),Y=Math.min(W*G,300);return s-J*((E+T*M*P)*Math.sinh(Y)+W*P*Math.cosh(Y))/W}}const H={calculatedDuration:w&&m||null,next:W=>{const G=L(W);if(w)a.done=W>=m;else{let J=W===0?E:0;T<1&&(J=W===0?Cu(E):pT(L,W,G));const Y=Math.abs(J)<=i,$=Math.abs(s-G)<=r;a.done=Y&&$}return a.value=a.done?s:G,a},toString:()=>{const W=Math.min(jb(H),nm),G=gT(J=>H.next(W*J).value,W,30);return W+"ms "+G},toTransition:()=>{}};return H}im.applyToOptions=n=>{const e=Tk(n,100,im);return n.ease=e.ease,n.duration=Cu(e.duration),n.type="keyframes",n};function ky({keyframes:n,velocity:e=0,power:t=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:g}){const m=n[0],b={done:!1,value:m},w=Y=>a!==void 0&&Y<a||l!==void 0&&Y>l,E=Y=>a===void 0?l:l===void 0||Math.abs(a-Y)<Math.abs(l-Y)?a:l;let T=t*e;const P=m+T,M=s===void 0?P:s(P);M!==P&&(T=M-m);const I=Y=>-T*Math.exp(-Y/i),L=Y=>M+I(Y),H=Y=>{const $=I(Y),re=L(Y);b.done=Math.abs($)<=u,b.value=b.done?M:re};let W,G;const J=Y=>{w(b.value)&&(W=Y,G=im({keyframes:[b.value,E(b.value)],velocity:pT(L,Y,b.value),damping:r,stiffness:o,restDelta:u,restSpeed:g}))};return J(0),{calculatedDuration:null,next:Y=>{let $=!1;return!G&&W===void 0&&($=!0,H(Y),J(Y)),W!==void 0&&Y>=W?G.next(Y-W):(!$&&H(Y),b)}}}function Ok(n,e,t){const i=[],r=t||Zh.mix||dT,o=n.length-1;for(let s=0;s<o;s++){let a=r(n[s],n[s+1]);if(e){const l=Array.isArray(e)?e[s]||Rc:e;a=Hg(l,a)}i.push(a)}return i}function Fk(n,e,{clamp:t=!0,ease:i,mixer:r}={}){const o=n.length;if(Yh(o===e.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const s=n[0]===n[1];n[0]>n[o-1]&&(n=[...n].reverse(),e=[...e].reverse());const a=Ok(e,i,r),l=a.length,u=g=>{if(s&&g<n[0])return e[0];let m=0;if(l>1)for(;m<n.length-2&&!(g<n[m+1]);m++);const b=Ag(n[m],n[m+1],g);return a[m](b)};return t?g=>u(Xh(n[0],n[o-1],g)):u}function Lk(n,e){const t=n[n.length-1];for(let i=1;i<=e;i++){const r=Ag(0,e,i);n.push(ir(t,1,r))}}function Ik(n){const e=[0];return Lk(e,n.length-1),e}function Dk(n,e){return n.map(t=>t*e)}function Bk(n,e){return n.map(()=>e||iT).splice(0,n.length-1)}function Td({duration:n=300,keyframes:e,times:t,ease:i="easeInOut"}){const r=JR(i)?i.map(nx):nx(i),o={done:!1,value:e[0]},s=Dk(t&&t.length===e.length?t:Ik(e),n),a=Fk(s,e,{ease:Array.isArray(r)?r:Bk(e,r)});return{calculatedDuration:n,next:l=>(o.value=a(l),o.done=l>=n,o)}}const Nk=n=>n!==null;function qb(n,{repeat:e,repeatType:t="loop"},i,r=1){const o=n.filter(Nk),a=r<0||e&&t!=="loop"&&e%2===1?0:o.length-1;return!a||i===void 0?o[a]:i}const zk={decay:ky,inertia:ky,tween:Td,keyframes:Td,spring:im};function mT(n){typeof n.type=="string"&&(n.type=zk[n.type])}class $b{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const Hk=n=>n/100;class e0 extends $b{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==Ka.now()&&this.tick(Ka.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;mT(e);const{type:t=Td,repeat:i=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=e;let{keyframes:a}=e;const l=t||Td;process.env.NODE_ENV!=="production"&&l!==Td&&Yh(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Td&&typeof a[0]!="number"&&(this.mixKeyframes=Hg(Hk,dT(a[0],a[1])),a=[0,100]);const u=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=jb(u));const{calculatedDuration:g}=u;this.calculatedDuration=g,this.resolvedDuration=g+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=u}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:i,totalDuration:r,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return i.next(0);const{delay:u=0,keyframes:g,repeat:m,repeatType:b,repeatDelay:w,type:E,onUpdate:T,finalKeyframe:P}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const M=this.currentTime-u*(this.playbackSpeed>=0?1:-1),I=this.playbackSpeed>=0?M<0:M>r;this.currentTime=Math.max(M,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let L=this.currentTime,H=i;if(m){const Y=Math.min(this.currentTime,r)/a;let $=Math.floor(Y),re=Y%1;!re&&Y>=1&&(re=1),re===1&&$--,$=Math.min($,m+1),!!($%2)&&(b==="reverse"?(re=1-re,w&&(re-=w/a)):b==="mirror"&&(H=s)),L=Xh(0,1,re)*a}const W=I?{done:!1,value:g[0]}:H.next(L);o&&(W.value=o(W.value));let{done:G}=W;!I&&l!==null&&(G=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&G);return J&&E!==ky&&(W.value=qb(g,this.options,P,this.speed)),T&&T(W.value),J&&this.finish(),W}then(e,t){return this.finished.then(e,t)}get duration(){return Ec(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Ec(e)}get time(){return Ec(this.currentTime)}set time(e){e=Cu(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Ka.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Ec(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Sk,startTime:t}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ka.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Wk(n){for(let e=1;e<n.length;e++)n[e]??(n[e]=n[e-1])}const jf=n=>n*180/Math.PI,Py=n=>{const e=jf(Math.atan2(n[1],n[0]));return My(e)},Vk={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Py,rotateZ:Py,skewX:n=>jf(Math.atan(n[1])),skewY:n=>jf(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},My=n=>(n=n%360,n<0&&(n+=360),n),lx=Py,cx=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),ux=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),Gk={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cx,scaleY:ux,scale:n=>(cx(n)+ux(n))/2,rotateX:n=>My(jf(Math.atan2(n[6],n[5]))),rotateY:n=>My(jf(Math.atan2(-n[2],n[0]))),rotateZ:lx,rotate:lx,skewX:n=>jf(Math.atan(n[4])),skewY:n=>jf(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Ay(n){return n.includes("scale")?1:0}function _y(n,e){if(!n||n==="none")return Ay(e);const t=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,r;if(t)i=Gk,r=t;else{const a=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Vk,r=a}if(!r)return Ay(e);const o=i[e],s=r[1].split(",").map(Xk);return typeof o=="function"?o(s):s[o]}const Uk=(n,e)=>{const{transform:t="none"}=getComputedStyle(n);return _y(t,e)};function Xk(n){return parseFloat(n.trim())}const Wd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vd=new Set(Wd),hx=n=>n===Hd||n===kt,Yk=new Set(["x","y","z"]),Zk=Wd.filter(n=>!Yk.has(n));function Kk(n){const e=[];return Zk.forEach(t=>{const i=n.getValue(t);i!==void 0&&(e.push([t,i.get()]),i.set(t.startsWith("scale")?1:0))}),e}const $f={width:({x:n},{paddingLeft:e="0",paddingRight:t="0"})=>n.max-n.min-parseFloat(e)-parseFloat(t),height:({y:n},{paddingTop:e="0",paddingBottom:t="0"})=>n.max-n.min-parseFloat(e)-parseFloat(t),top:(n,{top:e})=>parseFloat(e),left:(n,{left:e})=>parseFloat(e),bottom:({y:n},{top:e})=>parseFloat(e)+(n.max-n.min),right:({x:n},{left:e})=>parseFloat(e)+(n.max-n.min),x:(n,{transform:e})=>_y(e,"x"),y:(n,{transform:e})=>_y(e,"y")};$f.translateX=$f.x;$f.translateY=$f.y;const ed=new Set;let Oy=!1,Fy=!1,Ly=!1;function vT(){if(Fy){const n=Array.from(ed).filter(i=>i.needsMeasurement),e=new Set(n.map(i=>i.element)),t=new Map;e.forEach(i=>{const r=Kk(i);r.length&&(t.set(i,r),i.render())}),n.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const r=t.get(i);r&&r.forEach(([o,s])=>{i.getValue(o)?.set(s)})}),n.forEach(i=>i.measureEndState()),n.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Fy=!1,Oy=!1,ed.forEach(n=>n.complete(Ly)),ed.clear()}function yT(){ed.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Fy=!0)})}function Jk(){Ly=!0,yT(),vT(),Ly=!1}class t0{constructor(e,t,i,r,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(ed.add(this),Oy||(Oy=!0,Di.read(yT),Di.resolveKeyframes(vT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:i,motionValue:r}=this;if(e[0]===null){const o=r?.get(),s=e[e.length-1];if(o!==void 0)e[0]=o;else if(i&&t){const a=i.readValue(t,s);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=s),r&&o===void 0&&r.set(e[0])}Wk(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ed.delete(this)}cancel(){this.state==="scheduled"&&(ed.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Qk=n=>n.startsWith("--");function jk(n,e,t){Qk(e)?n.style.setProperty(e,t):n.style[e]=t}const qk=Wb(()=>window.ScrollTimeline!==void 0),$k={};function eP(n,e){const t=Wb(n);return()=>$k[e]??t()}const bT=eP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),yg=([n,e,t,i])=>`cubic-bezier(${n}, ${e}, ${t}, ${i})`,fx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yg([0,.65,.55,1]),circOut:yg([.55,0,1,.45]),backIn:yg([.31,.01,.66,-.59]),backOut:yg([.33,1.53,.69,.99])};function xT(n,e){if(n)return typeof n=="function"?bT()?gT(n,e):"ease-out":rT(n)?yg(n):Array.isArray(n)?n.map(t=>xT(t,e)||fx.easeOut):fx[n]}function tP(n,e,t,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u=void 0){const g={[e]:t};l&&(g.offset=l);const m=xT(a,r);Array.isArray(m)&&(g.easing=m);const b={delay:i,duration:r,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(b.pseudoElement=u),n.animate(g,b)}function wT(n){return typeof n=="function"&&"applyToOptions"in n}function nP({type:n,...e}){return wT(n)&&bT()?n.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class iP extends $b{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:i,keyframes:r,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=e,Yh(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=nP(e);this.animation=tP(t,i,r,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const g=qb(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(g):jk(t,i,g),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Ec(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Ec(e)}get time(){return Ec(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=Cu(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&qk()?(this.animation.timeline=e,Rc):t(this)}}const CT={anticipate:eT,backInOut:$S,circInOut:nT};function rP(n){return n in CT}function oP(n){typeof n.ease=="string"&&rP(n.ease)&&(n.ease=CT[n.ease])}const dx=10;class sP extends iP{constructor(e){oP(e),mT(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:i,onComplete:r,element:o,...s}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}const a=new e0({...s,autoplay:!1}),l=Cu(this.finishedTime??this.time);t.setWithVelocity(a.sample(l-dx).value,a.sample(l).value,dx),a.stop()}}const gx=(n,e)=>e==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(wf.test(n)||n==="0")&&!n.startsWith("url("));function aP(n){const e=n[0];if(n.length===1)return!0;for(let t=0;t<n.length;t++)if(n[t]!==e)return!0}function lP(n,e,t,i){const r=n[0];if(r===null)return!1;if(e==="display"||e==="visibility")return!0;const o=n[n.length-1],s=gx(r,e),a=gx(o,e);return zd(s===a,`You are trying to animate ${e} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:aP(n)||(t==="spring"||wT(t))&&i}function Iy(n){n.duration=0,n.type="keyframes"}const cP=new Set(["opacity","clipPath","filter","transform"]),uP=Wb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function hP(n){const{motionValue:e,name:t,repeatDelay:i,repeatType:r,damping:o,type:s}=n;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return uP()&&t&&cP.has(t)&&(t!=="transform"||!u)&&!l&&!i&&r!=="mirror"&&o!==0&&s!=="inertia"}const fP=40;class dP extends $b{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:g,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ka.now();const b={autoplay:e,delay:t,type:i,repeat:r,repeatDelay:o,repeatType:s,name:l,motionValue:u,element:g,...m},w=g?.KeyframeResolver||t0;this.keyframeResolver=new w(a,(E,T,P)=>this.onKeyframesResolved(E,T,b,!P),l,u,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,r){this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:g}=i;this.resolvedAt=Ka.now(),lP(e,o,s,a)||((Zh.instantAnimations||!l)&&g?.(qb(e,i,t)),e[0]=e[e.length-1],Iy(i),i.repeat=0);const b={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>fP?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},w=!u&&hP(b)?new sP({...b,element:b.motionValue.owner.current}):new e0(b);w.finished.then(()=>this.notifyFinished()).catch(Rc),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Jk()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const gP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pP(n){const e=gP.exec(n);if(!e)return[,];const[,t,i,r]=e;return[`--${t??i}`,r]}const mP=4;function ST(n,e,t=1){Yh(t<=mP,`Max CSS variable fallback depth detected in property "${n}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[i,r]=pP(n);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const s=o.trim();return XS(s)?parseFloat(s):s}return Zb(r)?ST(r,e,t+1):r}function n0(n,e){return n?.[e]??n?.default??n}const TT=new Set(["width","height","top","left","right","bottom",...Wd]),vP={test:n=>n==="auto",parse:n=>n},ET=n=>e=>e.test(n),RT=[Hd,kt,lh,mf,ak,sk,vP],px=n=>RT.find(ET(n));function yP(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||ZS(n):!0}const bP=new Set(["brightness","contrast","saturate","opacity"]);function xP(n){const[e,t]=n.slice(0,-1).split("(");if(e==="drop-shadow")return n;const[i]=t.match(Kb)||[];if(!i)return n;const r=t.replace(i,"");let o=bP.has(e)?1:0;return i!==t&&(o*=100),e+"("+o+r+")"}const wP=/\b([a-z-]*)\(.*?\)/gu,Dy={...wf,getAnimatableNone:n=>{const e=n.match(wP);return e?e.map(xP).join(" "):n}},mx={...Hd,transform:Math.round},CP={rotate:mf,rotateX:mf,rotateY:mf,rotateZ:mf,scale:np,scaleX:np,scaleY:np,scaleZ:np,skew:mf,skewX:mf,skewY:mf,distance:kt,translateX:kt,translateY:kt,translateZ:kt,x:kt,y:kt,z:kt,perspective:kt,transformPerspective:kt,opacity:_g,originX:ix,originY:ix,originZ:kt},i0={borderWidth:kt,borderTopWidth:kt,borderRightWidth:kt,borderBottomWidth:kt,borderLeftWidth:kt,borderRadius:kt,radius:kt,borderTopLeftRadius:kt,borderTopRightRadius:kt,borderBottomRightRadius:kt,borderBottomLeftRadius:kt,width:kt,maxWidth:kt,height:kt,maxHeight:kt,top:kt,right:kt,bottom:kt,left:kt,padding:kt,paddingTop:kt,paddingRight:kt,paddingBottom:kt,paddingLeft:kt,margin:kt,marginTop:kt,marginRight:kt,marginBottom:kt,marginLeft:kt,backgroundPositionX:kt,backgroundPositionY:kt,...CP,zIndex:mx,fillOpacity:_g,strokeOpacity:_g,numOctaves:mx},SP={...i0,color:Ur,backgroundColor:Ur,outlineColor:Ur,fill:Ur,stroke:Ur,borderColor:Ur,borderTopColor:Ur,borderRightColor:Ur,borderBottomColor:Ur,borderLeftColor:Ur,filter:Dy,WebkitFilter:Dy},kT=n=>SP[n];function PT(n,e){let t=kT(n);return t!==Dy&&(t=wf),t.getAnimatableNone?t.getAnimatableNone(e):void 0}const TP=new Set(["auto","none","0"]);function EP(n,e,t){let i=0,r;for(;i<n.length&&!r;){const o=n[i];typeof o=="string"&&!TP.has(o)&&Og(o).values.length&&(r=n[i]),i++}if(r&&t)for(const o of e)n[o]=PT(t,r)}class RP extends t0{constructor(e,t,i,r,o){super(e,t,i,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),Zb(u))){const g=ST(u,t.current);g!==void 0&&(e[l]=g),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!TT.has(i)||e.length!==2)return;const[r,o]=e,s=px(r),a=px(o);if(s!==a)if(hx(s)&&hx(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else $f[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,i=[];for(let r=0;r<e.length;r++)(e[r]===null||yP(e[r]))&&i.push(r);i.length&&EP(e,i,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$f[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];r!==void 0&&e.getValue(i,r).jump(r,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,s=i[o];i[o]=$f[t](e.measureViewportBox(),window.getComputedStyle(e.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function kP(n,e,t){if(n instanceof EventTarget)return[n];if(typeof n=="string"){let i=document;const r=t?.[n]??i.querySelectorAll(n);return r?Array.from(r):[]}return Array.from(n)}const MT=(n,e)=>e&&typeof n=="number"?e.transform(n):n;function AT(n){return YS(n)&&"offsetHeight"in n}const vx=30,PP=n=>!isNaN(parseFloat(n));class MP{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const r=Ka.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Ka.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=PP(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Gb(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Vb);const i=this.events[e].add(t);return e==="change"?()=>{i(),Di.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Ka.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>vx)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,vx);return KS(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Fd(n,e){return new MP(n,e)}const{schedule:r0}=oT(queueMicrotask,!1),xu={x:!1,y:!1};function _T(){return xu.x||xu.y}function AP(n){return n==="x"||n==="y"?xu[n]?null:(xu[n]=!0,()=>{xu[n]=!1}):xu.x||xu.y?null:(xu.x=xu.y=!0,()=>{xu.x=xu.y=!1})}function OT(n,e){const t=kP(n),i=new AbortController,r={passive:!0,...e,signal:i.signal};return[t,r,()=>i.abort()]}function yx(n){return!(n.pointerType==="touch"||_T())}function _P(n,e,t={}){const[i,r,o]=OT(n,t),s=a=>{if(!yx(a))return;const{target:l}=a,u=e(l,a);if(typeof u!="function"||!l)return;const g=m=>{yx(m)&&(u(m),l.removeEventListener("pointerleave",g))};l.addEventListener("pointerleave",g,r)};return i.forEach(a=>{a.addEventListener("pointerenter",s,r)}),o}const FT=(n,e)=>e?n===e?!0:FT(n,e.parentElement):!1,o0=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,OP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function FP(n){return OP.has(n.tagName)||n.tabIndex!==-1}const Up=new WeakSet;function bx(n){return e=>{e.key==="Enter"&&n(e)}}function $m(n,e){n.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const LP=(n,e)=>{const t=n.currentTarget;if(!t)return;const i=bx(()=>{if(Up.has(t))return;$m(t,"down");const r=bx(()=>{$m(t,"up")}),o=()=>$m(t,"cancel");t.addEventListener("keyup",r,e),t.addEventListener("blur",o,e)});t.addEventListener("keydown",i,e),t.addEventListener("blur",()=>t.removeEventListener("keydown",i),e)};function xx(n){return o0(n)&&!_T()}function IP(n,e,t={}){const[i,r,o]=OT(n,t),s=a=>{const l=a.currentTarget;if(!xx(a))return;Up.add(l);const u=e(l,a),g=(w,E)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",b),Up.has(l)&&Up.delete(l),xx(w)&&typeof u=="function"&&u(w,{success:E})},m=w=>{g(w,l===window||l===document||t.useGlobalTarget||FT(l,w.target))},b=w=>{g(w,!1)};window.addEventListener("pointerup",m,r),window.addEventListener("pointercancel",b,r)};return i.forEach(a=>{(t.useGlobalTarget?window:a).addEventListener("pointerdown",s,r),AT(a)&&(a.addEventListener("focus",u=>LP(u,r)),!FP(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function LT(n){return YS(n)&&"ownerSVGElement"in n}function DP(n){return LT(n)&&n.tagName==="svg"}const Rs=n=>!!(n&&n.getVelocity),BP=[...RT,Ur,wf],NP=n=>BP.find(ET(n)),s0=ge.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function wx(n,e){if(typeof n=="function")return n(e);n!=null&&(n.current=e)}function zP(...n){return e=>{let t=!1;const i=n.map(r=>{const o=wx(r,e);return!t&&typeof o=="function"&&(t=!0),o});if(t)return()=>{for(let r=0;r<i.length;r++){const o=i[r];typeof o=="function"?o():wx(n[r],null)}}}}function HP(...n){return Re.useCallback(zP(...n),n)}class WP extends Re.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const i=t.offsetParent,r=AT(i)&&i.offsetWidth||0,o=this.props.sizeRef.current;o.height=t.offsetHeight||0,o.width=t.offsetWidth||0,o.top=t.offsetTop,o.left=t.offsetLeft,o.right=r-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function VP({children:n,isPresent:e,anchorX:t,root:i}){const r=ge.useId(),o=ge.useRef(null),s=ge.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=ge.useContext(s0),l=HP(o,n?.ref);return ge.useInsertionEffect(()=>{const{width:u,height:g,top:m,left:b,right:w}=s.current;if(e||!o.current||!u||!g)return;const E=t==="left"?`left: ${b}`:`right: ${w}`;o.current.dataset.motionPopId=r;const T=document.createElement("style");a&&(T.nonce=a);const P=i??document.head;return P.appendChild(T),T.sheet&&T.sheet.insertRule(`
|
|
6
|
-
[data-motion-pop-id="${r}"] {
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),k=require("@emotion/css"),C=require("react"),Cs=require("react-dom"),kn=require("@highcharts/react");function ga(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const b=ga(C),Jc=ga(Cs);function Qc(e){const{h:t,w:n,m:o,mx:s,my:i,mt:r,mr:a,mb:l,ml:c,p:u,px:f,py:d,pt:h,pr:p,pb:g,pl:m,gap:w,xGap:x,yGap:y,row:S,flex:_,relative:M,absolute:T,display:P,overflow:D,absoluteFill:F,center:j,justifyContent:$,alignItems:O,alignSelf:V,borderWidth:z,borderBottomWidth:N,borderColor:E,borderRadius:R,borderStyle:A,border:I,zIndex:Y,minWidth:K,minHeight:U,maxWidth:re,maxHeight:J,flexWrap:ne,flexGrow:B,flexShrink:X,flexBasis:oe,backgroundColor:de,position:le,top:ke,right:nt,bottom:ot,left:st,...it}=e;return{spacers:{h:t,w:n,m:o,mx:s,my:i,mt:r,mr:a,mb:l,ml:c,p:u,px:f,py:d,pt:h,pr:p,pb:g,pl:m,gap:w,xGap:x,yGap:y,row:S,flex:_,relative:M,absolute:T,display:P,overflow:D,absoluteFill:F,center:j,justifyContent:$,alignItems:O,alignSelf:V,borderWidth:z,borderBottomWidth:N,borderColor:E,borderRadius:R,borderStyle:A,border:I,zIndex:Y,minWidth:K,minHeight:U,maxWidth:re,maxHeight:J,flexWrap:ne,flexGrow:B,flexShrink:X,flexBasis:oe,backgroundColor:de,position:le,top:ke,right:nt,bottom:ot,left:st},rest:it}}const eu=e=>k.css({display:e.display??"flex",flexDirection:e.row?"row":"column",height:e.h==="screen"?"100vh":e.h==="full"?"100%":e.h,width:e.w==="screen"?"100vw":e.w==="full"?"100%":e.w,margin:e.m,marginTop:e.mt??e.my,marginBottom:e.mb??e.my,marginLeft:e.ml??e.mx,marginRight:e.mr??e.mx,padding:e.p,paddingTop:e.pt??e.py,paddingBottom:e.pb??e.py,paddingLeft:e.pl??e.px,paddingRight:e.pr??e.px,gap:e.gap,columnGap:e.xGap,rowGap:e.yGap,justifyContent:e.center?"center":e.justifyContent,alignItems:e.center?"center":e.alignItems,alignSelf:e.alignSelf,borderWidth:e.borderWidth,borderBottomWidth:e.borderBottomWidth,borderColor:e.borderColor,borderRadius:e.borderRadius,borderStyle:e.borderStyle,border:e.border,zIndex:e.zIndex,overflow:e.overflow,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,flex:e.flex===!0?1:e.flex,flexWrap:e.flexWrap,flexGrow:e.flexGrow,flexShrink:e.flexShrink,flexBasis:e.flexBasis,backgroundColor:e.backgroundColor,position:e?.position?e?.position:e?.absolute?"absolute":e?.relative?"relative":void 0,...e.absoluteFill&&{position:"absolute",top:0,right:0,bottom:0,left:0},top:e?.top,right:e?.right,bottom:e?.bottom,left:e?.left}),L=C.forwardRef(({className:e,children:t,...n},o)=>{const{spacers:s,rest:i}=Qc(n),r=C.useMemo(()=>eu(s),[s]);return v.jsx("div",{ref:o,className:k.cx(r,e),...i,children:t})});L.displayName="Box";const tu="_loader_1qleq_8",nu={loader:tu},pa=({color:e="var(--text-accent)"})=>v.jsx("span",{className:k.cx(nu.loader,k.css({"--loader-color":e}))}),ma=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));function ou(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var io={exports:{}};var Ci;function su(){return Ci||(Ci=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",r=0;r<arguments.length;r++){var a=arguments[r];a&&(i=s(i,o(a)))}return i}function o(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var r="";for(var a in i)t.call(i,a)&&i[a]&&(r=s(r,a));return r}function s(i,r){return r?i?i+" "+r:i+r:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(io)),io.exports}var iu=su();const lt=ou(iu),ru="_rippleOverlay_s2kim_8",au="_ripple_s2kim_8",Si={rippleOverlay:ru,ripple:au},ro="button, a, input, label, [role='button'], [data-ripple]";function lu(e){if(typeof e.composedPath=="function")return e.composedPath();const t=[];let n=e.target;for(;n;)t.push(n),n=n.parentNode||n.host;return t.push(window),t}const pt=C.forwardRef(({color:e="rgba(0,0,0,0.18)",duration:t=1e3,radius:n="auto",className:o},s)=>{const i=C.useRef(null),[r,a]=C.useState([]),l=C.useRef([]),c=C.useRef(1),u=C.useRef(null),f=()=>{l.current.map(g=>clearTimeout(g)),l.current=[]},d=C.useCallback((g,m,w,x)=>{if(typeof window>"u")return;const y=w.getBoundingClientRect(),S=n==="auto"?Math.max(y.width,y.height)*2:n,_=g-x.left,M=m-x.top,T=Math.max(0,y.top-x.top),P=Math.max(0,y.left-x.left),D=Math.max(0,x.right-y.right),F=Math.max(0,x.bottom-y.bottom),$=window.getComputedStyle(w).borderRadius||"0px",O=c.current++,V={id:O,left:_-S/2,top:M-S/2,size:Math.ceil(S),clip:{top:Math.round(T),right:Math.round(D),bottom:Math.round(F),left:Math.round(P)},borderRadius:$};a(N=>[...N,V]);const z=window.setTimeout(()=>{a(N=>N.filter(E=>E.id!==O))},t+80);l.current.push(z)},[t,n]),h=C.useCallback(g=>{try{if(!i.current)return;const m=i.current,w=m.parentElement;if(!w)return;const x=lu(g);let y=null;for(const P of x)if(P instanceof Element){if(P===w)break;if(P.matches&&P.matches(ro)){y=P;break}}if(y||(y=w),y.closest&&(y.closest("[disabled]")||y.getAttribute("aria-disabled")==="true"||y.classList.contains("ripple-disabled")))return;const S=g.target;if(S?.closest&&(S.closest("[disabled]")||S.getAttribute?.("aria-disabled")==="true"))return;const _=m.getBoundingClientRect(),{clientX:M}=g,{clientY:T}=g;d(M,T,y,_)}catch{}},[d]),p=C.useCallback(g=>{if(!i.current||!(g.key==="Enter"||g.key===" "))return;const m=i.current,w=m.parentElement;if(!w)return;const x=document.activeElement;let y=null;if(x instanceof Element&&x.matches(ro)&&(y=x),y||(y=w),y.closest&&(y.closest("[disabled]")||y.getAttribute("aria-disabled")==="true"))return;const S=m.getBoundingClientRect(),_=y.getBoundingClientRect().left+y.getBoundingClientRect().width/2,M=y.getBoundingClientRect().top+y.getBoundingClientRect().height/2;d(_,M,y,S)},[d]);return C.useImperativeHandle(s,()=>({trigger:({center:g=!0,x:m,y:w}={})=>{const x=i.current;if(!x)return;const y=x.parentElement;if(!y)return;const S=x.getBoundingClientRect(),_=document.activeElement instanceof Element&&document.activeElement.matches(ro)?document.activeElement:y,M=g?_.getBoundingClientRect().left+_.getBoundingClientRect().width/2:m??S.left+S.width/2,T=g?_.getBoundingClientRect().top+_.getBoundingClientRect().height/2:w??S.top+S.height/2;d(M,T,_,S)}}),[d]),C.useEffect(()=>{const g=i.current;if(!g)return;const m=g.parentElement;if(!m||typeof window>"u")return;const w=window.getComputedStyle(m);let x=!1;return w.position==="static"&&(m.style.position="relative",x=!0,u.current=m),m.addEventListener("pointerdown",h,!0),m.addEventListener("keydown",p),()=>{m.removeEventListener("pointerdown",h,!0),m.removeEventListener("keydown",p),x&&u.current&&(u.current.style.position="",u.current=null),f()}},[h,p]),C.useEffect(()=>()=>f(),[]),v.jsx("div",{ref:i,className:`${Si.rippleOverlay} ${o??""}`,"aria-hidden":!0,children:r.map(g=>v.jsx("span",{className:Si.ripple,style:{left:`${g.left}px`,top:`${g.top}px`,width:`${g.size}px`,height:`${g.size}px`,backgroundColor:e,animationDuration:`${t}ms`,clipPath:`inset(${g.clip.top}px ${g.clip.right}px ${g.clip.bottom}px ${g.clip.left}px round ${g.borderRadius})`}},g.id))})});function mt(e,t){const{current:n}=C.useRef(e!==void 0),[o,s]=C.useState(t),i=n?e:o,r=C.useCallback(a=>{n||s(a)},[]);return[i,r]}function Wn(e,t,n,o=""){if(n)return e[`${t}_${n}${o}`]}function Xt(e,t,n){return Wn(e,t,n,"Size")}const cu="_button_11ykb_8",uu="_button_primary_11ykb_19",du="_button_secondary_11ykb_22",fu="_button_negative_11ykb_25",hu="_button_positive_11ykb_28",gu="_button_warning_11ykb_31",pu="_button_neutral_11ykb_34",mu="_button_mdSize_11ykb_118",vu="_button_smSize_11ykb_128",yu="_button_xsSize_11ykb_138",ao={button:cu,button_primary:uu,button_secondary:du,button_negative:fu,button_positive:hu,button_warning:gu,button_neutral:pu,"button_neutral-white":"_button_neutral-white_11ykb_37","button_no-bg":"_button_no-bg_11ykb_40",button_mdSize:mu,button_smSize:vu,button_xsSize:yu};function Yt({attr:e,children:t,className:n,type:o="button",color:s="primary",size:i="md",...r}){const a="button";return v.jsxs("button",{...e,...r,type:o,className:lt(ao[a],n,Xt(ao,a,i),Wn(ao,a,s)),children:[v.jsx(pt,{}),t]})}const va=C.createContext({isOpen:!1,onClose:()=>{}}),wu=()=>C.useContext(va),xu="_overlay_1gnp0_8",Cu="_modal_1gnp0_12",Su="_closeButton_1gnp0_28",bu="_size_lg_1gnp0_35",_u="_size_md_1gnp0_38",Ru="_size_sm_1gnp0_41",fn={overlay:xu,modal:Cu,"modal-animation":"_modal-animation_1gnp0_1",closeButton:Su,size_lg:bu,size_md:_u,size_sm:Ru},ya=C.forwardRef(({isOpen:e,onClose:t,overlayClassName:n,modalClassName:o,size:s="md",closeOnBackdropClick:i=!0,closeOnEsc:r=!0,disableBodyScroll:a=!0,showAbsoluteCloseButton:l=!1,children:c},u)=>{C.useEffect(()=>{if(a&&e&&typeof window<"u"&&typeof document<"u"){const h=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=h}}},[e,a]);const f=C.useCallback(h=>{h.key==="Escape"&&t()},[t]);C.useEffect(()=>{if(typeof window<"u"&&typeof document<"u"&&r&&e)return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[e,r,f]);const d=C.useCallback(h=>{i&&h.target===h.currentTarget&&t()},[i,t]);return e?v.jsx(un,{children:v.jsx(va.Provider,{value:{isOpen:e,onClose:t},children:v.jsx(L,{position:"fixed",top:0,right:0,bottom:0,left:0,row:!0,center:!0,flex:1,onClick:d,backgroundColor:"var(--fill-bg-overlay-primary)",className:k.cx(fn.overlay,n),zIndex:1,children:v.jsxs(L,{ref:u,className:k.cx(fn.modal,fn[`size_${s}`],o),relative:!0,children:[l&&v.jsx(Yt,{className:fn.closeButton,onClick:t,color:"neutral",children:v.jsx(ma,{})}),c]})})})}):null});ya.displayName="Modal";const Eu="_footer_1bo08_8",Pu={footer:Eu},wa=C.forwardRef(({children:e,row:t=!0,flex:n=!0,gap:o="var(--spacing-lg)",p:s="var(--spacing-2xl)",className:i,...r},a)=>v.jsx(L,{flex:n,row:t,gap:o,p:s,className:k.cx(Pu.footer,i),ref:a,...r,children:e}));wa.displayName="ModalFooter";const Ss=C.createContext({});function bs(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const _s=typeof window<"u",xa=_s?C.useLayoutEffect:C.useEffect,Gn=C.createContext(null);function Rs(e,t){e.indexOf(t)===-1&&e.push(t)}function Es(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ze=(e,t,n)=>n>t?t:n<e?e:n;function No(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Vt=()=>{},He=()=>{};process.env.NODE_ENV!=="production"&&(Vt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(No(t,n))},He=(e,t,n)=>{if(!e)throw new Error(No(t,n))});const We={},Ca=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Sa(e){return typeof e=="object"&&e!==null}const ba=e=>/^0[^.\s]+$/u.test(e);function Ps(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ee=e=>e,Mu=(e,t)=>n=>t(e(n)),sn=(...e)=>e.reduce(Mu),Zt=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Ms{constructor(){this.subscriptions=[]}add(t){return Rs(this.subscriptions,t),()=>Es(this.subscriptions,t)}notify(t,n,o){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,o);else for(let i=0;i<s;i++){const r=this.subscriptions[i];r&&r(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ve=e=>e*1e3,Re=e=>e/1e3;function _a(e,t){return t?e*(1e3/t):0}const bi=new Set;function Ts(e,t,n){e||bi.has(t)||(console.warn(No(t,n)),bi.add(t))}const Ra=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Tu=1e-7,Au=12;function Vu(e,t,n,o,s){let i,r,a=0;do r=t+(n-t)/2,i=Ra(r,o,s)-e,i>0?n=r:t=r;while(Math.abs(i)>Tu&&++a<Au);return r}function rn(e,t,n,o){if(e===t&&n===o)return Ee;const s=i=>Vu(i,0,1,e,n);return i=>i===0||i===1?i:Ra(s(i),t,o)}const Ea=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Pa=e=>t=>1-e(1-t),Ma=rn(.33,1.53,.69,.99),As=Pa(Ma),Ta=Ea(As),Aa=e=>(e*=2)<1?.5*As(e):.5*(2-Math.pow(2,-10*(e-1))),Vs=e=>1-Math.sin(Math.acos(e)),Va=Pa(Vs),Da=Ea(Vs),Du=rn(.42,0,1,1),ku=rn(0,0,.58,1),ka=rn(.42,0,.58,1),Fu=e=>Array.isArray(e)&&typeof e[0]!="number",Fa=e=>Array.isArray(e)&&typeof e[0]=="number",_i={linear:Ee,easeIn:Du,easeInOut:ka,easeOut:ku,circIn:Vs,circInOut:Da,circOut:Va,backIn:As,backInOut:Ta,backOut:Ma,anticipate:Aa},Lu=e=>typeof e=="string",Ri=e=>{if(Fa(e)){He(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,s]=e;return rn(t,n,o,s)}else if(Lu(e))return He(_i[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),_i[e];return e},hn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Iu(e,t){let n=new Set,o=new Set,s=!1,i=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){r.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,f=!1,d=!1)=>{const p=d&&s?n:o;return f&&r.add(u),p.has(u)||p.add(u),u},cancel:u=>{o.delete(u),r.delete(u)},process:u=>{if(a=u,s){i=!0;return}s=!0,[n,o]=[o,n],n.forEach(l),n.clear(),s=!1,i&&(i=!1,c.process(u))}};return c}const ju=40;function La(e,t){let n=!1,o=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,r=hn.reduce((y,S)=>(y[S]=Iu(i),y),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:f,preRender:d,render:h,postRender:p}=r,g=()=>{const y=We.useManualTiming?s.timestamp:performance.now();n=!1,We.useManualTiming||(s.delta=o?1e3/60:Math.max(Math.min(y-s.timestamp,ju),1)),s.timestamp=y,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),f.process(s),d.process(s),h.process(s),p.process(s),s.isProcessing=!1,n&&t&&(o=!1,e(g))},m=()=>{n=!0,o=!0,s.isProcessing||e(g)};return{schedule:hn.reduce((y,S)=>{const _=r[S];return y[S]=(M,T=!1,P=!1)=>(n||m(),_.schedule(M,T,P)),y},{}),cancel:y=>{for(let S=0;S<hn.length;S++)r[hn[S]].cancel(y)},state:s,steps:r}}const{schedule:te,cancel:Ye,state:fe,steps:lo}=La(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ee,!0);let En;function $u(){En=void 0}const ye={now:()=>(En===void 0&&ye.set(fe.isProcessing||We.useManualTiming?fe.timestamp:performance.now()),En),set:e=>{En=e,queueMicrotask($u)}},Ia=e=>t=>typeof t=="string"&&t.startsWith(e),ja=Ia("--"),Ou=Ia("var(--"),Ds=e=>Ou(e)?Nu.test(e.split("/*")[0].trim()):!1,Nu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Dt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Jt={...Dt,transform:e=>ze(0,1,e)},gn={...Dt,default:1},Gt=e=>Math.round(e*1e5)/1e5,ks=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Bu(e){return e==null}const zu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Fs=(e,t)=>n=>!!(typeof n=="string"&&zu.test(n)&&n.startsWith(e)||t&&!Bu(n)&&Object.prototype.hasOwnProperty.call(n,t)),$a=(e,t,n)=>o=>{if(typeof o!="string")return o;const[s,i,r,a]=o.match(ks);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Hu=e=>ze(0,255,e),co={...Dt,transform:e=>Math.round(Hu(e))},ct={test:Fs("rgb","red"),parse:$a("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+co.transform(e)+", "+co.transform(t)+", "+co.transform(n)+", "+Gt(Jt.transform(o))+")"};function Wu(e){let t="",n="",o="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,o+=o,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:s?parseInt(s,16)/255:1}}const Bo={test:Fs("#"),parse:Wu,transform:ct.transform},an=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ke=an("deg"),Le=an("%"),G=an("px"),Gu=an("vh"),Uu=an("vw"),Ei={...Le,parse:e=>Le.parse(e)/100,transform:e=>Le.transform(e*100)},xt={test:Fs("hsl","hue"),parse:$a("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Le.transform(Gt(t))+", "+Le.transform(Gt(n))+", "+Gt(Jt.transform(o))+")"},ae={test:e=>ct.test(e)||Bo.test(e)||xt.test(e),parse:e=>ct.test(e)?ct.parse(e):xt.test(e)?xt.parse(e):Bo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ct.transform(e):xt.transform(e),getAnimatableNone:e=>{const t=ae.parse(e);return t.alpha=0,ae.transform(t)}},Ku=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qu(e){return isNaN(e)&&typeof e=="string"&&(e.match(ks)?.length||0)+(e.match(Ku)?.length||0)>0}const Oa="number",Na="color",Xu="var",Yu="var(",Pi="${}",Zu=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Qt(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(Zu,l=>(ae.test(l)?(o.color.push(i),s.push(Na),n.push(ae.parse(l))):l.startsWith(Yu)?(o.var.push(i),s.push(Xu),n.push(l)):(o.number.push(i),s.push(Oa),n.push(parseFloat(l))),++i,Pi)).split(Pi);return{values:n,split:a,indexes:o,types:s}}function Ba(e){return Qt(e).values}function za(e){const{split:t,types:n}=Qt(e),o=t.length;return s=>{let i="";for(let r=0;r<o;r++)if(i+=t[r],s[r]!==void 0){const a=n[r];a===Oa?i+=Gt(s[r]):a===Na?i+=ae.transform(s[r]):i+=s[r]}return i}}const Ju=e=>typeof e=="number"?0:ae.test(e)?ae.getAnimatableNone(e):e;function Qu(e){const t=Ba(e);return za(e)(t.map(Ju))}const Ze={test:qu,parse:Ba,createTransformer:za,getAnimatableNone:Qu};function uo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ed({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let s=0,i=0,r=0;if(!t)s=i=r=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=uo(l,a,e+1/3),i=uo(l,a,e),r=uo(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(r*255),alpha:o}}function Fn(e,t){return n=>n>0?t:e}const ie=(e,t,n)=>e+(t-e)*n,fo=(e,t,n)=>{const o=e*e,s=n*(t*t-o)+o;return s<0?0:Math.sqrt(s)},td=[Bo,ct,xt],nd=e=>td.find(t=>t.test(e));function Mi(e){const t=nd(e);if(Vt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===xt&&(n=ed(n)),n}const Ti=(e,t)=>{const n=Mi(e),o=Mi(t);if(!n||!o)return Fn(e,t);const s={...n};return i=>(s.red=fo(n.red,o.red,i),s.green=fo(n.green,o.green,i),s.blue=fo(n.blue,o.blue,i),s.alpha=ie(n.alpha,o.alpha,i),ct.transform(s))},zo=new Set(["none","hidden"]);function od(e,t){return zo.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function sd(e,t){return n=>ie(e,t,n)}function Ls(e){return typeof e=="number"?sd:typeof e=="string"?Ds(e)?Fn:ae.test(e)?Ti:ad:Array.isArray(e)?Ha:typeof e=="object"?ae.test(e)?Ti:id:Fn}function Ha(e,t){const n=[...e],o=n.length,s=e.map((i,r)=>Ls(i)(i,t[r]));return i=>{for(let r=0;r<o;r++)n[r]=s[r](i);return n}}function id(e,t){const n={...e,...t},o={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(o[s]=Ls(e[s])(e[s],t[s]));return s=>{for(const i in o)n[i]=o[i](s);return n}}function rd(e,t){const n=[],o={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],r=e.indexes[i][o[i]],a=e.values[r]??0;n[s]=a,o[i]++}return n}const ad=(e,t)=>{const n=Ze.createTransformer(t),o=Qt(e),s=Qt(t);return o.indexes.var.length===s.indexes.var.length&&o.indexes.color.length===s.indexes.color.length&&o.indexes.number.length>=s.indexes.number.length?zo.has(e)&&!s.values.length||zo.has(t)&&!o.values.length?od(e,t):sn(Ha(rd(o,s),s.values),n):(Vt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Fn(e,t))};function Wa(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ie(e,t,n):Ls(e)(e,t)}const ld=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>te.update(t,n),stop:()=>Ye(t),now:()=>fe.isProcessing?fe.timestamp:ye.now()}},Ga=(e,t,n=10)=>{let o="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)o+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Ln=2e4;function Is(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<Ln;)t+=n,o=e.next(t);return t>=Ln?1/0:t}function cd(e,t=100,n){const o=n({...e,keyframes:[0,t]}),s=Math.min(Is(o),Ln);return{type:"keyframes",ease:i=>o.next(s*i).value/t,duration:Re(s)}}const ud=5;function Ua(e,t,n){const o=Math.max(t-ud,0);return _a(n-e(o),t-o)}const se={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ho=.001;function dd({duration:e=se.duration,bounce:t=se.bounce,velocity:n=se.velocity,mass:o=se.mass}){let s,i;Vt(e<=Ve(se.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-t;r=ze(se.minDamping,se.maxDamping,r),e=ze(se.minDuration,se.maxDuration,Re(e)),r<1?(s=c=>{const u=c*r,f=u*e,d=u-n,h=Ho(c,r),p=Math.exp(-f);return ho-d/h*p},i=c=>{const f=c*r*e,d=f*n+n,h=Math.pow(r,2)*Math.pow(c,2)*e,p=Math.exp(-f),g=Ho(Math.pow(c,2),r);return(-s(c)+ho>0?-1:1)*((d-h)*p)/g}):(s=c=>{const u=Math.exp(-c*e),f=(c-n)*e+1;return-ho+u*f},i=c=>{const u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});const a=5/e,l=hd(s,i,a);if(e=Ve(e),isNaN(l))return{stiffness:se.stiffness,damping:se.damping,duration:e};{const c=Math.pow(l,2)*o;return{stiffness:c,damping:r*2*Math.sqrt(o*c),duration:e}}}const fd=12;function hd(e,t,n){let o=n;for(let s=1;s<fd;s++)o=o-e(o)/t(o);return o}function Ho(e,t){return e*Math.sqrt(1-t*t)}const gd=["duration","bounce"],pd=["stiffness","damping","mass"];function Ai(e,t){return t.some(n=>e[n]!==void 0)}function md(e){let t={velocity:se.velocity,stiffness:se.stiffness,damping:se.damping,mass:se.mass,isResolvedFromDuration:!1,...e};if(!Ai(e,pd)&&Ai(e,gd))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),s=o*o,i=2*ze(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:se.mass,stiffness:s,damping:i}}else{const n=dd(e);t={...t,...n,mass:se.mass},t.isResolvedFromDuration=!0}return t}function In(e=se.visualDuration,t=se.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:s}=n;const i=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:f,velocity:d,isResolvedFromDuration:h}=md({...n,velocity:-Re(n.velocity||0)}),p=d||0,g=c/(2*Math.sqrt(l*u)),m=r-i,w=Re(Math.sqrt(l/u)),x=Math.abs(m)<5;o||(o=x?se.restSpeed.granular:se.restSpeed.default),s||(s=x?se.restDelta.granular:se.restDelta.default);let y;if(g<1){const _=Ho(w,g);y=M=>{const T=Math.exp(-g*w*M);return r-T*((p+g*w*m)/_*Math.sin(_*M)+m*Math.cos(_*M))}}else if(g===1)y=_=>r-Math.exp(-w*_)*(m+(p+w*m)*_);else{const _=w*Math.sqrt(g*g-1);y=M=>{const T=Math.exp(-g*w*M),P=Math.min(_*M,300);return r-T*((p+g*w*m)*Math.sinh(P)+_*m*Math.cosh(P))/_}}const S={calculatedDuration:h&&f||null,next:_=>{const M=y(_);if(h)a.done=_>=f;else{let T=_===0?p:0;g<1&&(T=_===0?Ve(p):Ua(y,_,M));const P=Math.abs(T)<=o,D=Math.abs(r-M)<=s;a.done=P&&D}return a.value=a.done?r:M,a},toString:()=>{const _=Math.min(Is(S),Ln),M=Ga(T=>S.next(_*T).value,_,30);return _+"ms "+M},toTransition:()=>{}};return S}In.applyToOptions=e=>{const t=cd(e,100,In);return e.ease=t.ease,e.duration=Ve(t.duration),e.type="keyframes",e};function Wo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=e[0],d={done:!1,value:f},h=P=>a!==void 0&&P<a||l!==void 0&&P>l,p=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let g=n*t;const m=f+g,w=r===void 0?m:r(m);w!==m&&(g=w-f);const x=P=>-g*Math.exp(-P/o),y=P=>w+x(P),S=P=>{const D=x(P),F=y(P);d.done=Math.abs(D)<=c,d.value=d.done?w:F};let _,M;const T=P=>{h(d.value)&&(_=P,M=In({keyframes:[d.value,p(d.value)],velocity:Ua(y,P,d.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:P=>{let D=!1;return!M&&_===void 0&&(D=!0,S(P),T(P)),_!==void 0&&P>=_?M.next(P-_):(!D&&S(P),d)}}}function vd(e,t,n){const o=[],s=n||We.mix||Wa,i=e.length-1;for(let r=0;r<i;r++){let a=s(e[r],e[r+1]);if(t){const l=Array.isArray(t)?t[r]||Ee:t;a=sn(l,a)}o.push(a)}return o}function yd(e,t,{clamp:n=!0,ease:o,mixer:s}={}){const i=e.length;if(He(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const r=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=vd(t,o,s),l=a.length,c=u=>{if(r&&u<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const d=Zt(e[f],e[f+1],u);return a[f](d)};return n?u=>c(ze(e[0],e[i-1],u)):c}function wd(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const s=Zt(0,t,o);e.push(ie(n,1,s))}}function xd(e){const t=[0];return wd(t,e.length-1),t}function Cd(e,t){return e.map(n=>n*t)}function Sd(e,t){return e.map(()=>t||ka).splice(0,e.length-1)}function Ct({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const s=Fu(o)?o.map(Ri):Ri(o),i={done:!1,value:t[0]},r=Cd(n&&n.length===t.length?n:xd(t),e),a=yd(r,t,{ease:Array.isArray(s)?s:Sd(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const bd=e=>e!==null;function js(e,{repeat:t,repeatType:n="loop"},o,s=1){const i=e.filter(bd),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||o===void 0?i[a]:o}const _d={decay:Wo,inertia:Wo,tween:Ct,keyframes:Ct,spring:In};function Ka(e){typeof e.type=="string"&&(e.type=_d[e.type])}class $s{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Rd=e=>e/100;class Os extends $s{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==ye.now()&&this.tick(ye.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ka(t);const{type:n=Ct,repeat:o=0,repeatDelay:s=0,repeatType:i,velocity:r=0}=t;let{keyframes:a}=t;const l=n||Ct;process.env.NODE_ENV!=="production"&&l!==Ct&&He(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Ct&&typeof a[0]!="number"&&(this.mixKeyframes=sn(Rd,Wa(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=Is(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(o+1)-s,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:o,totalDuration:s,mixKeyframes:i,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return o.next(0);const{delay:c=0,keyframes:u,repeat:f,repeatType:d,repeatDelay:h,type:p,onUpdate:g,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?w<0:w>s;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let y=this.currentTime,S=o;if(f){const P=Math.min(this.currentTime,s)/a;let D=Math.floor(P),F=P%1;!F&&P>=1&&(F=1),F===1&&D--,D=Math.min(D,f+1),D%2&&(d==="reverse"?(F=1-F,h&&(F-=h/a)):d==="mirror"&&(S=r)),y=ze(0,1,F)*a}const _=x?{done:!1,value:u[0]}:S.next(y);i&&(_.value=i(_.value));let{done:M}=_;!x&&l!==null&&(M=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return T&&p!==Wo&&(_.value=js(u,this.options,m,this.speed)),g&&g(_.value),T&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return Re(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Re(t)}get time(){return Re(this.currentTime)}set time(t){t=Ve(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ye.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Re(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=ld,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ye.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Ed(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ut=e=>e*180/Math.PI,Go=e=>{const t=ut(Math.atan2(e[1],e[0]));return Uo(t)},Pd={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Go,rotateZ:Go,skewX:e=>ut(Math.atan(e[1])),skewY:e=>ut(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Uo=e=>(e=e%360,e<0&&(e+=360),e),Vi=Go,Di=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ki=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Md={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Di,scaleY:ki,scale:e=>(Di(e)+ki(e))/2,rotateX:e=>Uo(ut(Math.atan2(e[6],e[5]))),rotateY:e=>Uo(ut(Math.atan2(-e[2],e[0]))),rotateZ:Vi,rotate:Vi,skewX:e=>ut(Math.atan(e[4])),skewY:e=>ut(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ko(e){return e.includes("scale")?1:0}function qo(e,t){if(!e||e==="none")return Ko(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,s;if(n)o=Md,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Pd,s=a}if(!s)return Ko(t);const i=o[t],r=s[1].split(",").map(Ad);return typeof i=="function"?i(r):r[i]}const Td=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return qo(n,t)};function Ad(e){return parseFloat(e.trim())}const kt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ft=new Set(kt),Fi=e=>e===Dt||e===G,Vd=new Set(["x","y","z"]),Dd=kt.filter(e=>!Vd.has(e));function kd(e){const t=[];return Dd.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const ft={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>qo(t,"x"),y:(e,{transform:t})=>qo(t,"y")};ft.translateX=ft.x;ft.translateY=ft.y;const ht=new Set;let Xo=!1,Yo=!1,Zo=!1;function qa(){if(Yo){const e=Array.from(ht).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const s=kd(o);s.length&&(n.set(o,s),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const s=n.get(o);s&&s.forEach(([i,r])=>{o.getValue(i)?.set(r)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Yo=!1,Xo=!1,ht.forEach(e=>e.complete(Zo)),ht.clear()}function Xa(){ht.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yo=!0)})}function Fd(){Zo=!0,Xa(),qa(),Zo=!1}class Ns{constructor(t,n,o,s,i,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=s,this.element=i,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(ht.add(this),Xo||(Xo=!0,te.read(Xa),te.resolveKeyframes(qa))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:s}=this;if(t[0]===null){const i=s?.get(),r=t[t.length-1];if(i!==void 0)t[0]=i;else if(o&&n){const a=o.readValue(n,r);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=r),s&&i===void 0&&s.set(t[0])}Ed(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ht.delete(this)}cancel(){this.state==="scheduled"&&(ht.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ld=e=>e.startsWith("--");function Id(e,t,n){Ld(t)?e.style.setProperty(t,n):e.style[t]=n}const jd=Ps(()=>window.ScrollTimeline!==void 0),$d={};function Od(e,t){const n=Ps(e);return()=>$d[t]??n()}const Ya=Od(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Wt=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,Li={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wt([0,.65,.55,1]),circOut:Wt([.55,0,1,.45]),backIn:Wt([.31,.01,.66,-.59]),backOut:Wt([.33,1.53,.69,.99])};function Za(e,t){if(e)return typeof e=="function"?Ya()?Ga(e,t):"ease-out":Fa(e)?Wt(e):Array.isArray(e)?e.map(n=>Za(n,t)||Li.easeOut):Li[e]}function Nd(e,t,n,{delay:o=0,duration:s=300,repeat:i=0,repeatType:r="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const f=Za(a,s);Array.isArray(f)&&(u.easing=f);const d={delay:o,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:r==="reverse"?"alternate":"normal"};return c&&(d.pseudoElement=c),e.animate(u,d)}function Ja(e){return typeof e=="function"&&"applyToOptions"in e}function Bd({type:e,...t}){return Ja(e)&&Ya()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class zd extends $s{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:o,keyframes:s,pseudoElement:i,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=r,this.options=t,He(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=Bd(t);this.animation=Nd(n,o,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=js(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Id(n,o,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Re(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Re(t)}get time(){return Re(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ve(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&jd()?(this.animation.timeline=t,Ee):n(this)}}const Qa={anticipate:Aa,backInOut:Ta,circInOut:Da};function Hd(e){return e in Qa}function Wd(e){typeof e.ease=="string"&&Hd(e.ease)&&(e.ease=Qa[e.ease])}const Ii=10;class Gd extends zd{constructor(t){Wd(t),Ka(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:o,onComplete:s,element:i,...r}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Os({...r,autoplay:!1}),l=Ve(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Ii).value,a.sample(l).value,Ii),a.stop()}}const ji=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ze.test(e)||e==="0")&&!e.startsWith("url("));function Ud(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Kd(e,t,n,o){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],r=ji(s,t),a=ji(i,t);return Vt(r===a,`You are trying to animate ${t} from "${s}" to "${i}". "${r?i:s}" is not an animatable value.`,"value-not-animatable"),!r||!a?!1:Ud(e)||(n==="spring"||Ja(n))&&o}function Jo(e){e.duration=0,e.type="keyframes"}const qd=new Set(["opacity","clipPath","filter","transform"]),Xd=Ps(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Yd(e){const{motionValue:t,name:n,repeatDelay:o,repeatType:s,damping:i,type:r}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return Xd()&&n&&qd.has(n)&&(n!=="transform"||!c)&&!l&&!o&&s!=="mirror"&&i!==0&&r!=="inertia"}const Zd=40;class Jd extends $s{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r="loop",keyframes:a,name:l,motionValue:c,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ye.now();const d={autoplay:t,delay:n,type:o,repeat:s,repeatDelay:i,repeatType:r,name:l,motionValue:c,element:u,...f},h=u?.KeyframeResolver||Ns;this.keyframeResolver=new h(a,(p,g,m)=>this.onKeyframesResolved(p,g,d,!m),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,o,s){this.keyframeResolver=void 0;const{name:i,type:r,velocity:a,delay:l,isHandoff:c,onUpdate:u}=o;this.resolvedAt=ye.now(),Kd(t,i,r,a)||((We.instantAnimations||!l)&&u?.(js(t,o,n)),t[0]=t[t.length-1],Jo(o),o.repeat=0);const d={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>Zd?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},h=!c&&Yd(d)?new Gd({...d,element:d.motionValue.owner.current}):new Os(d);h.finished.then(()=>this.notifyFinished()).catch(Ee),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Fd()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Qd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ef(e){const t=Qd.exec(e);if(!t)return[,];const[,n,o,s]=t;return[`--${n??o}`,s]}const tf=4;function el(e,t,n=1){He(n<=tf,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,s]=ef(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const r=i.trim();return Ca(r)?parseFloat(r):r}return Ds(s)?el(s,t,n+1):s}function Bs(e,t){return e?.[t]??e?.default??e}const tl=new Set(["width","height","top","left","right","bottom",...kt]),nf={test:e=>e==="auto",parse:e=>e},nl=e=>t=>t.test(e),ol=[Dt,G,Le,Ke,Uu,Gu,nf],$i=e=>ol.find(nl(e));function of(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ba(e):!0}const sf=new Set(["brightness","contrast","saturate","opacity"]);function rf(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(ks)||[];if(!o)return e;const s=n.replace(o,"");let i=sf.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+s+")"}const af=/\b([a-z-]*)\(.*?\)/gu,Qo={...Ze,getAnimatableNone:e=>{const t=e.match(af);return t?t.map(rf).join(" "):e}},Oi={...Dt,transform:Math.round},lf={rotate:Ke,rotateX:Ke,rotateY:Ke,rotateZ:Ke,scale:gn,scaleX:gn,scaleY:gn,scaleZ:gn,skew:Ke,skewX:Ke,skewY:Ke,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:Jt,originX:Ei,originY:Ei,originZ:G},zs={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,radius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,backgroundPositionX:G,backgroundPositionY:G,...lf,zIndex:Oi,fillOpacity:Jt,strokeOpacity:Jt,numOctaves:Oi},cf={...zs,color:ae,backgroundColor:ae,outlineColor:ae,fill:ae,stroke:ae,borderColor:ae,borderTopColor:ae,borderRightColor:ae,borderBottomColor:ae,borderLeftColor:ae,filter:Qo,WebkitFilter:Qo},sl=e=>cf[e];function il(e,t){let n=sl(e);return n!==Qo&&(n=Ze),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const uf=new Set(["auto","none","0"]);function df(e,t,n){let o=0,s;for(;o<e.length&&!s;){const i=e[o];typeof i=="string"&&!uf.has(i)&&Qt(i).values.length&&(s=e[o]),o++}if(s&&n)for(const i of t)e[i]=il(n,s)}class ff extends Ns{constructor(t,n,o,s,i){super(t,n,o,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),Ds(c))){const u=el(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!tl.has(o)||t.length!==2)return;const[s,i]=t,r=$i(s),a=$i(i);if(r!==a)if(Fi(r)&&Fi(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else ft[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let s=0;s<t.length;s++)(t[s]===null||of(t[s]))&&o.push(s);o.length&&df(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ft[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(o,s).jump(s,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=o.length-1,r=o[i];o[i]=ft[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function hf(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const s=n?.[e]??o.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const rl=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function al(e){return Sa(e)&&"offsetHeight"in e}const Ni=30,gf=e=>!isNaN(parseFloat(e));class pf{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const s=ye.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ye.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=gf(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ts(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ms);const o=this.events[t].add(n);return t==="change"?()=>{o(),te.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ni)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ni);return _a(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mt(e,t){return new pf(e,t)}const{schedule:Hs}=La(queueMicrotask,!1),Ae={x:!1,y:!1};function ll(){return Ae.x||Ae.y}function mf(e){return e==="x"||e==="y"?Ae[e]?null:(Ae[e]=!0,()=>{Ae[e]=!1}):Ae.x||Ae.y?null:(Ae.x=Ae.y=!0,()=>{Ae.x=Ae.y=!1})}function cl(e,t){const n=hf(e),o=new AbortController,s={passive:!0,...t,signal:o.signal};return[n,s,()=>o.abort()]}function Bi(e){return!(e.pointerType==="touch"||ll())}function vf(e,t,n={}){const[o,s,i]=cl(e,n),r=a=>{if(!Bi(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=f=>{Bi(f)&&(c(f),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,s)};return o.forEach(a=>{a.addEventListener("pointerenter",r,s)}),i}const ul=(e,t)=>t?e===t?!0:ul(e,t.parentElement):!1,Ws=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,yf=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wf(e){return yf.has(e.tagName)||e.tabIndex!==-1}const Pn=new WeakSet;function zi(e){return t=>{t.key==="Enter"&&e(t)}}function go(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const xf=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=zi(()=>{if(Pn.has(n))return;go(n,"down");const s=zi(()=>{go(n,"up")}),i=()=>go(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function Hi(e){return Ws(e)&&!ll()}function Cf(e,t,n={}){const[o,s,i]=cl(e,n),r=a=>{const l=a.currentTarget;if(!Hi(a))return;Pn.add(l);const c=t(l,a),u=(h,p)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),Pn.has(l)&&Pn.delete(l),Hi(h)&&typeof c=="function"&&c(h,{success:p})},f=h=>{u(h,l===window||l===document||n.useGlobalTarget||ul(l,h.target))},d=h=>{u(h,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",d,s)};return o.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,s),al(a)&&(a.addEventListener("focus",c=>xf(c,s)),!wf(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function dl(e){return Sa(e)&&"ownerSVGElement"in e}function Sf(e){return dl(e)&&e.tagName==="svg"}const ge=e=>!!(e&&e.getVelocity),bf=[...ol,ae,Ze],_f=e=>bf.find(nl(e)),Gs=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Wi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Rf(...e){return t=>{let n=!1;const o=e.map(s=>{const i=Wi(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<o.length;s++){const i=o[s];typeof i=="function"?i():Wi(e[s],null)}}}}function Ef(...e){return b.useCallback(Rf(...e),e)}class Pf extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=n.offsetParent,s=al(o)&&o.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Mf({children:e,isPresent:t,anchorX:n,root:o}){const s=C.useId(),i=C.useRef(null),r=C.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=C.useContext(Gs),l=Ef(i,e?.ref);return C.useInsertionEffect(()=>{const{width:c,height:u,top:f,left:d,right:h}=r.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${d}`:`right: ${h}`;i.current.dataset.motionPopId=s;const g=document.createElement("style");a&&(g.nonce=a);const m=o??document.head;return m.appendChild(g),g.sheet&&g.sheet.insertRule(`
|
|
2
|
+
[data-motion-pop-id="${s}"] {
|
|
7
3
|
position: absolute !important;
|
|
8
|
-
width: ${
|
|
9
|
-
height: ${
|
|
10
|
-
${
|
|
11
|
-
top: ${
|
|
4
|
+
width: ${c}px !important;
|
|
5
|
+
height: ${u}px !important;
|
|
6
|
+
${p}px !important;
|
|
7
|
+
top: ${f}px !important;
|
|
12
8
|
}
|
|
13
|
-
`),()=>{P.contains(T)&&P.removeChild(T)}},[e]),ae.jsx(WP,{isPresent:e,childRef:o,sizeRef:s,children:Re.cloneElement(n,{ref:l})})}const GP=({children:n,initial:e,isPresent:t,onExitComplete:i,custom:r,presenceAffectsLayout:o,mode:s,anchorX:a,root:l})=>{const u=Bb(UP),g=ge.useId();let m=!0,b=ge.useMemo(()=>(m=!1,{id:g,initial:e,isPresent:t,custom:r,onExitComplete:w=>{u.set(w,!0);for(const E of u.values())if(!E)return;i&&i()},register:w=>(u.set(w,!1),()=>u.delete(w))}),[t,u,i]);return o&&m&&(b={...b}),ge.useMemo(()=>{u.forEach((w,E)=>u.set(E,!1))},[t]),Re.useEffect(()=>{!t&&!u.size&&i&&i()},[t]),s==="popLayout"&&(n=ae.jsx(VP,{isPresent:t,anchorX:a,root:l,children:n})),ae.jsx(vm.Provider,{value:b,children:n})};function UP(){return new Map}function IT(n=!0){const e=ge.useContext(vm);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:i,register:r}=e,o=ge.useId();ge.useEffect(()=>{if(n)return r(o)},[n]);const s=ge.useCallback(()=>n&&i&&i(o),[o,i,n]);return!t&&i?[!1,s]:[!0]}const ip=n=>n.key||"";function Cx(n){const e=[];return ge.Children.forEach(n,t=>{ge.isValidElement(t)&&e.push(t)}),e}const XP=({children:n,custom:e,initial:t=!0,onExitComplete:i,presenceAffectsLayout:r=!0,mode:o="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[u,g]=IT(s),m=ge.useMemo(()=>Cx(n),[n]),b=s&&!u?[]:m.map(ip),w=ge.useRef(!0),E=ge.useRef(m),T=Bb(()=>new Map),[P,M]=ge.useState(m),[I,L]=ge.useState(m);US(()=>{w.current=!1,E.current=m;for(let G=0;G<I.length;G++){const J=ip(I[G]);b.includes(J)?T.delete(J):T.get(J)!==!0&&T.set(J,!1)}},[I,b.length,b.join("-")]);const H=[];if(m!==P){let G=[...m];for(let J=0;J<I.length;J++){const Y=I[J],$=ip(Y);b.includes($)||(G.splice(J,0,Y),H.push(Y))}return o==="wait"&&H.length&&(G=H),L(Cx(G)),M(m),null}process.env.NODE_ENV!=="production"&&o==="wait"&&I.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:W}=ge.useContext(Db);return ae.jsx(ae.Fragment,{children:I.map(G=>{const J=ip(G),Y=s&&!u?!1:m===I||b.includes(J),$=()=>{if(T.has(J))T.set(J,!0);else return;let re=!0;T.forEach(be=>{be||(re=!1)}),re&&(W?.(),L(E.current),s&&g?.(),i&&i())};return ae.jsx(GP,{isPresent:Y,initial:!w.current||t?void 0:!1,custom:e,presenceAffectsLayout:r,mode:o,root:l,onExitComplete:Y?void 0:$,anchorX:a,children:G},J)})})},DT=ge.createContext({strict:!1}),Sx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ld={};for(const n in Sx)Ld[n]={isEnabled:e=>Sx[n].some(t=>!!e[t])};function YP(n){for(const e in n)Ld[e]={...Ld[e],...n[e]}}const ZP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function rm(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||ZP.has(n)}let BT=n=>!rm(n);function KP(n){typeof n=="function"&&(BT=e=>e.startsWith("on")?!rm(e):n(e))}try{KP(require("@emotion/is-prop-valid").default)}catch{}function JP(n,e,t){const i={};for(const r in n)r==="values"&&typeof n.values=="object"||(BT(r)||t===!0&&rm(r)||!e&&!rm(r)||n.draggable&&r.startsWith("onDrag"))&&(i[r]=n[r]);return i}const ym=ge.createContext({});function bm(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Fg(n){return typeof n=="string"||Array.isArray(n)}const a0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],l0=["initial",...a0];function xm(n){return bm(n.animate)||l0.some(e=>Fg(n[e]))}function NT(n){return!!(xm(n)||n.variants)}function QP(n,e){if(xm(n)){const{initial:t,animate:i}=n;return{initial:t===!1||Fg(t)?t:void 0,animate:Fg(i)?i:void 0}}return n.inherit!==!1?e:{}}function jP(n){const{initial:e,animate:t}=QP(n,ge.useContext(ym));return ge.useMemo(()=>({initial:e,animate:t}),[Tx(e),Tx(t)])}function Tx(n){return Array.isArray(n)?n.join(" "):n}const Lg={};function qP(n){for(const e in n)Lg[e]=n[e],Yb(e)&&(Lg[e].isCSSVariable=!0)}function zT(n,{layout:e,layoutId:t}){return Vd.has(n)||n.startsWith("origin")||(e||t!==void 0)&&(!!Lg[n]||n==="opacity")}const $P={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eM=Wd.length;function tM(n,e,t){let i="",r=!0;for(let o=0;o<eM;o++){const s=Wd[o],a=n[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||t){const u=MT(a,i0[s]);if(!l){r=!1;const g=$P[s]||s;i+=`${g}(${u}) `}t&&(e[s]=u)}}return i=i.trim(),t?i=t(e,r?"":i):r&&(i="none"),i}function c0(n,e,t){const{style:i,vars:r,transformOrigin:o}=n;let s=!1,a=!1;for(const l in e){const u=e[l];if(Vd.has(l)){s=!0;continue}else if(Yb(l)){r[l]=u;continue}else{const g=MT(u,i0[l]);l.startsWith("origin")?(a=!0,o[l]=g):i[l]=g}}if(e.transform||(s||t?i.transform=tM(e,n.transform,t):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:g=0}=o;i.transformOrigin=`${l} ${u} ${g}`}}const u0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function HT(n,e,t){for(const i in e)!Rs(e[i])&&!zT(i,t)&&(n[i]=e[i])}function nM({transformTemplate:n},e){return ge.useMemo(()=>{const t=u0();return c0(t,e,n),Object.assign({},t.vars,t.style)},[e])}function iM(n,e){const t=n.style||{},i={};return HT(i,t,n),Object.assign(i,nM(n,e)),i}function rM(n,e){const t={},i=iM(n,e);return n.drag&&n.dragListener!==!1&&(t.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(t.tabIndex=0),t.style=i,t}const oM={offset:"stroke-dashoffset",array:"stroke-dasharray"},sM={offset:"strokeDashoffset",array:"strokeDasharray"};function aM(n,e,t=1,i=0,r=!0){n.pathLength=1;const o=r?oM:sM;n[o.offset]=kt.transform(-i);const s=kt.transform(e),a=kt.transform(t);n[o.array]=`${s} ${a}`}function WT(n,{attrX:e,attrY:t,attrScale:i,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...a},l,u,g){if(c0(n,a,u),l){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:m,style:b}=n;m.transform&&(b.transform=m.transform,delete m.transform),(b.transform||m.transformOrigin)&&(b.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),b.transform&&(b.transformBox=g?.transformBox??"fill-box",delete m.transformBox),e!==void 0&&(m.x=e),t!==void 0&&(m.y=t),i!==void 0&&(m.scale=i),r!==void 0&&aM(m,r,o,s,!1)}const VT=()=>({...u0(),attrs:{}}),GT=n=>typeof n=="string"&&n.toLowerCase()==="svg";function lM(n,e,t,i){const r=ge.useMemo(()=>{const o=VT();return WT(o,e,GT(i),n.transformTemplate,n.style),{...o.attrs,style:{...o.style}}},[e]);if(n.style){const o={};HT(o,n.style,n),r.style={...o,...r.style}}return r}const cM=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function h0(n){return typeof n!="string"||n.includes("-")?!1:!!(cM.indexOf(n)>-1||/[A-Z]/u.test(n))}function uM(n,e,t,{latestValues:i},r,o=!1){const a=(h0(n)?lM:rM)(e,i,r,n),l=JP(e,typeof n=="string",o),u=n!==ge.Fragment?{...l,...a,ref:t}:{},{children:g}=e,m=ge.useMemo(()=>Rs(g)?g.get():g,[g]);return ge.createElement(n,{...u,children:m})}function Ex(n){const e=[{},{}];return n?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function f0(n,e,t,i){if(typeof e=="function"){const[r,o]=Ex(i);e=e(t!==void 0?t:n.custom,r,o)}if(typeof e=="string"&&(e=n.variants&&n.variants[e]),typeof e=="function"){const[r,o]=Ex(i);e=e(t!==void 0?t:n.custom,r,o)}return e}function Xp(n){return Rs(n)?n.get():n}function hM({scrapeMotionValuesFromProps:n,createRenderState:e},t,i,r){return{latestValues:fM(t,i,r,n),renderState:e()}}function fM(n,e,t,i){const r={},o=i(n,{});for(const b in o)r[b]=Xp(o[b]);let{initial:s,animate:a}=n;const l=xm(n),u=NT(n);e&&u&&!l&&n.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let g=t?t.initial===!1:!1;g=g||s===!1;const m=g?a:s;if(m&&typeof m!="boolean"&&!bm(m)){const b=Array.isArray(m)?m:[m];for(let w=0;w<b.length;w++){const E=f0(n,b[w]);if(E){const{transitionEnd:T,transition:P,...M}=E;for(const I in M){let L=M[I];if(Array.isArray(L)){const H=g?L.length-1:0;L=L[H]}L!==null&&(r[I]=L)}for(const I in T)r[I]=T[I]}}}return r}const UT=n=>(e,t)=>{const i=ge.useContext(ym),r=ge.useContext(vm),o=()=>hM(n,e,i,r);return t?o():Bb(o)};function d0(n,e,t){const{style:i}=n,r={};for(const o in i)(Rs(i[o])||e.style&&Rs(e.style[o])||zT(o,n)||t?.getValue(o)?.liveStyle!==void 0)&&(r[o]=i[o]);return r}const dM=UT({scrapeMotionValuesFromProps:d0,createRenderState:u0});function XT(n,e,t){const i=d0(n,e,t);for(const r in n)if(Rs(n[r])||Rs(e[r])){const o=Wd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[o]=n[r]}return i}const gM=UT({scrapeMotionValuesFromProps:XT,createRenderState:VT}),pM=Symbol.for("motionComponentSymbol");function Ed(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function mM(n,e,t){return ge.useCallback(i=>{i&&n.onMount&&n.onMount(i),e&&(i?e.mount(i):e.unmount()),t&&(typeof t=="function"?t(i):Ed(t)&&(t.current=i))},[e])}const g0=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),vM="framerAppearId",YT="data-"+g0(vM),ZT=ge.createContext({});function yM(n,e,t,i,r){const{visualElement:o}=ge.useContext(ym),s=ge.useContext(DT),a=ge.useContext(vm),l=ge.useContext(s0).reducedMotion,u=ge.useRef(null);i=i||s.renderer,!u.current&&i&&(u.current=i(n,{visualState:e,parent:o,props:t,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const g=u.current,m=ge.useContext(ZT);g&&!g.projection&&r&&(g.type==="html"||g.type==="svg")&&bM(u.current,t,r,m);const b=ge.useRef(!1);ge.useInsertionEffect(()=>{g&&b.current&&g.update(t,a)});const w=t[YT],E=ge.useRef(!!w&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return US(()=>{g&&(b.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),E.current&&g.animationState&&g.animationState.animateChanges())}),ge.useEffect(()=>{g&&(!E.current&&g.animationState&&g.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),E.current=!1),g.enteringChildren=void 0)}),g}function bM(n,e,t,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:g}=e;n.projection=new t(n.latestValues,e["data-framer-portal-id"]?void 0:KT(n.parent)),n.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&Ed(a),visualElement:n,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,crossfade:g,layoutScroll:l,layoutRoot:u})}function KT(n){if(n)return n.options.allowProjection!==!1?n.projection:KT(n.parent)}function ev(n,{forwardMotionProps:e=!1}={},t,i){t&&YP(t);const r=h0(n)?gM:dM;function o(a,l){let u;const g={...ge.useContext(s0),...a,layoutId:xM(a)},{isStatic:m}=g,b=jP(a),w=r(a,m);if(!m&&Nb){wM(g,t);const E=CM(g);u=E.MeasureLayout,b.visualElement=yM(n,w,g,i,E.ProjectionNode)}return ae.jsxs(ym.Provider,{value:b,children:[u&&b.visualElement?ae.jsx(u,{visualElement:b.visualElement,...g}):null,uM(n,a,mM(w,b.visualElement,l),w,m,e)]})}o.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const s=ge.forwardRef(o);return s[pM]=n,s}function xM({layoutId:n}){const e=ge.useContext(Db).id;return e&&n!==void 0?e+"-"+n:n}function wM(n,e){const t=ge.useContext(DT).strict;if(process.env.NODE_ENV!=="production"&&e&&t){const i="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?zd(!1,i,"lazy-strict-mode"):Yh(!1,i,"lazy-strict-mode")}}function CM(n){const{drag:e,layout:t}=Ld;if(!e&&!t)return{};const i={...e,...t};return{MeasureLayout:e?.isEnabled(n)||t?.isEnabled(n)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function SM(n,e){if(typeof Proxy>"u")return ev;const t=new Map,i=(o,s)=>ev(o,s,n,e),r=(o,s)=>(process.env.NODE_ENV!=="production"&&Gb(!1,"motion() is deprecated. Use motion.create() instead."),i(o,s));return new Proxy(r,{get:(o,s)=>s==="create"?i:(t.has(s)||t.set(s,ev(s,void 0,n,e)),t.get(s))})}function JT({top:n,left:e,right:t,bottom:i}){return{x:{min:e,max:t},y:{min:n,max:i}}}function TM({x:n,y:e}){return{top:e.min,right:n.max,bottom:e.max,left:n.min}}function EM(n,e){if(!e)return n;const t=e({x:n.left,y:n.top}),i=e({x:n.right,y:n.bottom});return{top:t.y,left:t.x,bottom:i.y,right:i.x}}function tv(n){return n===void 0||n===1}function By({scale:n,scaleX:e,scaleY:t}){return!tv(n)||!tv(e)||!tv(t)}function Xf(n){return By(n)||QT(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function QT(n){return Rx(n.x)||Rx(n.y)}function Rx(n){return n&&n!=="0%"}function om(n,e,t){const i=n-t,r=e*i;return t+r}function kx(n,e,t,i,r){return r!==void 0&&(n=om(n,r,i)),om(n,t,i)+e}function Ny(n,e=0,t=1,i,r){n.min=kx(n.min,e,t,i,r),n.max=kx(n.max,e,t,i,r)}function jT(n,{x:e,y:t}){Ny(n.x,e.translate,e.scale,e.originPoint),Ny(n.y,t.translate,t.scale,t.originPoint)}const Px=.999999999999,Mx=1.0000000000001;function RM(n,e,t,i=!1){const r=t.length;if(!r)return;e.x=e.y=1;let o,s;for(let a=0;a<r;a++){o=t[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&kd(n,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,jT(n,s)),i&&Xf(o.latestValues)&&kd(n,o.latestValues))}e.x<Mx&&e.x>Px&&(e.x=1),e.y<Mx&&e.y>Px&&(e.y=1)}function Rd(n,e){n.min=n.min+e,n.max=n.max+e}function Ax(n,e,t,i,r=.5){const o=ir(n.min,n.max,r);Ny(n,e,t,o,i)}function kd(n,e){Ax(n.x,e.x,e.scaleX,e.scale,e.originX),Ax(n.y,e.y,e.scaleY,e.scale,e.originY)}function qT(n,e){return JT(EM(n.getBoundingClientRect(),e))}function kM(n,e,t){const i=qT(n,t),{scroll:r}=e;return r&&(Rd(i.x,r.offset.x),Rd(i.y,r.offset.y)),i}const _x=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pd=()=>({x:_x(),y:_x()}),Ox=()=>({min:0,max:0}),_r=()=>({x:Ox(),y:Ox()}),zy={current:null},$T={current:!1};function PM(){if($T.current=!0,!!Nb)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),e=()=>zy.current=n.matches;n.addEventListener("change",e),e()}else zy.current=!1}const MM=new WeakMap;function AM(n,e,t){for(const i in e){const r=e[i],o=t[i];if(Rs(r))n.addValue(i,r);else if(Rs(o))n.addValue(i,Fd(r,{owner:n}));else if(o!==r)if(n.hasValue(i)){const s=n.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=n.getStaticValue(i);n.addValue(i,Fd(s!==void 0?s:r,{owner:n}))}}for(const i in t)e[i]===void 0&&n.removeValue(i);return e}const Fx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class _M{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=Ka.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,Di.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=xm(t),this.isVariantNode=NT(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:g,...m}=this.scrapeMotionValuesFromProps(t,{},this);for(const b in m){const w=m[b];l[b]!==void 0&&Rs(w)&&w.set(l[b])}}mount(e){this.current=e,MM.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,i)=>this.bindToMotionValue(i,t)),$T.current||PM(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:zy.current,process.env.NODE_ENV!=="production"&&Gb(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),xf(this.notifyUpdate),xf(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Vd.has(e);i&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&Di.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),o&&o(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Ld){const t=Ld[e];if(!t)continue;const{isEnabled:i,Feature:r}=t;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_r()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let i=0;i<Fx.length;i++){const r=Fx[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o="on"+r,s=e[o];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=AM(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&t!==void 0&&(i=Fd(t===null?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(XS(i)||ZS(i))?i=parseFloat(i):!NP(i)&&wf.test(t)&&(i=PT(e,t)),this.setBaseTarget(e,Rs(i)?i.get():i)),Rs(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let i;if(typeof t=="string"||typeof t=="object"){const o=f0(this.props,t,this.presenceContext?.custom);o&&(i=o[e])}if(t&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Rs(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Vb),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){r0.render(this.render)}}class e1 extends _M{constructor(){super(...arguments),this.KeyframeResolver=RP}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Rs(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function t1(n,{style:e,vars:t},i,r){const o=n.style;let s;for(s in e)o[s]=e[s];r?.applyProjectionStyles(o,i);for(s in t)o.setProperty(s,t[s])}function OM(n){return window.getComputedStyle(n)}class FM extends e1{constructor(){super(...arguments),this.type="html",this.renderInstance=t1}readValueFromInstance(e,t){if(Vd.has(t))return this.projection?.isProjecting?Ay(t):Uk(e,t);{const i=OM(e),r=(Yb(t)?i.getPropertyValue(t):i[t])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return qT(e,t)}build(e,t,i){c0(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return d0(e,t,i)}}const n1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function LM(n,e,t,i){t1(n,e,void 0,i);for(const r in e.attrs)n.setAttribute(n1.has(r)?r:g0(r),e.attrs[r])}class IM extends e1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_r}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Vd.has(t)){const i=kT(t);return i&&i.default||0}return t=n1.has(t)?t:g0(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return XT(e,t,i)}build(e,t,i){WT(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,r){LM(e,t,i,r)}mount(e){this.isSVGTag=GT(e.tagName),super.mount(e)}}const DM=(n,e)=>h0(n)?new IM(e):new FM(e,{allowProjection:n!==ge.Fragment});function _d(n,e,t){const i=n.getProps();return f0(i,e,t!==void 0?t:i.custom,n)}const Hy=n=>Array.isArray(n);function BM(n,e,t){n.hasValue(e)?n.getValue(e).set(t):n.addValue(e,Fd(t))}function NM(n){return Hy(n)?n[n.length-1]||0:n}function zM(n,e){const t=_d(n,e);let{transitionEnd:i={},transition:r={},...o}=t||{};o={...o,...i};for(const s in o){const a=NM(o[s]);BM(n,s,a)}}function HM(n){return!!(Rs(n)&&n.add)}function Wy(n,e){const t=n.getValue("willChange");if(HM(t))return t.add(e);if(!t&&Zh.WillChange){const i=new Zh.WillChange("auto");n.addValue("willChange",i),i.add(e)}}function i1(n){return n.props[YT]}const WM=n=>n!==null;function VM(n,{repeat:e,repeatType:t="loop"},i){const r=n.filter(WM),o=e&&t!=="loop"&&e%2===1?0:r.length-1;return r[o]}const GM={type:"spring",stiffness:500,damping:25,restSpeed:10},UM=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),XM={type:"keyframes",duration:.8},YM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ZM=(n,{keyframes:e})=>e.length>2?XM:Vd.has(n)?n.startsWith("scale")?UM(e[1]):GM:YM;function KM({when:n,delay:e,delayChildren:t,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...g}){return!!Object.keys(g).length}const p0=(n,e,t,i={},r,o)=>s=>{const a=n0(i,n)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-Cu(l);const g={keyframes:Array.isArray(t)?t:[null,t],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:b=>{e.set(b),a.onUpdate&&a.onUpdate(b)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:n,motionValue:e,element:o?void 0:r};KM(a)||Object.assign(g,ZM(n,g)),g.duration&&(g.duration=Cu(g.duration)),g.repeatDelay&&(g.repeatDelay=Cu(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let m=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Iy(g),g.delay===0&&(m=!0)),(Zh.instantAnimations||Zh.skipAnimations)&&(m=!0,Iy(g),g.delay=0),g.allowFlatten=!a.type&&!a.ease,m&&!o&&e.get()!==void 0){const b=VM(g.keyframes,a);if(b!==void 0){Di.update(()=>{g.onUpdate(b),g.onComplete()});return}}return a.isSync?new e0(g):new dP(g)};function JM({protectedKeys:n,needsAnimating:e},t){const i=n.hasOwnProperty(t)&&e[t]!==!0;return e[t]=!1,i}function r1(n,e,{delay:t=0,transitionOverride:i,type:r}={}){let{transition:o=n.getDefaultTransition(),transitionEnd:s,...a}=e;i&&(o=i);const l=[],u=r&&n.animationState&&n.animationState.getState()[r];for(const g in a){const m=n.getValue(g,n.latestValues[g]??null),b=a[g];if(b===void 0||u&&JM(u,g))continue;const w={delay:t,...n0(o||{},g)},E=m.get();if(E!==void 0&&!m.isAnimating&&!Array.isArray(b)&&b===E&&!w.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const M=i1(n);if(M){const I=window.MotionHandoffAnimation(M,g,Di);I!==null&&(w.startTime=I,T=!0)}}Wy(n,g),m.start(p0(g,m,b,n.shouldReduceMotion&&TT.has(g)?{type:!1}:w,n,T));const P=m.animation;P&&l.push(P)}return s&&Promise.all(l).then(()=>{Di.update(()=>{s&&zM(n,s)})}),l}function o1(n,e,t,i=0,r=1){const o=Array.from(n).sort((u,g)=>u.sortNodePosition(g)).indexOf(e),s=n.size,a=(s-1)*i;return typeof t=="function"?t(o,s):r===1?o*i:a-o*i}function Vy(n,e,t={}){const i=_d(n,e,t.type==="exit"?n.presenceContext?.custom:void 0);let{transition:r=n.getDefaultTransition()||{}}=i||{};t.transitionOverride&&(r=t.transitionOverride);const o=i?()=>Promise.all(r1(n,i,t)):()=>Promise.resolve(),s=n.variantChildren&&n.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:g,staggerDirection:m}=r;return QM(n,e,l,u,g,m,t)}:()=>Promise.resolve(),{when:a}=r;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(t.delay)])}function QM(n,e,t=0,i=0,r=0,o=1,s){const a=[];for(const l of n.variantChildren)l.notify("AnimationStart",e),a.push(Vy(l,e,{...s,delay:t+(typeof i=="function"?0:i)+o1(n.variantChildren,l,i,r,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function jM(n,e,t={}){n.notify("AnimationStart",e);let i;if(Array.isArray(e)){const r=e.map(o=>Vy(n,o,t));i=Promise.all(r)}else if(typeof e=="string")i=Vy(n,e,t);else{const r=typeof e=="function"?_d(n,e,t.custom):e;i=Promise.all(r1(n,r,t))}return i.then(()=>{n.notify("AnimationComplete",e)})}function s1(n,e){if(!Array.isArray(e))return!1;const t=e.length;if(t!==n.length)return!1;for(let i=0;i<t;i++)if(e[i]!==n[i])return!1;return!0}const qM=l0.length;function a1(n){if(!n)return;if(!n.isControllingVariants){const t=n.parent?a1(n.parent)||{}:{};return n.props.initial!==void 0&&(t.initial=n.props.initial),t}const e={};for(let t=0;t<qM;t++){const i=l0[t],r=n.props[i];(Fg(r)||r===!1)&&(e[i]=r)}return e}const $M=[...a0].reverse(),eA=a0.length;function tA(n){return e=>Promise.all(e.map(({animation:t,options:i})=>jM(n,t,i)))}function nA(n){let e=tA(n),t=Lx(),i=!0;const r=l=>(u,g)=>{const m=_d(n,g,l==="exit"?n.presenceContext?.custom:void 0);if(m){const{transition:b,transitionEnd:w,...E}=m;u={...u,...E,...w}}return u};function o(l){e=l(n)}function s(l){const{props:u}=n,g=a1(n.parent)||{},m=[],b=new Set;let w={},E=1/0;for(let P=0;P<eA;P++){const M=$M[P],I=t[M],L=u[M]!==void 0?u[M]:g[M],H=Fg(L),W=M===l?I.isActive:null;W===!1&&(E=P);let G=L===g[M]&&L!==u[M]&&H;if(G&&i&&n.manuallyAnimateOnMount&&(G=!1),I.protectedKeys={...w},!I.isActive&&W===null||!L&&!I.prevProp||bm(L)||typeof L=="boolean")continue;const J=iA(I.prevProp,L);let Y=J||M===l&&I.isActive&&!G&&H||P>E&&H,$=!1;const re=Array.isArray(L)?L:[L];let be=re.reduce(r(M),{});W===!1&&(be={});const{prevResolvedValues:we={}}=I,Ee={...we,...be},pe=q=>{Y=!0,b.has(q)&&($=!0,b.delete(q)),I.needsAnimating[q]=!0;const le=n.getValue(q);le&&(le.liveStyle=!1)};for(const q in Ee){const le=be[q],Te=we[q];if(w.hasOwnProperty(q))continue;let he=!1;Hy(le)&&Hy(Te)?he=!s1(le,Te):he=le!==Te,he?le!=null?pe(q):b.add(q):le!==void 0&&b.has(q)?pe(q):I.protectedKeys[q]=!0}I.prevProp=L,I.prevResolvedValues=be,I.isActive&&(w={...w,...be}),i&&n.blockInitialAnimation&&(Y=!1);const me=G&&J;Y&&(!me||$)&&m.push(...re.map(q=>{const le={type:M};if(typeof q=="string"&&i&&!me&&n.manuallyAnimateOnMount&&n.parent){const{parent:Te}=n,he=_d(Te,q);if(Te.enteringChildren&&he){const{delayChildren:ue}=he.transition||{};le.delay=o1(Te.enteringChildren,n,ue)}}return{animation:q,options:le}}))}if(b.size){const P={};if(typeof u.initial!="boolean"){const M=_d(n,Array.isArray(u.initial)?u.initial[0]:u.initial);M&&M.transition&&(P.transition=M.transition)}b.forEach(M=>{const I=n.getBaseTarget(M),L=n.getValue(M);L&&(L.liveStyle=!0),P[M]=I??null}),m.push({animation:P})}let T=!!m.length;return i&&(u.initial===!1||u.initial===u.animate)&&!n.manuallyAnimateOnMount&&(T=!1),i=!1,T?e(m):Promise.resolve()}function a(l,u){if(t[l].isActive===u)return Promise.resolve();n.variantChildren?.forEach(m=>m.animationState?.setActive(l,u)),t[l].isActive=u;const g=s(l);for(const m in t)t[m].protectedKeys={};return g}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>t,reset:()=>{t=Lx(),i=!0}}}function iA(n,e){return typeof e=="string"?e!==n:Array.isArray(e)?!s1(e,n):!1}function Df(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Lx(){return{animate:Df(!0),whileInView:Df(),whileHover:Df(),whileTap:Df(),whileDrag:Df(),whileFocus:Df(),exit:Df()}}class Ef{constructor(e){this.isMounted=!1,this.node=e}update(){}}class rA extends Ef{constructor(e){super(e),e.animationState||(e.animationState=nA(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();bm(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let oA=0;class sA extends Ef{constructor(){super(...arguments),this.id=oA++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const aA={animation:{Feature:rA},exit:{Feature:sA}};function Ig(n,e,t,i={passive:!0}){return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t)}function Gg(n){return{point:{x:n.pageX,y:n.pageY}}}const lA=n=>e=>o0(e)&&n(e,Gg(e));function Cg(n,e,t,i){return Ig(n,e,lA(t),i)}const l1=1e-4,cA=1-l1,uA=1+l1,c1=.01,hA=0-c1,fA=0+c1;function oa(n){return n.max-n.min}function dA(n,e,t){return Math.abs(n-e)<=t}function Ix(n,e,t,i=.5){n.origin=i,n.originPoint=ir(e.min,e.max,n.origin),n.scale=oa(t)/oa(e),n.translate=ir(t.min,t.max,n.origin)-n.originPoint,(n.scale>=cA&&n.scale<=uA||isNaN(n.scale))&&(n.scale=1),(n.translate>=hA&&n.translate<=fA||isNaN(n.translate))&&(n.translate=0)}function Sg(n,e,t,i){Ix(n.x,e.x,t.x,i?i.originX:void 0),Ix(n.y,e.y,t.y,i?i.originY:void 0)}function Dx(n,e,t){n.min=t.min+e.min,n.max=n.min+oa(e)}function gA(n,e,t){Dx(n.x,e.x,t.x),Dx(n.y,e.y,t.y)}function Bx(n,e,t){n.min=e.min-t.min,n.max=n.min+oa(e)}function Tg(n,e,t){Bx(n.x,e.x,t.x),Bx(n.y,e.y,t.y)}function Tc(n){return[n("x"),n("y")]}const u1=({current:n})=>n?n.ownerDocument.defaultView:null,Nx=(n,e)=>Math.abs(n-e);function pA(n,e){const t=Nx(n.x,e.x),i=Nx(n.y,e.y);return Math.sqrt(t**2+i**2)}class h1{constructor(e,t,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=iv(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,E=pA(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!E)return;const{point:T}=b,{timestamp:P}=qo;this.history.push({...T,timestamp:P});const{onStart:M,onMove:I}=this.handlers;w||(M&&M(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),I&&I(this.lastMoveEvent,b)},this.handlePointerMove=(b,w)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=nv(w,this.transformPagePoint),Di.update(this.updatePoint,!0)},this.handlePointerUp=(b,w)=>{this.end();const{onEnd:E,onSessionEnd:T,resumeAnimation:P}=this.handlers;if(this.dragSnapToOrigin&&P&&P(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=iv(b.type==="pointercancel"?this.lastMoveEventInfo:nv(w,this.transformPagePoint),this.history);this.startEvent&&E&&E(b,M),T&&T(b,M)},!o0(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=r||window;const a=Gg(e),l=nv(a,this.transformPagePoint),{point:u}=l,{timestamp:g}=qo;this.history=[{...u,timestamp:g}];const{onSessionStart:m}=t;m&&m(e,iv(l,this.history)),this.removeListeners=Hg(Cg(this.contextWindow,"pointermove",this.handlePointerMove),Cg(this.contextWindow,"pointerup",this.handlePointerUp),Cg(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),xf(this.updatePoint)}}function nv(n,e){return e?{point:e(n.point)}:n}function zx(n,e){return{x:n.x-e.x,y:n.y-e.y}}function iv({point:n},e){return{point:n,delta:zx(n,f1(e)),offset:zx(n,mA(e)),velocity:vA(e,.1)}}function mA(n){return n[0]}function f1(n){return n[n.length-1]}function vA(n,e){if(n.length<2)return{x:0,y:0};let t=n.length-1,i=null;const r=f1(n);for(;t>=0&&(i=n[t],!(r.timestamp-i.timestamp>Cu(e)));)t--;if(!i)return{x:0,y:0};const o=Ec(r.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function yA(n,{min:e,max:t},i){return e!==void 0&&n<e?n=i?ir(e,n,i.min):Math.max(n,e):t!==void 0&&n>t&&(n=i?ir(t,n,i.max):Math.min(n,t)),n}function Hx(n,e,t){return{min:e!==void 0?n.min+e:void 0,max:t!==void 0?n.max+t-(n.max-n.min):void 0}}function bA(n,{top:e,left:t,bottom:i,right:r}){return{x:Hx(n.x,t,r),y:Hx(n.y,e,i)}}function Wx(n,e){let t=e.min-n.min,i=e.max-n.max;return e.max-e.min<n.max-n.min&&([t,i]=[i,t]),{min:t,max:i}}function xA(n,e){return{x:Wx(n.x,e.x),y:Wx(n.y,e.y)}}function wA(n,e){let t=.5;const i=oa(n),r=oa(e);return r>i?t=Ag(e.min,e.max-i,n.min):i>r&&(t=Ag(n.min,n.max-r,e.min)),Xh(0,1,t)}function CA(n,e){const t={};return e.min!==void 0&&(t.min=e.min-n.min),e.max!==void 0&&(t.max=e.max-n.min),t}const Gy=.35;function SA(n=Gy){return n===!1?n=0:n===!0&&(n=Gy),{x:Vx(n,"left","right"),y:Vx(n,"top","bottom")}}function Vx(n,e,t){return{min:Gx(n,e),max:Gx(n,t)}}function Gx(n,e){return typeof n=="number"?n:n[e]||0}const TA=new WeakMap;class EA{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_r(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=m=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Gg(m).point)},s=(m,b)=>{const{drag:w,dragPropagation:E,onDragStart:T}=this.getProps();if(w&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=AP(w),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tc(M=>{let I=this.getAxisMotionValue(M).get()||0;if(lh.test(I)){const{projection:L}=this.visualElement;if(L&&L.layout){const H=L.layout.layoutBox[M];H&&(I=oa(H)*(parseFloat(I)/100))}}this.originPoint[M]=I}),T&&Di.postRender(()=>T(m,b)),Wy(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},a=(m,b)=>{this.latestPointerEvent=m,this.latestPanInfo=b;const{dragPropagation:w,dragDirectionLock:E,onDirectionLock:T,onDrag:P}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:M}=b;if(E&&this.currentDirection===null){this.currentDirection=RA(M),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",b.point,M),this.updateAxis("y",b.point,M),this.visualElement.render(),P&&P(m,b)},l=(m,b)=>{this.latestPointerEvent=m,this.latestPanInfo=b,this.stop(m,b),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Tc(m=>this.getAnimationState(m)==="paused"&&this.getAxisMotionValue(m).animation?.play()),{dragSnapToOrigin:g}=this.getProps();this.panSession=new h1(e,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:i,contextWindow:u1(this.visualElement)})}stop(e,t){const i=e||this.latestPointerEvent,r=t||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!r||!i)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Di.postRender(()=>a(i,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){const{drag:r}=this.getProps();if(!i||!rp(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=yA(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Ed(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=bA(i.layoutBox,e):this.constraints=!1,this.elastic=SA(t),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Tc(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=CA(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ed(e))return!1;const i=e.current;Yh(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=kM(i,r.root,this.visualElement.getTransformPagePoint());let s=xA(r.layout.layoutBox,o);if(t){const a=t(TM(s));this.hasMutatedConstraints=!!a,a&&(s=JT(a))}return s}startAnimation(e){const{drag:t,dragMomentum:i,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Tc(g=>{if(!rp(g,t,this.currentDirection))return;let m=l&&l[g]||{};s&&(m={min:0,max:0});const b=r?200:1e6,w=r?40:1e7,E={type:"inertia",velocity:i?e[g]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(g,E)});return Promise.all(u).then(a)}startAxisValueAnimation(e,t){const i=this.getAxisMotionValue(e);return Wy(this.visualElement,e),i.start(p0(e,i,0,t,this.visualElement,!1))}stopAnimation(){Tc(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Tc(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),r=i[t];return r||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Tc(t=>{const{drag:i}=this.getProps();if(!rp(t,i,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:s,max:a}=r.layout.layoutBox[t];o.set(e[t]-ir(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!Ed(t)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Tc(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();r[s]=wA({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Tc(s=>{if(!rp(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ir(l,u,r[s]))})}addListeners(){if(!this.visualElement.current)return;TA.set(this.visualElement,this);const e=this.visualElement.current,t=Cg(e,"pointerdown",l=>{const{drag:u,dragListener:g=!0}=this.getProps();u&&g&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();Ed(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Di.read(i);const s=Ig(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Tc(g=>{const m=this.getAxisMotionValue(g);m&&(this.originPoint[g]+=l[g].translate,m.set(m.get()+l[g].translate))}),this.visualElement.render())}));return()=>{s(),t(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=Gy,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function rp(n,e,t){return(e===!0||e===n)&&(t===null||t===n)}function RA(n,e=10){let t=null;return Math.abs(n.y)>e?t="y":Math.abs(n.x)>e&&(t="x"),t}class kA extends Ef{constructor(e){super(e),this.removeGroupControls=Rc,this.removeListeners=Rc,this.controls=new EA(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rc}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ux=n=>(e,t)=>{n&&Di.postRender(()=>n(e,t))};class PA extends Ef{constructor(){super(...arguments),this.removePointerDownListener=Rc}onPointerDown(e){this.session=new h1(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:u1(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ux(e),onStart:Ux(t),onMove:i,onEnd:(o,s)=>{delete this.session,r&&Di.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=Cg(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Yp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xx(n,e){return e.max===e.min?0:n/(e.max-e.min)*100}const Qd={correct:(n,e)=>{if(!e.target)return n;if(typeof n=="string")if(kt.test(n))n=parseFloat(n);else return n;const t=Xx(n,e.target.x),i=Xx(n,e.target.y);return`${t}% ${i}%`}},MA={correct:(n,{treeScale:e,projectionDelta:t})=>{const i=n,r=wf.parse(n);if(r.length>5)return i;const o=wf.createTransformer(n),s=typeof r[0]!="number"?1:0,a=t.x.scale*e.x,l=t.y.scale*e.y;r[0+s]/=a,r[1+s]/=l;const u=ir(a,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=u),typeof r[3+s]=="number"&&(r[3+s]/=u),o(r)}};let rv=!1;class AA extends ge.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:r}=this.props,{projection:o}=e;qP(_A),o&&(t.group&&t.group.add(o),i&&i.register&&r&&i.register(o),rv&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Yp.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:i,drag:r,isPresent:o}=this.props,{projection:s}=i;return s&&(s.isPresent=o,rv=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==o?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||Di.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),r0.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:r}=e;rv=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function d1(n){const[e,t]=IT(),i=ge.useContext(Db);return ae.jsx(AA,{...n,layoutGroup:i,switchLayoutGroup:ge.useContext(ZT),isPresent:e,safeToRemove:t})}const _A={borderRadius:{...Qd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qd,borderTopRightRadius:Qd,borderBottomLeftRadius:Qd,borderBottomRightRadius:Qd,boxShadow:MA};function OA(n,e,t){const i=Rs(n)?n:Fd(n);return i.start(p0("",i,e,t)),i.animation}const FA=(n,e)=>n.depth-e.depth;class LA{constructor(){this.children=[],this.isDirty=!1}add(e){zb(this.children,e),this.isDirty=!0}remove(e){Hb(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(FA),this.isDirty=!1,this.children.forEach(e)}}function IA(n,e){const t=Ka.now(),i=({timestamp:r})=>{const o=r-t;o>=e&&(xf(i),n(o-e))};return Di.setup(i,!0),()=>xf(i)}const g1=["TopLeft","TopRight","BottomLeft","BottomRight"],DA=g1.length,Yx=n=>typeof n=="string"?parseFloat(n):n,Zx=n=>typeof n=="number"||kt.test(n);function BA(n,e,t,i,r,o){r?(n.opacity=ir(0,t.opacity??1,NA(i)),n.opacityExit=ir(e.opacity??1,0,zA(i))):o&&(n.opacity=ir(e.opacity??1,t.opacity??1,i));for(let s=0;s<DA;s++){const a=`border${g1[s]}Radius`;let l=Kx(e,a),u=Kx(t,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Zx(l)===Zx(u)?(n[a]=Math.max(ir(Yx(l),Yx(u),i),0),(lh.test(u)||lh.test(l))&&(n[a]+="%")):n[a]=u}(e.rotate||t.rotate)&&(n.rotate=ir(e.rotate||0,t.rotate||0,i))}function Kx(n,e){return n[e]!==void 0?n[e]:n.borderRadius}const NA=p1(0,.5,tT),zA=p1(.5,.95,Rc);function p1(n,e,t){return i=>i<n?0:i>e?1:t(Ag(n,e,i))}function Jx(n,e){n.min=e.min,n.max=e.max}function wc(n,e){Jx(n.x,e.x),Jx(n.y,e.y)}function Qx(n,e){n.translate=e.translate,n.scale=e.scale,n.originPoint=e.originPoint,n.origin=e.origin}function jx(n,e,t,i,r){return n-=e,n=om(n,1/t,i),r!==void 0&&(n=om(n,1/r,i)),n}function HA(n,e=0,t=1,i=.5,r,o=n,s=n){if(lh.test(e)&&(e=parseFloat(e),e=ir(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=ir(o.min,o.max,i);n===o&&(a-=e),n.min=jx(n.min,e,t,a,r),n.max=jx(n.max,e,t,a,r)}function qx(n,e,[t,i,r],o,s){HA(n,e[t],e[i],e[r],e.scale,o,s)}const WA=["x","scaleX","originX"],VA=["y","scaleY","originY"];function $x(n,e,t,i){qx(n.x,e,WA,t?t.x:void 0,i?i.x:void 0),qx(n.y,e,VA,t?t.y:void 0,i?i.y:void 0)}function ew(n){return n.translate===0&&n.scale===1}function m1(n){return ew(n.x)&&ew(n.y)}function tw(n,e){return n.min===e.min&&n.max===e.max}function GA(n,e){return tw(n.x,e.x)&&tw(n.y,e.y)}function nw(n,e){return Math.round(n.min)===Math.round(e.min)&&Math.round(n.max)===Math.round(e.max)}function v1(n,e){return nw(n.x,e.x)&&nw(n.y,e.y)}function iw(n){return oa(n.x)/oa(n.y)}function rw(n,e){return n.translate===e.translate&&n.scale===e.scale&&n.originPoint===e.originPoint}class UA{constructor(){this.members=[]}add(e){zb(this.members,e),e.scheduleRender()}remove(e){if(Hb(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(e){const t=this.members.findIndex(r=>e===r);if(t===0)return!1;let i;for(let r=t;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(e,t){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function XA(n,e,t){let i="";const r=n.x.translate/e.x,o=n.y.translate/e.y,s=t?.z||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),t){const{transformPerspective:u,rotate:g,rotateX:m,rotateY:b,skewX:w,skewY:E}=t;u&&(i=`perspective(${u}px) ${i}`),g&&(i+=`rotate(${g}deg) `),m&&(i+=`rotateX(${m}deg) `),b&&(i+=`rotateY(${b}deg) `),w&&(i+=`skewX(${w}deg) `),E&&(i+=`skewY(${E}deg) `)}const a=n.x.scale*e.x,l=n.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const ov=["","X","Y","Z"],YA=1e3;let ZA=0;function sv(n,e,t,i){const{latestValues:r}=e;r[n]&&(t[n]=r[n],e.setStaticValue(n,0),i&&(i[n]=0))}function y1(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:e}=n.options;if(!e)return;const t=i1(e);if(window.MotionHasOptimisedAnimation(t,"transform")){const{layout:r,layoutId:o}=n.options;window.MotionCancelOptimisedAnimation(t,"transform",Di,!(r||o))}const{parent:i}=n;i&&!i.hasCheckedOptimisedAppear&&y1(i)}function b1({attachResizeListener:n,defaultParent:e,measureScroll:t,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},a=e?.()){this.id=ZA++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(QA),this.nodes.forEach(e2),this.nodes.forEach(t2),this.nodes.forEach(jA)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new LA)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Vb),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=LT(s)&&!DP(s),this.instance=s;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),n){let g,m=0;const b=()=>this.root.updateBlockedByResize=!1;Di.read(()=>{m=window.innerWidth}),n(s,()=>{const w=window.innerWidth;w!==m&&(m=w,this.root.updateBlockedByResize=!0,g&&g(),g=IA(b,250),Yp.hasAnimatedSinceResize&&(Yp.hasAnimatedSinceResize=!1,this.nodes.forEach(aw)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:m,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||u.getDefaultTransition()||s2,{onLayoutAnimationStart:T,onLayoutAnimationComplete:P}=u.getProps(),M=!this.targetLayout||!v1(this.targetLayout,w),I=!m&&b;if(this.options.layoutRoot||this.resumeFrom||I||m&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const L={...n0(E,"layout"),onPlay:T,onComplete:P};(u.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L),this.setAnimationOrigin(g,I)}else m||aw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),xf(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n2),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&y1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const m=this.path[g];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ow);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(sw);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach($A),this.nodes.forEach(KA),this.nodes.forEach(JA)):this.nodes.forEach(sw),this.clearAllSnapshots();const a=Ka.now();qo.delta=Xh(0,1e3/60,a-qo.timestamp),qo.timestamp=a,qo.isProcessing=!0,Km.update.process(qo),Km.preRender.process(qo),Km.render.process(qo),qo.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,r0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(qA),this.sharedNodes.forEach(i2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Di.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Di.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!oa(this.snapshot.measuredBox.x)&&!oa(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=_r(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:t(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!m1(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,g=u!==this.prevTransformTemplateValue;s&&this.instance&&(a||Xf(this.latestValues)||g)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),a2(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return _r();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(l2))){const{scroll:u}=this.root;u&&(Rd(a.x,u.offset.x),Rd(a.y,u.offset.y))}return a}removeElementScroll(s){const a=_r();if(wc(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:g,options:m}=u;u!==this.root&&g&&m.layoutScroll&&(g.wasRoot&&wc(a,s),Rd(a.x,g.offset.x),Rd(a.y,g.offset.y))}return a}applyTransform(s,a=!1){const l=_r();wc(l,s);for(let u=0;u<this.path.length;u++){const g=this.path[u];!a&&g.options.layoutScroll&&g.scroll&&g!==g.root&&kd(l,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),Xf(g.latestValues)&&kd(l,g.latestValues)}return Xf(this.latestValues)&&kd(l,this.latestValues),l}removeTransform(s){const a=_r();wc(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Xf(u.latestValues))continue;By(u.latestValues)&&u.updateSnapshot();const g=_r(),m=u.measurePageBox();wc(g,m),$x(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,g)}return Xf(this.latestValues)&&$x(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==qo.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:m}=this.options;if(!(!this.layout||!(g||m))){if(this.resolvedRelativeTargetAt=qo.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_r(),this.relativeTargetOrigin=_r(),Tg(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),wc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=_r(),this.targetWithTransforms=_r()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),gA(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):wc(this.target,this.layout.layoutBox),jT(this.target,this.targetDelta)):wc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_r(),this.relativeTargetOrigin=_r(),Tg(this.relativeTargetOrigin,this.target,b.target),wc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||By(this.parent.latestValues)||QT(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===qo.timestamp&&(l=!1),l)return;const{layout:u,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||g))return;wc(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,b=this.treeScale.y;RM(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=_r());const{target:w}=s;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Qx(this.prevProjectionDelta.x,this.projectionDelta.x),Qx(this.prevProjectionDelta.y,this.projectionDelta.y)),Sg(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==b||!rw(this.projectionDelta.x,this.prevProjectionDelta.x)||!rw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Pd(),this.projectionDelta=Pd(),this.projectionDeltaWithTransform=Pd()}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},g={...this.latestValues},m=Pd();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const b=_r(),w=l?l.source:void 0,E=this.layout?this.layout.source:void 0,T=w!==E,P=this.getStack(),M=!P||P.members.length<=1,I=!!(T&&!M&&this.options.crossfade===!0&&!this.path.some(o2));this.animationProgress=0;let L;this.mixTargetDelta=H=>{const W=H/1e3;lw(m.x,s.x,W),lw(m.y,s.y,W),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Tg(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),r2(this.relativeTarget,this.relativeTargetOrigin,b,W),L&&GA(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=_r()),wc(L,this.relativeTarget)),T&&(this.animationValues=g,BA(g,u,this.latestValues,W,I,M)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=W},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(xf(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Di.update(()=>{Yp.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Fd(0)),this.currentAnimation=OA(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(YA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:g}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&x1(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||_r();const m=oa(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+m;const b=oa(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+b}wc(a,l),kd(a,g),Sg(this.projectionDeltaWithTransform,this.layoutCorrected,a,g)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new UA),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&sv("z",s,u,this.animationValues);for(let g=0;g<ov.length;g++)sv(`rotate${ov[g]}`,s,u,this.animationValues),sv(`skew${ov[g]}`,s,u,this.animationValues);s.render();for(const g in u)s.setStaticValue(g,u[g]),this.animationValues&&(this.animationValues[g]=u[g]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Xp(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Xp(a?.pointerEvents)||""),this.hasProjected&&!Xf(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const g=u.animationValues||u.latestValues;this.applyTransformsToTarget();let m=XA(this.projectionDeltaWithTransform,this.treeScale,g);l&&(m=l(g,m)),s.transform=m;const{x:b,y:w}=this.projectionDelta;s.transformOrigin=`${b.origin*100}% ${w.origin*100}% 0`,u.animationValues?s.opacity=u===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:s.opacity=u===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const E in Lg){if(g[E]===void 0)continue;const{correct:T,applyTo:P,isCSSVariable:M}=Lg[E],I=m==="none"?g[E]:T(g[E],u);if(P){const L=P.length;for(let H=0;H<L;H++)s[P[H]]=I}else M?this.options.visualElement.renderState.vars[E]=I:s[E]=I}this.options.layoutId&&(s.pointerEvents=u===this?Xp(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(ow),this.root.sharedNodes.clear()}}}function KA(n){n.updateLayout()}function JA(n){const e=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&e&&n.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:i}=n.layout,{animationType:r}=n.options,o=e.source!==n.layout.source;r==="size"?Tc(g=>{const m=o?e.measuredBox[g]:e.layoutBox[g],b=oa(m);m.min=t[g].min,m.max=m.min+b}):x1(r,e.layoutBox,t)&&Tc(g=>{const m=o?e.measuredBox[g]:e.layoutBox[g],b=oa(t[g]);m.max=m.min+b,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[g].max=n.relativeTarget[g].min+b)});const s=Pd();Sg(s,t,e.layoutBox);const a=Pd();o?Sg(a,n.applyTransform(i,!0),e.measuredBox):Sg(a,t,e.layoutBox);const l=!m1(s);let u=!1;if(!n.resumeFrom){const g=n.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:m,layout:b}=g;if(m&&b){const w=_r();Tg(w,e.layoutBox,m.layoutBox);const E=_r();Tg(E,t,b.layoutBox),v1(w,E)||(u=!0),g.options.layoutRoot&&(n.relativeTarget=E,n.relativeTargetOrigin=w,n.relativeParent=g)}}}n.notifyListeners("didUpdate",{layout:t,snapshot:e,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(n.isLead()){const{onExitComplete:t}=n.options;t&&t()}n.options.transition=void 0}function QA(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function jA(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function qA(n){n.clearSnapshot()}function ow(n){n.clearMeasurements()}function sw(n){n.isLayoutDirty=!1}function $A(n){const{visualElement:e}=n.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),n.resetTransform()}function aw(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function e2(n){n.resolveTargetDelta()}function t2(n){n.calcProjection()}function n2(n){n.resetSkewAndRotation()}function i2(n){n.removeLeadSnapshot()}function lw(n,e,t){n.translate=ir(e.translate,0,t),n.scale=ir(e.scale,1,t),n.origin=e.origin,n.originPoint=e.originPoint}function cw(n,e,t,i){n.min=ir(e.min,t.min,i),n.max=ir(e.max,t.max,i)}function r2(n,e,t,i){cw(n.x,e.x,t.x,i),cw(n.y,e.y,t.y,i)}function o2(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const s2={duration:.45,ease:[.4,0,.1,1]},uw=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),hw=uw("applewebkit/")&&!uw("chrome/")?Math.round:Rc;function fw(n){n.min=hw(n.min),n.max=hw(n.max)}function a2(n){fw(n.x),fw(n.y)}function x1(n,e,t){return n==="position"||n==="preserve-aspect"&&!dA(iw(e),iw(t),.2)}function l2(n){return n!==n.root&&n.scroll?.wasRoot}const c2=b1({attachResizeListener:(n,e)=>Ig(n,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),av={current:void 0},w1=b1({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!av.current){const n=new c2({});n.mount(window),n.setOptions({layoutScroll:!0}),av.current=n}return av.current},resetTransform:(n,e)=>{n.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),u2={pan:{Feature:PA},drag:{Feature:kA,ProjectionNode:w1,MeasureLayout:d1}};function dw(n,e,t){const{props:i}=n;n.animationState&&i.whileHover&&n.animationState.setActive("whileHover",t==="Start");const r="onHover"+t,o=i[r];o&&Di.postRender(()=>o(e,Gg(e)))}class h2 extends Ef{mount(){const{current:e}=this.node;e&&(this.unmount=_P(e,(t,i)=>(dw(this.node,i,"Start"),r=>dw(this.node,r,"End"))))}unmount(){}}class f2 extends Ef{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Hg(Ig(this.node.current,"focus",()=>this.onFocus()),Ig(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function gw(n,e,t){const{props:i}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&i.whileTap&&n.animationState.setActive("whileTap",t==="Start");const r="onTap"+(t==="End"?"":t),o=i[r];o&&Di.postRender(()=>o(e,Gg(e)))}class d2 extends Ef{mount(){const{current:e}=this.node;e&&(this.unmount=IP(e,(t,i)=>(gw(this.node,i,"Start"),(r,{success:o})=>gw(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Uy=new WeakMap,lv=new WeakMap,g2=n=>{const e=Uy.get(n.target);e&&e(n)},p2=n=>{n.forEach(g2)};function m2({root:n,...e}){const t=n||document;lv.has(t)||lv.set(t,{});const i=lv.get(t),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(p2,{root:n,...e})),i[r]}function v2(n,e,t){const i=m2(e);return Uy.set(n,t),i.observe(n),()=>{Uy.delete(n),i.unobserve(n)}}const y2={some:0,all:1};class b2 extends Ef{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:i,amount:r="some",once:o}=e,s={root:t?t.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:y2[r]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:g,onViewportLeave:m}=this.node.getProps(),b=u?g:m;b&&b(l)};return v2(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(x2(e,t))&&this.startObserver()}unmount(){}}function x2({viewport:n={}},{viewport:e={}}={}){return t=>n[t]!==e[t]}const w2={inView:{Feature:b2},tap:{Feature:d2},focus:{Feature:f2},hover:{Feature:h2}},C2={layout:{ProjectionNode:w1,MeasureLayout:d1}},S2={...aA,...w2,...u2,...C2},wm=SM(S2,DM),T2="_primary_13825_8",E2="_secondary_13825_12",R2="_tertiary_13825_16",k2="_positive_13825_20",P2="_negative_13825_24",M2="_warning_13825_28",A2="_accent_13825_32",_2="_inverse_13825_36",O2="_text_13825_111",F2="_regular_13825_117",L2="_medium_13825_121",I2="_semibold_13825_125",D2="_bold_13825_129",op={primary:T2,secondary:E2,tertiary:R2,positive:k2,negative:P2,warning:M2,accent:A2,inverse:_2,"title-1":"_title-1_13825_41","title-2":"_title-2_13825_51","title-3":"_title-3_13825_61","headline-1":"_headline-1_13825_76","headline-2":"_headline-2_13825_81","headline-3":"_headline-3_13825_86","body-1":"_body-1_13825_91","body-2":"_body-2_13825_96","caption-1":"_caption-1_13825_101","caption-2":"_caption-2_13825_106",text:O2,regular:F2,medium:L2,semibold:I2,bold:D2},B2=n=>{let e;n.center?e="center":n.left?e="left":n.right&&(e="right");let t;return n.uppercase?t="uppercase":n.lowercase?t="lowercase":n.capitalize&&(t="capitalize"),Je.css({marginTop:n.mt,marginBottom:n.mb,marginRight:n.mr,marginLeft:n.ml,flex:n.flex,cursor:n.cursor,wordBreak:n.wordBreak,whiteSpace:n.whiteSpace,textOverflow:n.textOverflow,textDecoration:n.decoration,textAlign:e,textTransform:t,color:n.color,opacity:n.disabled?.5:void 0,overflow:n.overflow})},en=ge.forwardRef(({children:n,className:e,variant:t="body-1",fontWeight:i="medium",tag:r="p",colorName:o="primary",style:s,clickOpacity:a=.5,opacityDuration:l=200,onClick:u,disabled:g,mt:m,mb:b,ml:w,mr:E,flex:T,cursor:P,wordBreak:M,whiteSpace:I,textOverflow:L,decoration:H,color:W,center:G,left:J,right:Y,uppercase:$,lowercase:re,capitalize:be,overflow:we,...Ee},pe)=>{const[me,ee]=ge.useState(!1),q=!!u,le=()=>q&&ee(!0),Te=()=>q&&ee(!1),he=B2({mt:m,mb:b,ml:w,mr:E,flex:T,cursor:P,wordBreak:M,whiteSpace:I,textOverflow:L,decoration:H,color:W,center:G,left:J,right:Y,uppercase:$,lowercase:re,capitalize:be,overflow:we}),ue=r,Ne=q?Je.css({opacity:me?a:1,transition:`opacity ${l}ms ease`}):"";return ae.jsx(ue,{ref:pe,...Ee,className:Je.cx(op.text,op[t],op[o],op[i],Ne,e,he),style:s,onClick:u,onMouseDown:le,onMouseUp:Te,onMouseLeave:Te,onTouchStart:le,onTouchEnd:Te,role:q?"button":void 0,tabIndex:q?0:void 0,children:n})});en.displayName="Text";const C1=wm(en),N2=Je.css({display:"flex",alignItems:"center",justifyContent:"center",position:"relative",borderRadius:16,height:48,padding:"0 16px",cursor:"pointer",fontSize:16,fontWeight:600,overflow:"hidden",transition:"all 0.2s ease",gap:8}),jd={zero:"var(--corner-zero)",xs:"var(--corner-xs)",sm:"var(--corner-sm)",md:"var(--corner-md)",lg:"var(--corner-lg)",xl:"var(--corner-xl)","2xl":"var(--corner-2xl)","3xl":"var(--corner-3xl)","4xl":"var(--corner-4xl)","5xl":"var(--corner-5xl)","6xl":"var(--corner-6xl)","full-round":"var(--corner-full-round)"},z2={xs:"var(--height-button-xs)",sm:"var(--height-button-sm)",md:"var(--height-button-md)",lg:"var(--height-button-lg)"},H2={clear:Je.css({backgroundColor:"transparent",border:"none"}),filled:Je.css({backgroundColor:"var(--fill-accent-primary)",color:"white",border:"none"}),outline:Je.css({backgroundColor:"transparent",border:"1px solid var(--border-accent-primary)"})},W2=(n,e,t,i)=>{if(i)return Je.css({cursor:"not-allowed",opacity:.7});const r={transition:"all 0.2s ease",borderRadius:"var(--corner-lg)",border:"none",color:n==="filled"?"var(--text-inverse)":`var(--text-${e})`};switch(n){case"filled":return Je.css({...r,backgroundColor:`var(--fill-${e}-${t})`,":hover":{backgroundColor:`var(--fill-${e}-${t}-hover)`},":active":{backgroundColor:`var(--fill-${e}-${t}-hover)`}});case"outline":return Je.css({...r,backgroundColor:"transparent",border:`1px solid var(--border-${e}-${t})`,":hover":{backgroundColor:`var(--fill-${e}-secondary-hover)`},":active":{backgroundColor:`var(--fill-${e}-secondary-hover)`}});case"clear":return Je.css({...r,backgroundColor:"transparent",":hover":{backgroundColor:`var(--fill-${e}-secondary-hover)`},":active":{backgroundColor:`var(--fill-${e}-secondary-hover)`}});default:return Je.css(r)}},Xy=({disabled:n,loading:e,wrapperClassName:t,buttonClassName:i,buttonDisabledClassName:r,textClassName:o,children:s,variant:a="filled",backgroundColor:l,textColor:u,textFontWeight:g,borderColor:m,color:b="accent",opacity:w,borderRadius:E,width:T="full",size:P="md",iconLeft:M,iconRight:I,intensity:L="primary",flex:H,type:W="button",...G})=>{const J=ge.useMemo(()=>{switch(T){case"full":return"100%";case"auto":return"auto";default:return T}},[T]),Y=ge.useMemo(()=>l||(a==="filled"?b==="neutral"?"var(--fill-neutral-secondary)":`var(--fill-${b}-${L})`:"transparent"),[a,l,b,L]),$=ge.useMemo(()=>{if(L==="primary"){if(b==="neutral")return"var(--text-secondary)";if(a==="filled")return"var(--text-inverse)"}else if(b==="neutral")return"var(--text-secondary)";return`var(--text-${b})`},[L,b,a]),re=ge.useMemo(()=>{if(L==="primary"){if(b==="neutral")return"secondary";if(a==="filled")return"inverse"}else if(b==="neutral")return"secondary";return b},[a,b,L]),be=ge.useMemo(()=>m||(a==="outline"?`var(--border-${b}-${L})`:"transparent"),[a,m,b,L]),we=ge.useMemo(()=>{switch(P){case"lg":return jd.lg;case"md":case"sm":return jd.md;case"xs":return jd.sm;default:return jd.md}},[P]),Ee=Je.cx(N2,W2(a,b,L,n),H2[a],n?r:void 0,Je.css({borderRadius:E?jd[E]:we,backgroundColor:Y,borderColor:be,color:u,width:"100%",height:z2[P],opacity:w||(n?.7:1)}),i),pe=ge.useMemo(()=>{switch(P){case"lg":case"md":return"body-1";case"sm":case"xs":return"body-2";default:return"body-1"}},[P]);return ae.jsx(et,{className:Je.cx(t),w:J,flex:H,relative:!0,overflow:"hidden",children:ae.jsxs(wm.button,{...G,whileTap:!n&&!e?{scale:.99,boxShadow:"inset 0 0 0 10000px rgba(0,0,0,0.1)",transition:{duration:0}}:{},disabled:n||e,className:Ee,children:[e?ae.jsx(zS,{color:$}):ae.jsxs(ae.Fragment,{children:[M,ae.jsx(C1,{style:{color:u},colorName:re,variant:pe,className:o,textOverflow:"ellipsis",overflow:"hidden",children:s}),I]}),ae.jsx(od,{})]})})},V2=n=>Re.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",...n},Re.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z",fill:"currentColor"})),G2=n=>Re.createElement("svg",{viewBox:"0 0 24 24",fill:"none",...n},Re.createElement("path",{d:"M19 13H5v-2h14v2z",fill:"currentColor"})),U2="_checkbox_22ifd_8",X2="_disabled_22ifd_14",Y2="_checkbox__ripple_22ifd_14",Z2="_checkbox__input_22ifd_26",K2="_checkbox__box_22ifd_33",J2="_secondary_22ifd_46",Q2="_checked_22ifd_52",j2="_error_22ifd_61",Dh={checkbox:U2,disabled:X2,checkbox__ripple:Y2,checkbox__input:Z2,checkbox__box:K2,secondary:J2,checked:Q2,error:j2},q2={sm:20,md:24},m0=ge.forwardRef(({checked:n,onChange:e,disabled:t,error:i,indeterminate:r,size:o="md",title:s,titleColor:a,subtitle:l,subtitleColor:u="secondary",name:g,required:m,variant:b="primary",flex:w,readOnly:E},T)=>{const[P,M]=ge.useState(!1),I=n!==void 0,L=I?n:P,H=$=>{I||M($.target.checked),e?.($)},W=q2[o],G=L||r,J=!!E&&!t,Y=t?"not-allowed":J?"auto":"pointer";return ae.jsxs("label",{className:Je.cx(Dh.checkbox,Je.css({flex:w,cursor:Y}),{[Dh.disabled]:t}),children:[ae.jsxs(et,{relative:!0,display:"inline-flex",style:{"--checkbox-size":`${W}px`,"--checkbox-size-double":`${W*2}px`},children:[ae.jsx("input",{ref:T,type:"checkbox",checked:L,onChange:J?void 0:H,onClick:$=>$.stopPropagation(),disabled:t,readOnly:J,name:g,required:m,className:Je.cx(Dh.checkbox__input,{[Dh.disabled]:t},Je.css({cursor:Y}))}),ae.jsx("div",{className:Je.cx(Dh.checkbox__box,Dh[b],{[Dh.disabled]:t,[Dh.error]:i,[Dh.checked]:G}),children:G&&(r?ae.jsx(G2,{width:W*.75,height:W*.75}):ae.jsx(V2,{width:W*.75,height:W*.75}))})]}),(s||l)&&ae.jsxs(et,{gap:4,children:[s&&ae.jsx(en,{colorName:a,variant:o==="sm"?"body-2":"body-1",children:s}),l&&ae.jsx(en,{variant:"body-2",colorName:u,children:l})]})]})});m0.displayName="Checkbox";const $2=n=>Re.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("g",{opacity:.5},Re.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0002 17.9999C14.4185 17.9999 18.0002 14.4182 18.0002 9.99991C18.0002 5.58163 14.4185 1.99991 10.0002 1.99991C5.58197 1.99991 2.00024 5.58163 2.00024 9.99991C2.00024 14.4182 5.58197 17.9999 10.0002 17.9999ZM6.46514 6.46446C6.85566 6.07393 7.48883 6.07393 7.87935 6.46446L9.64712 8.23222C9.84238 8.42749 10.159 8.42749 10.3542 8.23222L12.122 6.46446C12.5125 6.07393 13.1457 6.07393 13.5362 6.46446C13.9267 6.85498 13.9267 7.48814 13.5362 7.87867L11.7684 9.64644C11.5732 9.8417 11.5732 10.1583 11.7684 10.3535L13.5362 12.1213C13.9267 12.5118 13.9267 13.145 13.5362 13.5355C13.1457 13.926 12.5125 13.926 12.122 13.5355L10.3542 11.7678C10.159 11.5725 9.84238 11.5725 9.64712 11.7678L7.87935 13.5355C7.48883 13.926 6.85566 13.926 6.46514 13.5355C6.07462 13.145 6.07462 12.5118 6.46514 12.1213L8.23291 10.3535C8.42817 10.1583 8.42817 9.8417 8.23291 9.64644L6.46514 7.87867C6.07462 7.48815 6.07462 6.85498 6.46514 6.46446Z",fill:"currentColor"}))),e_="_disabled_19ujt_20",t_="_multiline_19ujt_24",n_="_input_19ujt_8",i_="_sm_19ujt_74",r_="_md_19ujt_79",o_="_error_19ujt_84",s_="_white_19ujt_88",a_="_gray_19ujt_92",Za={"input-container":"_input-container_19ujt_8",disabled:e_,multiline:t_,input:n_,"input-text-size_sm":"_input-text-size_sm_19ujt_55","input-text-size_md":"_input-text-size_md_19ujt_59","input-text-align_left":"_input-text-align_left_19ujt_64","input-text-align_center":"_input-text-align_center_19ujt_67","input-text-align_right":"_input-text-align_right_19ujt_70",sm:i_,md:r_,error:o_,white:s_,gray:a_,"clear-button":"_clear-button_19ujt_96"};function pw(n){return{...new Event("input",{bubbles:!0}),target:n,currentTarget:n}}const S1=ge.forwardRef((n,e)=>{const{label:t,prompt:i,error:r,errorText:o,size:s="md",prefix:a,suffix:l,background:u="white",showClearButton:g,disabled:m,value:b,defaultValue:w,inputClassName:E,textAlign:T="left",...P}=n,M=n.multiline===!0,I=ge.useRef(null),L=ge.useRef(null),[H,W]=zg(typeof b=="string"||typeof b=="number"?String(b):void 0,w==="string"||w==="number"?String(w):"");ge.useImperativeHandle(e,()=>({focus:()=>{I.current?.focus(),L.current?.focus()},blur:()=>{I.current?.blur(),L.current?.blur()},get value(){return I.current?.value||L.current?.value},set value($){W($),I.current&&(I.current.value=$),L.current&&(L.current.value=$)}}));const G=$=>{if(W($.target.value),M){const re=n.onChange;re?.($)}else{const re=n.onChange;re?.($)}};ge.useEffect(()=>{M&&n.autoResize&&L.current&&(L.current.style.height="auto",L.current.style.height=`${L.current.scrollHeight}px`)},[H,M,n.autoResize]);const J=()=>{if(W(""),!M){const re=I.current;if(re){re.value="";const be=pw(re),we=n.onChange;we?.(be)}return}const $=L.current;if($){$.value="";const re=pw($),be=n.onChange;be?.(re)}},Y=()=>{if(M){const{rows:we,autoResize:Ee,onChange:pe,multiline:me,...ee}=P;return ae.jsx("textarea",{ref:L,rows:n.rows??3,className:Je.cx(Za.input,E,{[Za.disabled]:m,[Za[`input-text-align_${T}`]]:!!T}),disabled:m,maxLength:n.maxLength,...ee,value:H,onChange:G})}const{onChange:$,multiline:re,...be}=P;return ae.jsx("input",{...be,ref:I,className:Je.cx(Za.input,Za[`input-text-size_${s}`],E,{[Za.disabled]:m,[Za[`input-text-align_${T}`]]:!!T}),disabled:m,type:n.type??"text",value:H,onChange:G})};return ae.jsxs(et,{w:"full",gap:"var(--spacing-sm)",children:[t&&ae.jsx(en,{variant:"body-2",fontWeight:"regular",colorName:"tertiary",children:t}),ae.jsxs(et,{row:!0,alignItems:M?"flex-start":"center",w:"full",gap:"var(--spacing-md)",className:Je.cx(Za["input-container"],Za[u],Za[s],{[Za.error]:r,[Za.disabled]:m,[Za.multiline]:M}),children:[a&&ae.jsx(et,{flex:"none",children:a}),ae.jsx(et,{flex:"1",children:Y()}),g&&H&&!m&&ae.jsx(et,{flex:"none",children:ae.jsx("span",{className:Za["clear-button"],onClick:J,children:ae.jsx($2,{})})}),l&&ae.jsx(et,{flex:"none",children:l})]}),(i||M)&&ae.jsxs(et,{row:!0,gap:10,w:"full",children:[typeof i=="string"?ae.jsx(en,{variant:"caption-1",colorName:"tertiary",children:i}):i,M&&n.maxLength&&ae.jsx(en,{right:!0,ml:"auto",flex:"none",variant:"caption-1",colorName:"tertiary",children:`${H.length}/${n.maxLength}`})]}),o&&r&&ae.jsx(en,{variant:"body-2",colorName:"negative",fontWeight:"regular",children:o})]})});S1.displayName="Input";const l_="_input_5xq63_8",c_="_disabled_5xq63_29",u_="_error_5xq63_37",h_="_success_5xq63_41",f_="_white_5xq63_50",d_="_gray_5xq63_54",g_="_glow_5xq63_58",dd={input:l_,disabled:c_,error:u_,success:h_,white:f_,gray:d_,glow:g_};function p_(n){const e=ge.useRef(void 0);return ge.useEffect(()=>{e.current=n},[n]),e.current}const T1=ge.forwardRef(({length:n=6,label:e,prompt:t,error:i,errorText:r,success:o,disabled:s,autoFocus:a,center:l,secure:u,loading:g,background:m="gray",numeric:b=!0,className:w,value:E,defaultValue:T,onChange:P,onComplete:M},I)=>{const L=typeof E=="string",H=L?E:T,W=typeof H=="string"?H.slice(0,n):"",[G,J]=zg(L?E:void 0,W),[Y,$]=ge.useState(()=>{const q=W.slice(0,n);return Array.from({length:n},(le,Te)=>q[Te]??"")}),re=ge.useRef(void 0),be=p_(E),we=ge.useRef([]);ge.useEffect(()=>{if(!L)return;const q=E??"";if(q===be)return;if(q===re.current){re.current=void 0;return}const le=q.slice(0,n);$(Array.from({length:n},(Te,he)=>le[he]??""))},[L,E,n,be]);const Ee=ge.useCallback((q,le)=>{const Te=q.slice(0,n);le?.fromInternal&&(re.current=Te),J(Te),P?.(Te),Te.length===n&&M?.(Te)},[n,P,M,J]);ge.useImperativeHandle(I,()=>({focus:()=>{we.current[0]?.focus()},blur:()=>{we.current.forEach(q=>q?.blur())},get value(){return G||""},setValue:q=>{const le=q.slice(0,n);$(Array.from({length:n},(Te,he)=>le[he]??"")),Ee(le,{fromInternal:!0})},clear:()=>{$(Array.from({length:n},()=>"")),Ee("",{fromInternal:!0})}}),[n,Ee,G]);const pe=ge.useCallback((q,le)=>{if(s)return;let Te=le;if(b&&(Te=Te.replace(/\D/g,"")),Te.length>1){const We=Y.slice(0,q).join("")+Te+Y.slice(q+1).join(""),Qe=Array.from({length:n},(Oe,qe)=>We[qe]??"");$(Qe),Ee(We,{fromInternal:!0});const _e=Math.min(q+Te.length,n-1),Ve=we.current[_e];Ve?.focus(),Ve?.select();return}const he=Y[q],ue=[...Y];ue[q]=Te,$(ue);const Ne=ue.join("");if(Ee(Ne,{fromInternal:!0}),!he&&Te&&q<n-1){const We=we.current[q+1];We?.focus(),We?.select()}},[Y,s,n,b,Ee]),me=ge.useCallback((q,le)=>{if(!s){if(le.key==="Backspace"){le.preventDefault();const Te=we.current[q];if(Y[q]){const he=[...Y];he[q]="",$(he),Ee(he.join(""),{fromInternal:!0}),Te?.focus();return}if(q>0){const he=we.current[q-1];he?.focus(),he?.select()}return}le.key==="ArrowLeft"&&q>0&&(le.preventDefault(),we.current[q-1]?.focus()),le.key==="ArrowRight"&&q<n-1&&(le.preventDefault(),we.current[q+1]?.focus())}},[Y,s,n,Ee]),ee=ge.useCallback((q,le)=>{if(s)return;le.preventDefault();let Te=le.clipboardData.getData("text");if(b&&(Te=Te.replace(/\D/g,"")),!Te)return;const he=n-q,ue=Math.min(Te.length,he),Ne=Te.slice(0,ue),We=[...Y];for(let Oe=0;Oe<ue;Oe++)We[q+Oe]=Ne[Oe]??"";$(We);const Qe=We.join("");Ee(Qe,{fromInternal:!0});const _e=Math.min(q+ue-1,n-1),Ve=we.current[_e];Ve?.focus(),Ve?.select()},[Y,s,n,b,Ee]);return ae.jsxs(et,{w:"full",gap:"var(--spacing-sm)",className:w,center:l,children:[e&&ae.jsx(en,{variant:"body-2",fontWeight:"regular",colorName:"tertiary",children:e}),ae.jsx(et,{row:!0,w:"full",gap:"var(--spacing-sm)",center:l,className:Je.cx({[dd.disabled]:s}),children:Array.from({length:n}).map((q,le)=>ae.jsxs(et,{relative:!0,display:"inline-block",children:[ae.jsx("input",{ref:Te=>{we.current[le]=Te},className:Je.cx(dd.input,dd[m],i&&dd.error,o&&dd.success,Y[le]&&Je.css({caretColor:"transparent"})),inputMode:b?"numeric":"text",type:u?"password":"text",maxLength:1,autoFocus:a&&le===0,disabled:s||g,value:Y[le],onChange:Te=>pe(le,Te.target.value),onKeyDown:Te=>me(le,Te),onPaste:Te=>ee(le,Te)}),ae.jsx(wm.span,{className:dd.glow,variants:m_,custom:le,initial:"idle",animate:g?"wave":"idle"})]},le))}),t&&ae.jsx(en,{variant:"caption-1",colorName:"tertiary",children:t}),r&&i&&ae.jsx(en,{variant:"body-2",colorName:"negative",fontWeight:"regular",children:r})]})}),m_={idle:{opacity:0,scale:1,transition:{duration:.18}},wave:(n=0)=>({opacity:[0,.2,0],scale:[1,1.03,1],transition:{duration:1.5,delay:n*.15,repeat:1/0,ease:[.42,0,.58,1]}})};T1.displayName="OtpInput";const v_="_primary_svt6d_8",y_="_secondary_svt6d_13",b_="_button_svt6d_18",af={primary:v_,secondary:y_,button:b_,"button-active":"_button-active_svt6d_32","icon-container":"_icon-container_svt6d_35","button-primary":"_button-primary_svt6d_47","button-secondary":"_button-secondary_svt6d_51","button-disabled":"_button-disabled_svt6d_55","full-width":"_full-width_svt6d_60"};function x_({value:n,onChange:e,options:t,variant:i="primary",fullWidth:r=!1,className:o}){return ae.jsx(et,{row:!0,alignItems:"center",borderRadius:"var(--corner-md)",p:"var(--spacing-xs)",gap:"var(--spacing-md)",className:Je.cx(af[i],r&&af["full-width"],o),children:t.map(s=>{const a=s.value===n,l=s.disabled,u=s.separatorAfter??!1;return ae.jsxs(ge.Fragment,{children:[ae.jsxs("button",{type:"button",disabled:l,className:Je.cx(af.button,r&&af["full-width"],a&&af["button-active"],a&&af[`button-${i}`],l&&af["button-disabled"]),onClick:()=>!l&&e(s.value),children:[s.icon&&ae.jsx(et,{alignItems:"center",justifyContent:"center",className:af["icon-container"],children:s.icon}),s.label&&ae.jsx(en,{colorName:a?"primary":"tertiary",children:s.label}),!l&&ae.jsx(od,{color:"var(--fill-bg-overlay-primary)"})]}),u&&ae.jsx(et,{w:1,h:24,backgroundColor:"var(--fill-bg-tertiary)"})]},s.value)})})}function Cm(){return typeof window<"u"}function Gd(n){return E1(n)?(n.nodeName||"").toLowerCase():"#document"}function Fl(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function hh(n){var e;return(e=(E1(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function E1(n){return Cm()?n instanceof Node||n instanceof Fl(n).Node:!1}function Ii(n){return Cm()?n instanceof Element||n instanceof Fl(n).Element:!1}function Qa(n){return Cm()?n instanceof HTMLElement||n instanceof Fl(n).HTMLElement:!1}function Yy(n){return!Cm()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Fl(n).ShadowRoot}const w_=new Set(["inline","contents"]);function Ug(n){const{overflow:e,overflowX:t,overflowY:i,display:r}=kc(n);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!w_.has(r)}const C_=new Set(["table","td","th"]);function S_(n){return C_.has(Gd(n))}const T_=[":popover-open",":modal"];function Sm(n){return T_.some(e=>{try{return n.matches(e)}catch{return!1}})}const E_=["transform","translate","scale","rotate","perspective"],R_=["transform","translate","scale","rotate","perspective","filter"],k_=["paint","layout","strict","content"];function v0(n){const e=Tm(),t=Ii(n)?kc(n):n;return E_.some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||R_.some(i=>(t.willChange||"").includes(i))||k_.some(i=>(t.contain||"").includes(i))}function P_(n){let e=Kh(n);for(;Qa(e)&&!Uh(e);){if(v0(e))return e;if(Sm(e))return null;e=Kh(e)}return null}function Tm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const M_=new Set(["html","body","#document"]);function Uh(n){return M_.has(Gd(n))}function kc(n){return Fl(n).getComputedStyle(n)}function Em(n){return Ii(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Kh(n){if(Gd(n)==="html")return n;const e=n.assignedSlot||n.parentNode||Yy(n)&&n.host||hh(n);return Yy(e)?e.host:e}function R1(n){const e=Kh(n);return Uh(e)?n.ownerDocument?n.ownerDocument.body:n.body:Qa(e)&&Ug(e)?e:R1(e)}function bf(n,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=R1(n),o=r===((i=n.ownerDocument)==null?void 0:i.body),s=Fl(r);if(o){const a=Zy(s);return e.concat(s,s.visualViewport||[],Ug(r)?r:[],a&&t?bf(a):[])}return e.concat(r,bf(r,[],t))}function Zy(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}const Id=Math.min,Ol=Math.max,sm=Math.round,sp=Math.floor,ch=n=>({x:n,y:n}),A_={left:"right",right:"left",bottom:"top",top:"bottom"},__={start:"end",end:"start"};function mw(n,e,t){return Ol(n,Id(e,t))}function Xg(n,e){return typeof n=="function"?n(e):n}function Cf(n){return n.split("-")[0]}function Yg(n){return n.split("-")[1]}function k1(n){return n==="x"?"y":"x"}function P1(n){return n==="y"?"height":"width"}const O_=new Set(["top","bottom"]);function Vh(n){return O_.has(Cf(n))?"y":"x"}function M1(n){return k1(Vh(n))}function F_(n,e,t){t===void 0&&(t=!1);const i=Yg(n),r=M1(n),o=P1(r);let s=r==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=am(s)),[s,am(s)]}function L_(n){const e=am(n);return[Ky(n),e,Ky(e)]}function Ky(n){return n.replace(/start|end/g,e=>__[e])}const vw=["left","right"],yw=["right","left"],I_=["top","bottom"],D_=["bottom","top"];function B_(n,e,t){switch(n){case"top":case"bottom":return t?e?yw:vw:e?vw:yw;case"left":case"right":return e?I_:D_;default:return[]}}function N_(n,e,t,i){const r=Yg(n);let o=B_(Cf(n),t==="start",i);return r&&(o=o.map(s=>s+"-"+r),e&&(o=o.concat(o.map(Ky)))),o}function am(n){return n.replace(/left|right|bottom|top/g,e=>A_[e])}function z_(n){return{top:0,right:0,bottom:0,left:0,...n}}function H_(n){return typeof n!="number"?z_(n):{top:n,right:n,bottom:n,left:n}}function lm(n){const{x:e,y:t,width:i,height:r}=n;return{width:i,height:r,top:t,left:e,right:e+i,bottom:t+r,x:e,y:t}}const bw="data-floating-ui-focusable",W_="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Jy(n,e){if(!n||!e)return!1;const t=e.getRootNode==null?void 0:e.getRootNode();if(n.contains(e))return!0;if(t&&Yy(t)){let i=e;for(;i;){if(n===i)return!0;i=i.parentNode||i.host}}return!1}function qd(n){return"composedPath"in n?n.composedPath()[0]:n.target}function cv(n,e){if(e==null)return!1;if("composedPath"in n)return n.composedPath().includes(e);const t=n;return t.target!=null&&e.contains(t.target)}function V_(n){return n.matches("html,body")}function Md(n){return n?.ownerDocument||document}function G_(n){return Qa(n)&&n.matches(W_)}function U_(n){return n?n.hasAttribute(bw)?n:n.querySelector("["+bw+"]")||n:null}function Zp(n,e,t){return t===void 0&&(t=!0),n.filter(r=>{var o;return r.parentId===e&&(!t||((o=r.context)==null?void 0:o.open))}).flatMap(r=>[r,...Zp(n,r.id,t)])}function X_(n){return"nativeEvent"in n}function Dg(n,e){const t=["mouse","pen"];return e||t.push("",void 0),t.includes(n)}var Y_=typeof document<"u",Z_=function(){},Dd=Y_?ge.useLayoutEffect:Z_;const K_={...Re};function ap(n){const e=Re.useRef(n);return Dd(()=>{e.current=n}),e}const J_=K_.useInsertionEffect,Q_=J_||(n=>n());function ah(n){const e=Re.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Q_(()=>{e.current=n}),Re.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.current==null?void 0:e.current(...i)},[])}function xw(n,e,t){let{reference:i,floating:r}=n;const o=Vh(e),s=M1(e),a=P1(s),l=Cf(e),u=o==="y",g=i.x+i.width/2-r.width/2,m=i.y+i.height/2-r.height/2,b=i[a]/2-r[a]/2;let w;switch(l){case"top":w={x:g,y:i.y-r.height};break;case"bottom":w={x:g,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:m};break;case"left":w={x:i.x-r.width,y:m};break;default:w={x:i.x,y:i.y}}switch(Yg(e)){case"start":w[s]-=b*(t&&u?-1:1);break;case"end":w[s]+=b*(t&&u?-1:1);break}return w}const j_=async(n,e,t)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=t,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let u=await s.getElementRects({reference:n,floating:e,strategy:r}),{x:g,y:m}=xw(u,i,l),b=i,w={},E=0;for(let T=0;T<a.length;T++){const{name:P,fn:M}=a[T],{x:I,y:L,data:H,reset:W}=await M({x:g,y:m,initialPlacement:i,placement:b,strategy:r,middlewareData:w,rects:u,platform:s,elements:{reference:n,floating:e}});g=I??g,m=L??m,w={...w,[P]:{...w[P],...H}},W&&E<=50&&(E++,typeof W=="object"&&(W.placement&&(b=W.placement),W.rects&&(u=W.rects===!0?await s.getElementRects({reference:n,floating:e,strategy:r}):W.rects),{x:g,y:m}=xw(u,b,l)),T=-1)}return{x:g,y:m,placement:b,strategy:r,middlewareData:w}};async function y0(n,e){var t;e===void 0&&(e={});const{x:i,y:r,platform:o,rects:s,elements:a,strategy:l}=n,{boundary:u="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:b=!1,padding:w=0}=Xg(e,n),E=H_(w),P=a[b?m==="floating"?"reference":"floating":m],M=lm(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(P)))==null||t?P:P.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:g,strategy:l})),I=m==="floating"?{x:i,y:r,width:s.floating.width,height:s.floating.height}:s.reference,L=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),H=await(o.isElement==null?void 0:o.isElement(L))?await(o.getScale==null?void 0:o.getScale(L))||{x:1,y:1}:{x:1,y:1},W=lm(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:L,strategy:l}):I);return{top:(M.top-W.top+E.top)/H.y,bottom:(W.bottom-M.bottom+E.bottom)/H.y,left:(M.left-W.left+E.left)/H.x,right:(W.right-M.right+E.right)/H.x}}const q_=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var t,i;const{placement:r,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=e,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...P}=Xg(n,e);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const M=Cf(r),I=Vh(a),L=Cf(a)===a,H=await(l.isRTL==null?void 0:l.isRTL(u.floating)),W=b||(L||!T?[am(a)]:L_(a)),G=E!=="none";!b&&G&&W.push(...N_(a,T,E,H));const J=[a,...W],Y=await y0(e,P),$=[];let re=((i=o.flip)==null?void 0:i.overflows)||[];if(g&&$.push(Y[M]),m){const pe=F_(r,s,H);$.push(Y[pe[0]],Y[pe[1]])}if(re=[...re,{placement:r,overflows:$}],!$.every(pe=>pe<=0)){var be,we;const pe=(((be=o.flip)==null?void 0:be.index)||0)+1,me=J[pe];if(me&&(!(m==="alignment"?I!==Vh(me):!1)||re.every(le=>Vh(le.placement)===I?le.overflows[0]>0:!0)))return{data:{index:pe,overflows:re},reset:{placement:me}};let ee=(we=re.filter(q=>q.overflows[0]<=0).sort((q,le)=>q.overflows[1]-le.overflows[1])[0])==null?void 0:we.placement;if(!ee)switch(w){case"bestFit":{var Ee;const q=(Ee=re.filter(le=>{if(G){const Te=Vh(le.placement);return Te===I||Te==="y"}return!0}).map(le=>[le.placement,le.overflows.filter(Te=>Te>0).reduce((Te,he)=>Te+he,0)]).sort((le,Te)=>le[1]-Te[1])[0])==null?void 0:Ee[0];q&&(ee=q);break}case"initialPlacement":ee=a;break}if(r!==ee)return{reset:{placement:ee}}}return{}}}},$_=new Set(["left","top"]);async function eO(n,e){const{placement:t,platform:i,elements:r}=n,o=await(i.isRTL==null?void 0:i.isRTL(r.floating)),s=Cf(t),a=Yg(t),l=Vh(t)==="y",u=$_.has(s)?-1:1,g=o&&l?-1:1,m=Xg(e,n);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&typeof E=="number"&&(w=a==="end"?E*-1:E),l?{x:w*g,y:b*u}:{x:b*u,y:w*g}}const tO=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var t,i;const{x:r,y:o,placement:s,middlewareData:a}=e,l=await eO(e,n);return s===((t=a.offset)==null?void 0:t.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:s}}}}},nO=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:i,placement:r}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:P=>{let{x:M,y:I}=P;return{x:M,y:I}}},...l}=Xg(n,e),u={x:t,y:i},g=await y0(e,l),m=Vh(Cf(r)),b=k1(m);let w=u[b],E=u[m];if(o){const P=b==="y"?"top":"left",M=b==="y"?"bottom":"right",I=w+g[P],L=w-g[M];w=mw(I,w,L)}if(s){const P=m==="y"?"top":"left",M=m==="y"?"bottom":"right",I=E+g[P],L=E-g[M];E=mw(I,E,L)}const T=a.fn({...e,[b]:w,[m]:E});return{...T,data:{x:T.x-t,y:T.y-i,enabled:{[b]:o,[m]:s}}}}}},iO=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(e){var t,i;const{placement:r,rects:o,platform:s,elements:a}=e,{apply:l=()=>{},...u}=Xg(n,e),g=await y0(e,u),m=Cf(r),b=Yg(r),w=Vh(r)==="y",{width:E,height:T}=o.floating;let P,M;m==="top"||m==="bottom"?(P=m,M=b===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(M=m,P=b==="end"?"top":"bottom");const I=T-g.top-g.bottom,L=E-g.left-g.right,H=Id(T-g[P],I),W=Id(E-g[M],L),G=!e.middlewareData.shift;let J=H,Y=W;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(Y=L),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(J=I),G&&!b){const re=Ol(g.left,0),be=Ol(g.right,0),we=Ol(g.top,0),Ee=Ol(g.bottom,0);w?Y=E-2*(re!==0||be!==0?re+be:Ol(g.left,g.right)):J=T-2*(we!==0||Ee!==0?we+Ee:Ol(g.top,g.bottom))}await l({...e,availableWidth:Y,availableHeight:J});const $=await s.getDimensions(a.floating);return E!==$.width||T!==$.height?{reset:{rects:!0}}:{}}}};function A1(n){const e=kc(n);let t=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Qa(n),o=r?n.offsetWidth:t,s=r?n.offsetHeight:i,a=sm(t)!==o||sm(i)!==s;return a&&(t=o,i=s),{width:t,height:i,$:a}}function b0(n){return Ii(n)?n:n.contextElement}function Od(n){const e=b0(n);if(!Qa(e))return ch(1);const t=e.getBoundingClientRect(),{width:i,height:r,$:o}=A1(e);let s=(o?sm(t.width):t.width)/i,a=(o?sm(t.height):t.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const rO=ch(0);function _1(n){const e=Fl(n);return!Tm()||!e.visualViewport?rO:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function oO(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==Fl(n)?!1:e}function nd(n,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=n.getBoundingClientRect(),o=b0(n);let s=ch(1);e&&(i?Ii(i)&&(s=Od(i)):s=Od(n));const a=oO(o,t,i)?_1(o):ch(0);let l=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,g=r.width/s.x,m=r.height/s.y;if(o){const b=Fl(o),w=i&&Ii(i)?Fl(i):i;let E=b,T=Zy(E);for(;T&&i&&w!==E;){const P=Od(T),M=T.getBoundingClientRect(),I=kc(T),L=M.left+(T.clientLeft+parseFloat(I.paddingLeft))*P.x,H=M.top+(T.clientTop+parseFloat(I.paddingTop))*P.y;l*=P.x,u*=P.y,g*=P.x,m*=P.y,l+=L,u+=H,E=Fl(T),T=Zy(E)}}return lm({width:g,height:m,x:l,y:u})}function Rm(n,e){const t=Em(n).scrollLeft;return e?e.left+t:nd(hh(n)).left+t}function O1(n,e){const t=n.getBoundingClientRect(),i=t.left+e.scrollLeft-Rm(n,t),r=t.top+e.scrollTop;return{x:i,y:r}}function sO(n){let{elements:e,rect:t,offsetParent:i,strategy:r}=n;const o=r==="fixed",s=hh(i),a=e?Sm(e.floating):!1;if(i===s||a&&o)return t;let l={scrollLeft:0,scrollTop:0},u=ch(1);const g=ch(0),m=Qa(i);if((m||!m&&!o)&&((Gd(i)!=="body"||Ug(s))&&(l=Em(i)),Qa(i))){const w=nd(i);u=Od(i),g.x=w.x+i.clientLeft,g.y=w.y+i.clientTop}const b=s&&!m&&!o?O1(s,l):ch(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-l.scrollLeft*u.x+g.x+b.x,y:t.y*u.y-l.scrollTop*u.y+g.y+b.y}}function aO(n){return Array.from(n.getClientRects())}function lO(n){const e=hh(n),t=Em(n),i=n.ownerDocument.body,r=Ol(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),o=Ol(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-t.scrollLeft+Rm(n);const a=-t.scrollTop;return kc(i).direction==="rtl"&&(s+=Ol(e.clientWidth,i.clientWidth)-r),{width:r,height:o,x:s,y:a}}const ww=25;function cO(n,e){const t=Fl(n),i=hh(n),r=t.visualViewport;let o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;const g=Tm();(!g||g&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const u=Rm(i);if(u<=0){const g=i.ownerDocument,m=g.body,b=getComputedStyle(m),w=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(i.clientWidth-m.clientWidth-w);E<=ww&&(o-=E)}else u<=ww&&(o+=u);return{width:o,height:s,x:a,y:l}}const uO=new Set(["absolute","fixed"]);function hO(n,e){const t=nd(n,!0,e==="fixed"),i=t.top+n.clientTop,r=t.left+n.clientLeft,o=Qa(n)?Od(n):ch(1),s=n.clientWidth*o.x,a=n.clientHeight*o.y,l=r*o.x,u=i*o.y;return{width:s,height:a,x:l,y:u}}function Cw(n,e,t){let i;if(e==="viewport")i=cO(n,t);else if(e==="document")i=lO(hh(n));else if(Ii(e))i=hO(e,t);else{const r=_1(n);i={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return lm(i)}function F1(n,e){const t=Kh(n);return t===e||!Ii(t)||Uh(t)?!1:kc(t).position==="fixed"||F1(t,e)}function fO(n,e){const t=e.get(n);if(t)return t;let i=bf(n,[],!1).filter(a=>Ii(a)&&Gd(a)!=="body"),r=null;const o=kc(n).position==="fixed";let s=o?Kh(n):n;for(;Ii(s)&&!Uh(s);){const a=kc(s),l=v0(s);!l&&a.position==="fixed"&&(r=null),(o?!l&&!r:!l&&a.position==="static"&&!!r&&uO.has(r.position)||Ug(s)&&!l&&F1(n,s))?i=i.filter(g=>g!==s):r=a,s=Kh(s)}return e.set(n,i),i}function dO(n){let{element:e,boundary:t,rootBoundary:i,strategy:r}=n;const s=[...t==="clippingAncestors"?Sm(e)?[]:fO(e,this._c):[].concat(t),i],a=s[0],l=s.reduce((u,g)=>{const m=Cw(e,g,r);return u.top=Ol(m.top,u.top),u.right=Id(m.right,u.right),u.bottom=Id(m.bottom,u.bottom),u.left=Ol(m.left,u.left),u},Cw(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function gO(n){const{width:e,height:t}=A1(n);return{width:e,height:t}}function pO(n,e,t){const i=Qa(e),r=hh(e),o=t==="fixed",s=nd(n,!0,o,e);let a={scrollLeft:0,scrollTop:0};const l=ch(0);function u(){l.x=Rm(r)}if(i||!i&&!o)if((Gd(e)!=="body"||Ug(r))&&(a=Em(e)),i){const w=nd(e,!0,o,e);l.x=w.x+e.clientLeft,l.y=w.y+e.clientTop}else r&&u();o&&!i&&r&&u();const g=r&&!i&&!o?O1(r,a):ch(0),m=s.left+a.scrollLeft-l.x-g.x,b=s.top+a.scrollTop-l.y-g.y;return{x:m,y:b,width:s.width,height:s.height}}function uv(n){return kc(n).position==="static"}function Sw(n,e){if(!Qa(n)||kc(n).position==="fixed")return null;if(e)return e(n);let t=n.offsetParent;return hh(n)===t&&(t=t.ownerDocument.body),t}function L1(n,e){const t=Fl(n);if(Sm(n))return t;if(!Qa(n)){let r=Kh(n);for(;r&&!Uh(r);){if(Ii(r)&&!uv(r))return r;r=Kh(r)}return t}let i=Sw(n,e);for(;i&&S_(i)&&uv(i);)i=Sw(i,e);return i&&Uh(i)&&uv(i)&&!v0(i)?t:i||P_(n)||t}const mO=async function(n){const e=this.getOffsetParent||L1,t=this.getDimensions,i=await t(n.floating);return{reference:pO(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function vO(n){return kc(n).direction==="rtl"}const yO={convertOffsetParentRelativeRectToViewportRelativeRect:sO,getDocumentElement:hh,getClippingRect:dO,getOffsetParent:L1,getElementRects:mO,getClientRects:aO,getDimensions:gO,getScale:Od,isElement:Ii,isRTL:vO};function I1(n,e){return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height}function bO(n,e){let t=null,i;const r=hh(n);function o(){var a;clearTimeout(i),(a=t)==null||a.disconnect(),t=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=n.getBoundingClientRect(),{left:g,top:m,width:b,height:w}=u;if(a||e(),!b||!w)return;const E=sp(m),T=sp(r.clientWidth-(g+b)),P=sp(r.clientHeight-(m+w)),M=sp(g),L={rootMargin:-E+"px "+-T+"px "+-P+"px "+-M+"px",threshold:Ol(0,Id(1,l))||1};let H=!0;function W(G){const J=G[0].intersectionRatio;if(J!==l){if(!H)return s();J?s(!1,J):i=setTimeout(()=>{s(!1,1e-7)},1e3)}J===1&&!I1(u,n.getBoundingClientRect())&&s(),H=!1}try{t=new IntersectionObserver(W,{...L,root:r.ownerDocument})}catch{t=new IntersectionObserver(W,L)}t.observe(n)}return s(!0),o}function D1(n,e,t,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,u=b0(n),g=r||o?[...u?bf(u):[],...bf(e)]:[];g.forEach(M=>{r&&M.addEventListener("scroll",t,{passive:!0}),o&&M.addEventListener("resize",t)});const m=u&&a?bO(u,t):null;let b=-1,w=null;s&&(w=new ResizeObserver(M=>{let[I]=M;I&&I.target===u&&w&&(w.unobserve(e),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var L;(L=w)==null||L.observe(e)})),t()}),u&&!l&&w.observe(u),w.observe(e));let E,T=l?nd(n):null;l&&P();function P(){const M=nd(n);T&&!I1(T,M)&&t(),T=M,E=requestAnimationFrame(P)}return t(),()=>{var M;g.forEach(I=>{r&&I.removeEventListener("scroll",t),o&&I.removeEventListener("resize",t)}),m?.(),(M=w)==null||M.disconnect(),w=null,l&&cancelAnimationFrame(E)}}const xO=tO,wO=nO,CO=q_,SO=iO,TO=(n,e,t)=>{const i=new Map,r={platform:yO,...t},o={...r.platform,_c:i};return j_(n,e,{...r,platform:o})};var EO=typeof document<"u",RO=function(){},Kp=EO?ge.useLayoutEffect:RO;function cm(n,e){if(n===e)return!0;if(typeof n!=typeof e)return!1;if(typeof n=="function"&&n.toString()===e.toString())return!0;let t,i,r;if(n&&e&&typeof n=="object"){if(Array.isArray(n)){if(t=n.length,t!==e.length)return!1;for(i=t;i--!==0;)if(!cm(n[i],e[i]))return!1;return!0}if(r=Object.keys(n),t=r.length,t!==Object.keys(e).length)return!1;for(i=t;i--!==0;)if(!{}.hasOwnProperty.call(e,r[i]))return!1;for(i=t;i--!==0;){const o=r[i];if(!(o==="_owner"&&n.$$typeof)&&!cm(n[o],e[o]))return!1}return!0}return n!==n&&e!==e}function B1(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Tw(n,e){const t=B1(n);return Math.round(e*t)/t}function hv(n){const e=Re.useRef(n);return Kp(()=>{e.current=n}),e}function kO(n){n===void 0&&(n={});const{placement:e="bottom",strategy:t="absolute",middleware:i=[],platform:r,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=n,[g,m]=Re.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[b,w]=Re.useState(i);cm(b,i)||w(i);const[E,T]=Re.useState(null),[P,M]=Re.useState(null),I=Re.useCallback(le=>{le!==G.current&&(G.current=le,T(le))},[]),L=Re.useCallback(le=>{le!==J.current&&(J.current=le,M(le))},[]),H=o||E,W=s||P,G=Re.useRef(null),J=Re.useRef(null),Y=Re.useRef(g),$=l!=null,re=hv(l),be=hv(r),we=hv(u),Ee=Re.useCallback(()=>{if(!G.current||!J.current)return;const le={placement:e,strategy:t,middleware:b};be.current&&(le.platform=be.current),TO(G.current,J.current,le).then(Te=>{const he={...Te,isPositioned:we.current!==!1};pe.current&&!cm(Y.current,he)&&(Y.current=he,dR.flushSync(()=>{m(he)}))})},[b,e,t,be,we]);Kp(()=>{u===!1&&Y.current.isPositioned&&(Y.current.isPositioned=!1,m(le=>({...le,isPositioned:!1})))},[u]);const pe=Re.useRef(!1);Kp(()=>(pe.current=!0,()=>{pe.current=!1}),[]),Kp(()=>{if(H&&(G.current=H),W&&(J.current=W),H&&W){if(re.current)return re.current(H,W,Ee);Ee()}},[H,W,Ee,re,$]);const me=Re.useMemo(()=>({reference:G,floating:J,setReference:I,setFloating:L}),[I,L]),ee=Re.useMemo(()=>({reference:H,floating:W}),[H,W]),q=Re.useMemo(()=>{const le={position:t,left:0,top:0};if(!ee.floating)return le;const Te=Tw(ee.floating,g.x),he=Tw(ee.floating,g.y);return a?{...le,transform:"translate("+Te+"px, "+he+"px)",...B1(ee.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:Te,top:he}},[t,a,ee.floating,g.x,g.y]);return Re.useMemo(()=>({...g,update:Ee,refs:me,elements:ee,floatingStyles:q}),[g,Ee,me,ee,q])}const N1=(n,e)=>({...xO(n),options:[n,e]}),z1=(n,e)=>({...wO(n),options:[n,e]}),H1=(n,e)=>({...CO(n),options:[n,e]}),PO=(n,e)=>({...SO(n),options:[n,e]});function MO(n){const e=Re.useRef(void 0),t=Re.useCallback(i=>{const r=n.map(o=>{if(o!=null){if(typeof o=="function"){const s=o,a=s(i);return typeof a=="function"?a:()=>{s(null)}}return o.current=i,()=>{o.current=null}}});return()=>{r.forEach(o=>o?.())}},n);return Re.useMemo(()=>n.every(i=>i==null)?null:i=>{e.current&&(e.current(),e.current=void 0),i!=null&&(e.current=t(i))},n)}const AO="data-floating-ui-focusable",Ew="active",Rw="selected",_O={...Re};let kw=!1,OO=0;const Pw=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+OO++;function FO(){const[n,e]=Re.useState(()=>kw?Pw():void 0);return Dd(()=>{n==null&&e(Pw())},[]),Re.useEffect(()=>{kw=!0},[]),n}const LO=_O.useId,W1=LO||FO;let Qy;process.env.NODE_ENV!=="production"&&(Qy=new Set);function IO(){for(var n,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];const r="Floating UI: "+t.join(" ");if(!((n=Qy)!=null&&n.has(r))){var o;(o=Qy)==null||o.add(r),console.error(r)}}function DO(){const n=new Map;return{emit(e,t){var i;(i=n.get(e))==null||i.forEach(r=>r(t))},on(e,t){n.has(e)||n.set(e,new Set),n.get(e).add(t)},off(e,t){var i;(i=n.get(e))==null||i.delete(t)}}}const BO=Re.createContext(null),NO=Re.createContext(null),x0=()=>{var n;return((n=Re.useContext(BO))==null?void 0:n.id)||null},w0=()=>Re.useContext(NO);function V1(n){return"data-floating-ui-"+n}function mu(n){n.current!==-1&&(clearTimeout(n.current),n.current=-1)}const Mw=V1("safe-polygon");function fv(n,e,t){if(t&&!Dg(t))return 0;if(typeof n=="number")return n;if(typeof n=="function"){const i=n();return typeof i=="number"?i:i?.[e]}return n?.[e]}function dv(n){return typeof n=="function"?n():n}function zO(n,e){e===void 0&&(e={});const{open:t,onOpenChange:i,dataRef:r,events:o,elements:s}=n,{enabled:a=!0,delay:l=0,handleClose:u=null,mouseOnly:g=!1,restMs:m=0,move:b=!0}=e,w=w0(),E=x0(),T=ap(u),P=ap(l),M=ap(t),I=ap(m),L=Re.useRef(),H=Re.useRef(-1),W=Re.useRef(),G=Re.useRef(-1),J=Re.useRef(!0),Y=Re.useRef(!1),$=Re.useRef(()=>{}),re=Re.useRef(!1),be=ah(()=>{var q;const le=(q=r.current.openEvent)==null?void 0:q.type;return le?.includes("mouse")&&le!=="mousedown"});Re.useEffect(()=>{if(!a)return;function q(le){let{open:Te}=le;Te||(mu(H),mu(G),J.current=!0,re.current=!1)}return o.on("openchange",q),()=>{o.off("openchange",q)}},[a,o]),Re.useEffect(()=>{if(!a||!T.current||!t)return;function q(Te){be()&&i(!1,Te,"hover")}const le=Md(s.floating).documentElement;return le.addEventListener("mouseleave",q),()=>{le.removeEventListener("mouseleave",q)}},[s.floating,t,i,a,T,be]);const we=Re.useCallback(function(q,le,Te){le===void 0&&(le=!0),Te===void 0&&(Te="hover");const he=fv(P.current,"close",L.current);he&&!W.current?(mu(H),H.current=window.setTimeout(()=>i(!1,q,Te),he)):le&&(mu(H),i(!1,q,Te))},[P,i]),Ee=ah(()=>{$.current(),W.current=void 0}),pe=ah(()=>{if(Y.current){const q=Md(s.floating).body;q.style.pointerEvents="",q.removeAttribute(Mw),Y.current=!1}}),me=ah(()=>r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1);Re.useEffect(()=>{if(!a)return;function q(Ne){if(mu(H),J.current=!1,g&&!Dg(L.current)||dv(I.current)>0&&!fv(P.current,"open"))return;const We=fv(P.current,"open",L.current);We?H.current=window.setTimeout(()=>{M.current||i(!0,Ne,"hover")},We):t||i(!0,Ne,"hover")}function le(Ne){if(me()){pe();return}$.current();const We=Md(s.floating);if(mu(G),re.current=!1,T.current&&r.current.floatingContext){t||mu(H),W.current=T.current({...r.current.floatingContext,tree:w,x:Ne.clientX,y:Ne.clientY,onClose(){pe(),Ee(),me()||we(Ne,!0,"safe-polygon")}});const _e=W.current;We.addEventListener("mousemove",_e),$.current=()=>{We.removeEventListener("mousemove",_e)};return}(L.current==="touch"?!Jy(s.floating,Ne.relatedTarget):!0)&&we(Ne)}function Te(Ne){me()||r.current.floatingContext&&(T.current==null||T.current({...r.current.floatingContext,tree:w,x:Ne.clientX,y:Ne.clientY,onClose(){pe(),Ee(),me()||we(Ne)}})(Ne))}function he(){mu(H)}function ue(Ne){me()||we(Ne,!1)}if(Ii(s.domReference)){const Ne=s.domReference,We=s.floating;return t&&Ne.addEventListener("mouseleave",Te),b&&Ne.addEventListener("mousemove",q,{once:!0}),Ne.addEventListener("mouseenter",q),Ne.addEventListener("mouseleave",le),We&&(We.addEventListener("mouseleave",Te),We.addEventListener("mouseenter",he),We.addEventListener("mouseleave",ue)),()=>{t&&Ne.removeEventListener("mouseleave",Te),b&&Ne.removeEventListener("mousemove",q),Ne.removeEventListener("mouseenter",q),Ne.removeEventListener("mouseleave",le),We&&(We.removeEventListener("mouseleave",Te),We.removeEventListener("mouseenter",he),We.removeEventListener("mouseleave",ue))}}},[s,a,n,g,b,we,Ee,pe,i,t,M,w,P,T,r,me,I]),Dd(()=>{var q;if(a&&t&&(q=T.current)!=null&&(q=q.__options)!=null&&q.blockPointerEvents&&be()){Y.current=!0;const Te=s.floating;if(Ii(s.domReference)&&Te){var le;const he=Md(s.floating).body;he.setAttribute(Mw,"");const ue=s.domReference,Ne=w==null||(le=w.nodesRef.current.find(We=>We.id===E))==null||(le=le.context)==null?void 0:le.elements.floating;return Ne&&(Ne.style.pointerEvents=""),he.style.pointerEvents="none",ue.style.pointerEvents="auto",Te.style.pointerEvents="auto",()=>{he.style.pointerEvents="",ue.style.pointerEvents="",Te.style.pointerEvents=""}}}},[a,t,E,s,w,T,be]),Dd(()=>{t||(L.current=void 0,re.current=!1,Ee(),pe())},[t,Ee,pe]),Re.useEffect(()=>()=>{Ee(),mu(H),mu(G),pe()},[a,s.domReference,Ee,pe]);const ee=Re.useMemo(()=>{function q(le){L.current=le.pointerType}return{onPointerDown:q,onPointerEnter:q,onMouseMove(le){const{nativeEvent:Te}=le;function he(){!J.current&&!M.current&&i(!0,Te,"hover")}g&&!Dg(L.current)||t||dv(I.current)===0||re.current&&le.movementX**2+le.movementY**2<2||(mu(G),L.current==="touch"?he():(re.current=!0,G.current=window.setTimeout(he,dv(I.current))))}}},[g,i,t,M,I]);return Re.useMemo(()=>a?{reference:ee}:{},[a,ee])}function Aw(n){return Qa(n.target)&&n.target.tagName==="BUTTON"}function HO(n){return Qa(n.target)&&n.target.tagName==="A"}function _w(n){return G_(n)}function WO(n,e){e===void 0&&(e={});const{open:t,onOpenChange:i,dataRef:r,elements:{domReference:o}}=n,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:g=!0,stickIfOpen:m=!0}=e,b=Re.useRef(),w=Re.useRef(!1),E=Re.useMemo(()=>({onPointerDown(T){b.current=T.pointerType},onMouseDown(T){const P=b.current;T.button===0&&a!=="click"&&(Dg(P,!0)&&u||(t&&l&&(!(r.current.openEvent&&m)||r.current.openEvent.type==="mousedown")?i(!1,T.nativeEvent,"click"):(T.preventDefault(),i(!0,T.nativeEvent,"click"))))},onClick(T){const P=b.current;if(a==="mousedown"&&b.current){b.current=void 0;return}Dg(P,!0)&&u||(t&&l&&(!(r.current.openEvent&&m)||r.current.openEvent.type==="click")?i(!1,T.nativeEvent,"click"):i(!0,T.nativeEvent,"click"))},onKeyDown(T){b.current=void 0,!(T.defaultPrevented||!g||Aw(T))&&(T.key===" "&&!_w(o)&&(T.preventDefault(),w.current=!0),!HO(T)&&T.key==="Enter"&&i(!(t&&l),T.nativeEvent,"click"))},onKeyUp(T){T.defaultPrevented||!g||Aw(T)||_w(o)||T.key===" "&&w.current&&(w.current=!1,i(!(t&&l),T.nativeEvent,"click"))}}),[r,o,a,u,g,i,t,m,l]);return Re.useMemo(()=>s?{reference:E}:{},[s,E])}const VO={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},GO={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ow=n=>{var e,t;return{escapeKey:typeof n=="boolean"?n:(e=n?.escapeKey)!=null?e:!1,outsidePress:typeof n=="boolean"?n:(t=n?.outsidePress)!=null?t:!0}};function UO(n,e){e===void 0&&(e={});const{open:t,onOpenChange:i,elements:r,dataRef:o}=n,{enabled:s=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:g=!1,referencePressEvent:m="pointerdown",ancestorScroll:b=!1,bubbles:w,capture:E}=e,T=w0(),P=ah(typeof l=="function"?l:()=>!1),M=typeof l=="function"?P:l,I=Re.useRef(!1),{escapeKey:L,outsidePress:H}=Ow(w),{escapeKey:W,outsidePress:G}=Ow(E),J=Re.useRef(!1),Y=ah(pe=>{var me;if(!t||!s||!a||pe.key!=="Escape"||J.current)return;const ee=(me=o.current.floatingContext)==null?void 0:me.nodeId,q=T?Zp(T.nodesRef.current,ee):[];if(!L&&(pe.stopPropagation(),q.length>0)){let le=!0;if(q.forEach(Te=>{var he;if((he=Te.context)!=null&&he.open&&!Te.context.dataRef.current.__escapeKeyBubbles){le=!1;return}}),!le)return}i(!1,X_(pe)?pe.nativeEvent:pe,"escape-key")}),$=ah(pe=>{var me;const ee=()=>{var q;Y(pe),(q=qd(pe))==null||q.removeEventListener("keydown",ee)};(me=qd(pe))==null||me.addEventListener("keydown",ee)}),re=ah(pe=>{var me;const ee=o.current.insideReactTree;o.current.insideReactTree=!1;const q=I.current;if(I.current=!1,u==="click"&&q||ee||typeof M=="function"&&!M(pe))return;const le=qd(pe),Te="["+V1("inert")+"]",he=Md(r.floating).querySelectorAll(Te);let ue=Ii(le)?le:null;for(;ue&&!Uh(ue);){const _e=Kh(ue);if(Uh(_e)||!Ii(_e))break;ue=_e}if(he.length&&Ii(le)&&!V_(le)&&!Jy(le,r.floating)&&Array.from(he).every(_e=>!Jy(ue,_e)))return;if(Qa(le)&&Ee){const _e=Uh(le),Ve=kc(le),Oe=/auto|scroll/,qe=_e||Oe.test(Ve.overflowX),je=_e||Oe.test(Ve.overflowY),it=qe&&le.clientWidth>0&&le.scrollWidth>le.clientWidth,ct=je&&le.clientHeight>0&&le.scrollHeight>le.clientHeight,li=Ve.direction==="rtl",tt=ct&&(li?pe.offsetX<=le.offsetWidth-le.clientWidth:pe.offsetX>le.clientWidth),Nt=it&&pe.offsetY>le.clientHeight;if(tt||Nt)return}const Ne=(me=o.current.floatingContext)==null?void 0:me.nodeId,We=T&&Zp(T.nodesRef.current,Ne).some(_e=>{var Ve;return cv(pe,(Ve=_e.context)==null?void 0:Ve.elements.floating)});if(cv(pe,r.floating)||cv(pe,r.domReference)||We)return;const Qe=T?Zp(T.nodesRef.current,Ne):[];if(Qe.length>0){let _e=!0;if(Qe.forEach(Ve=>{var Oe;if((Oe=Ve.context)!=null&&Oe.open&&!Ve.context.dataRef.current.__outsidePressBubbles){_e=!1;return}}),!_e)return}i(!1,pe,"outside-press")}),be=ah(pe=>{var me;const ee=()=>{var q;re(pe),(q=qd(pe))==null||q.removeEventListener(u,ee)};(me=qd(pe))==null||me.addEventListener(u,ee)});Re.useEffect(()=>{if(!t||!s)return;o.current.__escapeKeyBubbles=L,o.current.__outsidePressBubbles=H;let pe=-1;function me(he){i(!1,he,"ancestor-scroll")}function ee(){window.clearTimeout(pe),J.current=!0}function q(){pe=window.setTimeout(()=>{J.current=!1},Tm()?5:0)}const le=Md(r.floating);a&&(le.addEventListener("keydown",W?$:Y,W),le.addEventListener("compositionstart",ee),le.addEventListener("compositionend",q)),M&&le.addEventListener(u,G?be:re,G);let Te=[];return b&&(Ii(r.domReference)&&(Te=bf(r.domReference)),Ii(r.floating)&&(Te=Te.concat(bf(r.floating))),!Ii(r.reference)&&r.reference&&r.reference.contextElement&&(Te=Te.concat(bf(r.reference.contextElement)))),Te=Te.filter(he=>{var ue;return he!==((ue=le.defaultView)==null?void 0:ue.visualViewport)}),Te.forEach(he=>{he.addEventListener("scroll",me,{passive:!0})}),()=>{a&&(le.removeEventListener("keydown",W?$:Y,W),le.removeEventListener("compositionstart",ee),le.removeEventListener("compositionend",q)),M&&le.removeEventListener(u,G?be:re,G),Te.forEach(he=>{he.removeEventListener("scroll",me)}),window.clearTimeout(pe)}},[o,r,a,M,u,t,i,b,s,L,H,Y,W,$,re,G,be]),Re.useEffect(()=>{o.current.insideReactTree=!1},[o,M,u]);const we=Re.useMemo(()=>({onKeyDown:Y,...g&&{[VO[m]]:pe=>{i(!1,pe.nativeEvent,"reference-press")},...m!=="click"&&{onClick(pe){i(!1,pe.nativeEvent,"reference-press")}}}}),[Y,i,g,m]),Ee=Re.useMemo(()=>({onKeyDown:Y,onMouseDown(){I.current=!0},onMouseUp(){I.current=!0},[GO[u]]:()=>{o.current.insideReactTree=!0}}),[Y,u,o]);return Re.useMemo(()=>s?{reference:we,floating:Ee}:{},[s,we,Ee])}function XO(n){const{open:e=!1,onOpenChange:t,elements:i}=n,r=W1(),o=Re.useRef({}),[s]=Re.useState(()=>DO()),a=x0()!=null;if(process.env.NODE_ENV!=="production"){const w=i.reference;w&&!Ii(w)&&IO("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=Re.useState(i.reference),g=ah((w,E,T)=>{o.current.openEvent=w?E:void 0,s.emit("openchange",{open:w,event:E,reason:T,nested:a}),t?.(w,E,T)}),m=Re.useMemo(()=>({setPositionReference:u}),[]),b=Re.useMemo(()=>({reference:l||i.reference||null,floating:i.floating||null,domReference:i.reference}),[l,i.reference,i.floating]);return Re.useMemo(()=>({dataRef:o,open:e,onOpenChange:g,elements:b,events:s,floatingId:r,refs:m}),[e,g,b,s,r,m])}function G1(n){n===void 0&&(n={});const{nodeId:e}=n,t=XO({...n,elements:{reference:null,floating:null,...n.elements}}),i=n.rootContext||t,r=i.elements,[o,s]=Re.useState(null),[a,l]=Re.useState(null),g=r?.domReference||o,m=Re.useRef(null),b=w0();Dd(()=>{g&&(m.current=g)},[g]);const w=kO({...n,elements:{...r,...a&&{reference:a}}}),E=Re.useCallback(L=>{const H=Ii(L)?{getBoundingClientRect:()=>L.getBoundingClientRect(),getClientRects:()=>L.getClientRects(),contextElement:L}:L;l(H),w.refs.setReference(H)},[w.refs]),T=Re.useCallback(L=>{(Ii(L)||L===null)&&(m.current=L,s(L)),(Ii(w.refs.reference.current)||w.refs.reference.current===null||L!==null&&!Ii(L))&&w.refs.setReference(L)},[w.refs]),P=Re.useMemo(()=>({...w.refs,setReference:T,setPositionReference:E,domReference:m}),[w.refs,T,E]),M=Re.useMemo(()=>({...w.elements,domReference:g}),[w.elements,g]),I=Re.useMemo(()=>({...w,...i,refs:P,elements:M,nodeId:e}),[w,P,M,e,i]);return Dd(()=>{i.dataRef.current.floatingContext=I;const L=b?.nodesRef.current.find(H=>H.id===e);L&&(L.context=I)}),Re.useMemo(()=>({...w,context:I,refs:P,elements:M}),[w,P,M,I])}function gv(n,e,t){const i=new Map,r=t==="item";let o=n;if(r&&n){const{[Ew]:s,[Rw]:a,...l}=n;o=l}return{...t==="floating"&&{tabIndex:-1,[AO]:""},...o,...e.map(s=>{const a=s?s[t]:null;return typeof a=="function"?n?a(n):null:a}).concat(n).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[u,g]=l;if(!(r&&[Ew,Rw].includes(u)))if(u.indexOf("on")===0){if(i.has(u)||i.set(u,[]),typeof g=="function"){var m;(m=i.get(u))==null||m.push(g),s[u]=function(){for(var b,w=arguments.length,E=new Array(w),T=0;T<w;T++)E[T]=arguments[T];return(b=i.get(u))==null?void 0:b.map(P=>P(...E)).find(P=>P!==void 0)}}}else s[u]=g}),s),{})}}function YO(n){n===void 0&&(n=[]);const e=n.map(a=>a?.reference),t=n.map(a=>a?.floating),i=n.map(a=>a?.item),r=Re.useCallback(a=>gv(a,n,"reference"),e),o=Re.useCallback(a=>gv(a,n,"floating"),t),s=Re.useCallback(a=>gv(a,n,"item"),i);return Re.useMemo(()=>({getReferenceProps:r,getFloatingProps:o,getItemProps:s}),[r,o,s])}const ZO=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function KO(n,e){var t,i;e===void 0&&(e={});const{open:r,elements:o,floatingId:s}=n,{enabled:a=!0,role:l="dialog"}=e,u=W1(),g=((t=o.domReference)==null?void 0:t.id)||u,m=Re.useMemo(()=>{var I;return((I=U_(o.floating))==null?void 0:I.id)||s},[o.floating,s]),b=(i=ZO.get(l))!=null?i:l,E=x0()!=null,T=Re.useMemo(()=>b==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:r?m:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":b==="alertdialog"?"dialog":b,"aria-controls":r?m:void 0,...b==="listbox"&&{role:"combobox"},...b==="menu"&&{id:g},...b==="menu"&&E&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[b,m,E,r,g,l]),P=Re.useMemo(()=>{const I={id:m,...b&&{role:b}};return b==="tooltip"||l==="label"?I:{...I,...b==="menu"&&{"aria-labelledby":g}}},[b,m,g,l]),M=Re.useCallback(I=>{let{active:L,selected:H}=I;const W={role:"option",...L&&{id:m+"-fui-option"}};switch(l){case"select":case"combobox":return{...W,"aria-selected":H}}return{}},[m,l]);return Re.useMemo(()=>a?{reference:T,floating:P,item:M}:{},[a,T,P,M])}const JO=n=>Re.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),QO=n=>Re.createElement("svg",{fill:"currentColor",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 462.035 462.035",xmlSpace:"preserve",...n},Re.createElement("g",null,Re.createElement("path",{d:"M457.83,158.441c-0.021-0.028-0.033-0.058-0.057-0.087l-50.184-62.48c-0.564-0.701-1.201-1.305-1.879-1.845 c-2.16-2.562-5.355-4.225-8.967-4.225H65.292c-3.615,0-6.804,1.661-8.965,4.225c-0.678,0.54-1.316,1.138-1.885,1.845l-50.178,62.48 c-0.023,0.029-0.034,0.059-0.057,0.087C1.655,160.602,0,163.787,0,167.39v193.07c0,6.5,5.27,11.771,11.77,11.771h438.496 c6.5,0,11.77-5.271,11.77-11.771V167.39C462.037,163.787,460.381,160.602,457.83,158.441z M408.516,134.615l16.873,21.005h-16.873 V134.615z M384.975,113.345v42.274H296.84c-2.514,0-4.955,0.805-6.979,2.293l-58.837,43.299l-58.849-43.305 c-2.023-1.482-4.466-2.287-6.978-2.287H77.061v-42.274H384.975z M53.523,155.62H36.65l16.873-21.005V155.62z M438.498,348.69H23.54 V179.16h137.796l62.711,46.148c4.15,3.046,9.805,3.052,13.954-0.005l62.698-46.144h137.799V348.69L438.498,348.69z"}))),U1=n=>Re.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("g",{opacity:.6},Re.createElement("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))),pv={sm:{h:28,p:"var(--spacing-xs) var(--spacing-sm)",text:"body-2"},md:{h:32,p:"6px var(--spacing-md)",text:"body-2"},lg:{h:40,p:"var(--spacing-sm) var(--spacing-lg)",text:"body-1"}},C0=ge.forwardRef(({label:n,color:e="primary",size:t="md",onClick:i,onDelete:r,avatar:o,icon:s,disabled:a,className:l},u)=>{const g=ge.useRef(null),m=ge.useMemo(()=>{switch(e){case"primary":return{bg:"var(--status-neutral-tint-low)",color:"var(--text-primary)"};case"accent":return{bg:"var(--status-accent-tint-low)",color:"var(--text-accent)"};case"warning":return{bg:"var(--status-warning-tint-low)",color:"var(--text-warning)"};case"positive":return{bg:"var(--status-positive-tint-low)",color:"var(--text-positive)"};case"negative":return{bg:"var(--status-negative-tint-low)",color:"var(--text-negative)"};default:return{bg:"var(--status-neutral-tint-low)",color:"var(--text-primary)"}}},[e]),b=Je.css({cursor:a?"not-allowed":i?"pointer":"default",opacity:a?.5:1,userSelect:"none",position:"relative",transition:"background-color 0.2s, opacity 0.2s","&:hover":a?void 0:{backgroundColor:m.bg}}),w=Je.css({display:"inline-flex",cursor:"pointer",opacity:.6,"&:hover":{opacity:1}});return ae.jsxs(et,{ref:E=>{g.current=E,typeof u=="function"?u(E):u&&(u.current=E)},row:!0,alignItems:"center",justifyContent:"center",gap:"var(--spacing-sm)",h:pv[t].h,p:pv[t].p,overflow:"hidden",borderRadius:"var(--corner-sm)",backgroundColor:m.bg,color:m.color,onClick:i,className:Je.cx(b,l),children:[i&&ae.jsx(od,{}),o&&ae.jsx(et,{w:20,h:20,borderRadius:"50%",overflow:"hidden",children:o}),s&&ae.jsx(et,{children:s}),typeof n=="string"?ae.jsx(en,{variant:pv[t].text,colorName:e,textOverflow:"ellipsis",overflow:"hidden",children:n}):n,r&&!a&&ae.jsx(en,{className:w,colorName:e,onClick:E=>{E.stopPropagation(),r(E)},children:ae.jsx(U1,{})})]})});C0.displayName="Tag";const jO="_disabled_zbo6w_40",qO="_open_zbo6w_48",$O="_error_zbo6w_51",eF="_hidden_zbo6w_87",tF="_visible_zbo6w_90",nF="_selected_zbo6w_163",Po={"select-container":"_select-container_zbo6w_8","full-width":"_full-width_zbo6w_13","select-input":"_select-input_zbo6w_17","size-xs":"_size-xs_zbo6w_25","size-sm":"_size-sm_zbo6w_30","size-md":"_size-md_zbo6w_35",disabled:jO,open:qO,"select-arrow":"_select-arrow_zbo6w_48",error:$O,"select-value":"_select-value_zbo6w_62","select-value_xs":"_select-value_xs_zbo6w_74","select-placeholder":"_select-placeholder_zbo6w_81",hidden:eF,visible:tF,"select-arrow_xs":"_select-arrow_xs_zbo6w_106","select-dropdown":"_select-dropdown_zbo6w_116","select-menu":"_select-menu_zbo6w_126","select-menu-item":"_select-menu-item_zbo6w_145","select-menu-item-first":"_select-menu-item-first_zbo6w_158",selected:nF,"overflow-tooltip-container":"_overflow-tooltip-container_zbo6w_167","overflow-tooltip-text":"_overflow-tooltip-text_zbo6w_172","empty-block":"_empty-block_zbo6w_179"};function X1({value:n,onChange:e,multiple:t=!1,returnedValue:i,renderItem:r,renderInputItem:o,renderSingleInputItem:s,renderMultipleInputItem:a,renderDropdownItem:l,placeholder:u,items:g=[],fullWidth:m,size:b="md",showDefaultItem:w,disabled:E,label:T,firstItem:P,lastItem:M,observer:I,emptyText:L,onBlur:H,prompt:W,error:G,errorText:J}){const[Y,$]=zg(n,t?[]:null),[re,be]=ge.useState(!1),{refs:we,floatingStyles:Ee}=G1({open:re,placement:"bottom-start",strategy:"fixed",middleware:[N1(4),H1({crossAxis:!0,fallbackAxisSideDirection:"start"}),z1({crossAxis:!0,padding:8}),PO({apply({rects:Oe,availableHeight:qe,elements:je}){Object.assign(je.floating.style,{width:`${Oe.reference.width}px`,maxHeight:typeof qe=="number"?`${qe}px`:"auto"})}})],whileElementsMounted:D1}),pe=ge.useMemo(()=>t?Y||[]:Y!=null?[Y]:[],[Y,t]),me=ge.useCallback(Oe=>i?i(Oe):Oe,[i]),ee=ge.useMemo(()=>{const Oe=new Map;return g.forEach(qe=>{Oe.set(me(qe),qe)}),Oe},[g,me]),q=!g.length&&!G,le=ge.useMemo(()=>pe.map(Oe=>ee.get(Oe)).filter(Oe=>!!Oe),[ee,pe]);ge.useEffect(()=>{process.env.NODE_ENV!=="production"&&r&&!l&&console.warn("[Select] `renderItem` deprecated, use `renderDropdownItem` instead.")},[l,r]);const Te=ge.useCallback((Oe,qe)=>l?l(Oe,qe):r?r(Oe):String(Oe),[l,r]),he=()=>{be(!1),H?.()},ue=Oe=>{const qe=me(Oe);if(t){const je=pe.includes(qe)?pe.filter(it=>it!==qe):[...pe,qe];$(je),e?.(je)}else $(qe),e?.(qe),he()},Ne=Oe=>{if(!t)return;const qe=pe.filter(je=>je!==Oe);$(qe),e?.(qe)},We=()=>{const Oe=t?[]:null;$(Oe),e?.(Oe),t||he()},Qe=()=>typeof u=="string"?ae.jsx(en,{variant:b==="xs"?"caption-1":"body-2",textOverflow:"ellipsis",overflow:"hidden",colorName:"tertiary",children:u??"Select..."}):u,_e=()=>{if(!pe.length)return Qe();if(t)return a?a(le):o?o({mode:"multiple",selectedItems:le}):ae.jsx(et,{flexWrap:"wrap",row:!0,gap:10,children:pe.map(je=>{const it=ee.get(je);return it?ae.jsx(C0,{size:"sm",label:r?r(it):String(je),onDelete:ct=>{ct.stopPropagation(),Ne(je)}},je):null})});const Oe=ee.get(pe[0])??null;if(!Oe)return Qe();if(s)return s(Oe);if(o)return o({mode:"single",selectedItem:Oe});const qe=r?r(Oe):String(pe[0]);return typeof qe=="string"?ae.jsx(en,{variant:b==="xs"?"caption-1":"body-2",tag:"p",textOverflow:"ellipsis",overflow:"hidden",children:qe}):ae.jsx(ae.Fragment,{children:qe})},Ve=re&&ae.jsx(Pm,{children:ae.jsx(et,{row:!0,top:0,right:0,bottom:0,left:0,position:"fixed",center:!0,flex:1,onClick:he,display:"block",backgroundColor:"transparent",zIndex:1,children:ae.jsx(wm.div,{ref:we.setFloating,className:Po["select-dropdown"],initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},style:{...Ee,zIndex:1},onMouseDown:Oe=>Oe.stopPropagation(),onClick:Oe=>Oe.stopPropagation(),children:ae.jsxs("ul",{className:Po["select-menu"],children:[w&&!t&&ae.jsx(et,{className:Po["select-menu-item"],role:"option",onClick:We,children:ae.jsx(en,{variant:"body-2",colorName:"tertiary",children:u})}),P&&ae.jsx(et,{className:Je.cx(Po["select-menu-item"],Po["select-menu-item-first"]),children:P}),q&&ae.jsxs(et,{className:Po["empty-block"],children:[ae.jsx(et,{w:20,h:20,children:ae.jsx(QO,{})}),ae.jsx(en,{variant:"body-2",children:L??"There is nothing yet"})]}),g.map((Oe,qe)=>{const je=me(Oe),it=pe.includes(je),ct=Te(Oe,{item:Oe,selected:it,index:qe}),li=typeof ct=="string";return ae.jsxs(et,{row:!0,gap:10,alignItems:"center",className:Je.cx(Po["select-menu-item"],{[Po.selected]:it}),role:"option",relative:!0,onClick:()=>ue(Oe),children:[t&&ae.jsx(m0,{size:"sm",checked:it}),li?ae.jsx(en,{variant:"body-2",tag:"p",wordBreak:"break-all",whiteSpace:"break-spaces",children:ct}):ct,ae.jsx(od,{})]},je)}),I,M&&ae.jsx(et,{className:Je.cx(Po["select-menu-item"],Po["select-menu-item-first"]),children:M})]})},"dropdown")})});return ae.jsxs(et,{relative:!0,display:"inline-block",minWidth:120,w:m?"full":"auto",onMouseDown:Oe=>Oe.stopPropagation(),onClick:Oe=>Oe.stopPropagation(),children:[typeof T=="string"?ae.jsx(en,{variant:"body-2",colorName:"tertiary",fontWeight:"regular",mb:b==="sm"?4:8,children:T}):T,ae.jsxs(et,{ref:we.setReference,row:!0,gap:10,tabIndex:E?-1:0,role:"button",alignItems:"flex-start","aria-haspopup":"listbox",relative:!0,w:"100%",className:Je.cx(Po["select-input"],Po[`size-${b}`],{[Po.error]:G,[Po.disabled]:E,[Po.open]:re}),onClick:()=>!E&&be(Oe=>!Oe),children:[ae.jsx(et,{className:Je.cx(Po["select-value"]),children:_e()}),ae.jsx(et,{className:Je.cx(Po["select-arrow"],Po[`select-arrow_${b}`]),children:ae.jsx(JO,{})})]}),typeof W=="string"?ae.jsx(en,{variant:"caption-1",colorName:"tertiary",mt:4,children:W}):W,G&&J&&ae.jsx(en,{tag:"p",colorName:"negative",variant:"body-2",mt:5,children:J}),ae.jsx(XP,{children:Ve})]})}const iF=n=>Re.createElement("svg",{width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("path",{d:"M3.94629 0.220237C3.78013 0.264025 3.64089 0.377624 3.56348 0.53176C3.27371 1.11189 3.05664 1.46395 2.83887 1.74953C2.61807 2.03873 2.38547 2.27579 2.03027 2.63039C1.21079 3.45057 0.799805 4.52619 0.799805 5.60012C0.799838 6.67406 1.21073 7.74968 2.03027 8.56985C3.67062 10.2096 6.32931 10.2095 7.96973 8.56985C8.78929 7.74968 9.20016 6.67408 9.2002 5.60012C9.15131 4.32908 8.43217 3.48543 7.94727 3.05813C7.76902 2.90106 7.40643 3.02424 7.2627 3.2134C7.24031 3.24286 7.21612 3.2739 7.18945 3.30617C6.93211 3.61754 6.56236 3.80807 6.41504 3.83156C6.38264 3.83667 6.36979 3.76513 6.2959 3.58254C5.79455 2.34427 5.78927 2.49365 5.58887 2.01125C5.48847 1.7692 5.05517 1.02727 4.92676 0.828635C4.80206 0.635591 4.64095 0.439873 4.43359 0.301292C4.29028 0.205951 4.1124 0.175957 3.94629 0.220237ZM4.75293 4.17824C5.2689 4.63997 5.60857 5.26651 5.71484 5.95071C6.10631 5.85571 6.46727 5.68318 6.78125 5.45071C6.86578 5.70826 6.89338 5.98123 6.8623 6.25051C6.83115 6.51993 6.74174 6.77966 6.60059 7.01125C6.45944 7.24281 6.27008 7.44117 6.04492 7.59231C5.81977 7.74344 5.56462 7.8443 5.29688 7.88723C5.0292 7.93013 4.75518 7.91446 4.49414 7.84133C4.23299 7.76812 3.99064 7.6383 3.78418 7.46242C3.5778 7.28657 3.41161 7.06792 3.29785 6.8218C3.18419 6.57572 3.12519 6.30771 3.125 6.03664C3.12508 5.58233 3.29054 5.14308 3.58984 4.80129C3.88917 4.4597 4.30271 4.2382 4.75293 4.17824Z",fill:"#FEAD34"})),rF=n=>Re.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("path",{d:"M10.1483 8.61509C10.3344 8.26159 9.98299 7.89856 9.58534 7.93723C9.42671 7.95265 9.25857 7.9605 9.07422 7.96035C6.36522 7.9582 4.17129 5.76427 4.16914 3.05527C4.169 2.87115 4.17682 2.70321 4.19221 2.54477C4.23082 2.14712 3.86769 1.79411 3.50976 1.97161C2.03398 2.70343 1.20002 4.02274 1.20002 5.89477C1.20002 8.60377 3.3961 10.7998 6.1051 10.7998C7.97571 10.7998 9.38737 10.06 10.1483 8.61509Z",fill:"white"})),oF="_container_e7tan_8",sF="_disabled_e7tan_17",aF="_reverse_e7tan_21",lF="_input_e7tan_25",cF="_switchContainer_e7tan_35",uF="_variant_accent_e7tan_43",hF="_variant_secondary_e7tan_47",fF="_thumb_e7tan_51",dF="_variant_theme_e7tan_54",gF="_moon_e7tan_58",pF="_fire_e7tan_61",mF="_size_sm_e7tan_74",vF="_size_md_e7tan_80",yF="_size_lg_e7tan_86",vu={container:oF,disabled:sF,reverse:aF,input:lF,switchContainer:cF,variant_accent:uF,variant_secondary:hF,switch:"_switch_e7tan_35",thumb:fF,variant_theme:dF,moon:gF,fire:pF,size_sm:mF,size_md:vF,size_lg:yF},Y1=ge.forwardRef(({title:n,text:e,icon:t,disabled:i,onChange:r,checked:o,defaultValue:s,className:a,size:l="md",variant:u="accent",reverse:g=!1,w:m="auto",...b},w)=>{const[E,T]=zg(o,s),P=ge.useRef(null);ge.useImperativeHandle(w,()=>({focus:()=>{P.current?.focus()},blur:()=>{P.current?.blur()},get checked(){return E??!1},setChecked:H=>{T(H),r?.(H)},toggle:()=>{const H=!E;T(H),r?.(H)},isFocused:()=>document.activeElement===P.current,isDisabled:()=>i??!1,getInputElement:()=>P.current,checkValidity:()=>P.current?.checkValidity()??!0,reset:()=>{const H=s??!1;T(H),r?.(H)}}),[E,T,r,i,s]);const M=ge.useCallback(H=>{T(H.target.checked),r?.(H.target.checked)},[r]),I=ge.useMemo(()=>typeof n=="string"?ae.jsx(en,{variant:"body-1",colorName:"primary",fontWeight:"medium",children:n}):n,[n]),L=ge.useMemo(()=>typeof e=="string"?ae.jsx(en,{variant:"body-2",colorName:"secondary",fontWeight:"regular",children:e}):e,[e]);return ae.jsxs(et,{row:!0,w:m,gap:"var(--spacing-sm)",children:[ae.jsxs("label",{className:Je.cx(vu.container,a,{[vu.disabled]:i,[vu.reverse]:g}),children:[ae.jsxs(et,{className:Je.cx(vu.switchContainer,vu[`size_${l}`],vu[`variant_${u}`]),children:[ae.jsx("input",{ref:P,type:"checkbox",checked:E,className:vu.input,onChange:M,disabled:i,...b}),ae.jsx("div",{className:vu.switch,children:ae.jsx("div",{className:vu.thumb,children:u==="theme"&&ae.jsxs(ae.Fragment,{children:[ae.jsx(rF,{className:vu.moon}),ae.jsx(iF,{className:vu.fire})]})})})]}),ae.jsxs(et,{gap:"var(--spacing-xs)",children:[I,L]})]}),t]})});Y1.displayName="Switch";const bF=Je.css({cursor:"pointer",userSelect:"none"}),xF=Je.css({cursor:"not-allowed",opacity:.5}),wF=Je.css({transition:"color 0.2s ease"}),CF=ge.forwardRef(({label:n,selected:e,disabled:t,fullWidth:i,onClick:r},o)=>ae.jsx(et,{w:i?"full":void 0,justifyContent:"center",alignItems:"center",ref:o,py:"var(--spacing-md)",px:"var(--spacing-xl)",onClick:r,className:Je.cx(bF,{[xF]:t}),children:ae.jsx(en,{className:wF,colorName:e?"primary":"tertiary",fontWeight:"medium",variant:"body-2",children:n})})),SF=Je.css({borderBottom:"1px solid var(--border-neutral-alpha-basic)"}),Z1=({value:n,onChange:e,options:t,fullWidth:i=!1,className:r})=>{const[o,s]=ge.useState({left:0,width:0}),a=ge.useRef([]),l=g=>m=>{a.current[g]=m};ge.useEffect(()=>{const g=t.findIndex(b=>b.value===n),m=a.current[g];m&&s({left:m.offsetLeft,width:m.offsetWidth})},[n,t]);const u=(g,m=!1)=>()=>!m&&e(g);return ae.jsxs(et,{row:!0,w:i?"full":"auto",relative:!0,className:Je.cx(SF,r),children:[t.map((g,m)=>ae.jsx(CF,{selected:n===g.value,onClick:u(g.value,g.disabled),ref:l(m),label:g.label,disabled:g.disabled,fullWidth:i},g.value)),ae.jsx(et,{h:2,w:o.width,absolute:!0,bottom:-1,left:o.left,backgroundColor:"var(--border-accent-primary)",className:Je.css({transition:"left 0.2s ease, width 0.2s ease"})})]})};Z1.displayName="Tabs";const TF="_header_446to_8",EF={header:TF},K1=ge.forwardRef(({title:n,subtitle:e,w:t="full",p:i,py:r,px:o="var(--spacing-2xl)",pt:s="var(--spacing-2xl)",pb:a="var(--spacing-lg)",row:l=!0,justifyContent:u="space-between",showCloseButton:g=!0},m)=>{const{onClose:b}=LR();return ae.jsxs(et,{w:t,p:i,py:r,px:o,pt:s,pb:a,row:l,justifyContent:u,ref:m,className:EF.header,children:[ae.jsxs(et,{gap:"var(--spacing-sm)",children:[ae.jsx(en,{variant:"title-3",colorName:"primary",fontWeight:"semibold",children:n}),ae.jsx(en,{variant:"body-1",colorName:"tertiary",fontWeight:"medium",children:e})]}),g&&ae.jsx(et,{children:ae.jsx(Mg,{onClick:b,color:"neutral",children:ae.jsx(HS,{})})})]})});K1.displayName="ModalHeader";function gd(n,e,t){let i=t.initialDeps??[],r;function o(){var s,a,l,u;let g;t.key&&((s=t.debug)!=null&&s.call(t))&&(g=Date.now());const m=n();if(!(m.length!==i.length||m.some((E,T)=>i[T]!==E)))return r;i=m;let w;if(t.key&&((a=t.debug)!=null&&a.call(t))&&(w=Date.now()),r=e(...m),t.key&&((l=t.debug)!=null&&l.call(t))){const E=Math.round((Date.now()-g)*100)/100,T=Math.round((Date.now()-w)*100)/100,P=T/16,M=(I,L)=>{for(I=String(I);I.length<L;)I=" "+I;return I};console.info(`%c⏱ ${M(T,5)} /${M(E,5)} ms`,`
|
|
9
|
+
`),()=>{m.contains(g)&&m.removeChild(g)}},[t]),v.jsx(Pf,{isPresent:t,childRef:i,sizeRef:r,children:b.cloneElement(e,{ref:l})})}const Tf=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:s,presenceAffectsLayout:i,mode:r,anchorX:a,root:l})=>{const c=bs(Af),u=C.useId();let f=!0,d=C.useMemo(()=>(f=!1,{id:u,initial:t,isPresent:n,custom:s,onExitComplete:h=>{c.set(h,!0);for(const p of c.values())if(!p)return;o&&o()},register:h=>(c.set(h,!1),()=>c.delete(h))}),[n,c,o]);return i&&f&&(d={...d}),C.useMemo(()=>{c.forEach((h,p)=>c.set(p,!1))},[n]),b.useEffect(()=>{!n&&!c.size&&o&&o()},[n]),r==="popLayout"&&(e=v.jsx(Mf,{isPresent:n,anchorX:a,root:l,children:e})),v.jsx(Gn.Provider,{value:d,children:e})};function Af(){return new Map}function fl(e=!0){const t=C.useContext(Gn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:s}=t,i=C.useId();C.useEffect(()=>{if(e)return s(i)},[e]);const r=C.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,r]:[!0]}const pn=e=>e.key||"";function Gi(e){const t=[];return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const Vf=({children:e,custom:t,initial:n=!0,onExitComplete:o,presenceAffectsLayout:s=!0,mode:i="sync",propagate:r=!1,anchorX:a="left",root:l})=>{const[c,u]=fl(r),f=C.useMemo(()=>Gi(e),[e]),d=r&&!c?[]:f.map(pn),h=C.useRef(!0),p=C.useRef(f),g=bs(()=>new Map),[m,w]=C.useState(f),[x,y]=C.useState(f);xa(()=>{h.current=!1,p.current=f;for(let M=0;M<x.length;M++){const T=pn(x[M]);d.includes(T)?g.delete(T):g.get(T)!==!0&&g.set(T,!1)}},[x,d.length,d.join("-")]);const S=[];if(f!==m){let M=[...f];for(let T=0;T<x.length;T++){const P=x[T],D=pn(P);d.includes(D)||(M.splice(T,0,P),S.push(P))}return i==="wait"&&S.length&&(M=S),y(Gi(M)),w(f),null}process.env.NODE_ENV!=="production"&&i==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:_}=C.useContext(Ss);return v.jsx(v.Fragment,{children:x.map(M=>{const T=pn(M),P=r&&!c?!1:f===x||d.includes(T),D=()=>{if(g.has(T))g.set(T,!0);else return;let F=!0;g.forEach(j=>{j||(F=!1)}),F&&(_?.(),y(p.current),r&&u?.(),o&&o())};return v.jsx(Tf,{isPresent:P,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:l,onExitComplete:P?void 0:D,anchorX:a,children:M},T)})})},hl=C.createContext({strict:!1}),Ui={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Tt={};for(const e in Ui)Tt[e]={isEnabled:t=>Ui[e].some(n=>!!t[n])};function Df(e){for(const t in e)Tt[t]={...Tt[t],...e[t]}}const kf=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function jn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kf.has(e)}let gl=e=>!jn(e);function Ff(e){typeof e=="function"&&(gl=t=>t.startsWith("on")?!jn(t):e(t))}try{Ff(require("@emotion/is-prop-valid").default)}catch{}function Lf(e,t,n){const o={};for(const s in e)s==="values"&&typeof e.values=="object"||(gl(s)||n===!0&&jn(s)||!t&&!jn(s)||e.draggable&&s.startsWith("onDrag"))&&(o[s]=e[s]);return o}const Un=C.createContext({});function Kn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function en(e){return typeof e=="string"||Array.isArray(e)}const Us=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ks=["initial",...Us];function qn(e){return Kn(e.animate)||Ks.some(t=>en(e[t]))}function pl(e){return!!(qn(e)||e.variants)}function If(e,t){if(qn(e)){const{initial:n,animate:o}=e;return{initial:n===!1||en(n)?n:void 0,animate:en(o)?o:void 0}}return e.inherit!==!1?t:{}}function jf(e){const{initial:t,animate:n}=If(e,C.useContext(Un));return C.useMemo(()=>({initial:t,animate:n}),[Ki(t),Ki(n)])}function Ki(e){return Array.isArray(e)?e.join(" "):e}function qi(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Nt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(G.test(e))e=parseFloat(e);else return e;const n=qi(e,t.target.x),o=qi(e,t.target.y);return`${n}% ${o}%`}},$f={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,s=Ze.parse(e);if(s.length>5)return o;const i=Ze.createTransformer(e),r=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+r]/=a,s[1+r]/=l;const c=ie(a,l,.5);return typeof s[2+r]=="number"&&(s[2+r]/=c),typeof s[3+r]=="number"&&(s[3+r]/=c),i(s)}},es={borderRadius:{...Nt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nt,borderTopRightRadius:Nt,borderBottomLeftRadius:Nt,borderBottomRightRadius:Nt,boxShadow:$f};function ml(e,{layout:t,layoutId:n}){return Ft.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!es[e]||e==="opacity")}const Of={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Nf=kt.length;function Bf(e,t,n){let o="",s=!0;for(let i=0;i<Nf;i++){const r=kt[i],a=e[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=rl(a,zs[r]);if(!l){s=!1;const u=Of[r]||r;o+=`${u}(${c}) `}n&&(t[r]=c)}}return o=o.trim(),n?o=n(t,s?"":o):s&&(o="none"),o}function qs(e,t,n){const{style:o,vars:s,transformOrigin:i}=e;let r=!1,a=!1;for(const l in t){const c=t[l];if(Ft.has(l)){r=!0;continue}else if(ja(l)){s[l]=c;continue}else{const u=rl(c,zs[l]);l.startsWith("origin")?(a=!0,i[l]=u):o[l]=u}}if(t.transform||(r||n?o.transform=Bf(t,e.transform,n):o.transform&&(o.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;o.transformOrigin=`${l} ${c} ${u}`}}const Xs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vl(e,t,n){for(const o in t)!ge(t[o])&&!ml(o,n)&&(e[o]=t[o])}function zf({transformTemplate:e},t){return C.useMemo(()=>{const n=Xs();return qs(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Hf(e,t){const n=e.style||{},o={};return vl(o,n,e),Object.assign(o,zf(e,t)),o}function Wf(e,t){const n={},o=Hf(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const Gf={offset:"stroke-dashoffset",array:"stroke-dasharray"},Uf={offset:"strokeDashoffset",array:"strokeDasharray"};function Kf(e,t,n=1,o=0,s=!0){e.pathLength=1;const i=s?Gf:Uf;e[i.offset]=G.transform(-o);const r=G.transform(t),a=G.transform(n);e[i.array]=`${r} ${a}`}function yl(e,{attrX:t,attrY:n,attrScale:o,pathLength:s,pathSpacing:i=1,pathOffset:r=0,...a},l,c,u){if(qs(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),o!==void 0&&(f.scale=o),s!==void 0&&Kf(f,s,i,r,!1)}const wl=()=>({...Xs(),attrs:{}}),xl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qf(e,t,n,o){const s=C.useMemo(()=>{const i=wl();return yl(i,t,xl(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};vl(i,e.style,e),s.style={...i,...s.style}}return s}const Xf=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ys(e){return typeof e!="string"||e.includes("-")?!1:!!(Xf.indexOf(e)>-1||/[A-Z]/u.test(e))}function Yf(e,t,n,{latestValues:o},s,i=!1){const a=(Ys(e)?qf:Wf)(t,o,s,e),l=Lf(t,typeof e=="string",i),c=e!==C.Fragment?{...l,...a,ref:n}:{},{children:u}=t,f=C.useMemo(()=>ge(u)?u.get():u,[u]);return C.createElement(e,{...c,children:f})}function Xi(e){const t=[{},{}];return e?.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function Zs(e,t,n,o){if(typeof t=="function"){const[s,i]=Xi(o);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Xi(o);t=t(n!==void 0?n:e.custom,s,i)}return t}function Mn(e){return ge(e)?e.get():e}function Zf({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,s){return{latestValues:Jf(n,o,s,e),renderState:t()}}function Jf(e,t,n,o){const s={},i=o(e,{});for(const d in i)s[d]=Mn(i[d]);let{initial:r,animate:a}=e;const l=qn(e),c=pl(e);t&&c&&!l&&e.inherit!==!1&&(r===void 0&&(r=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const f=u?a:r;if(f&&typeof f!="boolean"&&!Kn(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const p=Zs(e,d[h]);if(p){const{transitionEnd:g,transition:m,...w}=p;for(const x in w){let y=w[x];if(Array.isArray(y)){const S=u?y.length-1:0;y=y[S]}y!==null&&(s[x]=y)}for(const x in g)s[x]=g[x]}}}return s}const Cl=e=>(t,n)=>{const o=C.useContext(Un),s=C.useContext(Gn),i=()=>Zf(e,t,o,s);return n?i():bs(i)};function Js(e,t,n){const{style:o}=e,s={};for(const i in o)(ge(o[i])||t.style&&ge(t.style[i])||ml(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(s[i]=o[i]);return s}const Qf=Cl({scrapeMotionValuesFromProps:Js,createRenderState:Xs});function Sl(e,t,n){const o=Js(e,t,n);for(const s in e)if(ge(e[s])||ge(t[s])){const i=kt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;o[i]=e[s]}return o}const eh=Cl({scrapeMotionValuesFromProps:Sl,createRenderState:wl}),th=Symbol.for("motionComponentSymbol");function St(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function nh(e,t,n){return C.useCallback(o=>{o&&e.onMount&&e.onMount(o),t&&(o?t.mount(o):t.unmount()),n&&(typeof n=="function"?n(o):St(n)&&(n.current=o))},[t])}const Qs=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),oh="framerAppearId",bl="data-"+Qs(oh),_l=C.createContext({});function sh(e,t,n,o,s){const{visualElement:i}=C.useContext(Un),r=C.useContext(hl),a=C.useContext(Gn),l=C.useContext(Gs).reducedMotion,c=C.useRef(null);o=o||r.renderer,!c.current&&o&&(c.current=o(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,f=C.useContext(_l);u&&!u.projection&&s&&(u.type==="html"||u.type==="svg")&&ih(c.current,n,s,f);const d=C.useRef(!1);C.useInsertionEffect(()=>{u&&d.current&&u.update(n,a)});const h=n[bl],p=C.useRef(!!h&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return xa(()=>{u&&(d.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),p.current&&u.animationState&&u.animationState.animateChanges())}),C.useEffect(()=>{u&&(!p.current&&u.animationState&&u.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),p.current=!1),u.enteringChildren=void 0)}),u}function ih(e,t,n,o){const{layoutId:s,layout:i,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Rl(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!r||a&&St(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:u,layoutScroll:l,layoutRoot:c})}function Rl(e){if(e)return e.options.allowProjection!==!1?e.projection:Rl(e.parent)}function po(e,{forwardMotionProps:t=!1}={},n,o){n&&Df(n);const s=Ys(e)?eh:Qf;function i(a,l){let c;const u={...C.useContext(Gs),...a,layoutId:rh(a)},{isStatic:f}=u,d=jf(a),h=s(a,f);if(!f&&_s){ah(u,n);const p=lh(u);c=p.MeasureLayout,d.visualElement=sh(e,h,u,o,p.ProjectionNode)}return v.jsxs(Un.Provider,{value:d,children:[c&&d.visualElement?v.jsx(c,{visualElement:d.visualElement,...u}):null,Yf(e,a,nh(h,d.visualElement,l),h,f,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const r=C.forwardRef(i);return r[th]=e,r}function rh({layoutId:e}){const t=C.useContext(Ss).id;return t&&e!==void 0?t+"-"+e:e}function ah(e,t){const n=C.useContext(hl).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Vt(!1,o,"lazy-strict-mode"):He(!1,o,"lazy-strict-mode")}}function lh(e){const{drag:t,layout:n}=Tt;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function ch(e,t){if(typeof Proxy>"u")return po;const n=new Map,o=(i,r)=>po(i,r,e,t),s=(i,r)=>(process.env.NODE_ENV!=="production"&&Ts(!1,"motion() is deprecated. Use motion.create() instead."),o(i,r));return new Proxy(s,{get:(i,r)=>r==="create"?o:(n.has(r)||n.set(r,po(r,void 0,e,t)),n.get(r))})}function El({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function uh({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function dh(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function mo(e){return e===void 0||e===1}function ts({scale:e,scaleX:t,scaleY:n}){return!mo(e)||!mo(t)||!mo(n)}function at(e){return ts(e)||Pl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Pl(e){return Yi(e.x)||Yi(e.y)}function Yi(e){return e&&e!=="0%"}function $n(e,t,n){const o=e-n,s=t*o;return n+s}function Zi(e,t,n,o,s){return s!==void 0&&(e=$n(e,s,o)),$n(e,n,o)+t}function ns(e,t=0,n=1,o,s){e.min=Zi(e.min,t,n,o,s),e.max=Zi(e.max,t,n,o,s)}function Ml(e,{x:t,y:n}){ns(e.x,t.translate,t.scale,t.originPoint),ns(e.y,n.translate,n.scale,n.originPoint)}const Ji=.999999999999,Qi=1.0000000000001;function fh(e,t,n,o=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,r;for(let a=0;a<s;a++){i=n[a],r=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&_t(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),r&&(t.x*=r.x.scale,t.y*=r.y.scale,Ml(e,r)),o&&at(i.latestValues)&&_t(e,i.latestValues))}t.x<Qi&&t.x>Ji&&(t.x=1),t.y<Qi&&t.y>Ji&&(t.y=1)}function bt(e,t){e.min=e.min+t,e.max=e.max+t}function er(e,t,n,o,s=.5){const i=ie(e.min,e.max,s);ns(e,t,n,i,o)}function _t(e,t){er(e.x,t.x,t.scaleX,t.scale,t.originX),er(e.y,t.y,t.scaleY,t.scale,t.originY)}function Tl(e,t){return El(dh(e.getBoundingClientRect(),t))}function hh(e,t,n){const o=Tl(e,n),{scroll:s}=t;return s&&(bt(o.x,s.offset.x),bt(o.y,s.offset.y)),o}const tr=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rt=()=>({x:tr(),y:tr()}),nr=()=>({min:0,max:0}),ce=()=>({x:nr(),y:nr()}),os={current:null},Al={current:!1};function gh(){if(Al.current=!0,!!_s)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>os.current=e.matches;e.addEventListener("change",t),t()}else os.current=!1}const ph=new WeakMap;function mh(e,t,n){for(const o in t){const s=t[o],i=n[o];if(ge(s))e.addValue(o,s);else if(ge(i))e.addValue(o,Mt(s,{owner:e}));else if(i!==s)if(e.hasValue(o)){const r=e.getValue(o);r.liveStyle===!0?r.jump(s):r.hasAnimated||r.set(s)}else{const r=e.getStaticValue(o);e.addValue(o,Mt(r!==void 0?r:s,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const or=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class vh{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:s,blockInitialAnimation:i,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ns,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=ye.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,te.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=qn(n),this.isVariantNode=pl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const h=f[d];l[d]!==void 0&&ge(h)&&h.set(l[d])}}mount(t){this.current=t,ph.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,o)=>this.bindToMotionValue(o,n)),Al.current||gh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:os.current,process.env.NODE_ENV!=="production"&&Ts(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ye(this.notifyUpdate),Ye(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=Ft.has(t);o&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",r=>{this.latestValues[t]=r,this.props.onUpdate&&te.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Tt){const n=Tt[t];if(!n)continue;const{isEnabled:o,Feature:s}=n;if(!this.features[t]&&s&&o(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ce()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<or.length;o++){const s=or[o];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,r=t[i];r&&(this.propEventSubscriptions[s]=this.on(s,r))}this.prevMotionValues=mh(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const o=this.values.get(t);n!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&n!==void 0&&(o=Mt(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Ca(o)||ba(o))?o=parseFloat(o):!_f(o)&&Ze.test(n)&&(o=il(t,n)),this.setBaseTarget(t,ge(o)?o.get():o)),ge(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const i=Zs(this.props,n,this.presenceContext?.custom);i&&(o=i[t])}if(n&&o!==void 0)return o;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!ge(s)?s:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ms),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Hs.render(this.render)}}class Vl extends vh{constructor(){super(...arguments),this.KeyframeResolver=ff}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ge(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Dl(e,{style:t,vars:n},o,s){const i=e.style;let r;for(r in t)i[r]=t[r];s?.applyProjectionStyles(i,o);for(r in n)i.setProperty(r,n[r])}function yh(e){return window.getComputedStyle(e)}class wh extends Vl{constructor(){super(...arguments),this.type="html",this.renderInstance=Dl}readValueFromInstance(t,n){if(Ft.has(n))return this.projection?.isProjecting?Ko(n):Td(t,n);{const o=yh(t),s=(ja(n)?o.getPropertyValue(n):o[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Tl(t,n)}build(t,n,o){qs(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return Js(t,n,o)}}const kl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function xh(e,t,n,o){Dl(e,t,void 0,o);for(const s in t.attrs)e.setAttribute(kl.has(s)?s:Qs(s),t.attrs[s])}class Ch extends Vl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ce}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ft.has(n)){const o=sl(n);return o&&o.default||0}return n=kl.has(n)?n:Qs(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Sl(t,n,o)}build(t,n,o){yl(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,s){xh(t,n,o,s)}mount(t){this.isSVGTag=xl(t.tagName),super.mount(t)}}const Sh=(e,t)=>Ys(e)?new Ch(t):new wh(t,{allowProjection:e!==C.Fragment});function Et(e,t,n){const o=e.getProps();return Zs(o,t,n!==void 0?n:o.custom,e)}const ss=e=>Array.isArray(e);function bh(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mt(n))}function _h(e){return ss(e)?e[e.length-1]||0:e}function Rh(e,t){const n=Et(e,t);let{transitionEnd:o={},transition:s={},...i}=n||{};i={...i,...o};for(const r in i){const a=_h(i[r]);bh(e,r,a)}}function Eh(e){return!!(ge(e)&&e.add)}function is(e,t){const n=e.getValue("willChange");if(Eh(n))return n.add(t);if(!n&&We.WillChange){const o=new We.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function Fl(e){return e.props[bl]}const Ph=e=>e!==null;function Mh(e,{repeat:t,repeatType:n="loop"},o){const s=e.filter(Ph),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return s[i]}const Th={type:"spring",stiffness:500,damping:25,restSpeed:10},Ah=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Vh={type:"keyframes",duration:.8},Dh={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kh=(e,{keyframes:t})=>t.length>2?Vh:Ft.has(e)?e.startsWith("scale")?Ah(t[1]):Th:Dh;function Fh({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:s,repeat:i,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const ei=(e,t,n,o={},s,i)=>r=>{const a=Bs(o,e)||{},l=a.delay||o.delay||0;let{elapsed:c=0}=o;c=c-Ve(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};Fh(a)||Object.assign(u,kh(e,u)),u.duration&&(u.duration=Ve(u.duration)),u.repeatDelay&&(u.repeatDelay=Ve(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Jo(u),u.delay===0&&(f=!0)),(We.instantAnimations||We.skipAnimations)&&(f=!0,Jo(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!i&&t.get()!==void 0){const d=Mh(u.keyframes,a);if(d!==void 0){te.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new Os(u):new Jd(u)};function Lh({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function Ll(e,t,{delay:n=0,transitionOverride:o,type:s}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:r,...a}=t;o&&(i=o);const l=[],c=s&&e.animationState&&e.animationState.getState()[s];for(const u in a){const f=e.getValue(u,e.latestValues[u]??null),d=a[u];if(d===void 0||c&&Lh(c,u))continue;const h={delay:n,...Bs(i||{},u)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===p&&!h.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const w=Fl(e);if(w){const x=window.MotionHandoffAnimation(w,u,te);x!==null&&(h.startTime=x,g=!0)}}is(e,u),f.start(ei(u,f,d,e.shouldReduceMotion&&tl.has(u)?{type:!1}:h,e,g));const m=f.animation;m&&l.push(m)}return r&&Promise.all(l).then(()=>{te.update(()=>{r&&Rh(e,r)})}),l}function Il(e,t,n,o=0,s=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),r=e.size,a=(r-1)*o;return typeof n=="function"?n(i,r):s===1?i*o:a-i*o}function rs(e,t,n={}){const o=Et(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const i=o?()=>Promise.all(Ll(e,o,n)):()=>Promise.resolve(),r=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:f}=s;return Ih(e,t,l,c,u,f,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[l,c]=a==="beforeChildren"?[i,r]:[r,i];return l().then(()=>c())}else return Promise.all([i(),r(n.delay)])}function Ih(e,t,n=0,o=0,s=0,i=1,r){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(rs(l,t,{...r,delay:n+(typeof o=="function"?0:o)+Il(e.variantChildren,l,o,s,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function jh(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const s=t.map(i=>rs(e,i,n));o=Promise.all(s)}else if(typeof t=="string")o=rs(e,t,n);else{const s=typeof t=="function"?Et(e,t,n.custom):t;o=Promise.all(Ll(e,s,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}function jl(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const $h=Ks.length;function $l(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?$l(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<$h;n++){const o=Ks[n],s=e.props[o];(en(s)||s===!1)&&(t[o]=s)}return t}const Oh=[...Us].reverse(),Nh=Us.length;function Bh(e){return t=>Promise.all(t.map(({animation:n,options:o})=>jh(e,n,o)))}function zh(e){let t=Bh(e),n=sr(),o=!0;const s=l=>(c,u)=>{const f=Et(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:h,...p}=f;c={...c,...p,...h}}return c};function i(l){t=l(e)}function r(l){const{props:c}=e,u=$l(e.parent)||{},f=[],d=new Set;let h={},p=1/0;for(let m=0;m<Nh;m++){const w=Oh[m],x=n[w],y=c[w]!==void 0?c[w]:u[w],S=en(y),_=w===l?x.isActive:null;_===!1&&(p=m);let M=y===u[w]&&y!==c[w]&&S;if(M&&o&&e.manuallyAnimateOnMount&&(M=!1),x.protectedKeys={...h},!x.isActive&&_===null||!y&&!x.prevProp||Kn(y)||typeof y=="boolean")continue;const T=Hh(x.prevProp,y);let P=T||w===l&&x.isActive&&!M&&S||m>p&&S,D=!1;const F=Array.isArray(y)?y:[y];let j=F.reduce(s(w),{});_===!1&&(j={});const{prevResolvedValues:$={}}=x,O={...$,...j},V=E=>{P=!0,d.has(E)&&(D=!0,d.delete(E)),x.needsAnimating[E]=!0;const R=e.getValue(E);R&&(R.liveStyle=!1)};for(const E in O){const R=j[E],A=$[E];if(h.hasOwnProperty(E))continue;let I=!1;ss(R)&&ss(A)?I=!jl(R,A):I=R!==A,I?R!=null?V(E):d.add(E):R!==void 0&&d.has(E)?V(E):x.protectedKeys[E]=!0}x.prevProp=y,x.prevResolvedValues=j,x.isActive&&(h={...h,...j}),o&&e.blockInitialAnimation&&(P=!1);const z=M&&T;P&&(!z||D)&&f.push(...F.map(E=>{const R={type:w};if(typeof E=="string"&&o&&!z&&e.manuallyAnimateOnMount&&e.parent){const{parent:A}=e,I=Et(A,E);if(A.enteringChildren&&I){const{delayChildren:Y}=I.transition||{};R.delay=Il(A.enteringChildren,e,Y)}}return{animation:E,options:R}}))}if(d.size){const m={};if(typeof c.initial!="boolean"){const w=Et(e,Array.isArray(c.initial)?c.initial[0]:c.initial);w&&w.transition&&(m.transition=w.transition)}d.forEach(w=>{const x=e.getBaseTarget(w),y=e.getValue(w);y&&(y.liveStyle=!0),m[w]=x??null}),f.push({animation:m})}let g=!!f.length;return o&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?t(f):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(l,c)),n[l].isActive=c;const u=r(l);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:r,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=sr()}}}function Hh(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jl(t,e):!1}function rt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sr(){return{animate:rt(!0),whileInView:rt(),whileHover:rt(),whileTap:rt(),whileDrag:rt(),whileFocus:rt(),exit:rt()}}class tt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Wh extends tt{constructor(t){super(t),t.animationState||(t.animationState=zh(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Kn(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Gh=0;class Uh extends tt{constructor(){super(...arguments),this.id=Gh++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Kh={animation:{Feature:Wh},exit:{Feature:Uh}};function tn(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}function ln(e){return{point:{x:e.pageX,y:e.pageY}}}const qh=e=>t=>Ws(t)&&e(t,ln(t));function Ut(e,t,n,o){return tn(e,t,qh(n),o)}const Ol=1e-4,Xh=1-Ol,Yh=1+Ol,Nl=.01,Zh=0-Nl,Jh=0+Nl;function pe(e){return e.max-e.min}function Qh(e,t,n){return Math.abs(e-t)<=n}function ir(e,t,n,o=.5){e.origin=o,e.originPoint=ie(t.min,t.max,e.origin),e.scale=pe(n)/pe(t),e.translate=ie(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Xh&&e.scale<=Yh||isNaN(e.scale))&&(e.scale=1),(e.translate>=Zh&&e.translate<=Jh||isNaN(e.translate))&&(e.translate=0)}function Kt(e,t,n,o){ir(e.x,t.x,n.x,o?o.originX:void 0),ir(e.y,t.y,n.y,o?o.originY:void 0)}function rr(e,t,n){e.min=n.min+t.min,e.max=e.min+pe(t)}function eg(e,t,n){rr(e.x,t.x,n.x),rr(e.y,t.y,n.y)}function ar(e,t,n){e.min=t.min-n.min,e.max=e.min+pe(t)}function On(e,t,n){ar(e.x,t.x,n.x),ar(e.y,t.y,n.y)}function _e(e){return[e("x"),e("y")]}const Bl=({current:e})=>e?e.ownerDocument.defaultView:null,lr=(e,t)=>Math.abs(e-t);function tg(e,t){const n=lr(e.x,t.x),o=lr(e.y,t.y);return Math.sqrt(n**2+o**2)}class zl{constructor(t,n,{transformPagePoint:o,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=yo(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=tg(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!p)return;const{point:g}=d,{timestamp:m}=fe;this.history.push({...g,timestamp:m});const{onStart:w,onMove:x}=this.handlers;h||(w&&w(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=vo(h,this.transformPagePoint),te.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=yo(d.type==="pointercancel"?this.lastMoveEventInfo:vo(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,w),g&&g(d,w)},!Ws(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=r,this.contextWindow=s||window;const a=ln(t),l=vo(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=fe;this.history=[{...c,timestamp:u}];const{onSessionStart:f}=n;f&&f(t,yo(l,this.history)),this.removeListeners=sn(Ut(this.contextWindow,"pointermove",this.handlePointerMove),Ut(this.contextWindow,"pointerup",this.handlePointerUp),Ut(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ye(this.updatePoint)}}function vo(e,t){return t?{point:t(e.point)}:e}function cr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yo({point:e},t){return{point:e,delta:cr(e,Hl(t)),offset:cr(e,ng(t)),velocity:og(t,.1)}}function ng(e){return e[0]}function Hl(e){return e[e.length-1]}function og(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const s=Hl(e);for(;n>=0&&(o=e[n],!(s.timestamp-o.timestamp>Ve(t)));)n--;if(!o)return{x:0,y:0};const i=Re(s.timestamp-o.timestamp);if(i===0)return{x:0,y:0};const r={x:(s.x-o.x)/i,y:(s.y-o.y)/i};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function sg(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?ie(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?ie(n,e,o.max):Math.min(e,n)),e}function ur(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ig(e,{top:t,left:n,bottom:o,right:s}){return{x:ur(e.x,n,s),y:ur(e.y,t,o)}}function dr(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function rg(e,t){return{x:dr(e.x,t.x),y:dr(e.y,t.y)}}function ag(e,t){let n=.5;const o=pe(e),s=pe(t);return s>o?n=Zt(t.min,t.max-o,e.min):o>s&&(n=Zt(e.min,e.max-s,t.min)),ze(0,1,n)}function lg(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const as=.35;function cg(e=as){return e===!1?e=0:e===!0&&(e=as),{x:fr(e,"left","right"),y:fr(e,"top","bottom")}}function fr(e,t,n){return{min:hr(e,t),max:hr(e,n)}}function hr(e,t){return typeof e=="number"?e:e[t]||0}const ug=new WeakMap;class dg{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ce(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ln(f).point)},r=(f,d)=>{const{drag:h,dragPropagation:p,onDragStart:g}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mf(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_e(w=>{let x=this.getAxisMotionValue(w).get()||0;if(Le.test(x)){const{projection:y}=this.visualElement;if(y&&y.layout){const S=y.layout.layoutBox[w];S&&(x=pe(S)*(parseFloat(x)/100))}}this.originPoint[w]=x}),g&&te.postRender(()=>g(f,d)),is(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:g,onDrag:m}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:w}=d;if(p&&this.currentDirection===null){this.currentDirection=fg(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,w),this.updateAxis("y",d.point,w),this.visualElement.render(),m&&m(f,d)},l=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>_e(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new zl(t,{onSessionStart:i,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:o,contextWindow:Bl(this.visualElement)})}stop(t,n){const o=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!o)return;const{velocity:r}=s;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&te.postRender(()=>a(o,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,o){const{drag:s}=this.getProps();if(!o||!mn(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let r=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(r=sg(r,this.constraints[t],this.elastic[t])),i.set(r)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&St(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=ig(o.layoutBox,t):this.constraints=!1,this.elastic=cg(n),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&_e(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=lg(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!St(t))return!1;const o=t.current;He(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=hh(o,s.root,this.visualElement.getTransformPagePoint());let r=rg(s.layout.layoutBox,i);if(n){const a=n(uh(r));this.hasMutatedConstraints=!!a,a&&(r=El(a))}return r}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:s,dragTransition:i,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=_e(u=>{if(!mn(u,n,this.currentDirection))return;let f=l&&l[u]||{};r&&(f={min:0,max:0});const d=s?200:1e6,h=s?40:1e7,p={type:"inertia",velocity:o?t[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return is(this.visualElement,t),o.start(ei(t,o,0,n,this.visualElement,!1))}stopAnimation(){_e(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){_e(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),s=o[n];return s||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){_e(n=>{const{drag:o}=this.getProps();if(!mn(n,o,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:r,max:a}=s.layout.layoutBox[n];i.set(t[n]-ie(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!St(n)||!o||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};_e(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();s[r]=ag({min:l,max:l},this.constraints[r])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),_e(r=>{if(!mn(r,t,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(ie(l,c,s[r]))})}addListeners(){if(!this.visualElement.current)return;ug.set(this.visualElement,this);const t=this.visualElement.current,n=Ut(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),o=()=>{const{dragConstraints:l}=this.getProps();St(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",o);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),te.read(o);const r=tn(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(_e(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())}));return()=>{r(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:r=as,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:s,dragConstraints:i,dragElastic:r,dragMomentum:a}}}function mn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function fg(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class hg extends tt{constructor(t){super(t),this.removeGroupControls=Ee,this.removeListeners=Ee,this.controls=new dg(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ee}unmount(){this.removeGroupControls(),this.removeListeners()}}const gr=e=>(t,n)=>{e&&te.postRender(()=>e(t,n))};class gg extends tt{constructor(){super(...arguments),this.removePointerDownListener=Ee}onPointerDown(t){this.session=new zl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:s}=this.node.getProps();return{onSessionStart:gr(t),onStart:gr(n),onMove:o,onEnd:(i,r)=>{delete this.session,s&&te.postRender(()=>s(i,r))}}}mount(){this.removePointerDownListener=Ut(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Tn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let wo=!1;class pg extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),o&&o.register&&s&&o.register(i),wo&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Tn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:s,isPresent:i}=this.props,{projection:r}=o;return r&&(r.isPresent=i,wo=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?r.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?r.promote():r.relegate()||te.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Hs.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:s}=t;wo=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),o&&o.deregister&&o.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wl(e){const[t,n]=fl(),o=C.useContext(Ss);return v.jsx(pg,{...e,layoutGroup:o,switchLayoutGroup:C.useContext(_l),isPresent:t,safeToRemove:n})}function mg(e,t,n){const o=ge(e)?e:Mt(e);return o.start(ei("",o,t,n)),o.animation}const vg=(e,t)=>e.depth-t.depth;class yg{constructor(){this.children=[],this.isDirty=!1}add(t){Rs(this.children,t),this.isDirty=!0}remove(t){Es(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(vg),this.isDirty=!1,this.children.forEach(t)}}function wg(e,t){const n=ye.now(),o=({timestamp:s})=>{const i=s-n;i>=t&&(Ye(o),e(i-t))};return te.setup(o,!0),()=>Ye(o)}const Gl=["TopLeft","TopRight","BottomLeft","BottomRight"],xg=Gl.length,pr=e=>typeof e=="string"?parseFloat(e):e,mr=e=>typeof e=="number"||G.test(e);function Cg(e,t,n,o,s,i){s?(e.opacity=ie(0,n.opacity??1,Sg(o)),e.opacityExit=ie(t.opacity??1,0,bg(o))):i&&(e.opacity=ie(t.opacity??1,n.opacity??1,o));for(let r=0;r<xg;r++){const a=`border${Gl[r]}Radius`;let l=vr(t,a),c=vr(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||mr(l)===mr(c)?(e[a]=Math.max(ie(pr(l),pr(c),o),0),(Le.test(c)||Le.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=ie(t.rotate||0,n.rotate||0,o))}function vr(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Sg=Ul(0,.5,Va),bg=Ul(.5,.95,Ee);function Ul(e,t,n){return o=>o<e?0:o>t?1:n(Zt(e,t,o))}function yr(e,t){e.min=t.min,e.max=t.max}function Me(e,t){yr(e.x,t.x),yr(e.y,t.y)}function wr(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function xr(e,t,n,o,s){return e-=t,e=$n(e,1/n,o),s!==void 0&&(e=$n(e,1/s,o)),e}function _g(e,t=0,n=1,o=.5,s,i=e,r=e){if(Le.test(t)&&(t=parseFloat(t),t=ie(r.min,r.max,t/100)-r.min),typeof t!="number")return;let a=ie(i.min,i.max,o);e===i&&(a-=t),e.min=xr(e.min,t,n,a,s),e.max=xr(e.max,t,n,a,s)}function Cr(e,t,[n,o,s],i,r){_g(e,t[n],t[o],t[s],t.scale,i,r)}const Rg=["x","scaleX","originX"],Eg=["y","scaleY","originY"];function Sr(e,t,n,o){Cr(e.x,t,Rg,n?n.x:void 0,o?o.x:void 0),Cr(e.y,t,Eg,n?n.y:void 0,o?o.y:void 0)}function br(e){return e.translate===0&&e.scale===1}function Kl(e){return br(e.x)&&br(e.y)}function _r(e,t){return e.min===t.min&&e.max===t.max}function Pg(e,t){return _r(e.x,t.x)&&_r(e.y,t.y)}function Rr(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ql(e,t){return Rr(e.x,t.x)&&Rr(e.y,t.y)}function Er(e){return pe(e.x)/pe(e.y)}function Pr(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Mg{constructor(){this.members=[]}add(t){Rs(this.members,t),t.scheduleRender()}remove(t){if(Es(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let o;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Tg(e,t,n){let o="";const s=e.x.translate/t.x,i=e.y.translate/t.y,r=n?.z||0;if((s||i||r)&&(o=`translate3d(${s}px, ${i}px, ${r}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:f,rotateY:d,skewX:h,skewY:p}=n;c&&(o=`perspective(${c}px) ${o}`),u&&(o+=`rotate(${u}deg) `),f&&(o+=`rotateX(${f}deg) `),d&&(o+=`rotateY(${d}deg) `),h&&(o+=`skewX(${h}deg) `),p&&(o+=`skewY(${p}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(o+=`scale(${a}, ${l})`),o||"none"}const xo=["","X","Y","Z"],Ag=1e3;let Vg=0;function Co(e,t,n,o){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Xl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Fl(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",te,!(s||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&Xl(o)}function Yl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:s}){return class{constructor(r={},a=t?.()){this.id=Vg++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Fg),this.nodes.forEach($g),this.nodes.forEach(Og),this.nodes.forEach(Lg)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new yg)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Ms),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=dl(r)&&!Sf(r),this.instance=r;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,f=0;const d=()=>this.root.updateBlockedByResize=!1;te.read(()=>{f=window.innerWidth}),e(r,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,u&&u(),u=wg(d,250),Tn.hasAnimatedSinceResize&&(Tn.hasAnimatedSinceResize=!1,this.nodes.forEach(Ar)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||Wg,{onLayoutAnimationStart:g,onLayoutAnimationComplete:m}=c.getProps(),w=!this.targetLayout||!ql(this.targetLayout,h),x=!f&&d;if(this.options.layoutRoot||this.resumeFrom||x||f&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...Bs(p,"layout"),onPlay:g,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(u,x)}else f||Ar(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ye(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ng),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Xl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Mr);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Tr);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(jg),this.nodes.forEach(Dg),this.nodes.forEach(kg)):this.nodes.forEach(Tr),this.clearAllSnapshots();const a=ye.now();fe.delta=ze(0,1e3/60,a-fe.timestamp),fe.timestamp=a,fe.isProcessing=!0,lo.update.process(fe),lo.preRender.process(fe),lo.render.process(fe),fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ig),this.sharedNodes.forEach(Bg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pe(this.snapshot.measuredBox.x)&&!pe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ce(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=o(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Kl(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&this.instance&&(a||at(this.latestValues)||u)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),Gg(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return ce();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ug))){const{scroll:c}=this.root;c&&(bt(a.x,c.offset.x),bt(a.y,c.offset.y))}return a}removeElementScroll(r){const a=ce();if(Me(a,r),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:f}=c;c!==this.root&&u&&f.layoutScroll&&(u.wasRoot&&Me(a,r),bt(a.x,u.offset.x),bt(a.y,u.offset.y))}return a}applyTransform(r,a=!1){const l=ce();Me(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&_t(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),at(u.latestValues)&&_t(l,u.latestValues)}return at(this.latestValues)&&_t(l,this.latestValues),l}removeTransform(r){const a=ce();Me(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!at(c.latestValues))continue;ts(c.latestValues)&&c.updateSnapshot();const u=ce(),f=c.measurePageBox();Me(u,f),Sr(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return at(this.latestValues)&&Sr(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=fe.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ce(),this.targetWithTransforms=ce()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),eg(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Me(this.target,this.layout.layoutBox),Ml(this.target,this.targetDelta)):Me(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ts(this.parent.latestValues)||Pl(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,l){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ce(),this.relativeTargetOrigin=ce(),On(this.relativeTargetOrigin,a,l),Me(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===fe.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;Me(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;fh(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=ce());const{target:h}=r;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(wr(this.prevProjectionDelta.x,this.projectionDelta.x),wr(this.prevProjectionDelta.y,this.projectionDelta.y)),Kt(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!Pr(this.projectionDelta.x,this.prevProjectionDelta.x)||!Pr(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Rt(),this.projectionDelta=Rt(),this.projectionDeltaWithTransform=Rt()}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=Rt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=ce(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=h!==p,m=this.getStack(),w=!m||m.members.length<=1,x=!!(g&&!w&&this.options.crossfade===!0&&!this.path.some(Hg));this.animationProgress=0;let y;this.mixTargetDelta=S=>{const _=S/1e3;Vr(f.x,r.x,_),Vr(f.y,r.y,_),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(On(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),zg(this.relativeTarget,this.relativeTargetOrigin,d,_),y&&Pg(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=ce()),Me(y,this.relativeTarget)),g&&(this.animationValues=u,Cg(u,c,this.latestValues,_,x,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ye(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=te.update(()=>{Tn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Mt(0)),this.currentAnimation=mg(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ag),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&Zl(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||ce();const f=pe(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+f;const d=pe(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+d}Me(a,l),_t(a,u),Kt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Mg),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Co("z",r,c,this.animationValues);for(let u=0;u<xo.length;u++)Co(`rotate${xo[u]}`,r,c,this.animationValues),Co(`skew${xo[u]}`,r,c,this.animationValues);r.render();for(const u in c)r.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Mn(a?.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Mn(a?.pointerEvents)||""),this.hasProjected&&!at(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=Tg(this.projectionDeltaWithTransform,this.treeScale,u);l&&(f=l(u,f)),r.transform=f;const{x:d,y:h}=this.projectionDelta;r.transformOrigin=`${d.origin*100}% ${h.origin*100}% 0`,c.animationValues?r.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in es){if(u[p]===void 0)continue;const{correct:g,applyTo:m,isCSSVariable:w}=es[p],x=f==="none"?u[p]:g(u[p],c);if(m){const y=m.length;for(let S=0;S<y;S++)r[m[S]]=x}else w?this.options.visualElement.renderState.vars[p]=x:r[p]=x}this.options.layoutId&&(r.pointerEvents=c===this?Mn(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Mr),this.root.sharedNodes.clear()}}}function Dg(e){e.updateLayout()}function kg(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:s}=e.options,i=t.source!==e.layout.source;s==="size"?_e(u=>{const f=i?t.measuredBox[u]:t.layoutBox[u],d=pe(f);f.min=n[u].min,f.max=f.min+d}):Zl(s,t.layoutBox,n)&&_e(u=>{const f=i?t.measuredBox[u]:t.layoutBox[u],d=pe(n[u]);f.max=f.min+d,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+d)});const r=Rt();Kt(r,n,t.layoutBox);const a=Rt();i?Kt(a,e.applyTransform(o,!0),t.measuredBox):Kt(a,n,t.layoutBox);const l=!Kl(r);let c=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:f,layout:d}=u;if(f&&d){const h=ce();On(h,t.layoutBox,f.layoutBox);const p=ce();On(p,n,d.layoutBox),ql(h,p)||(c=!0),u.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=h,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Fg(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Lg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ig(e){e.clearSnapshot()}function Mr(e){e.clearMeasurements()}function Tr(e){e.isLayoutDirty=!1}function jg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ar(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $g(e){e.resolveTargetDelta()}function Og(e){e.calcProjection()}function Ng(e){e.resetSkewAndRotation()}function Bg(e){e.removeLeadSnapshot()}function Vr(e,t,n){e.translate=ie(t.translate,0,n),e.scale=ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Dr(e,t,n,o){e.min=ie(t.min,n.min,o),e.max=ie(t.max,n.max,o)}function zg(e,t,n,o){Dr(e.x,t.x,n.x,o),Dr(e.y,t.y,n.y,o)}function Hg(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Wg={duration:.45,ease:[.4,0,.1,1]},kr=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Fr=kr("applewebkit/")&&!kr("chrome/")?Math.round:Ee;function Lr(e){e.min=Fr(e.min),e.max=Fr(e.max)}function Gg(e){Lr(e.x),Lr(e.y)}function Zl(e,t,n){return e==="position"||e==="preserve-aspect"&&!Qh(Er(t),Er(n),.2)}function Ug(e){return e!==e.root&&e.scroll?.wasRoot}const Kg=Yl({attachResizeListener:(e,t)=>tn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),So={current:void 0},Jl=Yl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!So.current){const e=new Kg({});e.mount(window),e.setOptions({layoutScroll:!0}),So.current=e}return So.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),qg={pan:{Feature:gg},drag:{Feature:hg,ProjectionNode:Jl,MeasureLayout:Wl}};function Ir(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=o[s];i&&te.postRender(()=>i(t,ln(t)))}class Xg extends tt{mount(){const{current:t}=this.node;t&&(this.unmount=vf(t,(n,o)=>(Ir(this.node,o,"Start"),s=>Ir(this.node,s,"End"))))}unmount(){}}class Yg extends tt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=sn(tn(this.node.current,"focus",()=>this.onFocus()),tn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function jr(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=o[s];i&&te.postRender(()=>i(t,ln(t)))}class Zg extends tt{mount(){const{current:t}=this.node;t&&(this.unmount=Cf(t,(n,o)=>(jr(this.node,o,"Start"),(s,{success:i})=>jr(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ls=new WeakMap,bo=new WeakMap,Jg=e=>{const t=ls.get(e.target);t&&t(e)},Qg=e=>{e.forEach(Jg)};function ep({root:e,...t}){const n=e||document;bo.has(n)||bo.set(n,{});const o=bo.get(n),s=JSON.stringify(t);return o[s]||(o[s]=new IntersectionObserver(Qg,{root:e,...t})),o[s]}function tp(e,t,n){const o=ep(t);return ls.set(e,n),o.observe(e),()=>{ls.delete(e),o.unobserve(e)}}const np={some:0,all:1};class op extends tt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:s="some",once:i}=t,r={root:n?n.current:void 0,rootMargin:o,threshold:typeof s=="number"?s:np[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=c?u:f;d&&d(l)};return tp(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(sp(t,n))&&this.startObserver()}unmount(){}}function sp({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ip={inView:{Feature:op},tap:{Feature:Zg},focus:{Feature:Yg},hover:{Feature:Xg}},rp={layout:{ProjectionNode:Jl,MeasureLayout:Wl}},ap={...Kh,...ip,...qg,...rp},Xn=ch(ap,Sh),lp="_primary_13825_8",cp="_secondary_13825_12",up="_tertiary_13825_16",dp="_positive_13825_20",fp="_negative_13825_24",hp="_warning_13825_28",gp="_accent_13825_32",pp="_inverse_13825_36",mp="_text_13825_111",vp="_regular_13825_117",yp="_medium_13825_121",wp="_semibold_13825_125",xp="_bold_13825_129",vn={primary:lp,secondary:cp,tertiary:up,positive:dp,negative:fp,warning:hp,accent:gp,inverse:pp,"title-1":"_title-1_13825_41","title-2":"_title-2_13825_51","title-3":"_title-3_13825_61","headline-1":"_headline-1_13825_76","headline-2":"_headline-2_13825_81","headline-3":"_headline-3_13825_86","body-1":"_body-1_13825_91","body-2":"_body-2_13825_96","caption-1":"_caption-1_13825_101","caption-2":"_caption-2_13825_106",text:mp,regular:vp,medium:yp,semibold:wp,bold:xp},Cp=e=>{let t;e.center?t="center":e.left?t="left":e.right&&(t="right");let n;return e.uppercase?n="uppercase":e.lowercase?n="lowercase":e.capitalize&&(n="capitalize"),k.css({marginTop:e.mt,marginBottom:e.mb,marginRight:e.mr,marginLeft:e.ml,flex:e.flex,cursor:e.cursor,wordBreak:e.wordBreak,whiteSpace:e.whiteSpace,textOverflow:e.textOverflow,textDecoration:e.decoration,textAlign:t,textTransform:n,color:e.color,opacity:e.disabled?.5:void 0,overflow:e.overflow})},q=C.forwardRef(({children:e,className:t,variant:n="body-1",fontWeight:o="medium",tag:s="p",colorName:i="primary",style:r,clickOpacity:a=.5,opacityDuration:l=200,onClick:c,disabled:u,mt:f,mb:d,ml:h,mr:p,flex:g,cursor:m,wordBreak:w,whiteSpace:x,textOverflow:y,decoration:S,color:_,center:M,left:T,right:P,uppercase:D,lowercase:F,capitalize:j,overflow:$,...O},V)=>{const[z,N]=C.useState(!1),E=!!c,R=()=>E&&N(!0),A=()=>E&&N(!1),I=Cp({mt:f,mb:d,ml:h,mr:p,flex:g,cursor:m,wordBreak:w,whiteSpace:x,textOverflow:y,decoration:S,color:_,center:M,left:T,right:P,uppercase:D,lowercase:F,capitalize:j,overflow:$}),Y=s,K=E?k.css({opacity:z?a:1,transition:`opacity ${l}ms ease`}):"";return v.jsx(Y,{ref:V,...O,className:k.cx(vn.text,vn[n],vn[i],vn[o],K,t,I),style:r,onClick:c,onMouseDown:R,onMouseUp:A,onMouseLeave:A,onTouchStart:R,onTouchEnd:A,role:E?"button":void 0,tabIndex:E?0:void 0,children:e})});q.displayName="Text";const Ql=Xn(q),Sp=k.css({display:"flex",alignItems:"center",justifyContent:"center",position:"relative",borderRadius:16,height:48,padding:"0 16px",cursor:"pointer",fontSize:16,fontWeight:600,overflow:"hidden",transition:"all 0.2s ease",gap:8}),Bt={zero:"var(--corner-zero)",xs:"var(--corner-xs)",sm:"var(--corner-sm)",md:"var(--corner-md)",lg:"var(--corner-lg)",xl:"var(--corner-xl)","2xl":"var(--corner-2xl)","3xl":"var(--corner-3xl)","4xl":"var(--corner-4xl)","5xl":"var(--corner-5xl)","6xl":"var(--corner-6xl)","full-round":"var(--corner-full-round)"},bp={xs:"var(--height-button-xs)",sm:"var(--height-button-sm)",md:"var(--height-button-md)",lg:"var(--height-button-lg)"},_p={clear:k.css({backgroundColor:"transparent",border:"none"}),filled:k.css({backgroundColor:"var(--fill-accent-primary)",color:"white",border:"none"}),outline:k.css({backgroundColor:"transparent",border:"1px solid var(--border-accent-primary)"})},Rp=(e,t,n,o)=>{if(o)return k.css({cursor:"not-allowed",opacity:.7});const s={transition:"all 0.2s ease",borderRadius:"var(--corner-lg)",border:"none",color:e==="filled"?"var(--text-inverse)":`var(--text-${t})`};switch(e){case"filled":return k.css({...s,backgroundColor:`var(--fill-${t}-${n})`,":hover":{backgroundColor:`var(--fill-${t}-${n}-hover)`},":active":{backgroundColor:`var(--fill-${t}-${n}-hover)`}});case"outline":return k.css({...s,backgroundColor:"transparent",border:`1px solid var(--border-${t}-${n})`,":hover":{backgroundColor:`var(--fill-${t}-secondary-hover)`},":active":{backgroundColor:`var(--fill-${t}-secondary-hover)`}});case"clear":return k.css({...s,backgroundColor:"transparent",":hover":{backgroundColor:`var(--fill-${t}-secondary-hover)`},":active":{backgroundColor:`var(--fill-${t}-secondary-hover)`}});default:return k.css(s)}},cs=({disabled:e,loading:t,wrapperClassName:n,buttonClassName:o,buttonDisabledClassName:s,textClassName:i,children:r,variant:a="filled",backgroundColor:l,textColor:c,textFontWeight:u,borderColor:f,color:d="accent",opacity:h,borderRadius:p,width:g="full",size:m="md",iconLeft:w,iconRight:x,intensity:y="primary",flex:S,type:_="button",...M})=>{const T=C.useMemo(()=>{switch(g){case"full":return"100%";case"auto":return"auto";default:return g}},[g]),P=C.useMemo(()=>l||(a==="filled"?d==="neutral"?"var(--fill-neutral-secondary)":`var(--fill-${d}-${y})`:"transparent"),[a,l,d,y]),D=C.useMemo(()=>{if(y==="primary"){if(d==="neutral")return"var(--text-secondary)";if(a==="filled")return"var(--text-inverse)"}else if(d==="neutral")return"var(--text-secondary)";return`var(--text-${d})`},[y,d,a]),F=C.useMemo(()=>{if(y==="primary"){if(d==="neutral")return"secondary";if(a==="filled")return"inverse"}else if(d==="neutral")return"secondary";return d},[a,d,y]),j=C.useMemo(()=>f||(a==="outline"?`var(--border-${d}-${y})`:"transparent"),[a,f,d,y]),$=C.useMemo(()=>{switch(m){case"lg":return Bt.lg;case"md":case"sm":return Bt.md;case"xs":return Bt.sm;default:return Bt.md}},[m]),O=k.cx(Sp,Rp(a,d,y,e),_p[a],e?s:void 0,k.css({borderRadius:p?Bt[p]:$,backgroundColor:P,borderColor:j,color:c,width:"100%",height:bp[m],opacity:h||(e?.7:1)}),o),V=C.useMemo(()=>{switch(m){case"lg":case"md":return"body-1";case"sm":case"xs":return"body-2";default:return"body-1"}},[m]);return v.jsx(L,{className:k.cx(n),w:T,flex:S,relative:!0,overflow:"hidden",children:v.jsxs(Xn.button,{...M,whileTap:!e&&!t?{scale:.99,boxShadow:"inset 0 0 0 10000px rgba(0,0,0,0.1)",transition:{duration:0}}:{},disabled:e||t,className:O,children:[t?v.jsx(pa,{color:D}):v.jsxs(v.Fragment,{children:[w,v.jsx(Ql,{style:{color:c},colorName:F,variant:V,className:i,textOverflow:"ellipsis",overflow:"hidden",children:r}),x]}),v.jsx(pt,{})]})})},Ep=e=>b.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",...e},b.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z",fill:"currentColor"})),Pp=e=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",...e},b.createElement("path",{d:"M19 13H5v-2h14v2z",fill:"currentColor"})),Mp="_checkbox_22ifd_8",Tp="_disabled_22ifd_14",Ap="_checkbox__ripple_22ifd_14",Vp="_checkbox__input_22ifd_26",Dp="_checkbox__box_22ifd_33",kp="_secondary_22ifd_46",Fp="_checked_22ifd_52",Lp="_error_22ifd_61",$e={checkbox:Mp,disabled:Tp,checkbox__ripple:Ap,checkbox__input:Vp,checkbox__box:Dp,secondary:kp,checked:Fp,error:Lp},Ip={sm:20,md:24},ti=C.forwardRef(({checked:e,onChange:t,disabled:n,error:o,indeterminate:s,size:i="md",title:r,titleColor:a,subtitle:l,subtitleColor:c="secondary",name:u,required:f,variant:d="primary",flex:h,readOnly:p},g)=>{const[m,w]=C.useState(!1),x=e!==void 0,y=x?e:m,S=D=>{x||w(D.target.checked),t?.(D)},_=Ip[i],M=y||s,T=!!p&&!n,P=n?"not-allowed":T?"auto":"pointer";return v.jsxs("label",{className:k.cx($e.checkbox,k.css({flex:h,cursor:P}),{[$e.disabled]:n}),children:[v.jsxs(L,{relative:!0,display:"inline-flex",style:{"--checkbox-size":`${_}px`,"--checkbox-size-double":`${_*2}px`},children:[v.jsx("input",{ref:g,type:"checkbox",checked:y,onChange:T?void 0:S,onClick:D=>D.stopPropagation(),disabled:n,readOnly:T,name:u,required:f,className:k.cx($e.checkbox__input,{[$e.disabled]:n},k.css({cursor:P}))}),v.jsx("div",{className:k.cx($e.checkbox__box,$e[d],{[$e.disabled]:n,[$e.error]:o,[$e.checked]:M}),children:M&&(s?v.jsx(Pp,{width:_*.75,height:_*.75}):v.jsx(Ep,{width:_*.75,height:_*.75}))})]}),(r||l)&&v.jsxs(L,{gap:4,children:[r&&v.jsx(q,{colorName:a,variant:i==="sm"?"body-2":"body-1",children:r}),l&&v.jsx(q,{variant:"body-2",colorName:c,children:l})]})]})});ti.displayName="Checkbox";const jp=e=>b.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{opacity:.5},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0002 17.9999C14.4185 17.9999 18.0002 14.4182 18.0002 9.99991C18.0002 5.58163 14.4185 1.99991 10.0002 1.99991C5.58197 1.99991 2.00024 5.58163 2.00024 9.99991C2.00024 14.4182 5.58197 17.9999 10.0002 17.9999ZM6.46514 6.46446C6.85566 6.07393 7.48883 6.07393 7.87935 6.46446L9.64712 8.23222C9.84238 8.42749 10.159 8.42749 10.3542 8.23222L12.122 6.46446C12.5125 6.07393 13.1457 6.07393 13.5362 6.46446C13.9267 6.85498 13.9267 7.48814 13.5362 7.87867L11.7684 9.64644C11.5732 9.8417 11.5732 10.1583 11.7684 10.3535L13.5362 12.1213C13.9267 12.5118 13.9267 13.145 13.5362 13.5355C13.1457 13.926 12.5125 13.926 12.122 13.5355L10.3542 11.7678C10.159 11.5725 9.84238 11.5725 9.64712 11.7678L7.87935 13.5355C7.48883 13.926 6.85566 13.926 6.46514 13.5355C6.07462 13.145 6.07462 12.5118 6.46514 12.1213L8.23291 10.3535C8.42817 10.1583 8.42817 9.8417 8.23291 9.64644L6.46514 7.87867C6.07462 7.48815 6.07462 6.85498 6.46514 6.46446Z",fill:"currentColor"}))),$p="_disabled_19ujt_20",Op="_multiline_19ujt_24",Np="_input_19ujt_8",Bp="_sm_19ujt_74",zp="_md_19ujt_79",Hp="_error_19ujt_84",Wp="_white_19ujt_88",Gp="_gray_19ujt_92",ve={"input-container":"_input-container_19ujt_8",disabled:$p,multiline:Op,input:Np,"input-text-size_sm":"_input-text-size_sm_19ujt_55","input-text-size_md":"_input-text-size_md_19ujt_59","input-text-align_left":"_input-text-align_left_19ujt_64","input-text-align_center":"_input-text-align_center_19ujt_67","input-text-align_right":"_input-text-align_right_19ujt_70",sm:Bp,md:zp,error:Hp,white:Wp,gray:Gp,"clear-button":"_clear-button_19ujt_96"};function $r(e){return{...new Event("input",{bubbles:!0}),target:e,currentTarget:e}}const ec=C.forwardRef((e,t)=>{const{label:n,prompt:o,error:s,errorText:i,size:r="md",prefix:a,suffix:l,background:c="white",showClearButton:u,disabled:f,value:d,defaultValue:h,inputClassName:p,textAlign:g="left",...m}=e,w=e.multiline===!0,x=C.useRef(null),y=C.useRef(null),[S,_]=mt(typeof d=="string"||typeof d=="number"?String(d):void 0,h==="string"||h==="number"?String(h):"");C.useImperativeHandle(t,()=>({focus:()=>{x.current?.focus(),y.current?.focus()},blur:()=>{x.current?.blur(),y.current?.blur()},get value(){return x.current?.value||y.current?.value},set value(D){_(D),x.current&&(x.current.value=D),y.current&&(y.current.value=D)}}));const M=D=>{if(_(D.target.value),w){const F=e.onChange;F?.(D)}else{const F=e.onChange;F?.(D)}};C.useEffect(()=>{w&&e.autoResize&&y.current&&(y.current.style.height="auto",y.current.style.height=`${y.current.scrollHeight}px`)},[S,w,e.autoResize]);const T=()=>{if(_(""),!w){const F=x.current;if(F){F.value="";const j=$r(F),$=e.onChange;$?.(j)}return}const D=y.current;if(D){D.value="";const F=$r(D),j=e.onChange;j?.(F)}},P=()=>{if(w){const{rows:$,autoResize:O,onChange:V,multiline:z,...N}=m;return v.jsx("textarea",{ref:y,rows:e.rows??3,className:k.cx(ve.input,p,{[ve.disabled]:f,[ve[`input-text-align_${g}`]]:!!g}),disabled:f,maxLength:e.maxLength,...N,value:S,onChange:M})}const{onChange:D,multiline:F,...j}=m;return v.jsx("input",{...j,ref:x,className:k.cx(ve.input,ve[`input-text-size_${r}`],p,{[ve.disabled]:f,[ve[`input-text-align_${g}`]]:!!g}),disabled:f,type:e.type??"text",value:S,onChange:M})};return v.jsxs(L,{w:"full",gap:"var(--spacing-sm)",children:[n&&v.jsx(q,{variant:"body-2",fontWeight:"regular",colorName:"tertiary",children:n}),v.jsxs(L,{row:!0,alignItems:w?"flex-start":"center",w:"full",gap:"var(--spacing-md)",className:k.cx(ve["input-container"],ve[c],ve[r],{[ve.error]:s,[ve.disabled]:f,[ve.multiline]:w}),children:[a&&v.jsx(L,{flex:"none",children:a}),v.jsx(L,{flex:"1",children:P()}),u&&S&&!f&&v.jsx(L,{flex:"none",children:v.jsx("span",{className:ve["clear-button"],onClick:T,children:v.jsx(jp,{})})}),l&&v.jsx(L,{flex:"none",children:l})]}),(o||w)&&v.jsxs(L,{row:!0,gap:10,w:"full",children:[typeof o=="string"?v.jsx(q,{variant:"caption-1",colorName:"tertiary",children:o}):o,w&&e.maxLength&&v.jsx(q,{right:!0,ml:"auto",flex:"none",variant:"caption-1",colorName:"tertiary",children:`${S.length}/${e.maxLength}`})]}),i&&s&&v.jsx(q,{variant:"body-2",colorName:"negative",fontWeight:"regular",children:i})]})});ec.displayName="Input";const Up="_input_5xq63_8",Kp="_disabled_5xq63_29",qp="_error_5xq63_37",Xp="_success_5xq63_41",Yp="_white_5xq63_50",Zp="_gray_5xq63_54",Jp="_glow_5xq63_58",vt={input:Up,disabled:Kp,error:qp,success:Xp,white:Yp,gray:Zp,glow:Jp};function Qp(e){const t=C.useRef(void 0);return C.useEffect(()=>{t.current=e},[e]),t.current}const tc=C.forwardRef(({length:e=6,label:t,prompt:n,error:o,errorText:s,success:i,disabled:r,autoFocus:a,center:l,secure:c,loading:u,background:f="gray",numeric:d=!0,className:h,value:p,defaultValue:g,onChange:m,onComplete:w},x)=>{const y=typeof p=="string",S=y?p:g,_=typeof S=="string"?S.slice(0,e):"",[M,T]=mt(y?p:void 0,_),[P,D]=C.useState(()=>{const E=_.slice(0,e);return Array.from({length:e},(R,A)=>E[A]??"")}),F=C.useRef(void 0),j=Qp(p),$=C.useRef([]);C.useEffect(()=>{if(!y)return;const E=p??"";if(E===j)return;if(E===F.current){F.current=void 0;return}const R=E.slice(0,e);D(Array.from({length:e},(A,I)=>R[I]??""))},[y,p,e,j]);const O=C.useCallback((E,R)=>{const A=E.slice(0,e);R?.fromInternal&&(F.current=A),T(A),m?.(A),A.length===e&&w?.(A)},[e,m,w,T]);C.useImperativeHandle(x,()=>({focus:()=>{$.current[0]?.focus()},blur:()=>{$.current.forEach(E=>E?.blur())},get value(){return M||""},setValue:E=>{const R=E.slice(0,e);D(Array.from({length:e},(A,I)=>R[I]??"")),O(R,{fromInternal:!0})},clear:()=>{D(Array.from({length:e},()=>"")),O("",{fromInternal:!0})}}),[e,O,M]);const V=C.useCallback((E,R)=>{if(r)return;let A=R;if(d&&(A=A.replace(/\D/g,"")),A.length>1){const U=P.slice(0,E).join("")+A+P.slice(E+1).join(""),re=Array.from({length:e},(B,X)=>U[X]??"");D(re),O(U,{fromInternal:!0});const J=Math.min(E+A.length,e-1),ne=$.current[J];ne?.focus(),ne?.select();return}const I=P[E],Y=[...P];Y[E]=A,D(Y);const K=Y.join("");if(O(K,{fromInternal:!0}),!I&&A&&E<e-1){const U=$.current[E+1];U?.focus(),U?.select()}},[P,r,e,d,O]),z=C.useCallback((E,R)=>{if(!r){if(R.key==="Backspace"){R.preventDefault();const A=$.current[E];if(P[E]){const I=[...P];I[E]="",D(I),O(I.join(""),{fromInternal:!0}),A?.focus();return}if(E>0){const I=$.current[E-1];I?.focus(),I?.select()}return}R.key==="ArrowLeft"&&E>0&&(R.preventDefault(),$.current[E-1]?.focus()),R.key==="ArrowRight"&&E<e-1&&(R.preventDefault(),$.current[E+1]?.focus())}},[P,r,e,O]),N=C.useCallback((E,R)=>{if(r)return;R.preventDefault();let A=R.clipboardData.getData("text");if(d&&(A=A.replace(/\D/g,"")),!A)return;const I=e-E,Y=Math.min(A.length,I),K=A.slice(0,Y),U=[...P];for(let B=0;B<Y;B++)U[E+B]=K[B]??"";D(U);const re=U.join("");O(re,{fromInternal:!0});const J=Math.min(E+Y-1,e-1),ne=$.current[J];ne?.focus(),ne?.select()},[P,r,e,d,O]);return v.jsxs(L,{w:"full",gap:"var(--spacing-sm)",className:h,center:l,children:[t&&v.jsx(q,{variant:"body-2",fontWeight:"regular",colorName:"tertiary",children:t}),v.jsx(L,{row:!0,w:"full",gap:"var(--spacing-sm)",center:l,className:k.cx({[vt.disabled]:r}),children:Array.from({length:e}).map((E,R)=>v.jsxs(L,{relative:!0,display:"inline-block",children:[v.jsx("input",{ref:A=>{$.current[R]=A},className:k.cx(vt.input,vt[f],o&&vt.error,i&&vt.success,P[R]&&k.css({caretColor:"transparent"})),inputMode:d?"numeric":"text",type:c?"password":"text",maxLength:1,autoFocus:a&&R===0,disabled:r||u,value:P[R],onChange:A=>V(R,A.target.value),onKeyDown:A=>z(R,A),onPaste:A=>N(R,A)}),v.jsx(Xn.span,{className:vt.glow,variants:em,custom:R,initial:"idle",animate:u?"wave":"idle"})]},R))}),n&&v.jsx(q,{variant:"caption-1",colorName:"tertiary",children:n}),s&&o&&v.jsx(q,{variant:"body-2",colorName:"negative",fontWeight:"regular",children:s})]})}),em={idle:{opacity:0,scale:1,transition:{duration:.18}},wave:(e=0)=>({opacity:[0,.2,0],scale:[1,1.03,1],transition:{duration:1.5,delay:e*.15,repeat:1/0,ease:[.42,0,.58,1]}})};tc.displayName="OtpInput";const nc=C.createContext(null),tm=()=>C.useContext(nc),nm="_radio_zru2j_8",om="_disabled_zru2j_16",sm="_side_right_zru2j_21",zt={radio:nm,disabled:om,side_right:sm,"read-only":"_read-only_zru2j_26"},Or={sm:{inner:12,outer:20},md:{inner:16,outer:24}},oc=C.forwardRef(({value:e,children:t,checked:n,defaultChecked:o,onChange:s,disabled:i,className:r,description:a,size:l,side:c,readOnly:u,error:f},d)=>{const h=tm(),p=!!h,g=n!==void 0,[m,w]=mt(n,o),x=p?h.value===e:g?n:m,y=h?.disabled||i,S=l??h?.size??"md",_=c??h?.side??"left",M=u??h?.readOnly??!1,T=f??h?.error??!1,P=Or[S].outer,D=Or[S].inner,F=()=>{y||M||(p?h.setValue?.(e):(g||w(!x),s?.(!x)))},j=x&&T?"var(--fill-negative-tint)":x?"var(--fill-accent-tint)":"var(--fill-bg-secondary)",$=x&&T?"var(--fill-negative-primary)":x?"var(--fill-accent-primary)":void 0,O=x&&T||T&&!x?"var(--border-negative-secondary)":"var(--border-neutral-alpha-low)";return v.jsxs("button",{ref:d,role:"radio",type:"button","data-value":e,"aria-checked":x,"aria-disabled":y||void 0,tabIndex:x?0:-1,className:k.cx([zt.radio,x&&zt.checked,y&&zt.disabled,_==="right"&&zt.side_right,M&&zt["read-only"],r]),onClick:F,children:[v.jsx(L,{w:P,h:P,backgroundColor:j,borderWidth:x?0:1,borderColor:O,borderStyle:"solid",center:!0,borderRadius:"var(--corner-full-round)",children:v.jsx(L,{w:D,h:D,backgroundColor:$,borderRadius:"var(--corner-full-round)","aria-hidden":!0})}),v.jsxs(L,{alignItems:"flex-start",children:[v.jsx(q,{variant:S==="sm"?"body-2":"body-1",tag:"span",left:!0,children:t}),a&&v.jsx(q,{tag:"span",variant:"body-2",colorName:"secondary",children:a})]})]})});oc.displayName="Radio";const sc=C.forwardRef(({label:e,value:t,defaultValue:n,onChange:o,children:s,className:i,error:r=!1,disabled:a=!1,readOnly:l=!1,side:c="left",size:u="md"},f)=>{const[d,h]=mt(t,n),p=t!==void 0,g=p?t:d,m=C.useCallback(x=>{p||h(x),o?.(x)},[p,o,h]),w=C.useRef(null);return C.useImperativeHandle(f,()=>w.current),v.jsx(nc.Provider,{value:{value:g,readOnly:l,disabled:a,setValue:m,size:u,side:c,error:r},children:v.jsxs(L,{gap:"var(--spacing-sm)",ref:w,role:"radiogroup","aria-invalid":r||void 0,className:i,children:[typeof e=="string"?v.jsx(q,{colorName:"secondary",children:e}):e,v.jsx(L,{gap:"var(--spacing-lg)",children:s})]})})});sc.displayName="RadioGroup";const im="_primary_svt6d_8",rm="_secondary_svt6d_13",am="_button_svt6d_18",Ue={primary:im,secondary:rm,button:am,"button-active":"_button-active_svt6d_32","icon-container":"_icon-container_svt6d_35","button-primary":"_button-primary_svt6d_47","button-secondary":"_button-secondary_svt6d_51","button-disabled":"_button-disabled_svt6d_55","full-width":"_full-width_svt6d_60"};function lm({value:e,onChange:t,options:n,variant:o="primary",fullWidth:s=!1,className:i}){return v.jsx(L,{row:!0,alignItems:"center",borderRadius:"var(--corner-md)",p:"var(--spacing-xs)",gap:"var(--spacing-md)",className:k.cx(Ue[o],s&&Ue["full-width"],i),children:n.map(r=>{const a=r.value===e,l=r.disabled,c=r.separatorAfter??!1;return v.jsxs(C.Fragment,{children:[v.jsxs("button",{type:"button",disabled:l,className:k.cx(Ue.button,s&&Ue["full-width"],a&&Ue["button-active"],a&&Ue[`button-${o}`],l&&Ue["button-disabled"]),onClick:()=>!l&&t(r.value),children:[r.icon&&v.jsx(L,{alignItems:"center",justifyContent:"center",className:Ue["icon-container"],children:r.icon}),r.label&&v.jsx(q,{colorName:a?"primary":"tertiary",children:r.label}),!l&&v.jsx(pt,{color:"var(--fill-bg-overlay-primary)"})]}),c&&v.jsx(L,{w:1,h:24,backgroundColor:"var(--fill-bg-tertiary)"})]},r.value)})})}function Yn(){return typeof window<"u"}function Lt(e){return ic(e)?(e.nodeName||"").toLowerCase():"#document"}function we(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function je(e){var t;return(t=(ic(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ic(e){return Yn()?e instanceof Node||e instanceof we(e).Node:!1}function Q(e){return Yn()?e instanceof Element||e instanceof we(e).Element:!1}function me(e){return Yn()?e instanceof HTMLElement||e instanceof we(e).HTMLElement:!1}function us(e){return!Yn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof we(e).ShadowRoot}const cm=new Set(["inline","contents"]);function cn(e){const{overflow:t,overflowX:n,overflowY:o,display:s}=Pe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!cm.has(s)}const um=new Set(["table","td","th"]);function dm(e){return um.has(Lt(e))}const fm=[":popover-open",":modal"];function Zn(e){return fm.some(t=>{try{return e.matches(t)}catch{return!1}})}const hm=["transform","translate","scale","rotate","perspective"],gm=["transform","translate","scale","rotate","perspective","filter"],pm=["paint","layout","strict","content"];function ni(e){const t=Jn(),n=Q(e)?Pe(e):e;return hm.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||gm.some(o=>(n.willChange||"").includes(o))||pm.some(o=>(n.contain||"").includes(o))}function mm(e){let t=Ge(e);for(;me(t)&&!Be(t);){if(ni(t))return t;if(Zn(t))return null;t=Ge(t)}return null}function Jn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vm=new Set(["html","body","#document"]);function Be(e){return vm.has(Lt(e))}function Pe(e){return we(e).getComputedStyle(e)}function Qn(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ge(e){if(Lt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||us(e)&&e.host||je(e);return us(t)?t.host:t}function rc(e){const t=Ge(e);return Be(t)?e.ownerDocument?e.ownerDocument.body:e.body:me(t)&&cn(t)?t:rc(t)}function Xe(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=rc(e),i=s===((o=e.ownerDocument)==null?void 0:o.body),r=we(s);if(i){const a=ds(r);return t.concat(r,r.visualViewport||[],cn(s)?s:[],a&&n?Xe(a):[])}return t.concat(s,Xe(s,[],n))}function ds(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Je=Math.min,xe=Math.max,Nn=Math.round,yn=Math.floor,Ie=e=>({x:e,y:e}),ym={left:"right",right:"left",bottom:"top",top:"bottom"},wm={start:"end",end:"start"};function fs(e,t,n){return xe(e,Je(t,n))}function It(e,t){return typeof e=="function"?e(t):e}function Qe(e){return e.split("-")[0]}function jt(e){return e.split("-")[1]}function ac(e){return e==="x"?"y":"x"}function oi(e){return e==="y"?"height":"width"}const xm=new Set(["top","bottom"]);function Ne(e){return xm.has(Qe(e))?"y":"x"}function si(e){return ac(Ne(e))}function Cm(e,t,n){n===void 0&&(n=!1);const o=jt(e),s=si(e),i=oi(s);let r=s==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(r=Bn(r)),[r,Bn(r)]}function Sm(e){const t=Bn(e);return[hs(e),t,hs(t)]}function hs(e){return e.replace(/start|end/g,t=>wm[t])}const Nr=["left","right"],Br=["right","left"],bm=["top","bottom"],_m=["bottom","top"];function Rm(e,t,n){switch(e){case"top":case"bottom":return n?t?Br:Nr:t?Nr:Br;case"left":case"right":return t?bm:_m;default:return[]}}function Em(e,t,n,o){const s=jt(e);let i=Rm(Qe(e),n==="start",o);return s&&(i=i.map(r=>r+"-"+s),t&&(i=i.concat(i.map(hs)))),i}function Bn(e){return e.replace(/left|right|bottom|top/g,t=>ym[t])}function Pm(e){return{top:0,right:0,bottom:0,left:0,...e}}function lc(e){return typeof e!="number"?Pm(e):{top:e,right:e,bottom:e,left:e}}function zn(e){const{x:t,y:n,width:o,height:s}=e;return{width:o,height:s,top:n,left:t,right:t+o,bottom:n+s,x:t,y:n}}function Mm(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Tm(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:o}=t;return n+"/"+o}).join(" "):navigator.userAgent}function Am(){return/apple/i.test(navigator.vendor)}function Vm(){return Mm().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Dm(){return Tm().includes("jsdom/")}const zr="data-floating-ui-focusable",km="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Hr(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function nn(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&us(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function wt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function _o(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Fm(e){return e.matches("html,body")}function dt(e){return e?.ownerDocument||document}function cc(e){return me(e)&&e.matches(km)}function Lm(e){if(!e||Dm())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Im(e){return e?e.hasAttribute(zr)?e:e.querySelector("["+zr+"]")||e:null}function An(e,t,n){return n===void 0&&(n=!0),e.filter(s=>{var i;return s.parentId===t&&(!n||((i=s.context)==null?void 0:i.open))}).flatMap(s=>[s,...An(e,s.id,n)])}function jm(e){return"nativeEvent"in e}function on(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var $m=typeof document<"u",Om=function(){},At=$m?C.useLayoutEffect:Om;const Nm={...b};function wn(e){const t=b.useRef(e);return At(()=>{t.current=e}),t}const Bm=Nm.useInsertionEffect,zm=Bm||(e=>e());function Fe(e){const t=b.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return zm(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return t.current==null?void 0:t.current(...o)},[])}function Wr(e,t,n){let{reference:o,floating:s}=e;const i=Ne(t),r=si(t),a=oi(r),l=Qe(t),c=i==="y",u=o.x+o.width/2-s.width/2,f=o.y+o.height/2-s.height/2,d=o[a]/2-s[a]/2;let h;switch(l){case"top":h={x:u,y:o.y-s.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-s.width,y:f};break;default:h={x:o.x,y:o.y}}switch(jt(t)){case"start":h[r]-=d*(n&&c?-1:1);break;case"end":h[r]+=d*(n&&c?-1:1);break}return h}const Hm=async(e,t,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:i=[],platform:r}=n,a=i.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:f}=Wr(c,o,l),d=o,h={},p=0;for(let g=0;g<a.length;g++){const{name:m,fn:w}=a[g],{x,y,data:S,reset:_}=await w({x:u,y:f,initialPlacement:o,placement:d,strategy:s,middlewareData:h,rects:c,platform:r,elements:{reference:e,floating:t}});u=x??u,f=y??f,h={...h,[m]:{...h[m],...S}},_&&p<=50&&(p++,typeof _=="object"&&(_.placement&&(d=_.placement),_.rects&&(c=_.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:s}):_.rects),{x:u,y:f}=Wr(c,d,l)),g=-1)}return{x:u,y:f,placement:d,strategy:s,middlewareData:h}};async function ii(e,t){var n;t===void 0&&(t={});const{x:o,y:s,platform:i,rects:r,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=It(t,e),p=lc(h),m=a[d?f==="floating"?"reference":"floating":f],w=zn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(m)))==null||n?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),x=f==="floating"?{x:o,y:s,width:r.floating.width,height:r.floating.height}:r.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},_=zn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:y,strategy:l}):x);return{top:(w.top-_.top+p.top)/S.y,bottom:(_.bottom-w.bottom+p.bottom)/S.y,left:(w.left-_.left+p.left)/S.x,right:(_.right-w.right+p.right)/S.x}}const Wm=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:s,rects:i,platform:r,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=It(e,t)||{};if(c==null)return{};const f=lc(u),d={x:n,y:o},h=si(s),p=oi(h),g=await r.getDimensions(c),m=h==="y",w=m?"top":"left",x=m?"bottom":"right",y=m?"clientHeight":"clientWidth",S=i.reference[p]+i.reference[h]-d[h]-i.floating[p],_=d[h]-i.reference[h],M=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let T=M?M[y]:0;(!T||!await(r.isElement==null?void 0:r.isElement(M)))&&(T=a.floating[y]||i.floating[p]);const P=S/2-_/2,D=T/2-g[p]/2-1,F=Je(f[w],D),j=Je(f[x],D),$=F,O=T-g[p]-j,V=T/2-g[p]/2+P,z=fs($,V,O),N=!l.arrow&&jt(s)!=null&&V!==z&&i.reference[p]/2-(V<$?F:j)-g[p]/2<0,E=N?V<$?V-$:V-O:0;return{[h]:d[h]+E,data:{[h]:z,centerOffset:V-z-E,...N&&{alignmentOffset:E}},reset:N}}}),Gm=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:s,middlewareData:i,rects:r,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=It(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=Qe(s),x=Ne(a),y=Qe(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),_=d||(y||!g?[Bn(a)]:Sm(a)),M=p!=="none";!d&&M&&_.push(...Em(a,g,p,S));const T=[a,..._],P=await ii(t,m),D=[];let F=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&D.push(P[w]),f){const V=Cm(s,r,S);D.push(P[V[0]],P[V[1]])}if(F=[...F,{placement:s,overflows:D}],!D.every(V=>V<=0)){var j,$;const V=(((j=i.flip)==null?void 0:j.index)||0)+1,z=T[V];if(z&&(!(f==="alignment"?x!==Ne(z):!1)||F.every(R=>Ne(R.placement)===x?R.overflows[0]>0:!0)))return{data:{index:V,overflows:F},reset:{placement:z}};let N=($=F.filter(E=>E.overflows[0]<=0).sort((E,R)=>E.overflows[1]-R.overflows[1])[0])==null?void 0:$.placement;if(!N)switch(h){case"bestFit":{var O;const E=(O=F.filter(R=>{if(M){const A=Ne(R.placement);return A===x||A==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(A=>A>0).reduce((A,I)=>A+I,0)]).sort((R,A)=>R[1]-A[1])[0])==null?void 0:O[0];E&&(N=E);break}case"initialPlacement":N=a;break}if(s!==N)return{reset:{placement:N}}}return{}}}},Um=new Set(["left","top"]);async function Km(e,t){const{placement:n,platform:o,elements:s}=e,i=await(o.isRTL==null?void 0:o.isRTL(s.floating)),r=Qe(n),a=jt(n),l=Ne(n)==="y",c=Um.has(r)?-1:1,u=i&&l?-1:1,f=It(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*u,y:d*c}:{x:d*c,y:h*u}}const qm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:s,y:i,placement:r,middlewareData:a}=t,l=await Km(t,e);return r===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:r}}}}},Xm=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:s}=t,{mainAxis:i=!0,crossAxis:r=!1,limiter:a={fn:m=>{let{x:w,y:x}=m;return{x:w,y:x}}},...l}=It(e,t),c={x:n,y:o},u=await ii(t,l),f=Ne(Qe(s)),d=ac(f);let h=c[d],p=c[f];if(i){const m=d==="y"?"top":"left",w=d==="y"?"bottom":"right",x=h+u[m],y=h-u[w];h=fs(x,h,y)}if(r){const m=f==="y"?"top":"left",w=f==="y"?"bottom":"right",x=p+u[m],y=p-u[w];p=fs(x,p,y)}const g=a.fn({...t,[d]:h,[f]:p});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[d]:i,[f]:r}}}}}},Ym=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:s,rects:i,platform:r,elements:a}=t,{apply:l=()=>{},...c}=It(e,t),u=await ii(t,c),f=Qe(s),d=jt(s),h=Ne(s)==="y",{width:p,height:g}=i.floating;let m,w;f==="top"||f==="bottom"?(m=f,w=d===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(w=f,m=d==="end"?"top":"bottom");const x=g-u.top-u.bottom,y=p-u.left-u.right,S=Je(g-u[m],x),_=Je(p-u[w],y),M=!t.middlewareData.shift;let T=S,P=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=y),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(T=x),M&&!d){const F=xe(u.left,0),j=xe(u.right,0),$=xe(u.top,0),O=xe(u.bottom,0);h?P=p-2*(F!==0||j!==0?F+j:xe(u.left,u.right)):T=g-2*($!==0||O!==0?$+O:xe(u.top,u.bottom))}await l({...t,availableWidth:P,availableHeight:T});const D=await r.getDimensions(a.floating);return p!==D.width||g!==D.height?{reset:{rects:!0}}:{}}}};function uc(e){const t=Pe(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const s=me(e),i=s?e.offsetWidth:n,r=s?e.offsetHeight:o,a=Nn(n)!==i||Nn(o)!==r;return a&&(n=i,o=r),{width:n,height:o,$:a}}function ri(e){return Q(e)?e:e.contextElement}function Pt(e){const t=ri(e);if(!me(t))return Ie(1);const n=t.getBoundingClientRect(),{width:o,height:s,$:i}=uc(t);let r=(i?Nn(n.width):n.width)/o,a=(i?Nn(n.height):n.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}const Zm=Ie(0);function dc(e){const t=we(e);return!Jn()||!t.visualViewport?Zm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jm(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==we(e)?!1:t}function gt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=ri(e);let r=Ie(1);t&&(o?Q(o)&&(r=Pt(o)):r=Pt(e));const a=Jm(i,n,o)?dc(i):Ie(0);let l=(s.left+a.x)/r.x,c=(s.top+a.y)/r.y,u=s.width/r.x,f=s.height/r.y;if(i){const d=we(i),h=o&&Q(o)?we(o):o;let p=d,g=ds(p);for(;g&&o&&h!==p;){const m=Pt(g),w=g.getBoundingClientRect(),x=Pe(g),y=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*m.x,S=w.top+(g.clientTop+parseFloat(x.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,f*=m.y,l+=y,c+=S,p=we(g),g=ds(p)}}return zn({width:u,height:f,x:l,y:c})}function eo(e,t){const n=Qn(e).scrollLeft;return t?t.left+n:gt(je(e)).left+n}function fc(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-eo(e,n),s=n.top+t.scrollTop;return{x:o,y:s}}function Qm(e){let{elements:t,rect:n,offsetParent:o,strategy:s}=e;const i=s==="fixed",r=je(o),a=t?Zn(t.floating):!1;if(o===r||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Ie(1);const u=Ie(0),f=me(o);if((f||!f&&!i)&&((Lt(o)!=="body"||cn(r))&&(l=Qn(o)),me(o))){const h=gt(o);c=Pt(o),u.x=h.x+o.clientLeft,u.y=h.y+o.clientTop}const d=r&&!f&&!i?fc(r,l):Ie(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}}function ev(e){return Array.from(e.getClientRects())}function tv(e){const t=je(e),n=Qn(e),o=e.ownerDocument.body,s=xe(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=xe(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+eo(e);const a=-n.scrollTop;return Pe(o).direction==="rtl"&&(r+=xe(t.clientWidth,o.clientWidth)-s),{width:s,height:i,x:r,y:a}}const Gr=25;function nv(e,t){const n=we(e),o=je(e),s=n.visualViewport;let i=o.clientWidth,r=o.clientHeight,a=0,l=0;if(s){i=s.width,r=s.height;const u=Jn();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}const c=eo(o);if(c<=0){const u=o.ownerDocument,f=u.body,d=getComputedStyle(f),h=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,p=Math.abs(o.clientWidth-f.clientWidth-h);p<=Gr&&(i-=p)}else c<=Gr&&(i+=c);return{width:i,height:r,x:a,y:l}}const ov=new Set(["absolute","fixed"]);function sv(e,t){const n=gt(e,!0,t==="fixed"),o=n.top+e.clientTop,s=n.left+e.clientLeft,i=me(e)?Pt(e):Ie(1),r=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=o*i.y;return{width:r,height:a,x:l,y:c}}function Ur(e,t,n){let o;if(t==="viewport")o=nv(e,n);else if(t==="document")o=tv(je(e));else if(Q(t))o=sv(t,n);else{const s=dc(e);o={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return zn(o)}function hc(e,t){const n=Ge(e);return n===t||!Q(n)||Be(n)?!1:Pe(n).position==="fixed"||hc(n,t)}function iv(e,t){const n=t.get(e);if(n)return n;let o=Xe(e,[],!1).filter(a=>Q(a)&&Lt(a)!=="body"),s=null;const i=Pe(e).position==="fixed";let r=i?Ge(e):e;for(;Q(r)&&!Be(r);){const a=Pe(r),l=ni(r);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&ov.has(s.position)||cn(r)&&!l&&hc(e,r))?o=o.filter(u=>u!==r):s=a,r=Ge(r)}return t.set(e,o),o}function rv(e){let{element:t,boundary:n,rootBoundary:o,strategy:s}=e;const r=[...n==="clippingAncestors"?Zn(t)?[]:iv(t,this._c):[].concat(n),o],a=r[0],l=r.reduce((c,u)=>{const f=Ur(t,u,s);return c.top=xe(f.top,c.top),c.right=Je(f.right,c.right),c.bottom=Je(f.bottom,c.bottom),c.left=xe(f.left,c.left),c},Ur(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function av(e){const{width:t,height:n}=uc(e);return{width:t,height:n}}function lv(e,t,n){const o=me(t),s=je(t),i=n==="fixed",r=gt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Ie(0);function c(){l.x=eo(s)}if(o||!o&&!i)if((Lt(t)!=="body"||cn(s))&&(a=Qn(t)),o){const h=gt(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else s&&c();i&&!o&&s&&c();const u=s&&!o&&!i?fc(s,a):Ie(0),f=r.left+a.scrollLeft-l.x-u.x,d=r.top+a.scrollTop-l.y-u.y;return{x:f,y:d,width:r.width,height:r.height}}function Ro(e){return Pe(e).position==="static"}function Kr(e,t){if(!me(e)||Pe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return je(e)===n&&(n=n.ownerDocument.body),n}function gc(e,t){const n=we(e);if(Zn(e))return n;if(!me(e)){let s=Ge(e);for(;s&&!Be(s);){if(Q(s)&&!Ro(s))return s;s=Ge(s)}return n}let o=Kr(e,t);for(;o&&dm(o)&&Ro(o);)o=Kr(o,t);return o&&Be(o)&&Ro(o)&&!ni(o)?n:o||mm(e)||n}const cv=async function(e){const t=this.getOffsetParent||gc,n=this.getDimensions,o=await n(e.floating);return{reference:lv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function uv(e){return Pe(e).direction==="rtl"}const dv={convertOffsetParentRelativeRectToViewportRelativeRect:Qm,getDocumentElement:je,getClippingRect:rv,getOffsetParent:gc,getElementRects:cv,getClientRects:ev,getDimensions:av,getScale:Pt,isElement:Q,isRTL:uv};function pc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fv(e,t){let n=null,o;const s=je(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function r(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:f,width:d,height:h}=c;if(a||t(),!d||!h)return;const p=yn(f),g=yn(s.clientWidth-(u+d)),m=yn(s.clientHeight-(f+h)),w=yn(u),y={rootMargin:-p+"px "+-g+"px "+-m+"px "+-w+"px",threshold:xe(0,Je(1,l))||1};let S=!0;function _(M){const T=M[0].intersectionRatio;if(T!==l){if(!S)return r();T?r(!1,T):o=setTimeout(()=>{r(!1,1e-7)},1e3)}T===1&&!pc(c,e.getBoundingClientRect())&&r(),S=!1}try{n=new IntersectionObserver(_,{...y,root:s.ownerDocument})}catch{n=new IntersectionObserver(_,y)}n.observe(e)}return r(!0),i}function ai(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=ri(e),u=s||i?[...c?Xe(c):[],...Xe(t)]:[];u.forEach(w=>{s&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const f=c&&a?fv(c,n):null;let d=-1,h=null;r&&(h=new ResizeObserver(w=>{let[x]=w;x&&x.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let p,g=l?gt(e):null;l&&m();function m(){const w=gt(e);g&&!pc(g,w)&&n(),g=w,p=requestAnimationFrame(m)}return n(),()=>{var w;u.forEach(x=>{s&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),f?.(),(w=h)==null||w.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const hv=qm,gv=Xm,pv=Gm,mv=Ym,qr=Wm,vv=(e,t,n)=>{const o=new Map,s={platform:dv,...n},i={...s.platform,_c:o};return Hm(e,t,{...s,platform:i})};var yv=typeof document<"u",wv=function(){},Vn=yv?C.useLayoutEffect:wv;function Hn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Hn(e[o],t[o]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,s[o]))return!1;for(o=n;o--!==0;){const i=s[o];if(!(i==="_owner"&&e.$$typeof)&&!Hn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function mc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xr(e,t){const n=mc(e);return Math.round(t*n)/n}function Eo(e){const t=b.useRef(e);return Vn(()=>{t.current=e}),t}function xv(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:s,elements:{reference:i,floating:r}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,f]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=b.useState(o);Hn(d,o)||h(o);const[p,g]=b.useState(null),[m,w]=b.useState(null),x=b.useCallback(R=>{R!==M.current&&(M.current=R,g(R))},[]),y=b.useCallback(R=>{R!==T.current&&(T.current=R,w(R))},[]),S=i||p,_=r||m,M=b.useRef(null),T=b.useRef(null),P=b.useRef(u),D=l!=null,F=Eo(l),j=Eo(s),$=Eo(c),O=b.useCallback(()=>{if(!M.current||!T.current)return;const R={placement:t,strategy:n,middleware:d};j.current&&(R.platform=j.current),vv(M.current,T.current,R).then(A=>{const I={...A,isPositioned:$.current!==!1};V.current&&!Hn(P.current,I)&&(P.current=I,Jc.flushSync(()=>{f(I)}))})},[d,t,n,j,$]);Vn(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[c]);const V=b.useRef(!1);Vn(()=>(V.current=!0,()=>{V.current=!1}),[]),Vn(()=>{if(S&&(M.current=S),_&&(T.current=_),S&&_){if(F.current)return F.current(S,_,O);O()}},[S,_,O,F,D]);const z=b.useMemo(()=>({reference:M,floating:T,setReference:x,setFloating:y}),[x,y]),N=b.useMemo(()=>({reference:S,floating:_}),[S,_]),E=b.useMemo(()=>{const R={position:n,left:0,top:0};if(!N.floating)return R;const A=Xr(N.floating,u.x),I=Xr(N.floating,u.y);return a?{...R,transform:"translate("+A+"px, "+I+"px)",...mc(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:I}},[n,a,N.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:O,refs:z,elements:N,floatingStyles:E}),[u,O,z,N,E])}const Cv=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:s}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?qr({element:o.current,padding:s}).fn(n):{}:o?qr({element:o,padding:s}).fn(n):{}}}},li=(e,t)=>({...hv(e),options:[e,t]}),ci=(e,t)=>({...gv(e),options:[e,t]}),ui=(e,t)=>({...pv(e),options:[e,t]}),Sv=(e,t)=>({...mv(e),options:[e,t]}),bv=(e,t)=>({...Cv(e),options:[e,t]});function vc(e){const t=b.useRef(void 0),n=b.useCallback(o=>{const s=e.map(i=>{if(i!=null){if(typeof i=="function"){const r=i,a=r(o);return typeof a=="function"?a:()=>{r(null)}}return i.current=o,()=>{i.current=null}}});return()=>{s.forEach(i=>i?.())}},e);return b.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const _v="data-floating-ui-focusable",Yr="active",Zr="selected",Rv={...b};let Jr=!1,Ev=0;const Qr=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ev++;function Pv(){const[e,t]=b.useState(()=>Jr?Qr():void 0);return At(()=>{e==null&&t(Qr())},[]),b.useEffect(()=>{Jr=!0},[]),e}const Mv=Rv.useId,yc=Mv||Pv;let gs;process.env.NODE_ENV!=="production"&&(gs=new Set);function Tv(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];const s="Floating UI: "+n.join(" ");if(!((e=gs)!=null&&e.has(s))){var i;(i=gs)==null||i.add(s),console.error(s)}}function Av(){const e=new Map;return{emit(t,n){var o;(o=e.get(t))==null||o.forEach(s=>s(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var o;(o=e.get(t))==null||o.delete(n)}}}const Vv=b.createContext(null),Dv=b.createContext(null),di=()=>{var e;return((e=b.useContext(Vv))==null?void 0:e.id)||null},fi=()=>b.useContext(Dv);function hi(e){return"data-floating-ui-"+e}function be(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const ea=hi("safe-polygon");function Po(e,t,n){if(n&&!on(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const o=e();return typeof o=="number"?o:o?.[t]}return e?.[t]}function Mo(e){return typeof e=="function"?e():e}function wc(e,t){t===void 0&&(t={});const{open:n,onOpenChange:o,dataRef:s,events:i,elements:r}=e,{enabled:a=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:f=0,move:d=!0}=t,h=fi(),p=di(),g=wn(c),m=wn(l),w=wn(n),x=wn(f),y=b.useRef(),S=b.useRef(-1),_=b.useRef(),M=b.useRef(-1),T=b.useRef(!0),P=b.useRef(!1),D=b.useRef(()=>{}),F=b.useRef(!1),j=Fe(()=>{var E;const R=(E=s.current.openEvent)==null?void 0:E.type;return R?.includes("mouse")&&R!=="mousedown"});b.useEffect(()=>{if(!a)return;function E(R){let{open:A}=R;A||(be(S),be(M),T.current=!0,F.current=!1)}return i.on("openchange",E),()=>{i.off("openchange",E)}},[a,i]),b.useEffect(()=>{if(!a||!g.current||!n)return;function E(A){j()&&o(!1,A,"hover")}const R=dt(r.floating).documentElement;return R.addEventListener("mouseleave",E),()=>{R.removeEventListener("mouseleave",E)}},[r.floating,n,o,a,g,j]);const $=b.useCallback(function(E,R,A){R===void 0&&(R=!0),A===void 0&&(A="hover");const I=Po(m.current,"close",y.current);I&&!_.current?(be(S),S.current=window.setTimeout(()=>o(!1,E,A),I)):R&&(be(S),o(!1,E,A))},[m,o]),O=Fe(()=>{D.current(),_.current=void 0}),V=Fe(()=>{if(P.current){const E=dt(r.floating).body;E.style.pointerEvents="",E.removeAttribute(ea),P.current=!1}}),z=Fe(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);b.useEffect(()=>{if(!a)return;function E(K){if(be(S),T.current=!1,u&&!on(y.current)||Mo(x.current)>0&&!Po(m.current,"open"))return;const U=Po(m.current,"open",y.current);U?S.current=window.setTimeout(()=>{w.current||o(!0,K,"hover")},U):n||o(!0,K,"hover")}function R(K){if(z()){V();return}D.current();const U=dt(r.floating);if(be(M),F.current=!1,g.current&&s.current.floatingContext){n||be(S),_.current=g.current({...s.current.floatingContext,tree:h,x:K.clientX,y:K.clientY,onClose(){V(),O(),z()||$(K,!0,"safe-polygon")}});const J=_.current;U.addEventListener("mousemove",J),D.current=()=>{U.removeEventListener("mousemove",J)};return}(y.current!=="touch"||!nn(r.floating,K.relatedTarget))&&$(K)}function A(K){z()||s.current.floatingContext&&(g.current==null||g.current({...s.current.floatingContext,tree:h,x:K.clientX,y:K.clientY,onClose(){V(),O(),z()||$(K)}})(K))}function I(){be(S)}function Y(K){z()||$(K,!1)}if(Q(r.domReference)){const K=r.domReference,U=r.floating;return n&&K.addEventListener("mouseleave",A),d&&K.addEventListener("mousemove",E,{once:!0}),K.addEventListener("mouseenter",E),K.addEventListener("mouseleave",R),U&&(U.addEventListener("mouseleave",A),U.addEventListener("mouseenter",I),U.addEventListener("mouseleave",Y)),()=>{n&&K.removeEventListener("mouseleave",A),d&&K.removeEventListener("mousemove",E),K.removeEventListener("mouseenter",E),K.removeEventListener("mouseleave",R),U&&(U.removeEventListener("mouseleave",A),U.removeEventListener("mouseenter",I),U.removeEventListener("mouseleave",Y))}}},[r,a,e,u,d,$,O,V,o,n,w,h,m,g,s,z,x]),At(()=>{var E;if(a&&n&&(E=g.current)!=null&&(E=E.__options)!=null&&E.blockPointerEvents&&j()){P.current=!0;const A=r.floating;if(Q(r.domReference)&&A){var R;const I=dt(r.floating).body;I.setAttribute(ea,"");const Y=r.domReference,K=h==null||(R=h.nodesRef.current.find(U=>U.id===p))==null||(R=R.context)==null?void 0:R.elements.floating;return K&&(K.style.pointerEvents=""),I.style.pointerEvents="none",Y.style.pointerEvents="auto",A.style.pointerEvents="auto",()=>{I.style.pointerEvents="",Y.style.pointerEvents="",A.style.pointerEvents=""}}}},[a,n,p,r,h,g,j]),At(()=>{n||(y.current=void 0,F.current=!1,O(),V())},[n,O,V]),b.useEffect(()=>()=>{O(),be(S),be(M),V()},[a,r.domReference,O,V]);const N=b.useMemo(()=>{function E(R){y.current=R.pointerType}return{onPointerDown:E,onPointerEnter:E,onMouseMove(R){const{nativeEvent:A}=R;function I(){!T.current&&!w.current&&o(!0,A,"hover")}u&&!on(y.current)||n||Mo(x.current)===0||F.current&&R.movementX**2+R.movementY**2<2||(be(M),y.current==="touch"?I():(F.current=!0,M.current=window.setTimeout(I,Mo(x.current))))}}},[u,o,n,w,x]);return b.useMemo(()=>a?{reference:N}:{},[a,N])}function ta(e){return me(e.target)&&e.target.tagName==="BUTTON"}function kv(e){return me(e.target)&&e.target.tagName==="A"}function na(e){return cc(e)}function Fv(e,t){t===void 0&&(t={});const{open:n,onOpenChange:o,dataRef:s,elements:{domReference:i}}=e,{enabled:r=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:f=!0}=t,d=b.useRef(),h=b.useRef(!1),p=b.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const m=d.current;g.button===0&&a!=="click"&&(on(m,!0)&&c||(n&&l&&(!(s.current.openEvent&&f)||s.current.openEvent.type==="mousedown")?o(!1,g.nativeEvent,"click"):(g.preventDefault(),o(!0,g.nativeEvent,"click"))))},onClick(g){const m=d.current;if(a==="mousedown"&&d.current){d.current=void 0;return}on(m,!0)&&c||(n&&l&&(!(s.current.openEvent&&f)||s.current.openEvent.type==="click")?o(!1,g.nativeEvent,"click"):o(!0,g.nativeEvent,"click"))},onKeyDown(g){d.current=void 0,!(g.defaultPrevented||!u||ta(g))&&(g.key===" "&&!na(i)&&(g.preventDefault(),h.current=!0),!kv(g)&&g.key==="Enter"&&o(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!u||ta(g)||na(i)||g.key===" "&&h.current&&(h.current=!1,o(!(n&&l),g.nativeEvent,"click"))}}),[s,i,a,c,u,o,n,f,l]);return b.useMemo(()=>r?{reference:p}:{},[r,p])}const Lv={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Iv={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},oa=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function xc(e,t){t===void 0&&(t={});const{open:n,onOpenChange:o,elements:s,dataRef:i}=e,{enabled:r=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:f="pointerdown",ancestorScroll:d=!1,bubbles:h,capture:p}=t,g=fi(),m=Fe(typeof l=="function"?l:()=>!1),w=typeof l=="function"?m:l,x=b.useRef(!1),{escapeKey:y,outsidePress:S}=oa(h),{escapeKey:_,outsidePress:M}=oa(p),T=b.useRef(!1),P=Fe(V=>{var z;if(!n||!r||!a||V.key!=="Escape"||T.current)return;const N=(z=i.current.floatingContext)==null?void 0:z.nodeId,E=g?An(g.nodesRef.current,N):[];if(!y&&(V.stopPropagation(),E.length>0)){let R=!0;if(E.forEach(A=>{var I;if((I=A.context)!=null&&I.open&&!A.context.dataRef.current.__escapeKeyBubbles){R=!1;return}}),!R)return}o(!1,jm(V)?V.nativeEvent:V,"escape-key")}),D=Fe(V=>{var z;const N=()=>{var E;P(V),(E=wt(V))==null||E.removeEventListener("keydown",N)};(z=wt(V))==null||z.addEventListener("keydown",N)}),F=Fe(V=>{var z;const N=i.current.insideReactTree;i.current.insideReactTree=!1;const E=x.current;if(x.current=!1,c==="click"&&E||N||typeof w=="function"&&!w(V))return;const R=wt(V),A="["+hi("inert")+"]",I=dt(s.floating).querySelectorAll(A);let Y=Q(R)?R:null;for(;Y&&!Be(Y);){const J=Ge(Y);if(Be(J)||!Q(J))break;Y=J}if(I.length&&Q(R)&&!Fm(R)&&!nn(R,s.floating)&&Array.from(I).every(J=>!nn(Y,J)))return;if(me(R)&&O){const J=Be(R),ne=Pe(R),B=/auto|scroll/,X=J||B.test(ne.overflowX),oe=J||B.test(ne.overflowY),de=X&&R.clientWidth>0&&R.scrollWidth>R.clientWidth,le=oe&&R.clientHeight>0&&R.scrollHeight>R.clientHeight,ke=ne.direction==="rtl",nt=le&&(ke?V.offsetX<=R.offsetWidth-R.clientWidth:V.offsetX>R.clientWidth),ot=de&&V.offsetY>R.clientHeight;if(nt||ot)return}const K=(z=i.current.floatingContext)==null?void 0:z.nodeId,U=g&&An(g.nodesRef.current,K).some(J=>{var ne;return _o(V,(ne=J.context)==null?void 0:ne.elements.floating)});if(_o(V,s.floating)||_o(V,s.domReference)||U)return;const re=g?An(g.nodesRef.current,K):[];if(re.length>0){let J=!0;if(re.forEach(ne=>{var B;if((B=ne.context)!=null&&B.open&&!ne.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}o(!1,V,"outside-press")}),j=Fe(V=>{var z;const N=()=>{var E;F(V),(E=wt(V))==null||E.removeEventListener(c,N)};(z=wt(V))==null||z.addEventListener(c,N)});b.useEffect(()=>{if(!n||!r)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=S;let V=-1;function z(I){o(!1,I,"ancestor-scroll")}function N(){window.clearTimeout(V),T.current=!0}function E(){V=window.setTimeout(()=>{T.current=!1},Jn()?5:0)}const R=dt(s.floating);a&&(R.addEventListener("keydown",_?D:P,_),R.addEventListener("compositionstart",N),R.addEventListener("compositionend",E)),w&&R.addEventListener(c,M?j:F,M);let A=[];return d&&(Q(s.domReference)&&(A=Xe(s.domReference)),Q(s.floating)&&(A=A.concat(Xe(s.floating))),!Q(s.reference)&&s.reference&&s.reference.contextElement&&(A=A.concat(Xe(s.reference.contextElement)))),A=A.filter(I=>{var Y;return I!==((Y=R.defaultView)==null?void 0:Y.visualViewport)}),A.forEach(I=>{I.addEventListener("scroll",z,{passive:!0})}),()=>{a&&(R.removeEventListener("keydown",_?D:P,_),R.removeEventListener("compositionstart",N),R.removeEventListener("compositionend",E)),w&&R.removeEventListener(c,M?j:F,M),A.forEach(I=>{I.removeEventListener("scroll",z)}),window.clearTimeout(V)}},[i,s,a,w,c,n,o,d,r,y,S,P,_,D,F,M,j]),b.useEffect(()=>{i.current.insideReactTree=!1},[i,w,c]);const $=b.useMemo(()=>({onKeyDown:P,...u&&{[Lv[f]]:V=>{o(!1,V.nativeEvent,"reference-press")},...f!=="click"&&{onClick(V){o(!1,V.nativeEvent,"reference-press")}}}}),[P,o,u,f]),O=b.useMemo(()=>({onKeyDown:P,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[Iv[c]]:()=>{i.current.insideReactTree=!0}}),[P,c,i]);return b.useMemo(()=>r?{reference:$,floating:O}:{},[r,$,O])}function jv(e){const{open:t=!1,onOpenChange:n,elements:o}=e,s=yc(),i=b.useRef({}),[r]=b.useState(()=>Av()),a=di()!=null;if(process.env.NODE_ENV!=="production"){const h=o.reference;h&&!Q(h)&&Tv("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,c]=b.useState(o.reference),u=Fe((h,p,g)=>{i.current.openEvent=h?p:void 0,r.emit("openchange",{open:h,event:p,reason:g,nested:a}),n?.(h,p,g)}),f=b.useMemo(()=>({setPositionReference:c}),[]),d=b.useMemo(()=>({reference:l||o.reference||null,floating:o.floating||null,domReference:o.reference}),[l,o.reference,o.floating]);return b.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:d,events:r,floatingId:s,refs:f}),[t,u,d,r,s,f])}function gi(e){e===void 0&&(e={});const{nodeId:t}=e,n=jv({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,s=o.elements,[i,r]=b.useState(null),[a,l]=b.useState(null),u=s?.domReference||i,f=b.useRef(null),d=fi();At(()=>{u&&(f.current=u)},[u]);const h=xv({...e,elements:{...s,...a&&{reference:a}}}),p=b.useCallback(y=>{const S=Q(y)?{getBoundingClientRect:()=>y.getBoundingClientRect(),getClientRects:()=>y.getClientRects(),contextElement:y}:y;l(S),h.refs.setReference(S)},[h.refs]),g=b.useCallback(y=>{(Q(y)||y===null)&&(f.current=y,r(y)),(Q(h.refs.reference.current)||h.refs.reference.current===null||y!==null&&!Q(y))&&h.refs.setReference(y)},[h.refs]),m=b.useMemo(()=>({...h.refs,setReference:g,setPositionReference:p,domReference:f}),[h.refs,g,p]),w=b.useMemo(()=>({...h.elements,domReference:u}),[h.elements,u]),x=b.useMemo(()=>({...h,...o,refs:m,elements:w,nodeId:t}),[h,m,w,t,o]);return At(()=>{o.dataRef.current.floatingContext=x;const y=d?.nodesRef.current.find(S=>S.id===t);y&&(y.context=x)}),b.useMemo(()=>({...h,context:x,refs:m,elements:w}),[h,m,w,x])}function To(){return Vm()&&Am()}function $v(e,t){t===void 0&&(t={});const{open:n,onOpenChange:o,events:s,dataRef:i,elements:r}=e,{enabled:a=!0,visibleOnly:l=!0}=t,c=b.useRef(!1),u=b.useRef(-1),f=b.useRef(!0);b.useEffect(()=>{if(!a)return;const h=we(r.domReference);function p(){!n&&me(r.domReference)&&r.domReference===Hr(dt(r.domReference))&&(c.current=!0)}function g(){f.current=!0}function m(){f.current=!1}return h.addEventListener("blur",p),To()&&(h.addEventListener("keydown",g,!0),h.addEventListener("pointerdown",m,!0)),()=>{h.removeEventListener("blur",p),To()&&(h.removeEventListener("keydown",g,!0),h.removeEventListener("pointerdown",m,!0))}},[r.domReference,n,a]),b.useEffect(()=>{if(!a)return;function h(p){let{reason:g}=p;(g==="reference-press"||g==="escape-key")&&(c.current=!0)}return s.on("openchange",h),()=>{s.off("openchange",h)}},[s,a]),b.useEffect(()=>()=>{be(u)},[]);const d=b.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(h){if(c.current)return;const p=wt(h.nativeEvent);if(l&&Q(p)){if(To()&&!h.relatedTarget){if(!f.current&&!cc(p))return}else if(!Lm(p))return}o(!0,h.nativeEvent,"focus")},onBlur(h){c.current=!1;const p=h.relatedTarget,g=h.nativeEvent,m=Q(p)&&p.hasAttribute(hi("focus-guard"))&&p.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{var w;const x=Hr(r.domReference?r.domReference.ownerDocument:document);!p&&x===r.domReference||nn((w=i.current.floatingContext)==null?void 0:w.refs.floating.current,x)||nn(r.domReference,x)||m||o(!1,g,"focus")})}}),[i,r.domReference,o,l]);return b.useMemo(()=>a?{reference:d}:{},[a,d])}function Ao(e,t,n){const o=new Map,s=n==="item";let i=e;if(s&&e){const{[Yr]:r,[Zr]:a,...l}=e;i=l}return{...n==="floating"&&{tabIndex:-1,[_v]:""},...i,...t.map(r=>{const a=r?r[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((r,a)=>(a&&Object.entries(a).forEach(l=>{let[c,u]=l;if(!(s&&[Yr,Zr].includes(c)))if(c.indexOf("on")===0){if(o.has(c)||o.set(c,[]),typeof u=="function"){var f;(f=o.get(c))==null||f.push(u),r[c]=function(){for(var d,h=arguments.length,p=new Array(h),g=0;g<h;g++)p[g]=arguments[g];return(d=o.get(c))==null?void 0:d.map(m=>m(...p)).find(m=>m!==void 0)}}}else r[c]=u}),r),{})}}function Cc(e){e===void 0&&(e=[]);const t=e.map(a=>a?.reference),n=e.map(a=>a?.floating),o=e.map(a=>a?.item),s=b.useCallback(a=>Ao(a,e,"reference"),t),i=b.useCallback(a=>Ao(a,e,"floating"),n),r=b.useCallback(a=>Ao(a,e,"item"),o);return b.useMemo(()=>({getReferenceProps:s,getFloatingProps:i,getItemProps:r}),[s,i,r])}const Ov=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Sc(e,t){var n,o;t===void 0&&(t={});const{open:s,elements:i,floatingId:r}=e,{enabled:a=!0,role:l="dialog"}=t,c=yc(),u=((n=i.domReference)==null?void 0:n.id)||c,f=b.useMemo(()=>{var x;return((x=Im(i.floating))==null?void 0:x.id)||r},[i.floating,r]),d=(o=Ov.get(l))!=null?o:l,p=di()!=null,g=b.useMemo(()=>d==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:s?f:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":d==="alertdialog"?"dialog":d,"aria-controls":s?f:void 0,...d==="listbox"&&{role:"combobox"},...d==="menu"&&{id:u},...d==="menu"&&p&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[d,f,p,s,u,l]),m=b.useMemo(()=>{const x={id:f,...d&&{role:d}};return d==="tooltip"||l==="label"?x:{...x,...d==="menu"&&{"aria-labelledby":u}}},[d,f,u,l]),w=b.useCallback(x=>{let{active:y,selected:S}=x;const _={role:"option",...y&&{id:f+"-fui-option"}};switch(l){case"select":case"combobox":return{..._,"aria-selected":S}}return{}},[f,l]);return b.useMemo(()=>a?{reference:g,floating:m,item:w}:{},[a,g,m,w])}const Nv=e=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Bv=e=>b.createElement("svg",{fill:"currentColor",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 462.035 462.035",xmlSpace:"preserve",...e},b.createElement("g",null,b.createElement("path",{d:"M457.83,158.441c-0.021-0.028-0.033-0.058-0.057-0.087l-50.184-62.48c-0.564-0.701-1.201-1.305-1.879-1.845 c-2.16-2.562-5.355-4.225-8.967-4.225H65.292c-3.615,0-6.804,1.661-8.965,4.225c-0.678,0.54-1.316,1.138-1.885,1.845l-50.178,62.48 c-0.023,0.029-0.034,0.059-0.057,0.087C1.655,160.602,0,163.787,0,167.39v193.07c0,6.5,5.27,11.771,11.77,11.771h438.496 c6.5,0,11.77-5.271,11.77-11.771V167.39C462.037,163.787,460.381,160.602,457.83,158.441z M408.516,134.615l16.873,21.005h-16.873 V134.615z M384.975,113.345v42.274H296.84c-2.514,0-4.955,0.805-6.979,2.293l-58.837,43.299l-58.849-43.305 c-2.023-1.482-4.466-2.287-6.978-2.287H77.061v-42.274H384.975z M53.523,155.62H36.65l16.873-21.005V155.62z M438.498,348.69H23.54 V179.16h137.796l62.711,46.148c4.15,3.046,9.805,3.052,13.954-0.005l62.698-46.144h137.799V348.69L438.498,348.69z"}))),bc=e=>b.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{opacity:.6},b.createElement("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))),Vo={sm:{h:28,p:"var(--spacing-xs) var(--spacing-sm)",text:"body-2"},md:{h:32,p:"6px var(--spacing-md)",text:"body-2"},lg:{h:40,p:"var(--spacing-sm) var(--spacing-lg)",text:"body-1"}},pi=C.forwardRef(({label:e,color:t="primary",size:n="md",onClick:o,onDelete:s,avatar:i,icon:r,disabled:a,className:l},c)=>{const u=C.useRef(null),f=C.useMemo(()=>{switch(t){case"primary":return{bg:"var(--status-neutral-tint-low)",color:"var(--text-primary)"};case"accent":return{bg:"var(--status-accent-tint-low)",color:"var(--text-accent)"};case"warning":return{bg:"var(--status-warning-tint-low)",color:"var(--text-warning)"};case"positive":return{bg:"var(--status-positive-tint-low)",color:"var(--text-positive)"};case"negative":return{bg:"var(--status-negative-tint-low)",color:"var(--text-negative)"};default:return{bg:"var(--status-neutral-tint-low)",color:"var(--text-primary)"}}},[t]),d=k.css({cursor:a?"not-allowed":o?"pointer":"default",opacity:a?.5:1,userSelect:"none",position:"relative",transition:"background-color 0.2s, opacity 0.2s","&:hover":a?void 0:{backgroundColor:f.bg}}),h=k.css({display:"inline-flex",cursor:"pointer",opacity:.6,"&:hover":{opacity:1}});return v.jsxs(L,{ref:p=>{u.current=p,typeof c=="function"?c(p):c&&(c.current=p)},row:!0,alignItems:"center",justifyContent:"center",gap:"var(--spacing-sm)",h:Vo[n].h,p:Vo[n].p,overflow:"hidden",borderRadius:"var(--corner-sm)",backgroundColor:f.bg,color:f.color,onClick:o,className:k.cx(d,l),children:[o&&v.jsx(pt,{}),i&&v.jsx(L,{w:20,h:20,borderRadius:"50%",overflow:"hidden",children:i}),r&&v.jsx(L,{children:r}),typeof e=="string"?v.jsx(q,{variant:Vo[n].text,colorName:t,textOverflow:"ellipsis",overflow:"hidden",children:e}):e,s&&!a&&v.jsx(q,{className:h,colorName:t,onClick:p=>{p.stopPropagation(),s(p)},children:v.jsx(bc,{})})]})});pi.displayName="Tag";const zv="_disabled_zbo6w_40",Hv="_open_zbo6w_48",Wv="_error_zbo6w_51",Gv="_hidden_zbo6w_87",Uv="_visible_zbo6w_90",Kv="_selected_zbo6w_163",ue={"select-container":"_select-container_zbo6w_8","full-width":"_full-width_zbo6w_13","select-input":"_select-input_zbo6w_17","size-xs":"_size-xs_zbo6w_25","size-sm":"_size-sm_zbo6w_30","size-md":"_size-md_zbo6w_35",disabled:zv,open:Hv,"select-arrow":"_select-arrow_zbo6w_48",error:Wv,"select-value":"_select-value_zbo6w_62","select-value_xs":"_select-value_xs_zbo6w_74","select-placeholder":"_select-placeholder_zbo6w_81",hidden:Gv,visible:Uv,"select-arrow_xs":"_select-arrow_xs_zbo6w_106","select-dropdown":"_select-dropdown_zbo6w_116","select-menu":"_select-menu_zbo6w_126","select-menu-item":"_select-menu-item_zbo6w_145","select-menu-item-first":"_select-menu-item-first_zbo6w_158",selected:Kv,"overflow-tooltip-container":"_overflow-tooltip-container_zbo6w_167","overflow-tooltip-text":"_overflow-tooltip-text_zbo6w_172","empty-block":"_empty-block_zbo6w_179"};function _c({value:e,onChange:t,multiple:n=!1,returnedValue:o,renderItem:s,renderInputItem:i,renderSingleInputItem:r,renderMultipleInputItem:a,renderDropdownItem:l,placeholder:c,items:u=[],fullWidth:f,size:d="md",showDefaultItem:h,disabled:p,label:g,firstItem:m,lastItem:w,observer:x,emptyText:y,onBlur:S,prompt:_,error:M,errorText:T}){const[P,D]=mt(e,n?[]:null),[F,j]=C.useState(!1),{refs:$,floatingStyles:O}=gi({open:F,placement:"bottom-start",strategy:"fixed",middleware:[li(4),ui({crossAxis:!0,fallbackAxisSideDirection:"start"}),ci({crossAxis:!0,padding:8}),Sv({apply({rects:B,availableHeight:X,elements:oe}){Object.assign(oe.floating.style,{width:`${B.reference.width}px`,maxHeight:typeof X=="number"?`${X}px`:"auto"})}})],whileElementsMounted:ai}),V=C.useMemo(()=>n?P||[]:P!=null?[P]:[],[P,n]),z=C.useCallback(B=>o?o(B):B,[o]),N=C.useMemo(()=>{const B=new Map;return u.forEach(X=>{B.set(z(X),X)}),B},[u,z]),E=!u.length&&!M,R=C.useMemo(()=>V.map(B=>N.get(B)).filter(B=>!!B),[N,V]);C.useEffect(()=>{process.env.NODE_ENV!=="production"&&s&&!l&&console.warn("[Select] `renderItem` deprecated, use `renderDropdownItem` instead.")},[l,s]);const A=C.useCallback((B,X)=>l?l(B,X):s?s(B):String(B),[l,s]),I=()=>{j(!1),S?.()},Y=B=>{const X=z(B);if(n){const oe=V.includes(X)?V.filter(de=>de!==X):[...V,X];D(oe),t?.(oe)}else D(X),t?.(X),I()},K=B=>{if(!n)return;const X=V.filter(oe=>oe!==B);D(X),t?.(X)},U=()=>{const B=n?[]:null;D(B),t?.(B),n||I()},re=()=>typeof c=="string"?v.jsx(q,{variant:d==="xs"?"caption-1":"body-2",textOverflow:"ellipsis",overflow:"hidden",colorName:"tertiary",children:c??"Select..."}):c,J=()=>{if(!V.length)return re();if(n)return a?a(R):i?i({mode:"multiple",selectedItems:R}):v.jsx(L,{flexWrap:"wrap",row:!0,gap:10,children:V.map(oe=>{const de=N.get(oe);return de?v.jsx(pi,{size:"sm",label:s?s(de):String(oe),onDelete:le=>{le.stopPropagation(),K(oe)}},oe):null})});const B=N.get(V[0])??null;if(!B)return re();if(r)return r(B);if(i)return i({mode:"single",selectedItem:B});const X=s?s(B):String(V[0]);return typeof X=="string"?v.jsx(q,{variant:d==="xs"?"caption-1":"body-2",tag:"p",textOverflow:"ellipsis",overflow:"hidden",children:X}):v.jsx(v.Fragment,{children:X})},ne=F&&v.jsx(un,{children:v.jsx(L,{row:!0,top:0,right:0,bottom:0,left:0,position:"fixed",center:!0,flex:1,onClick:I,display:"block",backgroundColor:"transparent",zIndex:1,children:v.jsx(Xn.div,{ref:$.setFloating,className:ue["select-dropdown"],initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},style:{...O,zIndex:1},onMouseDown:B=>B.stopPropagation(),onClick:B=>B.stopPropagation(),children:v.jsxs("ul",{className:ue["select-menu"],children:[h&&!n&&v.jsx(L,{className:ue["select-menu-item"],role:"option",onClick:U,children:v.jsx(q,{variant:"body-2",colorName:"tertiary",children:c})}),m&&v.jsx(L,{className:k.cx(ue["select-menu-item"],ue["select-menu-item-first"]),children:m}),E&&v.jsxs(L,{className:ue["empty-block"],children:[v.jsx(L,{w:20,h:20,children:v.jsx(Bv,{})}),v.jsx(q,{variant:"body-2",children:y??"There is nothing yet"})]}),u.map((B,X)=>{const oe=z(B),de=V.includes(oe),le=A(B,{item:B,selected:de,index:X}),ke=typeof le=="string";return v.jsxs(L,{row:!0,gap:10,alignItems:"center",className:k.cx(ue["select-menu-item"],{[ue.selected]:de}),role:"option",relative:!0,onClick:()=>Y(B),children:[n&&v.jsx(ti,{size:"sm",checked:de}),ke?v.jsx(q,{variant:"body-2",tag:"p",wordBreak:"break-all",whiteSpace:"break-spaces",children:le}):le,v.jsx(pt,{})]},oe)}),x,w&&v.jsx(L,{className:k.cx(ue["select-menu-item"],ue["select-menu-item-first"]),children:w})]})},"dropdown")})});return v.jsxs(L,{relative:!0,display:"inline-block",minWidth:120,w:f?"full":"auto",onMouseDown:B=>B.stopPropagation(),onClick:B=>B.stopPropagation(),children:[typeof g=="string"?v.jsx(q,{variant:"body-2",colorName:"tertiary",fontWeight:"regular",mb:d==="sm"?4:8,children:g}):g,v.jsxs(L,{ref:$.setReference,row:!0,gap:10,tabIndex:p?-1:0,role:"button",alignItems:"flex-start","aria-haspopup":"listbox",relative:!0,w:"100%",className:k.cx(ue["select-input"],ue[`size-${d}`],{[ue.error]:M,[ue.disabled]:p,[ue.open]:F}),onClick:()=>!p&&j(B=>!B),children:[v.jsx(L,{className:k.cx(ue["select-value"]),children:J()}),v.jsx(L,{className:k.cx(ue["select-arrow"],ue[`select-arrow_${d}`]),children:v.jsx(Nv,{})})]}),typeof _=="string"?v.jsx(q,{variant:"caption-1",colorName:"tertiary",mt:4,children:_}):_,M&&T&&v.jsx(q,{tag:"p",colorName:"negative",variant:"body-2",mt:5,children:T}),v.jsx(Vf,{children:ne})]})}const qv=e=>b.createElement("svg",{width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M3.94629 0.220237C3.78013 0.264025 3.64089 0.377624 3.56348 0.53176C3.27371 1.11189 3.05664 1.46395 2.83887 1.74953C2.61807 2.03873 2.38547 2.27579 2.03027 2.63039C1.21079 3.45057 0.799805 4.52619 0.799805 5.60012C0.799838 6.67406 1.21073 7.74968 2.03027 8.56985C3.67062 10.2096 6.32931 10.2095 7.96973 8.56985C8.78929 7.74968 9.20016 6.67408 9.2002 5.60012C9.15131 4.32908 8.43217 3.48543 7.94727 3.05813C7.76902 2.90106 7.40643 3.02424 7.2627 3.2134C7.24031 3.24286 7.21612 3.2739 7.18945 3.30617C6.93211 3.61754 6.56236 3.80807 6.41504 3.83156C6.38264 3.83667 6.36979 3.76513 6.2959 3.58254C5.79455 2.34427 5.78927 2.49365 5.58887 2.01125C5.48847 1.7692 5.05517 1.02727 4.92676 0.828635C4.80206 0.635591 4.64095 0.439873 4.43359 0.301292C4.29028 0.205951 4.1124 0.175957 3.94629 0.220237ZM4.75293 4.17824C5.2689 4.63997 5.60857 5.26651 5.71484 5.95071C6.10631 5.85571 6.46727 5.68318 6.78125 5.45071C6.86578 5.70826 6.89338 5.98123 6.8623 6.25051C6.83115 6.51993 6.74174 6.77966 6.60059 7.01125C6.45944 7.24281 6.27008 7.44117 6.04492 7.59231C5.81977 7.74344 5.56462 7.8443 5.29688 7.88723C5.0292 7.93013 4.75518 7.91446 4.49414 7.84133C4.23299 7.76812 3.99064 7.6383 3.78418 7.46242C3.5778 7.28657 3.41161 7.06792 3.29785 6.8218C3.18419 6.57572 3.12519 6.30771 3.125 6.03664C3.12508 5.58233 3.29054 5.14308 3.58984 4.80129C3.88917 4.4597 4.30271 4.2382 4.75293 4.17824Z",fill:"#FEAD34"})),Xv=e=>b.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M10.1483 8.61509C10.3344 8.26159 9.98299 7.89856 9.58534 7.93723C9.42671 7.95265 9.25857 7.9605 9.07422 7.96035C6.36522 7.9582 4.17129 5.76427 4.16914 3.05527C4.169 2.87115 4.17682 2.70321 4.19221 2.54477C4.23082 2.14712 3.86769 1.79411 3.50976 1.97161C2.03398 2.70343 1.20002 4.02274 1.20002 5.89477C1.20002 8.60377 3.3961 10.7998 6.1051 10.7998C7.97571 10.7998 9.38737 10.06 10.1483 8.61509Z",fill:"white"})),Yv="_container_e7tan_8",Zv="_disabled_e7tan_17",Jv="_reverse_e7tan_21",Qv="_input_e7tan_25",ey="_switchContainer_e7tan_35",ty="_variant_accent_e7tan_43",ny="_variant_secondary_e7tan_47",oy="_thumb_e7tan_51",sy="_variant_theme_e7tan_54",iy="_moon_e7tan_58",ry="_fire_e7tan_61",ay="_size_sm_e7tan_74",ly="_size_md_e7tan_80",cy="_size_lg_e7tan_86",Te={container:Yv,disabled:Zv,reverse:Jv,input:Qv,switchContainer:ey,variant_accent:ty,variant_secondary:ny,switch:"_switch_e7tan_35",thumb:oy,variant_theme:sy,moon:iy,fire:ry,size_sm:ay,size_md:ly,size_lg:cy},Rc=C.forwardRef(({title:e,text:t,icon:n,disabled:o,onChange:s,checked:i,defaultValue:r,className:a,size:l="md",variant:c="accent",reverse:u=!1,w:f="auto",...d},h)=>{const[p,g]=mt(i,r),m=C.useRef(null);C.useImperativeHandle(h,()=>({focus:()=>{m.current?.focus()},blur:()=>{m.current?.blur()},get checked(){return p??!1},setChecked:S=>{g(S),s?.(S)},toggle:()=>{const S=!p;g(S),s?.(S)},isFocused:()=>document.activeElement===m.current,isDisabled:()=>o??!1,getInputElement:()=>m.current,checkValidity:()=>m.current?.checkValidity()??!0,reset:()=>{const S=r??!1;g(S),s?.(S)}}),[p,g,s,o,r]);const w=C.useCallback(S=>{g(S.target.checked),s?.(S.target.checked)},[s]),x=C.useMemo(()=>typeof e=="string"?v.jsx(q,{variant:"body-1",colorName:"primary",fontWeight:"medium",children:e}):e,[e]),y=C.useMemo(()=>typeof t=="string"?v.jsx(q,{variant:"body-2",colorName:"secondary",fontWeight:"regular",children:t}):t,[t]);return v.jsxs(L,{row:!0,w:f,gap:"var(--spacing-sm)",children:[v.jsxs("label",{className:k.cx(Te.container,a,{[Te.disabled]:o,[Te.reverse]:u}),children:[v.jsxs(L,{className:k.cx(Te.switchContainer,Te[`size_${l}`],Te[`variant_${c}`]),children:[v.jsx("input",{ref:m,type:"checkbox",checked:p,className:Te.input,onChange:w,disabled:o,...d}),v.jsx("div",{className:Te.switch,children:v.jsx("div",{className:Te.thumb,children:c==="theme"&&v.jsxs(v.Fragment,{children:[v.jsx(Xv,{className:Te.moon}),v.jsx(qv,{className:Te.fire})]})})})]}),v.jsxs(L,{gap:"var(--spacing-xs)",children:[x,y]})]}),n]})});Rc.displayName="Switch";const uy=k.css({cursor:"pointer",userSelect:"none"}),dy=k.css({cursor:"not-allowed",opacity:.5}),fy=k.css({transition:"color 0.2s ease"}),hy=C.forwardRef(({label:e,selected:t,disabled:n,fullWidth:o,onClick:s},i)=>v.jsx(L,{w:o?"full":void 0,justifyContent:"center",alignItems:"center",ref:i,py:"var(--spacing-md)",px:"var(--spacing-xl)",onClick:s,className:k.cx(uy,{[dy]:n}),children:v.jsx(q,{className:fy,colorName:t?"primary":"tertiary",fontWeight:"medium",variant:"body-2",children:e})})),gy=k.css({borderBottom:"1px solid var(--border-neutral-alpha-basic)"}),Ec=({value:e,onChange:t,options:n,fullWidth:o=!1,className:s})=>{const[i,r]=C.useState({left:0,width:0}),a=C.useRef([]),l=u=>f=>{a.current[u]=f};C.useEffect(()=>{const u=n.findIndex(d=>d.value===e),f=a.current[u];f&&r({left:f.offsetLeft,width:f.offsetWidth})},[e,n]);const c=(u,f=!1)=>()=>!f&&t(u);return v.jsxs(L,{row:!0,w:o?"full":"auto",relative:!0,className:k.cx(gy,s),children:[n.map((u,f)=>v.jsx(hy,{selected:e===u.value,onClick:c(u.value,u.disabled),ref:l(f),label:u.label,disabled:u.disabled,fullWidth:o},u.value)),v.jsx(L,{h:2,w:i.width,absolute:!0,bottom:-1,left:i.left,backgroundColor:"var(--border-accent-primary)",className:k.css({transition:"left 0.2s ease, width 0.2s ease"})})]})};Ec.displayName="Tabs";const py="_header_446to_8",my={header:py},Pc=C.forwardRef(({title:e,subtitle:t,w:n="full",p:o,py:s,px:i="var(--spacing-2xl)",pt:r="var(--spacing-2xl)",pb:a="var(--spacing-lg)",row:l=!0,justifyContent:c="space-between",showCloseButton:u=!0},f)=>{const{onClose:d}=wu();return v.jsxs(L,{w:n,p:o,py:s,px:i,pt:r,pb:a,row:l,justifyContent:c,ref:f,className:my.header,children:[v.jsxs(L,{gap:"var(--spacing-sm)",children:[v.jsx(q,{variant:"title-3",colorName:"primary",fontWeight:"semibold",children:e}),v.jsx(q,{variant:"body-1",colorName:"tertiary",fontWeight:"medium",children:t})]}),u&&v.jsx(L,{children:v.jsx(Yt,{onClick:d,color:"neutral",children:v.jsx(ma,{})})})]})});Pc.displayName="ModalHeader";function yt(e,t,n){let o=n.initialDeps??[],s,i=!0;function r(){var a,l,c;let u;n.key&&((a=n.debug)!=null&&a.call(n))&&(u=Date.now());const f=e();if(!(f.length!==o.length||f.some((p,g)=>o[g]!==p)))return s;o=f;let h;if(n.key&&((l=n.debug)!=null&&l.call(n))&&(h=Date.now()),s=t(...f),n.key&&((c=n.debug)!=null&&c.call(n))){const p=Math.round((Date.now()-u)*100)/100,g=Math.round((Date.now()-h)*100)/100,m=g/16,w=(x,y)=>{for(x=String(x);x.length<y;)x=" "+x;return x};console.info(`%c⏱ ${w(g,5)} /${w(p,5)} ms`,`
|
|
14
10
|
font-size: .6rem;
|
|
15
11
|
font-weight: bold;
|
|
16
|
-
color: hsl(${Math.max(0,Math.min(120-120*P,120))}deg 100% 31%);`,t?.key)}return(u=t?.onChange)==null||u.call(t,r),r}return o.updateDeps=s=>{i=s},o}function Fw(n,e){if(n===void 0)throw new Error("Unexpected undefined");return n}const RF=(n,e)=>Math.abs(n-e)<1.01,kF=(n,e,t)=>{let i;return function(...r){n.clearTimeout(i),i=n.setTimeout(()=>e.apply(this,r),t)}},Lw=n=>{const{offsetWidth:e,offsetHeight:t}=n;return{width:e,height:t}},PF=n=>n,MF=n=>{const e=Math.max(n.startIndex-n.overscan,0),t=Math.min(n.endIndex+n.overscan,n.count-1),i=[];for(let r=e;r<=t;r++)i.push(r);return i},AF=(n,e)=>{const t=n.scrollElement;if(!t)return;const i=n.targetWindow;if(!i)return;const r=s=>{const{width:a,height:l}=s;e({width:Math.round(a),height:Math.round(l)})};if(r(Lw(t)),!i.ResizeObserver)return()=>{};const o=new i.ResizeObserver(s=>{const a=()=>{const l=s[0];if(l?.borderBoxSize){const u=l.borderBoxSize[0];if(u){r({width:u.inlineSize,height:u.blockSize});return}}r(Lw(t))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return o.observe(t,{box:"border-box"}),()=>{o.unobserve(t)}},Iw={passive:!0},Dw=typeof window>"u"?!0:"onscrollend"in window,_F=(n,e)=>{const t=n.scrollElement;if(!t)return;const i=n.targetWindow;if(!i)return;let r=0;const o=n.options.useScrollendEvent&&Dw?()=>{}:kF(i,()=>{e(r,!1)},n.options.isScrollingResetDelay),s=g=>()=>{const{horizontal:m,isRtl:b}=n.options;r=m?t.scrollLeft*(b&&-1||1):t.scrollTop,o(),e(r,g)},a=s(!0),l=s(!1);l(),t.addEventListener("scroll",a,Iw);const u=n.options.useScrollendEvent&&Dw;return u&&t.addEventListener("scrollend",l,Iw),()=>{t.removeEventListener("scroll",a),u&&t.removeEventListener("scrollend",l)}},OF=(n,e,t)=>{if(e?.borderBoxSize){const i=e.borderBoxSize[0];if(i)return Math.round(i[t.options.horizontal?"inlineSize":"blockSize"])}return n[t.options.horizontal?"offsetWidth":"offsetHeight"]},FF=(n,{adjustments:e=0,behavior:t},i)=>{var r,o;const s=n+e;(o=(r=i.scrollElement)==null?void 0:r.scrollTo)==null||o.call(r,{[i.options.horizontal?"left":"top"]:s,behavior:t})};class LF{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const i=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(r=>{r.forEach(o=>{const s=()=>{this._measureElement(o.target,o)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var r;(r=i())==null||r.disconnect(),t=null},observe:r=>{var o;return(o=i())==null?void 0:o.observe(r,{box:"border-box"})},unobserve:r=>{var o;return(o=i())==null?void 0:o.unobserve(r)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([i,r])=>{typeof r>"u"&&delete t[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:PF,rangeExtractor:MF,onChange:()=>{},measureElement:OF,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var i,r;(r=(i=this.options).onChange)==null||r.call(i,this,t)},this.maybeNotify=gd(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=o,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,i)=>{const r=new Map,o=new Map;for(let s=i-1;s>=0;s--){const a=t[s];if(r.has(a.lane))continue;const l=o.get(a.lane);if(l==null||a.end>l.end?o.set(a.lane,a):a.end<l.end&&r.set(a.lane,!0),r.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((s,a)=>s.end===a.end?s.index-a.index:s.end-a.end)[0]:void 0},this.getMeasurementOptions=gd(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,i,r,o,s)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:i,scrollMargin:r,getItemKey:o,enabled:s}),{key:!1}),this.getMeasurements=gd(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:i,scrollMargin:r,getItemKey:o,enabled:s},a)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(g=>{this.itemSizeCache.set(g.key,g.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let g=l;g<t;g++){const m=o(g),b=this.options.lanes===1?u[g-1]:this.getFurthestMeasurement(u,g),w=b?b.end+this.options.gap:i+r,E=a.get(m),T=typeof E=="number"?E:this.options.estimateSize(g),P=w+T,M=b?b.lane:g%this.options.lanes;u[g]={index:g,start:w,size:T,end:P,key:m,lane:M}}return this.measurementsCache=u,u},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=gd(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,i,r,o)=>this.range=t.length>0&&i>0?IF({measurements:t,outerSize:i,scrollOffset:r,lanes:o}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=gd(()=>{let t=null,i=null;const r=this.calculateRange();return r&&(t=r.startIndex,i=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,i]},(t,i,r,o,s)=>o===null||s===null?[]:t({startIndex:o,endIndex:s,overscan:i,count:r}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=t=>{const i=this.options.indexAttribute,r=t.getAttribute(i);return r?parseInt(r,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this._measureElement=(t,i)=>{const r=this.indexFromElement(t),o=this.measurementsCache[r];if(!o)return;const s=o.key,a=this.elementsCache.get(s);a!==t&&(a&&this.observer.unobserve(a),this.observer.observe(t),this.elementsCache.set(s,t)),t.isConnected&&this.resizeItem(r,this.options.measureElement(t,i,this))},this.resizeItem=(t,i)=>{const r=this.measurementsCache[t];if(!r)return;const o=this.itemSizeCache.get(r.key)??r.size,s=i-o;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(r,s,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",s),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,i)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((i,r)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(r))});return}this._measureElement(t,void 0)},this.getVirtualItems=gd(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,i)=>{const r=[];for(let o=0,s=t.length;o<s;o++){const a=t[o],l=i[a];r.push(l)}return r},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const i=this.getMeasurements();if(i.length!==0)return Fw(i[J1(0,i.length-1,r=>Fw(i[r]).start,t)])},this.getOffsetForAlignment=(t,i,r=0)=>{const o=this.getSize(),s=this.getScrollOffset();i==="auto"&&(i=t>=s+o?"end":"start"),i==="center"?t+=(r-o)/2:i==="end"&&(t-=o);const a=this.getTotalSize()+this.options.scrollMargin-o;return Math.max(Math.min(a,t),0)},this.getOffsetForIndex=(t,i="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const r=this.measurementsCache[t];if(!r)return;const o=this.getSize(),s=this.getScrollOffset();if(i==="auto")if(r.end>=s+o-this.options.scrollPaddingEnd)i="end";else if(r.start<=s+this.options.scrollPaddingStart)i="start";else return[s,i];const a=i==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,i,r.size),i]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:i="start",behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,i),{adjustments:void 0,behavior:r})},this.scrollToIndex=(t,{align:i="auto",behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let o=0;const s=10,a=u=>{if(!this.targetWindow)return;const g=this.getOffsetForIndex(t,u);if(!g){console.warn("Failed to get offset for index:",t);return}const[m,b]=g;this._scrollToOffset(m,{adjustments:void 0,behavior:r}),this.targetWindow.requestAnimationFrame(()=>{const w=this.getScrollOffset(),E=this.getOffsetForIndex(t,b);if(!E){console.warn("Failed to get offset for index:",t);return}RF(E[0],w)||l(b)})},l=u=>{this.targetWindow&&(o++,o<s?(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("Schedule retry",o,s),this.targetWindow.requestAnimationFrame(()=>a(u))):console.warn(`Failed to scroll to index ${t} after ${s} attempts.`))};a(i)},this.scrollBy=(t,{behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:i})},this.getTotalSize=()=>{var t;const i=this.getMeasurements();let r;if(i.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((t=i[i.length-1])==null?void 0:t.end)??0;else{const o=Array(this.options.lanes).fill(null);let s=i.length-1;for(;s>=0&&o.some(a=>a===null);){const a=i[s];o[a.lane]===null&&(o[a.lane]=a.end),s--}r=Math.max(...o.filter(a=>a!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:i,behavior:r})=>{this.options.scrollToFn(t,{behavior:r,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const J1=(n,e,t,i)=>{for(;n<=e;){const r=(n+e)/2|0,o=t(r);if(o<i)n=r+1;else if(o>i)e=r-1;else return r}return n>0?n-1:0};function IF({measurements:n,outerSize:e,scrollOffset:t,lanes:i}){const r=n.length-1,o=l=>n[l].start;if(n.length<=i)return{startIndex:0,endIndex:r};let s=J1(0,r,o,t),a=s;if(i===1)for(;a<r&&n[a].end<t+e;)a++;else if(i>1){const l=Array(i).fill(0);for(;a<r&&l.some(g=>g<t+e);){const g=n[a];l[g.lane]=g.end,a++}const u=Array(i).fill(t+e);for(;s>=0&&u.some(g=>g>=t);){const g=n[s];u[g.lane]=g.start,s--}s=Math.max(0,s-s%i),a=Math.min(r,a+(i-1-a%i))}return{startIndex:s,endIndex:a}}const Bw=typeof document<"u"?Re.useLayoutEffect:Re.useEffect;function DF(n){const e=Re.useReducer(()=>({}),{})[1],t={...n,onChange:(r,o)=>{var s;o?rd.flushSync(e):e(),(s=n.onChange)==null||s.call(n,r,o)}},[i]=Re.useState(()=>new LF(t));return i.setOptions(t),Bw(()=>i._didMount(),[]),Bw(()=>i._willUpdate()),i}function BF(n){return DF({observeElementRect:AF,observeElementOffset:_F,scrollToFn:FF,...n})}const NF="_main_1qx2l_8",Nw={main:NF},Q1=ge.forwardRef(({children:n,className:e,row:t=!1,estimatedItemHeight:i=100,virtualize:r=!1,maxHeight:o=448},s)=>{const a=ge.useRef(null),l=ge.useMemo(()=>ge.Children.toArray(n),[n]),u=BF({count:l.length,getScrollElement:()=>a.current,estimateSize:()=>i,measureElement:m=>m.getBoundingClientRect().height});return ge.useImperativeHandle(s,()=>({scrollToTop:()=>u.scrollToOffset(0,{behavior:"smooth"}),scrollToBottom:()=>u.scrollToOffset(u.getTotalSize(),{behavior:"smooth"}),scrollToIndex:(m,b={})=>u.scrollToIndex(m,{behavior:"smooth",...b}),scrollToOffset:(m,b={})=>u.scrollToOffset(m,{behavior:"smooth",...b}),scrollBy:m=>{const b=u.scrollOffset||0;u.scrollToOffset(b+m,{behavior:"smooth"})},getElement:()=>a.current,getScrollOffset:()=>u.scrollOffset||0,getTotalSize:()=>u.getTotalSize()}),[u]),ge.useMemo(()=>r||l.length>50,[r,l])&&l.length>0?ae.jsx(et,{ref:a,row:t,maxHeight:o,className:Je.cx(Nw.main,e),w:"full",p:"var(--spacing-2xl)",children:ae.jsx(et,{relative:!0,h:u.getTotalSize(),children:u.getVirtualItems().map(m=>ae.jsx(et,{"data-index":m.index,ref:u.measureElement,w:"full",absolute:!0,style:{top:0,left:0,transform:`translateY(${m.start}px)`},children:l[m.index]},m.key))})}):ae.jsx(et,{ref:a,className:Je.cx(Nw.main,e),w:"full",row:t,pl:"var(--spacing-2xl)",pr:"var(--spacing-xs)",children:ae.jsx(et,{py:"var(--spacing-2xl)",pr:"var(--spacing-xl)",children:n})})});Q1.displayName="ModalMain";const km=VS;km.Header=K1;km.Main=Q1;km.Footer=GS;const j1=ge.createContext(null),zF=()=>ge.useContext(j1),Pm=({children:n})=>{const[e,t]=ge.useState(null),i=zF();return ge.useEffect(()=>{if(typeof document>"u")return;const r=i?.current??document.body;if(!r)return;let o=r.querySelector("[data-portal-root]")??void 0;o||(o=document.createElement("div"),o.setAttribute("data-portal-root","true"),r.appendChild(o)),t(o)},[i]),e?rd.createPortal(n,e):null};/**
|
|
17
|
-
* table-core
|
|
18
|
-
*
|
|
19
|
-
* Copyright (c) TanStack
|
|
20
|
-
*
|
|
21
|
-
* This source code is licensed under the MIT license found in the
|
|
22
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
23
|
-
*
|
|
24
|
-
* @license MIT
|
|
25
|
-
*/function q1(){return{accessor:(n,e)=>typeof n=="function"?{...e,accessorFn:n}:{...e,accessorKey:n},display:n=>n,group:n=>n}}function yf(n,e){return typeof n=="function"?n(e):n}function Ll(n,e){return t=>{e.setState(i=>({...i,[n]:yf(t,i[n])}))}}function Mm(n){return n instanceof Function}function HF(n){return Array.isArray(n)&&n.every(e=>typeof e=="number")}function WF(n,e){const t=[],i=r=>{r.forEach(o=>{t.push(o);const s=e(o);s!=null&&s.length&&i(s)})};return i(n),t}function Et(n,e,t){let i=[],r;return o=>{let s;t.key&&t.debug&&(s=Date.now());const a=n(o);if(!(a.length!==i.length||a.some((g,m)=>i[m]!==g)))return r;i=a;let u;if(t.key&&t.debug&&(u=Date.now()),r=e(...a),t==null||t.onChange==null||t.onChange(r),t.key&&t.debug&&t!=null&&t.debug()){const g=Math.round((Date.now()-s)*100)/100,m=Math.round((Date.now()-u)*100)/100,b=m/16,w=(E,T)=>{for(E=String(E);E.length<T;)E=" "+E;return E};console.info(`%c⏱ ${w(m,5)} /${w(g,5)} ms`,`
|
|
12
|
+
color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,n?.key)}return n?.onChange&&!(i&&n.skipInitialOnChange)&&n.onChange(s),i=!1,s}return r.updateDeps=a=>{o=a},r}function sa(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const vy=(e,t)=>Math.abs(e-t)<1.01,yy=(e,t,n)=>{let o;return function(...s){e.clearTimeout(o),o=e.setTimeout(()=>t.apply(this,s),n)}},ia=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},wy=e=>e,xy=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),o=[];for(let s=t;s<=n;s++)o.push(s);return o},Cy=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;const s=r=>{const{width:a,height:l}=r;t({width:Math.round(a),height:Math.round(l)})};if(s(ia(n)),!o.ResizeObserver)return()=>{};const i=new o.ResizeObserver(r=>{const a=()=>{const l=r[0];if(l?.borderBoxSize){const c=l.borderBoxSize[0];if(c){s({width:c.inlineSize,height:c.blockSize});return}}s(ia(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},ra={passive:!0},aa=typeof window>"u"?!0:"onscrollend"in window,Sy=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;let s=0;const i=e.options.useScrollendEvent&&aa?()=>{}:yy(o,()=>{t(s,!1)},e.options.isScrollingResetDelay),r=u=>()=>{const{horizontal:f,isRtl:d}=e.options;s=f?n.scrollLeft*(d&&-1||1):n.scrollTop,i(),t(s,u)},a=r(!0),l=r(!1);l(),n.addEventListener("scroll",a,ra);const c=e.options.useScrollendEvent&&aa;return c&&n.addEventListener("scrollend",l,ra),()=>{n.removeEventListener("scroll",a),c&&n.removeEventListener("scrollend",l)}},by=(e,t,n)=>{if(t?.borderBoxSize){const o=t.borderBoxSize[0];if(o)return Math.round(o[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},_y=(e,{adjustments:t=0,behavior:n},o)=>{var s,i;const r=e+t;(i=(s=o.scrollElement)==null?void 0:s.scrollTo)==null||i.call(s,{[o.options.horizontal?"left":"top"]:r,behavior:n})};class Ry{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const o=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(s=>{s.forEach(i=>{const r=()=>{this._measureElement(i.target,i)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()})}));return{disconnect:()=>{var s;(s=o())==null||s.disconnect(),n=null},observe:s=>{var i;return(i=o())==null?void 0:i.observe(s,{box:"border-box"})},unobserve:s=>{var i;return(i=o())==null?void 0:i.unobserve(s)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([o,s])=>{typeof s>"u"&&delete n[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:wy,rangeExtractor:xy,onChange:()=>{},measureElement:by,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var o,s;(s=(o=this.options).onChange)==null||s.call(o,this,n)},this.maybeNotify=yt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=i,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,o)=>{const s=new Map,i=new Map;for(let r=o-1;r>=0;r--){const a=n[r];if(s.has(a.lane))continue;const l=i.get(a.lane);if(l==null||a.end>l.end?i.set(a.lane,a):a.end<l.end&&s.set(a.lane,!0),s.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((r,a)=>r.end===a.end?r.index-a.index:r.end-a.end)[0]:void 0},this.getMeasurementOptions=yt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,o,s,i,r,a)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:o,scrollMargin:s,getItemKey:i,enabled:r,lanes:a}),{key:!1,skipInitialOnChange:!0,onChange:()=>{this.notify(this.isScrolling)}}),this.getMeasurements=yt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:o,scrollMargin:s,getItemKey:i,enabled:r,lanes:a},l)=>{if(!r)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const d of this.laneAssignments.keys())d>=n&&this.laneAssignments.delete(d);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(d=>{this.itemSizeCache.set(d.key,d.size)}));const c=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const u=this.measurementsCache.slice(0,c),f=new Array(a).fill(void 0);for(let d=0;d<c;d++){const h=u[d];h&&(f[h.lane]=d)}for(let d=c;d<n;d++){const h=i(d),p=this.laneAssignments.get(d);let g,m;if(p!==void 0&&this.options.lanes>1){g=p;const S=f[g],_=S!==void 0?u[S]:void 0;m=_?_.end+this.options.gap:o+s}else{const S=this.options.lanes===1?u[d-1]:this.getFurthestMeasurement(u,d);m=S?S.end+this.options.gap:o+s,g=S?S.lane:d%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(d,g)}const w=l.get(h),x=typeof w=="number"?w:this.options.estimateSize(d),y=m+x;u[d]={index:d,start:m,size:x,end:y,key:h,lane:g},f[g]=d}return this.measurementsCache=u,u},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=yt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,o,s,i)=>this.range=n.length>0&&o>0?Ey({measurements:n,outerSize:o,scrollOffset:s,lanes:i}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=yt(()=>{let n=null,o=null;const s=this.calculateRange();return s&&(n=s.startIndex,o=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,o]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,o]},(n,o,s,i,r)=>i===null||r===null?[]:n({startIndex:i,endIndex:r,overscan:o,count:s}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const o=this.options.indexAttribute,s=n.getAttribute(o);return s?parseInt(s,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this._measureElement=(n,o)=>{const s=this.indexFromElement(n),i=this.measurementsCache[s];if(!i)return;const r=i.key,a=this.elementsCache.get(r);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(r,n)),n.isConnected&&this.resizeItem(s,this.options.measureElement(n,o,this))},this.resizeItem=(n,o)=>{const s=this.measurementsCache[n];if(!s)return;const i=this.itemSizeCache.get(s.key)??s.size,r=o-i;r!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,r,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",r),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,o)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((o,s)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(s))});return}this._measureElement(n,void 0)},this.getVirtualItems=yt(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,o)=>{const s=[];for(let i=0,r=n.length;i<r;i++){const a=n[i],l=o[a];s.push(l)}return s},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const o=this.getMeasurements();if(o.length!==0)return sa(o[Mc(0,o.length-1,s=>sa(o[s]).start,n)])},this.getOffsetForAlignment=(n,o,s=0)=>{const i=this.getSize(),r=this.getScrollOffset();o==="auto"&&(o=n>=r+i?"end":"start"),o==="center"?n+=(s-i)/2:o==="end"&&(n-=i);const a=this.getTotalSize()+this.options.scrollMargin-i;return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,o="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const s=this.measurementsCache[n];if(!s)return;const i=this.getSize(),r=this.getScrollOffset();if(o==="auto")if(s.end>=r+i-this.options.scrollPaddingEnd)o="end";else if(s.start<=r+this.options.scrollPaddingStart)o="start";else return[r,o];const a=o==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,o,s.size),o]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:o="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,o),{adjustments:void 0,behavior:s})},this.scrollToIndex=(n,{align:o="auto",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let i=0;const r=10,a=c=>{if(!this.targetWindow)return;const u=this.getOffsetForIndex(n,c);if(!u){console.warn("Failed to get offset for index:",n);return}const[f,d]=u;this._scrollToOffset(f,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{const h=this.getScrollOffset(),p=this.getOffsetForIndex(n,d);if(!p){console.warn("Failed to get offset for index:",n);return}vy(p[0],h)||l(d)})},l=c=>{this.targetWindow&&(i++,i<r?(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("Schedule retry",i,r),this.targetWindow.requestAnimationFrame(()=>a(c))):console.warn(`Failed to scroll to index ${n} after ${r} attempts.`))};a(o)},this.scrollBy=(n,{behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:o})},this.getTotalSize=()=>{var n;const o=this.getMeasurements();let s;if(o.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((n=o[o.length-1])==null?void 0:n.end)??0;else{const i=Array(this.options.lanes).fill(null);let r=o.length-1;for(;r>=0&&i.some(a=>a===null);){const a=o[r];i[a.lane]===null&&(i[a.lane]=a.end),r--}s=Math.max(...i.filter(a=>a!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:o,behavior:s})=>{this.options.scrollToFn(n,{behavior:s,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}}const Mc=(e,t,n,o)=>{for(;e<=t;){const s=(e+t)/2|0,i=n(s);if(i<o)e=s+1;else if(i>o)t=s-1;else return s}return e>0?e-1:0};function Ey({measurements:e,outerSize:t,scrollOffset:n,lanes:o}){const s=e.length-1,i=l=>e[l].start;if(e.length<=o)return{startIndex:0,endIndex:s};let r=Mc(0,s,i,n),a=r;if(o===1)for(;a<s&&e[a].end<n+t;)a++;else if(o>1){const l=Array(o).fill(0);for(;a<s&&l.some(u=>u<n+t);){const u=e[a];l[u.lane]=u.end,a++}const c=Array(o).fill(n+t);for(;r>=0&&c.some(u=>u>=n);){const u=e[r];c[u.lane]=u.start,r--}r=Math.max(0,r-r%o),a=Math.min(s,a+(o-1-a%o))}return{startIndex:r,endIndex:a}}const la=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Py(e){const t=b.useReducer(()=>({}),{})[1],n={...e,onChange:(s,i)=>{var r;i?Cs.flushSync(t):t(),(r=e.onChange)==null||r.call(e,s,i)}},[o]=b.useState(()=>new Ry(n));return o.setOptions(n),la(()=>o._didMount(),[]),la(()=>o._willUpdate()),o}function My(e){return Py({observeElementRect:Cy,observeElementOffset:Sy,scrollToFn:_y,...e})}const Ty="_main_1qx2l_8",ca={main:Ty},Tc=C.forwardRef(({children:e,className:t,row:n=!1,estimatedItemHeight:o=100,virtualize:s=!1,maxHeight:i=448},r)=>{const a=C.useRef(null),l=C.useMemo(()=>C.Children.toArray(e),[e]),c=My({count:l.length,getScrollElement:()=>a.current,estimateSize:()=>o,measureElement:f=>f.getBoundingClientRect().height});return C.useImperativeHandle(r,()=>({scrollToTop:()=>c.scrollToOffset(0,{behavior:"smooth"}),scrollToBottom:()=>c.scrollToOffset(c.getTotalSize(),{behavior:"smooth"}),scrollToIndex:(f,d={})=>c.scrollToIndex(f,{behavior:"smooth",...d}),scrollToOffset:(f,d={})=>c.scrollToOffset(f,{behavior:"smooth",...d}),scrollBy:f=>{const d=c.scrollOffset||0;c.scrollToOffset(d+f,{behavior:"smooth"})},getElement:()=>a.current,getScrollOffset:()=>c.scrollOffset||0,getTotalSize:()=>c.getTotalSize()}),[c]),C.useMemo(()=>s||l.length>50,[s,l])&&l.length>0?v.jsx(L,{ref:a,row:n,maxHeight:i,className:k.cx(ca.main,t),w:"full",p:"var(--spacing-2xl)",children:v.jsx(L,{relative:!0,h:c.getTotalSize(),children:c.getVirtualItems().map(f=>v.jsx(L,{"data-index":f.index,ref:c.measureElement,w:"full",absolute:!0,style:{top:0,left:0,transform:`translateY(${f.start}px)`},children:l[f.index]},f.key))})}):v.jsx(L,{ref:a,className:k.cx(ca.main,t),w:"full",row:n,pl:"var(--spacing-2xl)",pr:"var(--spacing-xs)",children:v.jsx(L,{py:"var(--spacing-2xl)",pr:"var(--spacing-xl)",children:e})})});Tc.displayName="ModalMain";const to=ya;to.Header=Pc;to.Main=Tc;to.Footer=wa;const Ac=C.createContext(null),Ay=()=>C.useContext(Ac),un=({children:e})=>{const[t,n]=C.useState(null),o=Ay();return C.useEffect(()=>{if(typeof document>"u")return;const s=o?.current??document.body;if(!s)return;let i=s.querySelector("[data-portal-root]")??void 0;i||(i=document.createElement("div"),i.setAttribute("data-portal-root","true"),s.appendChild(i)),n(i)},[o]),t?Cs.createPortal(e,t):null};function Vc(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function qe(e,t){return typeof e=="function"?e(t):e}function Ce(e,t){return n=>{t.setState(o=>({...o,[e]:qe(n,o[e])}))}}function no(e){return e instanceof Function}function Vy(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Dy(e,t){const n=[],o=s=>{s.forEach(i=>{n.push(i);const r=t(i);r!=null&&r.length&&o(r)})};return o(e),n}function H(e,t,n){let o=[],s;return i=>{let r;n.key&&n.debug&&(r=Date.now());const a=e(i);if(!(a.length!==o.length||a.some((u,f)=>o[f]!==u)))return s;o=a;let c;if(n.key&&n.debug&&(c=Date.now()),s=t(...a),n==null||n.onChange==null||n.onChange(s),n.key&&n.debug&&n!=null&&n.debug()){const u=Math.round((Date.now()-r)*100)/100,f=Math.round((Date.now()-c)*100)/100,d=f/16,h=(p,g)=>{for(p=String(p);p.length<g;)p=" "+p;return p};console.info(`%c⏱ ${h(f,5)} /${h(u,5)} ms`,`
|
|
26
13
|
font-size: .6rem;
|
|
27
14
|
font-weight: bold;
|
|
28
|
-
color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,t?.key)}return r}}function Rt(n,e,t,i){return{debug:()=>{var r;return(r=n?.debugAll)!=null?r:n[e]},key:process.env.NODE_ENV==="development"&&t,onChange:i}}function VF(n,e,t,i){const r=()=>{var s;return(s=o.getValue())!=null?s:n.options.renderFallbackValue},o={id:`${e.id}_${t.id}`,row:e,column:t,getValue:()=>e.getValue(i),renderValue:r,getContext:Et(()=>[n,t,e,o],(s,a,l,u)=>({table:s,column:a,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),Rt(n.options,"debugCells","cell.getContext"))};return n._features.forEach(s=>{s.createCell==null||s.createCell(o,t,e,n)},{}),o}function GF(n,e,t,i){var r,o;const a={...n._getDefaultColumnDef(),...e},l=a.accessorKey;let u=(r=(o=a.id)!=null?o:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?r:typeof a.header=="string"?a.header:void 0,g;if(a.accessorFn?g=a.accessorFn:l&&(l.includes(".")?g=b=>{let w=b;for(const T of l.split(".")){var E;w=(E=w)==null?void 0:E[T],process.env.NODE_ENV!=="production"&&w===void 0&&console.warn(`"${T}" in deeply nested key "${l}" returned undefined.`)}return w}:g=b=>b[a.accessorKey]),!u)throw process.env.NODE_ENV!=="production"?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let m={id:`${String(u)}`,accessorFn:g,parent:i,depth:t,columnDef:a,columns:[],getFlatColumns:Et(()=>[!0],()=>{var b;return[m,...(b=m.columns)==null?void 0:b.flatMap(w=>w.getFlatColumns())]},Rt(n.options,"debugColumns","column.getFlatColumns")),getLeafColumns:Et(()=>[n._getOrderColumnsFn()],b=>{var w;if((w=m.columns)!=null&&w.length){let E=m.columns.flatMap(T=>T.getLeafColumns());return b(E)}return[m]},Rt(n.options,"debugColumns","column.getLeafColumns"))};for(const b of n._features)b.createColumn==null||b.createColumn(m,n);return m}const Ts="debugHeaders";function zw(n,e,t){var i;let o={id:(i=t.id)!=null?i:e.id,column:e,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),s.push(l)};return a(o),s},getContext:()=>({table:n,header:o,column:e})};return n._features.forEach(s=>{s.createHeader==null||s.createHeader(o,n)}),o}const UF={createTable:n=>{n.getHeaderGroups=Et(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(e,t,i,r)=>{var o,s;const a=(o=i?.map(m=>t.find(b=>b.id===m)).filter(Boolean))!=null?o:[],l=(s=r?.map(m=>t.find(b=>b.id===m)).filter(Boolean))!=null?s:[],u=t.filter(m=>!(i!=null&&i.includes(m.id))&&!(r!=null&&r.includes(m.id)));return lp(e,[...a,...u,...l],n)},Rt(n.options,Ts,"getHeaderGroups")),n.getCenterHeaderGroups=Et(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(e,t,i,r)=>(t=t.filter(o=>!(i!=null&&i.includes(o.id))&&!(r!=null&&r.includes(o.id))),lp(e,t,n,"center")),Rt(n.options,Ts,"getCenterHeaderGroups")),n.getLeftHeaderGroups=Et(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left],(e,t,i)=>{var r;const o=(r=i?.map(s=>t.find(a=>a.id===s)).filter(Boolean))!=null?r:[];return lp(e,o,n,"left")},Rt(n.options,Ts,"getLeftHeaderGroups")),n.getRightHeaderGroups=Et(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.right],(e,t,i)=>{var r;const o=(r=i?.map(s=>t.find(a=>a.id===s)).filter(Boolean))!=null?r:[];return lp(e,o,n,"right")},Rt(n.options,Ts,"getRightHeaderGroups")),n.getFooterGroups=Et(()=>[n.getHeaderGroups()],e=>[...e].reverse(),Rt(n.options,Ts,"getFooterGroups")),n.getLeftFooterGroups=Et(()=>[n.getLeftHeaderGroups()],e=>[...e].reverse(),Rt(n.options,Ts,"getLeftFooterGroups")),n.getCenterFooterGroups=Et(()=>[n.getCenterHeaderGroups()],e=>[...e].reverse(),Rt(n.options,Ts,"getCenterFooterGroups")),n.getRightFooterGroups=Et(()=>[n.getRightHeaderGroups()],e=>[...e].reverse(),Rt(n.options,Ts,"getRightFooterGroups")),n.getFlatHeaders=Et(()=>[n.getHeaderGroups()],e=>e.map(t=>t.headers).flat(),Rt(n.options,Ts,"getFlatHeaders")),n.getLeftFlatHeaders=Et(()=>[n.getLeftHeaderGroups()],e=>e.map(t=>t.headers).flat(),Rt(n.options,Ts,"getLeftFlatHeaders")),n.getCenterFlatHeaders=Et(()=>[n.getCenterHeaderGroups()],e=>e.map(t=>t.headers).flat(),Rt(n.options,Ts,"getCenterFlatHeaders")),n.getRightFlatHeaders=Et(()=>[n.getRightHeaderGroups()],e=>e.map(t=>t.headers).flat(),Rt(n.options,Ts,"getRightFlatHeaders")),n.getCenterLeafHeaders=Et(()=>[n.getCenterFlatHeaders()],e=>e.filter(t=>{var i;return!((i=t.subHeaders)!=null&&i.length)}),Rt(n.options,Ts,"getCenterLeafHeaders")),n.getLeftLeafHeaders=Et(()=>[n.getLeftFlatHeaders()],e=>e.filter(t=>{var i;return!((i=t.subHeaders)!=null&&i.length)}),Rt(n.options,Ts,"getLeftLeafHeaders")),n.getRightLeafHeaders=Et(()=>[n.getRightFlatHeaders()],e=>e.filter(t=>{var i;return!((i=t.subHeaders)!=null&&i.length)}),Rt(n.options,Ts,"getRightLeafHeaders")),n.getLeafHeaders=Et(()=>[n.getLeftHeaderGroups(),n.getCenterHeaderGroups(),n.getRightHeaderGroups()],(e,t,i)=>{var r,o,s,a,l,u;return[...(r=(o=e[0])==null?void 0:o.headers)!=null?r:[],...(s=(a=t[0])==null?void 0:a.headers)!=null?s:[],...(l=(u=i[0])==null?void 0:u.headers)!=null?l:[]].map(g=>g.getLeafHeaders()).flat()},Rt(n.options,Ts,"getLeafHeaders"))}};function lp(n,e,t,i){var r,o;let s=0;const a=function(b,w){w===void 0&&(w=1),s=Math.max(s,w),b.filter(E=>E.getIsVisible()).forEach(E=>{var T;(T=E.columns)!=null&&T.length&&a(E.columns,w+1)},0)};a(n);let l=[];const u=(b,w)=>{const E={depth:w,id:[i,`${w}`].filter(Boolean).join("_"),headers:[]},T=[];b.forEach(P=>{const M=[...T].reverse()[0],I=P.column.depth===E.depth;let L,H=!1;if(I&&P.column.parent?L=P.column.parent:(L=P.column,H=!0),M&&M?.column===L)M.subHeaders.push(P);else{const W=zw(t,L,{id:[i,w,L.id,P?.id].filter(Boolean).join("_"),isPlaceholder:H,placeholderId:H?`${T.filter(G=>G.column===L).length}`:void 0,depth:w,index:T.length});W.subHeaders.push(P),T.push(W)}E.headers.push(P),P.headerGroup=E}),l.push(E),w>0&&u(T,w-1)},g=e.map((b,w)=>zw(t,b,{depth:s,index:w}));u(g,s-1),l.reverse();const m=b=>b.filter(E=>E.column.getIsVisible()).map(E=>{let T=0,P=0,M=[0];E.subHeaders&&E.subHeaders.length?(M=[],m(E.subHeaders).forEach(L=>{let{colSpan:H,rowSpan:W}=L;T+=H,M.push(W)})):T=1;const I=Math.min(...M);return P=P+I,E.colSpan=T,E.rowSpan=P,{colSpan:T,rowSpan:P}});return m((r=(o=l[0])==null?void 0:o.headers)!=null?r:[]),l}const XF=(n,e,t,i,r,o,s)=>{let a={id:e,index:i,original:t,depth:r,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const u=n.getColumn(l);if(u!=null&&u.accessorFn)return a._valuesCache[l]=u.accessorFn(a.original,i),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const u=n.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=u.columnDef.getUniqueValues(a.original,i),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=a.getValue(l))!=null?u:n.options.renderFallbackValue},subRows:[],getLeafRows:()=>WF(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?n.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],u=a;for(;;){const g=u.getParentRow();if(!g)break;l.push(g),u=g}return l.reverse()},getAllCells:Et(()=>[n.getAllLeafColumns()],l=>l.map(u=>VF(n,a,u,u.id)),Rt(n.options,"debugRows","getAllCells")),_getAllCellsByColumnId:Et(()=>[a.getAllCells()],l=>l.reduce((u,g)=>(u[g.column.id]=g,u),{}),Rt(n.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<n._features.length;l++){const u=n._features[l];u==null||u.createRow==null||u.createRow(a,n)}return a},YF={createColumn:(n,e)=>{n._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,n.id),n.getFacetedRowModel=()=>n._getFacetedRowModel?n._getFacetedRowModel():e.getPreFilteredRowModel(),n._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,n.id),n.getFacetedUniqueValues=()=>n._getFacetedUniqueValues?n._getFacetedUniqueValues():new Map,n._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,n.id),n.getFacetedMinMaxValues=()=>{if(n._getFacetedMinMaxValues)return n._getFacetedMinMaxValues()}}},$1=(n,e,t)=>{var i,r;const o=t==null||(i=t.toString())==null?void 0:i.toLowerCase();return!!(!((r=n.getValue(e))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(o))};$1.autoRemove=n=>Su(n);const eE=(n,e,t)=>{var i;return!!(!((i=n.getValue(e))==null||(i=i.toString())==null)&&i.includes(t))};eE.autoRemove=n=>Su(n);const tE=(n,e,t)=>{var i;return((i=n.getValue(e))==null||(i=i.toString())==null?void 0:i.toLowerCase())===t?.toLowerCase()};tE.autoRemove=n=>Su(n);const nE=(n,e,t)=>{var i;return(i=n.getValue(e))==null?void 0:i.includes(t)};nE.autoRemove=n=>Su(n);const iE=(n,e,t)=>!t.some(i=>{var r;return!((r=n.getValue(e))!=null&&r.includes(i))});iE.autoRemove=n=>Su(n)||!(n!=null&&n.length);const rE=(n,e,t)=>t.some(i=>{var r;return(r=n.getValue(e))==null?void 0:r.includes(i)});rE.autoRemove=n=>Su(n)||!(n!=null&&n.length);const oE=(n,e,t)=>n.getValue(e)===t;oE.autoRemove=n=>Su(n);const sE=(n,e,t)=>n.getValue(e)==t;sE.autoRemove=n=>Su(n);const S0=(n,e,t)=>{let[i,r]=t;const o=n.getValue(e);return o>=i&&o<=r};S0.resolveFilterValue=n=>{let[e,t]=n,i=typeof e!="number"?parseFloat(e):e,r=typeof t!="number"?parseFloat(t):t,o=e===null||Number.isNaN(i)?-1/0:i,s=t===null||Number.isNaN(r)?1/0:r;if(o>s){const a=o;o=s,s=a}return[o,s]};S0.autoRemove=n=>Su(n)||Su(n[0])&&Su(n[1]);const zh={includesString:$1,includesStringSensitive:eE,equalsString:tE,arrIncludes:nE,arrIncludesAll:iE,arrIncludesSome:rE,equals:oE,weakEquals:sE,inNumberRange:S0};function Su(n){return n==null||n===""}const ZF={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:n=>({columnFilters:[],...n}),getDefaultOptions:n=>({onColumnFiltersChange:Ll("columnFilters",n),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(n,e)=>{n.getAutoFilterFn=()=>{const t=e.getCoreRowModel().flatRows[0],i=t?.getValue(n.id);return typeof i=="string"?zh.includesString:typeof i=="number"?zh.inNumberRange:typeof i=="boolean"||i!==null&&typeof i=="object"?zh.equals:Array.isArray(i)?zh.arrIncludes:zh.weakEquals},n.getFilterFn=()=>{var t,i;return Mm(n.columnDef.filterFn)?n.columnDef.filterFn:n.columnDef.filterFn==="auto"?n.getAutoFilterFn():(t=(i=e.options.filterFns)==null?void 0:i[n.columnDef.filterFn])!=null?t:zh[n.columnDef.filterFn]},n.getCanFilter=()=>{var t,i,r;return((t=n.columnDef.enableColumnFilter)!=null?t:!0)&&((i=e.options.enableColumnFilters)!=null?i:!0)&&((r=e.options.enableFilters)!=null?r:!0)&&!!n.accessorFn},n.getIsFiltered=()=>n.getFilterIndex()>-1,n.getFilterValue=()=>{var t;return(t=e.getState().columnFilters)==null||(t=t.find(i=>i.id===n.id))==null?void 0:t.value},n.getFilterIndex=()=>{var t,i;return(t=(i=e.getState().columnFilters)==null?void 0:i.findIndex(r=>r.id===n.id))!=null?t:-1},n.setFilterValue=t=>{e.setColumnFilters(i=>{const r=n.getFilterFn(),o=i?.find(g=>g.id===n.id),s=yf(t,o?o.value:void 0);if(Hw(r,s,n)){var a;return(a=i?.filter(g=>g.id!==n.id))!=null?a:[]}const l={id:n.id,value:s};if(o){var u;return(u=i?.map(g=>g.id===n.id?l:g))!=null?u:[]}return i!=null&&i.length?[...i,l]:[l]})}},createRow:(n,e)=>{n.columnFilters={},n.columnFiltersMeta={}},createTable:n=>{n.setColumnFilters=e=>{const t=n.getAllLeafColumns(),i=r=>{var o;return(o=yf(e,r))==null?void 0:o.filter(s=>{const a=t.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(Hw(l,s.value,a))return!1}return!0})};n.options.onColumnFiltersChange==null||n.options.onColumnFiltersChange(i)},n.resetColumnFilters=e=>{var t,i;n.setColumnFilters(e?[]:(t=(i=n.initialState)==null?void 0:i.columnFilters)!=null?t:[])},n.getPreFilteredRowModel=()=>n.getCoreRowModel(),n.getFilteredRowModel=()=>(!n._getFilteredRowModel&&n.options.getFilteredRowModel&&(n._getFilteredRowModel=n.options.getFilteredRowModel(n)),n.options.manualFiltering||!n._getFilteredRowModel?n.getPreFilteredRowModel():n._getFilteredRowModel())}};function Hw(n,e,t){return(n&&n.autoRemove?n.autoRemove(e,t):!1)||typeof e>"u"||typeof e=="string"&&!e}const KF=(n,e,t)=>t.reduce((i,r)=>{const o=r.getValue(n);return i+(typeof o=="number"?o:0)},0),JF=(n,e,t)=>{let i;return t.forEach(r=>{const o=r.getValue(n);o!=null&&(i>o||i===void 0&&o>=o)&&(i=o)}),i},QF=(n,e,t)=>{let i;return t.forEach(r=>{const o=r.getValue(n);o!=null&&(i<o||i===void 0&&o>=o)&&(i=o)}),i},jF=(n,e,t)=>{let i,r;return t.forEach(o=>{const s=o.getValue(n);s!=null&&(i===void 0?s>=s&&(i=r=s):(i>s&&(i=s),r<s&&(r=s)))}),[i,r]},qF=(n,e)=>{let t=0,i=0;if(e.forEach(r=>{let o=r.getValue(n);o!=null&&(o=+o)>=o&&(++t,i+=o)}),t)return i/t},$F=(n,e)=>{if(!e.length)return;const t=e.map(o=>o.getValue(n));if(!HF(t))return;if(t.length===1)return t[0];const i=Math.floor(t.length/2),r=t.sort((o,s)=>o-s);return t.length%2!==0?r[i]:(r[i-1]+r[i])/2},eL=(n,e)=>Array.from(new Set(e.map(t=>t.getValue(n))).values()),tL=(n,e)=>new Set(e.map(t=>t.getValue(n))).size,nL=(n,e)=>e.length,mv={sum:KF,min:JF,max:QF,extent:jF,mean:qF,median:$F,unique:eL,uniqueCount:tL,count:nL},iL={getDefaultColumnDef:()=>({aggregatedCell:n=>{var e,t;return(e=(t=n.getValue())==null||t.toString==null?void 0:t.toString())!=null?e:null},aggregationFn:"auto"}),getInitialState:n=>({grouping:[],...n}),getDefaultOptions:n=>({onGroupingChange:Ll("grouping",n),groupedColumnMode:"reorder"}),createColumn:(n,e)=>{n.toggleGrouping=()=>{e.setGrouping(t=>t!=null&&t.includes(n.id)?t.filter(i=>i!==n.id):[...t??[],n.id])},n.getCanGroup=()=>{var t,i;return((t=n.columnDef.enableGrouping)!=null?t:!0)&&((i=e.options.enableGrouping)!=null?i:!0)&&(!!n.accessorFn||!!n.columnDef.getGroupingValue)},n.getIsGrouped=()=>{var t;return(t=e.getState().grouping)==null?void 0:t.includes(n.id)},n.getGroupedIndex=()=>{var t;return(t=e.getState().grouping)==null?void 0:t.indexOf(n.id)},n.getToggleGroupingHandler=()=>{const t=n.getCanGroup();return()=>{t&&n.toggleGrouping()}},n.getAutoAggregationFn=()=>{const t=e.getCoreRowModel().flatRows[0],i=t?.getValue(n.id);if(typeof i=="number")return mv.sum;if(Object.prototype.toString.call(i)==="[object Date]")return mv.extent},n.getAggregationFn=()=>{var t,i;if(!n)throw new Error;return Mm(n.columnDef.aggregationFn)?n.columnDef.aggregationFn:n.columnDef.aggregationFn==="auto"?n.getAutoAggregationFn():(t=(i=e.options.aggregationFns)==null?void 0:i[n.columnDef.aggregationFn])!=null?t:mv[n.columnDef.aggregationFn]}},createTable:n=>{n.setGrouping=e=>n.options.onGroupingChange==null?void 0:n.options.onGroupingChange(e),n.resetGrouping=e=>{var t,i;n.setGrouping(e?[]:(t=(i=n.initialState)==null?void 0:i.grouping)!=null?t:[])},n.getPreGroupedRowModel=()=>n.getFilteredRowModel(),n.getGroupedRowModel=()=>(!n._getGroupedRowModel&&n.options.getGroupedRowModel&&(n._getGroupedRowModel=n.options.getGroupedRowModel(n)),n.options.manualGrouping||!n._getGroupedRowModel?n.getPreGroupedRowModel():n._getGroupedRowModel())},createRow:(n,e)=>{n.getIsGrouped=()=>!!n.groupingColumnId,n.getGroupingValue=t=>{if(n._groupingValuesCache.hasOwnProperty(t))return n._groupingValuesCache[t];const i=e.getColumn(t);return i!=null&&i.columnDef.getGroupingValue?(n._groupingValuesCache[t]=i.columnDef.getGroupingValue(n.original),n._groupingValuesCache[t]):n.getValue(t)},n._groupingValuesCache={}},createCell:(n,e,t,i)=>{n.getIsGrouped=()=>e.getIsGrouped()&&e.id===t.groupingColumnId,n.getIsPlaceholder=()=>!n.getIsGrouped()&&e.getIsGrouped(),n.getIsAggregated=()=>{var r;return!n.getIsGrouped()&&!n.getIsPlaceholder()&&!!((r=t.subRows)!=null&&r.length)}}};function rL(n,e,t){if(!(e!=null&&e.length)||!t)return n;const i=n.filter(o=>!e.includes(o.id));return t==="remove"?i:[...e.map(o=>n.find(s=>s.id===o)).filter(Boolean),...i]}const oL={getInitialState:n=>({columnOrder:[],...n}),getDefaultOptions:n=>({onColumnOrderChange:Ll("columnOrder",n)}),createColumn:(n,e)=>{n.getIndex=Et(t=>[Eg(e,t)],t=>t.findIndex(i=>i.id===n.id),Rt(e.options,"debugColumns","getIndex")),n.getIsFirstColumn=t=>{var i;return((i=Eg(e,t)[0])==null?void 0:i.id)===n.id},n.getIsLastColumn=t=>{var i;const r=Eg(e,t);return((i=r[r.length-1])==null?void 0:i.id)===n.id}},createTable:n=>{n.setColumnOrder=e=>n.options.onColumnOrderChange==null?void 0:n.options.onColumnOrderChange(e),n.resetColumnOrder=e=>{var t;n.setColumnOrder(e?[]:(t=n.initialState.columnOrder)!=null?t:[])},n._getOrderColumnsFn=Et(()=>[n.getState().columnOrder,n.getState().grouping,n.options.groupedColumnMode],(e,t,i)=>r=>{let o=[];if(!(e!=null&&e.length))o=r;else{const s=[...e],a=[...r];for(;a.length&&s.length;){const l=s.shift(),u=a.findIndex(g=>g.id===l);u>-1&&o.push(a.splice(u,1)[0])}o=[...o,...a]}return rL(o,t,i)},Rt(n.options,"debugTable","_getOrderColumnsFn"))}},vv=()=>({left:[],right:[]}),sL={getInitialState:n=>({columnPinning:vv(),...n}),getDefaultOptions:n=>({onColumnPinningChange:Ll("columnPinning",n)}),createColumn:(n,e)=>{n.pin=t=>{const i=n.getLeafColumns().map(r=>r.id).filter(Boolean);e.setColumnPinning(r=>{var o,s;if(t==="right"){var a,l;return{left:((a=r?.left)!=null?a:[]).filter(m=>!(i!=null&&i.includes(m))),right:[...((l=r?.right)!=null?l:[]).filter(m=>!(i!=null&&i.includes(m))),...i]}}if(t==="left"){var u,g;return{left:[...((u=r?.left)!=null?u:[]).filter(m=>!(i!=null&&i.includes(m))),...i],right:((g=r?.right)!=null?g:[]).filter(m=>!(i!=null&&i.includes(m)))}}return{left:((o=r?.left)!=null?o:[]).filter(m=>!(i!=null&&i.includes(m))),right:((s=r?.right)!=null?s:[]).filter(m=>!(i!=null&&i.includes(m)))}})},n.getCanPin=()=>n.getLeafColumns().some(i=>{var r,o,s;return((r=i.columnDef.enablePinning)!=null?r:!0)&&((o=(s=e.options.enableColumnPinning)!=null?s:e.options.enablePinning)!=null?o:!0)}),n.getIsPinned=()=>{const t=n.getLeafColumns().map(a=>a.id),{left:i,right:r}=e.getState().columnPinning,o=t.some(a=>i?.includes(a)),s=t.some(a=>r?.includes(a));return o?"left":s?"right":!1},n.getPinnedIndex=()=>{var t,i;const r=n.getIsPinned();return r?(t=(i=e.getState().columnPinning)==null||(i=i[r])==null?void 0:i.indexOf(n.id))!=null?t:-1:0}},createRow:(n,e)=>{n.getCenterVisibleCells=Et(()=>[n._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,i,r)=>{const o=[...i??[],...r??[]];return t.filter(s=>!o.includes(s.column.id))},Rt(e.options,"debugRows","getCenterVisibleCells")),n.getLeftVisibleCells=Et(()=>[n._getAllVisibleCells(),e.getState().columnPinning.left],(t,i)=>(i??[]).map(o=>t.find(s=>s.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),Rt(e.options,"debugRows","getLeftVisibleCells")),n.getRightVisibleCells=Et(()=>[n._getAllVisibleCells(),e.getState().columnPinning.right],(t,i)=>(i??[]).map(o=>t.find(s=>s.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),Rt(e.options,"debugRows","getRightVisibleCells"))},createTable:n=>{n.setColumnPinning=e=>n.options.onColumnPinningChange==null?void 0:n.options.onColumnPinningChange(e),n.resetColumnPinning=e=>{var t,i;return n.setColumnPinning(e?vv():(t=(i=n.initialState)==null?void 0:i.columnPinning)!=null?t:vv())},n.getIsSomeColumnsPinned=e=>{var t;const i=n.getState().columnPinning;if(!e){var r,o;return!!((r=i.left)!=null&&r.length||(o=i.right)!=null&&o.length)}return!!((t=i[e])!=null&&t.length)},n.getLeftLeafColumns=Et(()=>[n.getAllLeafColumns(),n.getState().columnPinning.left],(e,t)=>(t??[]).map(i=>e.find(r=>r.id===i)).filter(Boolean),Rt(n.options,"debugColumns","getLeftLeafColumns")),n.getRightLeafColumns=Et(()=>[n.getAllLeafColumns(),n.getState().columnPinning.right],(e,t)=>(t??[]).map(i=>e.find(r=>r.id===i)).filter(Boolean),Rt(n.options,"debugColumns","getRightLeafColumns")),n.getCenterLeafColumns=Et(()=>[n.getAllLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(e,t,i)=>{const r=[...t??[],...i??[]];return e.filter(o=>!r.includes(o.id))},Rt(n.options,"debugColumns","getCenterLeafColumns"))}};function aL(n){return n||(typeof document<"u"?document:null)}const cp={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},yv=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),lL={getDefaultColumnDef:()=>cp,getInitialState:n=>({columnSizing:{},columnSizingInfo:yv(),...n}),getDefaultOptions:n=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ll("columnSizing",n),onColumnSizingInfoChange:Ll("columnSizingInfo",n)}),createColumn:(n,e)=>{n.getSize=()=>{var t,i,r;const o=e.getState().columnSizing[n.id];return Math.min(Math.max((t=n.columnDef.minSize)!=null?t:cp.minSize,(i=o??n.columnDef.size)!=null?i:cp.size),(r=n.columnDef.maxSize)!=null?r:cp.maxSize)},n.getStart=Et(t=>[t,Eg(e,t),e.getState().columnSizing],(t,i)=>i.slice(0,n.getIndex(t)).reduce((r,o)=>r+o.getSize(),0),Rt(e.options,"debugColumns","getStart")),n.getAfter=Et(t=>[t,Eg(e,t),e.getState().columnSizing],(t,i)=>i.slice(n.getIndex(t)+1).reduce((r,o)=>r+o.getSize(),0),Rt(e.options,"debugColumns","getAfter")),n.resetSize=()=>{e.setColumnSizing(t=>{let{[n.id]:i,...r}=t;return r})},n.getCanResize=()=>{var t,i;return((t=n.columnDef.enableResizing)!=null?t:!0)&&((i=e.options.enableColumnResizing)!=null?i:!0)},n.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===n.id},createHeader:(n,e)=>{n.getSize=()=>{let t=0;const i=r=>{if(r.subHeaders.length)r.subHeaders.forEach(i);else{var o;t+=(o=r.column.getSize())!=null?o:0}};return i(n),t},n.getStart=()=>{if(n.index>0){const t=n.headerGroup.headers[n.index-1];return t.getStart()+t.getSize()}return 0},n.getResizeHandler=t=>{const i=e.getColumn(n.column.id),r=i?.getCanResize();return o=>{if(!i||!r||(o.persist==null||o.persist(),bv(o)&&o.touches&&o.touches.length>1))return;const s=n.getSize(),a=n?n.getLeafHeaders().map(M=>[M.column.id,M.column.getSize()]):[[i.id,i.getSize()]],l=bv(o)?Math.round(o.touches[0].clientX):o.clientX,u={},g=(M,I)=>{typeof I=="number"&&(e.setColumnSizingInfo(L=>{var H,W;const G=e.options.columnResizeDirection==="rtl"?-1:1,J=(I-((H=L?.startOffset)!=null?H:0))*G,Y=Math.max(J/((W=L?.startSize)!=null?W:0),-.999999);return L.columnSizingStart.forEach($=>{let[re,be]=$;u[re]=Math.round(Math.max(be+be*Y,0)*100)/100}),{...L,deltaOffset:J,deltaPercentage:Y}}),(e.options.columnResizeMode==="onChange"||M==="end")&&e.setColumnSizing(L=>({...L,...u})))},m=M=>g("move",M),b=M=>{g("end",M),e.setColumnSizingInfo(I=>({...I,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},w=aL(t),E={moveHandler:M=>m(M.clientX),upHandler:M=>{w?.removeEventListener("mousemove",E.moveHandler),w?.removeEventListener("mouseup",E.upHandler),b(M.clientX)}},T={moveHandler:M=>(M.cancelable&&(M.preventDefault(),M.stopPropagation()),m(M.touches[0].clientX),!1),upHandler:M=>{var I;w?.removeEventListener("touchmove",T.moveHandler),w?.removeEventListener("touchend",T.upHandler),M.cancelable&&(M.preventDefault(),M.stopPropagation()),b((I=M.touches[0])==null?void 0:I.clientX)}},P=cL()?{passive:!1}:!1;bv(o)?(w?.addEventListener("touchmove",T.moveHandler,P),w?.addEventListener("touchend",T.upHandler,P)):(w?.addEventListener("mousemove",E.moveHandler,P),w?.addEventListener("mouseup",E.upHandler,P)),e.setColumnSizingInfo(M=>({...M,startOffset:l,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:i.id}))}}},createTable:n=>{n.setColumnSizing=e=>n.options.onColumnSizingChange==null?void 0:n.options.onColumnSizingChange(e),n.setColumnSizingInfo=e=>n.options.onColumnSizingInfoChange==null?void 0:n.options.onColumnSizingInfoChange(e),n.resetColumnSizing=e=>{var t;n.setColumnSizing(e?{}:(t=n.initialState.columnSizing)!=null?t:{})},n.resetHeaderSizeInfo=e=>{var t;n.setColumnSizingInfo(e?yv():(t=n.initialState.columnSizingInfo)!=null?t:yv())},n.getTotalSize=()=>{var e,t;return(e=(t=n.getHeaderGroups()[0])==null?void 0:t.headers.reduce((i,r)=>i+r.getSize(),0))!=null?e:0},n.getLeftTotalSize=()=>{var e,t;return(e=(t=n.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((i,r)=>i+r.getSize(),0))!=null?e:0},n.getCenterTotalSize=()=>{var e,t;return(e=(t=n.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((i,r)=>i+r.getSize(),0))!=null?e:0},n.getRightTotalSize=()=>{var e,t;return(e=(t=n.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((i,r)=>i+r.getSize(),0))!=null?e:0}}};let up=null;function cL(){if(typeof up=="boolean")return up;let n=!1;try{const e={get passive(){return n=!0,!1}},t=()=>{};window.addEventListener("test",t,e),window.removeEventListener("test",t)}catch{n=!1}return up=n,up}function bv(n){return n.type==="touchstart"}const uL={getInitialState:n=>({columnVisibility:{},...n}),getDefaultOptions:n=>({onColumnVisibilityChange:Ll("columnVisibility",n)}),createColumn:(n,e)=>{n.toggleVisibility=t=>{n.getCanHide()&&e.setColumnVisibility(i=>({...i,[n.id]:t??!n.getIsVisible()}))},n.getIsVisible=()=>{var t,i;const r=n.columns;return(t=r.length?r.some(o=>o.getIsVisible()):(i=e.getState().columnVisibility)==null?void 0:i[n.id])!=null?t:!0},n.getCanHide=()=>{var t,i;return((t=n.columnDef.enableHiding)!=null?t:!0)&&((i=e.options.enableHiding)!=null?i:!0)},n.getToggleVisibilityHandler=()=>t=>{n.toggleVisibility==null||n.toggleVisibility(t.target.checked)}},createRow:(n,e)=>{n._getAllVisibleCells=Et(()=>[n.getAllCells(),e.getState().columnVisibility],t=>t.filter(i=>i.column.getIsVisible()),Rt(e.options,"debugRows","_getAllVisibleCells")),n.getVisibleCells=Et(()=>[n.getLeftVisibleCells(),n.getCenterVisibleCells(),n.getRightVisibleCells()],(t,i,r)=>[...t,...i,...r],Rt(e.options,"debugRows","getVisibleCells"))},createTable:n=>{const e=(t,i)=>Et(()=>[i(),i().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),Rt(n.options,"debugColumns",t));n.getVisibleFlatColumns=e("getVisibleFlatColumns",()=>n.getAllFlatColumns()),n.getVisibleLeafColumns=e("getVisibleLeafColumns",()=>n.getAllLeafColumns()),n.getLeftVisibleLeafColumns=e("getLeftVisibleLeafColumns",()=>n.getLeftLeafColumns()),n.getRightVisibleLeafColumns=e("getRightVisibleLeafColumns",()=>n.getRightLeafColumns()),n.getCenterVisibleLeafColumns=e("getCenterVisibleLeafColumns",()=>n.getCenterLeafColumns()),n.setColumnVisibility=t=>n.options.onColumnVisibilityChange==null?void 0:n.options.onColumnVisibilityChange(t),n.resetColumnVisibility=t=>{var i;n.setColumnVisibility(t?{}:(i=n.initialState.columnVisibility)!=null?i:{})},n.toggleAllColumnsVisible=t=>{var i;t=(i=t)!=null?i:!n.getIsAllColumnsVisible(),n.setColumnVisibility(n.getAllLeafColumns().reduce((r,o)=>({...r,[o.id]:t||!(o.getCanHide!=null&&o.getCanHide())}),{}))},n.getIsAllColumnsVisible=()=>!n.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),n.getIsSomeColumnsVisible=()=>n.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),n.getToggleAllColumnsVisibilityHandler=()=>t=>{var i;n.toggleAllColumnsVisible((i=t.target)==null?void 0:i.checked)}}};function Eg(n,e){return e?e==="center"?n.getCenterVisibleLeafColumns():e==="left"?n.getLeftVisibleLeafColumns():n.getRightVisibleLeafColumns():n.getVisibleLeafColumns()}const hL={createTable:n=>{n._getGlobalFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,"__global__"),n.getGlobalFacetedRowModel=()=>n.options.manualFiltering||!n._getGlobalFacetedRowModel?n.getPreFilteredRowModel():n._getGlobalFacetedRowModel(),n._getGlobalFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,"__global__"),n.getGlobalFacetedUniqueValues=()=>n._getGlobalFacetedUniqueValues?n._getGlobalFacetedUniqueValues():new Map,n._getGlobalFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,"__global__"),n.getGlobalFacetedMinMaxValues=()=>{if(n._getGlobalFacetedMinMaxValues)return n._getGlobalFacetedMinMaxValues()}}},fL={getInitialState:n=>({globalFilter:void 0,...n}),getDefaultOptions:n=>({onGlobalFilterChange:Ll("globalFilter",n),globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var t;const i=(t=n.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[e.id])==null?void 0:t.getValue();return typeof i=="string"||typeof i=="number"}}),createColumn:(n,e)=>{n.getCanGlobalFilter=()=>{var t,i,r,o;return((t=n.columnDef.enableGlobalFilter)!=null?t:!0)&&((i=e.options.enableGlobalFilter)!=null?i:!0)&&((r=e.options.enableFilters)!=null?r:!0)&&((o=e.options.getColumnCanGlobalFilter==null?void 0:e.options.getColumnCanGlobalFilter(n))!=null?o:!0)&&!!n.accessorFn}},createTable:n=>{n.getGlobalAutoFilterFn=()=>zh.includesString,n.getGlobalFilterFn=()=>{var e,t;const{globalFilterFn:i}=n.options;return Mm(i)?i:i==="auto"?n.getGlobalAutoFilterFn():(e=(t=n.options.filterFns)==null?void 0:t[i])!=null?e:zh[i]},n.setGlobalFilter=e=>{n.options.onGlobalFilterChange==null||n.options.onGlobalFilterChange(e)},n.resetGlobalFilter=e=>{n.setGlobalFilter(e?void 0:n.initialState.globalFilter)}}},dL={getInitialState:n=>({expanded:{},...n}),getDefaultOptions:n=>({onExpandedChange:Ll("expanded",n),paginateExpandedRows:!0}),createTable:n=>{let e=!1,t=!1;n._autoResetExpanded=()=>{var i,r;if(!e){n._queue(()=>{e=!0});return}if((i=(r=n.options.autoResetAll)!=null?r:n.options.autoResetExpanded)!=null?i:!n.options.manualExpanding){if(t)return;t=!0,n._queue(()=>{n.resetExpanded(),t=!1})}},n.setExpanded=i=>n.options.onExpandedChange==null?void 0:n.options.onExpandedChange(i),n.toggleAllRowsExpanded=i=>{i??!n.getIsAllRowsExpanded()?n.setExpanded(!0):n.setExpanded({})},n.resetExpanded=i=>{var r,o;n.setExpanded(i?{}:(r=(o=n.initialState)==null?void 0:o.expanded)!=null?r:{})},n.getCanSomeRowsExpand=()=>n.getPrePaginationRowModel().flatRows.some(i=>i.getCanExpand()),n.getToggleAllRowsExpandedHandler=()=>i=>{i.persist==null||i.persist(),n.toggleAllRowsExpanded()},n.getIsSomeRowsExpanded=()=>{const i=n.getState().expanded;return i===!0||Object.values(i).some(Boolean)},n.getIsAllRowsExpanded=()=>{const i=n.getState().expanded;return typeof i=="boolean"?i===!0:!(!Object.keys(i).length||n.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},n.getExpandedDepth=()=>{let i=0;return(n.getState().expanded===!0?Object.keys(n.getRowModel().rowsById):Object.keys(n.getState().expanded)).forEach(o=>{const s=o.split(".");i=Math.max(i,s.length)}),i},n.getPreExpandedRowModel=()=>n.getSortedRowModel(),n.getExpandedRowModel=()=>(!n._getExpandedRowModel&&n.options.getExpandedRowModel&&(n._getExpandedRowModel=n.options.getExpandedRowModel(n)),n.options.manualExpanding||!n._getExpandedRowModel?n.getPreExpandedRowModel():n._getExpandedRowModel())},createRow:(n,e)=>{n.toggleExpanded=t=>{e.setExpanded(i=>{var r;const o=i===!0?!0:!!(i!=null&&i[n.id]);let s={};if(i===!0?Object.keys(e.getRowModel().rowsById).forEach(a=>{s[a]=!0}):s=i,t=(r=t)!=null?r:!o,!o&&t)return{...s,[n.id]:!0};if(o&&!t){const{[n.id]:a,...l}=s;return l}return i})},n.getIsExpanded=()=>{var t;const i=e.getState().expanded;return!!((t=e.options.getIsRowExpanded==null?void 0:e.options.getIsRowExpanded(n))!=null?t:i===!0||i?.[n.id])},n.getCanExpand=()=>{var t,i,r;return(t=e.options.getRowCanExpand==null?void 0:e.options.getRowCanExpand(n))!=null?t:((i=e.options.enableExpanding)!=null?i:!0)&&!!((r=n.subRows)!=null&&r.length)},n.getIsAllParentsExpanded=()=>{let t=!0,i=n;for(;t&&i.parentId;)i=e.getRow(i.parentId,!0),t=i.getIsExpanded();return t},n.getToggleExpandedHandler=()=>{const t=n.getCanExpand();return()=>{t&&n.toggleExpanded()}}}},jy=0,qy=10,xv=()=>({pageIndex:jy,pageSize:qy}),gL={getInitialState:n=>({...n,pagination:{...xv(),...n?.pagination}}),getDefaultOptions:n=>({onPaginationChange:Ll("pagination",n)}),createTable:n=>{let e=!1,t=!1;n._autoResetPageIndex=()=>{var i,r;if(!e){n._queue(()=>{e=!0});return}if((i=(r=n.options.autoResetAll)!=null?r:n.options.autoResetPageIndex)!=null?i:!n.options.manualPagination){if(t)return;t=!0,n._queue(()=>{n.resetPageIndex(),t=!1})}},n.setPagination=i=>{const r=o=>yf(i,o);return n.options.onPaginationChange==null?void 0:n.options.onPaginationChange(r)},n.resetPagination=i=>{var r;n.setPagination(i?xv():(r=n.initialState.pagination)!=null?r:xv())},n.setPageIndex=i=>{n.setPagination(r=>{let o=yf(i,r.pageIndex);const s=typeof n.options.pageCount>"u"||n.options.pageCount===-1?Number.MAX_SAFE_INTEGER:n.options.pageCount-1;return o=Math.max(0,Math.min(o,s)),{...r,pageIndex:o}})},n.resetPageIndex=i=>{var r,o;n.setPageIndex(i?jy:(r=(o=n.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?r:jy)},n.resetPageSize=i=>{var r,o;n.setPageSize(i?qy:(r=(o=n.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?r:qy)},n.setPageSize=i=>{n.setPagination(r=>{const o=Math.max(1,yf(i,r.pageSize)),s=r.pageSize*r.pageIndex,a=Math.floor(s/o);return{...r,pageIndex:a,pageSize:o}})},n.setPageCount=i=>n.setPagination(r=>{var o;let s=yf(i,(o=n.options.pageCount)!=null?o:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...r,pageCount:s}}),n.getPageOptions=Et(()=>[n.getPageCount()],i=>{let r=[];return i&&i>0&&(r=[...new Array(i)].fill(null).map((o,s)=>s)),r},Rt(n.options,"debugTable","getPageOptions")),n.getCanPreviousPage=()=>n.getState().pagination.pageIndex>0,n.getCanNextPage=()=>{const{pageIndex:i}=n.getState().pagination,r=n.getPageCount();return r===-1?!0:r===0?!1:i<r-1},n.previousPage=()=>n.setPageIndex(i=>i-1),n.nextPage=()=>n.setPageIndex(i=>i+1),n.firstPage=()=>n.setPageIndex(0),n.lastPage=()=>n.setPageIndex(n.getPageCount()-1),n.getPrePaginationRowModel=()=>n.getExpandedRowModel(),n.getPaginationRowModel=()=>(!n._getPaginationRowModel&&n.options.getPaginationRowModel&&(n._getPaginationRowModel=n.options.getPaginationRowModel(n)),n.options.manualPagination||!n._getPaginationRowModel?n.getPrePaginationRowModel():n._getPaginationRowModel()),n.getPageCount=()=>{var i;return(i=n.options.pageCount)!=null?i:Math.ceil(n.getRowCount()/n.getState().pagination.pageSize)},n.getRowCount=()=>{var i;return(i=n.options.rowCount)!=null?i:n.getPrePaginationRowModel().rows.length}}},wv=()=>({top:[],bottom:[]}),pL={getInitialState:n=>({rowPinning:wv(),...n}),getDefaultOptions:n=>({onRowPinningChange:Ll("rowPinning",n)}),createRow:(n,e)=>{n.pin=(t,i,r)=>{const o=i?n.getLeafRows().map(l=>{let{id:u}=l;return u}):[],s=r?n.getParentRows().map(l=>{let{id:u}=l;return u}):[],a=new Set([...s,n.id,...o]);e.setRowPinning(l=>{var u,g;if(t==="bottom"){var m,b;return{top:((m=l?.top)!=null?m:[]).filter(T=>!(a!=null&&a.has(T))),bottom:[...((b=l?.bottom)!=null?b:[]).filter(T=>!(a!=null&&a.has(T))),...Array.from(a)]}}if(t==="top"){var w,E;return{top:[...((w=l?.top)!=null?w:[]).filter(T=>!(a!=null&&a.has(T))),...Array.from(a)],bottom:((E=l?.bottom)!=null?E:[]).filter(T=>!(a!=null&&a.has(T)))}}return{top:((u=l?.top)!=null?u:[]).filter(T=>!(a!=null&&a.has(T))),bottom:((g=l?.bottom)!=null?g:[]).filter(T=>!(a!=null&&a.has(T)))}})},n.getCanPin=()=>{var t;const{enableRowPinning:i,enablePinning:r}=e.options;return typeof i=="function"?i(n):(t=i??r)!=null?t:!0},n.getIsPinned=()=>{const t=[n.id],{top:i,bottom:r}=e.getState().rowPinning,o=t.some(a=>i?.includes(a)),s=t.some(a=>r?.includes(a));return o?"top":s?"bottom":!1},n.getPinnedIndex=()=>{var t,i;const r=n.getIsPinned();if(!r)return-1;const o=(t=r==="top"?e.getTopRows():e.getBottomRows())==null?void 0:t.map(s=>{let{id:a}=s;return a});return(i=o?.indexOf(n.id))!=null?i:-1}},createTable:n=>{n.setRowPinning=e=>n.options.onRowPinningChange==null?void 0:n.options.onRowPinningChange(e),n.resetRowPinning=e=>{var t,i;return n.setRowPinning(e?wv():(t=(i=n.initialState)==null?void 0:i.rowPinning)!=null?t:wv())},n.getIsSomeRowsPinned=e=>{var t;const i=n.getState().rowPinning;if(!e){var r,o;return!!((r=i.top)!=null&&r.length||(o=i.bottom)!=null&&o.length)}return!!((t=i[e])!=null&&t.length)},n._getPinnedRows=(e,t,i)=>{var r;return((r=n.options.keepPinnedRows)==null||r?(t??[]).map(s=>{const a=n.getRow(s,!0);return a.getIsAllParentsExpanded()?a:null}):(t??[]).map(s=>e.find(a=>a.id===s))).filter(Boolean).map(s=>({...s,position:i}))},n.getTopRows=Et(()=>[n.getRowModel().rows,n.getState().rowPinning.top],(e,t)=>n._getPinnedRows(e,t,"top"),Rt(n.options,"debugRows","getTopRows")),n.getBottomRows=Et(()=>[n.getRowModel().rows,n.getState().rowPinning.bottom],(e,t)=>n._getPinnedRows(e,t,"bottom"),Rt(n.options,"debugRows","getBottomRows")),n.getCenterRows=Et(()=>[n.getRowModel().rows,n.getState().rowPinning.top,n.getState().rowPinning.bottom],(e,t,i)=>{const r=new Set([...t??[],...i??[]]);return e.filter(o=>!r.has(o.id))},Rt(n.options,"debugRows","getCenterRows"))}},mL={getInitialState:n=>({rowSelection:{},...n}),getDefaultOptions:n=>({onRowSelectionChange:Ll("rowSelection",n),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:n=>{n.setRowSelection=e=>n.options.onRowSelectionChange==null?void 0:n.options.onRowSelectionChange(e),n.resetRowSelection=e=>{var t;return n.setRowSelection(e?{}:(t=n.initialState.rowSelection)!=null?t:{})},n.toggleAllRowsSelected=e=>{n.setRowSelection(t=>{e=typeof e<"u"?e:!n.getIsAllRowsSelected();const i={...t},r=n.getPreGroupedRowModel().flatRows;return e?r.forEach(o=>{o.getCanSelect()&&(i[o.id]=!0)}):r.forEach(o=>{delete i[o.id]}),i})},n.toggleAllPageRowsSelected=e=>n.setRowSelection(t=>{const i=typeof e<"u"?e:!n.getIsAllPageRowsSelected(),r={...t};return n.getRowModel().rows.forEach(o=>{$y(r,o.id,i,!0,n)}),r}),n.getPreSelectedRowModel=()=>n.getCoreRowModel(),n.getSelectedRowModel=Et(()=>[n.getState().rowSelection,n.getCoreRowModel()],(e,t)=>Object.keys(e).length?Cv(n,t):{rows:[],flatRows:[],rowsById:{}},Rt(n.options,"debugTable","getSelectedRowModel")),n.getFilteredSelectedRowModel=Et(()=>[n.getState().rowSelection,n.getFilteredRowModel()],(e,t)=>Object.keys(e).length?Cv(n,t):{rows:[],flatRows:[],rowsById:{}},Rt(n.options,"debugTable","getFilteredSelectedRowModel")),n.getGroupedSelectedRowModel=Et(()=>[n.getState().rowSelection,n.getSortedRowModel()],(e,t)=>Object.keys(e).length?Cv(n,t):{rows:[],flatRows:[],rowsById:{}},Rt(n.options,"debugTable","getGroupedSelectedRowModel")),n.getIsAllRowsSelected=()=>{const e=n.getFilteredRowModel().flatRows,{rowSelection:t}=n.getState();let i=!!(e.length&&Object.keys(t).length);return i&&e.some(r=>r.getCanSelect()&&!t[r.id])&&(i=!1),i},n.getIsAllPageRowsSelected=()=>{const e=n.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:t}=n.getState();let i=!!e.length;return i&&e.some(r=>!t[r.id])&&(i=!1),i},n.getIsSomeRowsSelected=()=>{var e;const t=Object.keys((e=n.getState().rowSelection)!=null?e:{}).length;return t>0&&t<n.getFilteredRowModel().flatRows.length},n.getIsSomePageRowsSelected=()=>{const e=n.getPaginationRowModel().flatRows;return n.getIsAllPageRowsSelected()?!1:e.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},n.getToggleAllRowsSelectedHandler=()=>e=>{n.toggleAllRowsSelected(e.target.checked)},n.getToggleAllPageRowsSelectedHandler=()=>e=>{n.toggleAllPageRowsSelected(e.target.checked)}},createRow:(n,e)=>{n.toggleSelected=(t,i)=>{const r=n.getIsSelected();e.setRowSelection(o=>{var s;if(t=typeof t<"u"?t:!r,n.getCanSelect()&&r===t)return o;const a={...o};return $y(a,n.id,t,(s=i?.selectChildren)!=null?s:!0,e),a})},n.getIsSelected=()=>{const{rowSelection:t}=e.getState();return T0(n,t)},n.getIsSomeSelected=()=>{const{rowSelection:t}=e.getState();return eb(n,t)==="some"},n.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=e.getState();return eb(n,t)==="all"},n.getCanSelect=()=>{var t;return typeof e.options.enableRowSelection=="function"?e.options.enableRowSelection(n):(t=e.options.enableRowSelection)!=null?t:!0},n.getCanSelectSubRows=()=>{var t;return typeof e.options.enableSubRowSelection=="function"?e.options.enableSubRowSelection(n):(t=e.options.enableSubRowSelection)!=null?t:!0},n.getCanMultiSelect=()=>{var t;return typeof e.options.enableMultiRowSelection=="function"?e.options.enableMultiRowSelection(n):(t=e.options.enableMultiRowSelection)!=null?t:!0},n.getToggleSelectedHandler=()=>{const t=n.getCanSelect();return i=>{var r;t&&n.toggleSelected((r=i.target)==null?void 0:r.checked)}}}},$y=(n,e,t,i,r)=>{var o;const s=r.getRow(e,!0);t?(s.getCanMultiSelect()||Object.keys(n).forEach(a=>delete n[a]),s.getCanSelect()&&(n[e]=!0)):delete n[e],i&&(o=s.subRows)!=null&&o.length&&s.getCanSelectSubRows()&&s.subRows.forEach(a=>$y(n,a.id,t,i,r))};function Cv(n,e){const t=n.getState().rowSelection,i=[],r={},o=function(s,a){return s.map(l=>{var u;const g=T0(l,t);if(g&&(i.push(l),r[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:o(l.subRows)}),g)return l}).filter(Boolean)};return{rows:o(e.rows),flatRows:i,rowsById:r}}function T0(n,e){var t;return(t=e[n.id])!=null?t:!1}function eb(n,e,t){var i;if(!((i=n.subRows)!=null&&i.length))return!1;let r=!0,o=!1;return n.subRows.forEach(s=>{if(!(o&&!r)&&(s.getCanSelect()&&(T0(s,e)?o=!0:r=!1),s.subRows&&s.subRows.length)){const a=eb(s,e);a==="all"?o=!0:(a==="some"&&(o=!0),r=!1)}}),r?"all":o?"some":!1}const tb=/([0-9]+)/gm,vL=(n,e,t)=>aE(Sf(n.getValue(t)).toLowerCase(),Sf(e.getValue(t)).toLowerCase()),yL=(n,e,t)=>aE(Sf(n.getValue(t)),Sf(e.getValue(t))),bL=(n,e,t)=>E0(Sf(n.getValue(t)).toLowerCase(),Sf(e.getValue(t)).toLowerCase()),xL=(n,e,t)=>E0(Sf(n.getValue(t)),Sf(e.getValue(t))),wL=(n,e,t)=>{const i=n.getValue(t),r=e.getValue(t);return i>r?1:i<r?-1:0},CL=(n,e,t)=>E0(n.getValue(t),e.getValue(t));function E0(n,e){return n===e?0:n>e?1:-1}function Sf(n){return typeof n=="number"?isNaN(n)||n===1/0||n===-1/0?"":String(n):typeof n=="string"?n:""}function aE(n,e){const t=n.split(tb).filter(Boolean),i=e.split(tb).filter(Boolean);for(;t.length&&i.length;){const r=t.shift(),o=i.shift(),s=parseInt(r,10),a=parseInt(o,10),l=[s,a].sort();if(isNaN(l[0])){if(r>o)return 1;if(o>r)return-1;continue}if(isNaN(l[1]))return isNaN(s)?-1:1;if(s>a)return 1;if(a>s)return-1}return t.length-i.length}const $d={alphanumeric:vL,alphanumericCaseSensitive:yL,text:bL,textCaseSensitive:xL,datetime:wL,basic:CL},SL={getInitialState:n=>({sorting:[],...n}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:n=>({onSortingChange:Ll("sorting",n),isMultiSortEvent:e=>e.shiftKey}),createColumn:(n,e)=>{n.getAutoSortingFn=()=>{const t=e.getFilteredRowModel().flatRows.slice(10);let i=!1;for(const r of t){const o=r?.getValue(n.id);if(Object.prototype.toString.call(o)==="[object Date]")return $d.datetime;if(typeof o=="string"&&(i=!0,o.split(tb).length>1))return $d.alphanumeric}return i?$d.text:$d.basic},n.getAutoSortDir=()=>{const t=e.getFilteredRowModel().flatRows[0];return typeof t?.getValue(n.id)=="string"?"asc":"desc"},n.getSortingFn=()=>{var t,i;if(!n)throw new Error;return Mm(n.columnDef.sortingFn)?n.columnDef.sortingFn:n.columnDef.sortingFn==="auto"?n.getAutoSortingFn():(t=(i=e.options.sortingFns)==null?void 0:i[n.columnDef.sortingFn])!=null?t:$d[n.columnDef.sortingFn]},n.toggleSorting=(t,i)=>{const r=n.getNextSortingOrder(),o=typeof t<"u"&&t!==null;e.setSorting(s=>{const a=s?.find(w=>w.id===n.id),l=s?.findIndex(w=>w.id===n.id);let u=[],g,m=o?t:r==="desc";if(s!=null&&s.length&&n.getCanMultiSort()&&i?a?g="toggle":g="add":s!=null&&s.length&&l!==s.length-1?g="replace":a?g="toggle":g="replace",g==="toggle"&&(o||r||(g="remove")),g==="add"){var b;u=[...s,{id:n.id,desc:m}],u.splice(0,u.length-((b=e.options.maxMultiSortColCount)!=null?b:Number.MAX_SAFE_INTEGER))}else g==="toggle"?u=s.map(w=>w.id===n.id?{...w,desc:m}:w):g==="remove"?u=s.filter(w=>w.id!==n.id):u=[{id:n.id,desc:m}];return u})},n.getFirstSortDir=()=>{var t,i;return((t=(i=n.columnDef.sortDescFirst)!=null?i:e.options.sortDescFirst)!=null?t:n.getAutoSortDir()==="desc")?"desc":"asc"},n.getNextSortingOrder=t=>{var i,r;const o=n.getFirstSortDir(),s=n.getIsSorted();return s?s!==o&&((i=e.options.enableSortingRemoval)==null||i)&&(!(t&&(r=e.options.enableMultiRemove)!=null)||r)?!1:s==="desc"?"asc":"desc":o},n.getCanSort=()=>{var t,i;return((t=n.columnDef.enableSorting)!=null?t:!0)&&((i=e.options.enableSorting)!=null?i:!0)&&!!n.accessorFn},n.getCanMultiSort=()=>{var t,i;return(t=(i=n.columnDef.enableMultiSort)!=null?i:e.options.enableMultiSort)!=null?t:!!n.accessorFn},n.getIsSorted=()=>{var t;const i=(t=e.getState().sorting)==null?void 0:t.find(r=>r.id===n.id);return i?i.desc?"desc":"asc":!1},n.getSortIndex=()=>{var t,i;return(t=(i=e.getState().sorting)==null?void 0:i.findIndex(r=>r.id===n.id))!=null?t:-1},n.clearSorting=()=>{e.setSorting(t=>t!=null&&t.length?t.filter(i=>i.id!==n.id):[])},n.getToggleSortingHandler=()=>{const t=n.getCanSort();return i=>{t&&(i.persist==null||i.persist(),n.toggleSorting==null||n.toggleSorting(void 0,n.getCanMultiSort()?e.options.isMultiSortEvent==null?void 0:e.options.isMultiSortEvent(i):!1))}}},createTable:n=>{n.setSorting=e=>n.options.onSortingChange==null?void 0:n.options.onSortingChange(e),n.resetSorting=e=>{var t,i;n.setSorting(e?[]:(t=(i=n.initialState)==null?void 0:i.sorting)!=null?t:[])},n.getPreSortedRowModel=()=>n.getGroupedRowModel(),n.getSortedRowModel=()=>(!n._getSortedRowModel&&n.options.getSortedRowModel&&(n._getSortedRowModel=n.options.getSortedRowModel(n)),n.options.manualSorting||!n._getSortedRowModel?n.getPreSortedRowModel():n._getSortedRowModel())}},TL=[UF,uL,oL,sL,YF,ZF,hL,fL,SL,iL,dL,gL,pL,mL,lL];function EL(n){var e,t;process.env.NODE_ENV!=="production"&&(n.debugAll||n.debugTable)&&console.info("Creating Table Instance...");const i=[...TL,...(e=n._features)!=null?e:[]];let r={_features:i};const o=r._features.reduce((b,w)=>Object.assign(b,w.getDefaultOptions==null?void 0:w.getDefaultOptions(r)),{}),s=b=>r.options.mergeOptions?r.options.mergeOptions(o,b):{...o,...b};let l={...{},...(t=n.initialState)!=null?t:{}};r._features.forEach(b=>{var w;l=(w=b.getInitialState==null?void 0:b.getInitialState(l))!=null?w:l});const u=[];let g=!1;const m={_features:i,options:{...o,...n},initialState:l,_queue:b=>{u.push(b),g||(g=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();g=!1}).catch(w=>setTimeout(()=>{throw w})))},reset:()=>{r.setState(r.initialState)},setOptions:b=>{const w=yf(b,r.options);r.options=s(w)},getState:()=>r.options.state,setState:b=>{r.options.onStateChange==null||r.options.onStateChange(b)},_getRowId:(b,w,E)=>{var T;return(T=r.options.getRowId==null?void 0:r.options.getRowId(b,w,E))!=null?T:`${E?[E.id,w].join("."):w}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(b,w)=>{let E=(w?r.getPrePaginationRowModel():r.getRowModel()).rowsById[b];if(!E&&(E=r.getCoreRowModel().rowsById[b],!E))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${b}`):new Error;return E},_getDefaultColumnDef:Et(()=>[r.options.defaultColumn],b=>{var w;return b=(w=b)!=null?w:{},{header:E=>{const T=E.header.column.columnDef;return T.accessorKey?T.accessorKey:T.accessorFn?T.id:null},cell:E=>{var T,P;return(T=(P=E.renderValue())==null||P.toString==null?void 0:P.toString())!=null?T:null},...r._features.reduce((E,T)=>Object.assign(E,T.getDefaultColumnDef==null?void 0:T.getDefaultColumnDef()),{}),...b}},Rt(n,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>r.options.columns,getAllColumns:Et(()=>[r._getColumnDefs()],b=>{const w=function(E,T,P){return P===void 0&&(P=0),E.map(M=>{const I=GF(r,M,P,T),L=M;return I.columns=L.columns?w(L.columns,I,P+1):[],I})};return w(b)},Rt(n,"debugColumns","getAllColumns")),getAllFlatColumns:Et(()=>[r.getAllColumns()],b=>b.flatMap(w=>w.getFlatColumns()),Rt(n,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:Et(()=>[r.getAllFlatColumns()],b=>b.reduce((w,E)=>(w[E.id]=E,w),{}),Rt(n,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:Et(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(b,w)=>{let E=b.flatMap(T=>T.getLeafColumns());return w(E)},Rt(n,"debugColumns","getAllLeafColumns")),getColumn:b=>{const w=r._getAllFlatColumnsById()[b];return process.env.NODE_ENV!=="production"&&!w&&console.error(`[Table] Column with id '${b}' does not exist.`),w}};Object.assign(r,m);for(let b=0;b<r._features.length;b++){const w=r._features[b];w==null||w.createTable==null||w.createTable(r)}return r}function RL(){return n=>Et(()=>[n.options.data],e=>{const t={rows:[],flatRows:[],rowsById:{}},i=function(r,o,s){o===void 0&&(o=0);const a=[];for(let u=0;u<r.length;u++){const g=XF(n,n._getRowId(r[u],u,s),r[u],u,o,void 0,s?.id);if(t.flatRows.push(g),t.rowsById[g.id]=g,a.push(g),n.options.getSubRows){var l;g.originalSubRows=n.options.getSubRows(r[u],u),(l=g.originalSubRows)!=null&&l.length&&(g.subRows=i(g.originalSubRows,o+1,g))}}return a};return t.rows=i(e),t},Rt(n.options,"debugTable","getRowModel",()=>n._autoResetPageIndex()))}function kL(n){const e=[],t=i=>{var r;e.push(i),(r=i.subRows)!=null&&r.length&&i.getIsExpanded()&&i.subRows.forEach(t)};return n.rows.forEach(t),{rows:e,flatRows:n.flatRows,rowsById:n.rowsById}}function PL(n){return e=>Et(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,i)=>{if(!i.rows.length)return i;const{pageSize:r,pageIndex:o}=t;let{rows:s,flatRows:a,rowsById:l}=i;const u=r*o,g=u+r;s=s.slice(u,g);let m;e.options.paginateExpandedRows?m={rows:s,flatRows:a,rowsById:l}:m=kL({rows:s,flatRows:a,rowsById:l}),m.flatRows=[];const b=w=>{m.flatRows.push(w),w.subRows.length&&w.subRows.forEach(b)};return m.rows.forEach(b),m},Rt(e.options,"debugTable","getPaginationRowModel"))}function ML(){return n=>Et(()=>[n.getState().sorting,n.getPreSortedRowModel()],(e,t)=>{if(!t.rows.length||!(e!=null&&e.length))return t;const i=n.getState().sorting,r=[],o=i.filter(l=>{var u;return(u=n.getColumn(l.id))==null?void 0:u.getCanSort()}),s={};o.forEach(l=>{const u=n.getColumn(l.id);u&&(s[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const a=l=>{const u=l.map(g=>({...g}));return u.sort((g,m)=>{for(let w=0;w<o.length;w+=1){var b;const E=o[w],T=s[E.id],P=T.sortUndefined,M=(b=E?.desc)!=null?b:!1;let I=0;if(P){const L=g.getValue(E.id),H=m.getValue(E.id),W=L===void 0,G=H===void 0;if(W||G){if(P==="first")return W?-1:1;if(P==="last")return W?1:-1;I=W&&G?0:W?P:-P}}if(I===0&&(I=T.sortingFn(g,m,E.id)),I!==0)return M&&(I*=-1),T.invertSorting&&(I*=-1),I}return g.index-m.index}),u.forEach(g=>{var m;r.push(g),(m=g.subRows)!=null&&m.length&&(g.subRows=a(g.subRows))}),u};return{rows:a(t.rows),flatRows:r,rowsById:t.rowsById}},Rt(n.options,"debugTable","getSortedRowModel",()=>n._autoResetPageIndex()))}/**
|
|
29
|
-
* react-table
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) TanStack
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
35
|
-
*
|
|
36
|
-
* @license MIT
|
|
37
|
-
*/function Ww(n,e){return n?AL(n)?Re.createElement(n,e):n:null}function AL(n){return _L(n)||typeof n=="function"||OL(n)}function _L(n){return typeof n=="function"&&(()=>{const e=Object.getPrototypeOf(n);return e.prototype&&e.prototype.isReactComponent})()}function OL(n){return typeof n=="object"&&typeof n.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(n.$$typeof.description)}function FL(n){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...n},[t]=Re.useState(()=>({current:EL(e)})),[i,r]=Re.useState(()=>t.current.initialState);return t.current.setOptions(o=>({...o,...n,state:{...i,...n.state},onStateChange:s=>{r(s),n.onStateChange==null||n.onStateChange(s)}})),t.current}const LL=n=>Re.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("style",null,`
|
|
15
|
+
color: hsl(${Math.max(0,Math.min(120-120*d,120))}deg 100% 31%);`,n?.key)}return s}}function W(e,t,n,o){return{debug:()=>{var s;return(s=e?.debugAll)!=null?s:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:o}}function ky(e,t,n,o){const s=()=>{var r;return(r=i.getValue())!=null?r:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:s,getContext:H(()=>[e,n,t,i],(r,a,l,c)=>({table:r,column:a,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),W(e.options,"debugCells","cell.getContext"))};return e._features.forEach(r=>{r.createCell==null||r.createCell(i,n,t,e)},{}),i}function Fy(e,t,n,o){var s,i;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let c=(s=(i=a.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?s:typeof a.header=="string"?a.header:void 0,u;if(a.accessorFn?u=a.accessorFn:l&&(l.includes(".")?u=d=>{let h=d;for(const g of l.split(".")){var p;h=(p=h)==null?void 0:p[g],process.env.NODE_ENV!=="production"&&h===void 0&&console.warn(`"${g}" in deeply nested key "${l}" returned undefined.`)}return h}:u=d=>d[a.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let f={id:`${String(c)}`,accessorFn:u,parent:o,depth:n,columnDef:a,columns:[],getFlatColumns:H(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(h=>h.getFlatColumns())]},W(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:H(()=>[e._getOrderColumnsFn()],d=>{var h;if((h=f.columns)!=null&&h.length){let p=f.columns.flatMap(g=>g.getLeafColumns());return d(p)}return[f]},W(e.options,"debugColumns","column.getLeafColumns"))};for(const d of e._features)d.createColumn==null||d.createColumn(f,e);return f}const he="debugHeaders";function ua(e,t,n){var o;let i={id:(o=n.id)!=null?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const r=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),r.push(l)};return a(i),r},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(r=>{r.createHeader==null||r.createHeader(i,e)}),i}const Ly={createTable:e=>{e.getHeaderGroups=H(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,s)=>{var i,r;const a=(i=o?.map(f=>n.find(d=>d.id===f)).filter(Boolean))!=null?i:[],l=(r=s?.map(f=>n.find(d=>d.id===f)).filter(Boolean))!=null?r:[],c=n.filter(f=>!(o!=null&&o.includes(f.id))&&!(s!=null&&s.includes(f.id)));return xn(t,[...a,...c,...l],e)},W(e.options,he,"getHeaderGroups")),e.getCenterHeaderGroups=H(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,s)=>(n=n.filter(i=>!(o!=null&&o.includes(i.id))&&!(s!=null&&s.includes(i.id))),xn(t,n,e,"center")),W(e.options,he,"getCenterHeaderGroups")),e.getLeftHeaderGroups=H(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,o)=>{var s;const i=(s=o?.map(r=>n.find(a=>a.id===r)).filter(Boolean))!=null?s:[];return xn(t,i,e,"left")},W(e.options,he,"getLeftHeaderGroups")),e.getRightHeaderGroups=H(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,o)=>{var s;const i=(s=o?.map(r=>n.find(a=>a.id===r)).filter(Boolean))!=null?s:[];return xn(t,i,e,"right")},W(e.options,he,"getRightHeaderGroups")),e.getFooterGroups=H(()=>[e.getHeaderGroups()],t=>[...t].reverse(),W(e.options,he,"getFooterGroups")),e.getLeftFooterGroups=H(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),W(e.options,he,"getLeftFooterGroups")),e.getCenterFooterGroups=H(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),W(e.options,he,"getCenterFooterGroups")),e.getRightFooterGroups=H(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),W(e.options,he,"getRightFooterGroups")),e.getFlatHeaders=H(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),W(e.options,he,"getFlatHeaders")),e.getLeftFlatHeaders=H(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),W(e.options,he,"getLeftFlatHeaders")),e.getCenterFlatHeaders=H(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),W(e.options,he,"getCenterFlatHeaders")),e.getRightFlatHeaders=H(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),W(e.options,he,"getRightFlatHeaders")),e.getCenterLeafHeaders=H(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),W(e.options,he,"getCenterLeafHeaders")),e.getLeftLeafHeaders=H(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),W(e.options,he,"getLeftLeafHeaders")),e.getRightLeafHeaders=H(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),W(e.options,he,"getRightLeafHeaders")),e.getLeafHeaders=H(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,o)=>{var s,i,r,a,l,c;return[...(s=(i=t[0])==null?void 0:i.headers)!=null?s:[],...(r=(a=n[0])==null?void 0:a.headers)!=null?r:[],...(l=(c=o[0])==null?void 0:c.headers)!=null?l:[]].map(u=>u.getLeafHeaders()).flat()},W(e.options,he,"getLeafHeaders"))}};function xn(e,t,n,o){var s,i;let r=0;const a=function(d,h){h===void 0&&(h=1),r=Math.max(r,h),d.filter(p=>p.getIsVisible()).forEach(p=>{var g;(g=p.columns)!=null&&g.length&&a(p.columns,h+1)},0)};a(e);let l=[];const c=(d,h)=>{const p={depth:h,id:[o,`${h}`].filter(Boolean).join("_"),headers:[]},g=[];d.forEach(m=>{const w=[...g].reverse()[0],x=m.column.depth===p.depth;let y,S=!1;if(x&&m.column.parent?y=m.column.parent:(y=m.column,S=!0),w&&w?.column===y)w.subHeaders.push(m);else{const _=ua(n,y,{id:[o,h,y.id,m?.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${g.filter(M=>M.column===y).length}`:void 0,depth:h,index:g.length});_.subHeaders.push(m),g.push(_)}p.headers.push(m),m.headerGroup=p}),l.push(p),h>0&&c(g,h-1)},u=t.map((d,h)=>ua(n,d,{depth:r,index:h}));c(u,r-1),l.reverse();const f=d=>d.filter(p=>p.column.getIsVisible()).map(p=>{let g=0,m=0,w=[0];p.subHeaders&&p.subHeaders.length?(w=[],f(p.subHeaders).forEach(y=>{let{colSpan:S,rowSpan:_}=y;g+=S,w.push(_)})):g=1;const x=Math.min(...w);return m=m+x,p.colSpan=g,p.rowSpan=m,{colSpan:g,rowSpan:m}});return f((s=(i=l[0])==null?void 0:i.headers)!=null?s:[]),l}const Iy=(e,t,n,o,s,i,r)=>{let a={id:t,index:o,original:n,depth:s,parentId:r,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return a._valuesCache[l]=c.accessorFn(a.original,o),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=c.columnDef.getUniqueValues(a.original,o),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=a.getValue(l))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>Dy(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],c=a;for(;;){const u=c.getParentRow();if(!u)break;l.push(u),c=u}return l.reverse()},getAllCells:H(()=>[e.getAllLeafColumns()],l=>l.map(c=>ky(e,a,c,c.id)),W(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:H(()=>[a.getAllCells()],l=>l.reduce((c,u)=>(c[u.column.id]=u,c),{}),W(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const c=e._features[l];c==null||c.createRow==null||c.createRow(a,e)}return a},jy={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Dc=(e,t,n)=>{var o,s;const i=n==null||(o=n.toString())==null?void 0:o.toLowerCase();return!!(!((s=e.getValue(t))==null||(s=s.toString())==null||(s=s.toLowerCase())==null)&&s.includes(i))};Dc.autoRemove=e=>De(e);const kc=(e,t,n)=>{var o;return!!(!((o=e.getValue(t))==null||(o=o.toString())==null)&&o.includes(n))};kc.autoRemove=e=>De(e);const Fc=(e,t,n)=>{var o;return((o=e.getValue(t))==null||(o=o.toString())==null?void 0:o.toLowerCase())===n?.toLowerCase()};Fc.autoRemove=e=>De(e);const Lc=(e,t,n)=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(n)};Lc.autoRemove=e=>De(e);const Ic=(e,t,n)=>!n.some(o=>{var s;return!((s=e.getValue(t))!=null&&s.includes(o))});Ic.autoRemove=e=>De(e)||!(e!=null&&e.length);const jc=(e,t,n)=>n.some(o=>{var s;return(s=e.getValue(t))==null?void 0:s.includes(o)});jc.autoRemove=e=>De(e)||!(e!=null&&e.length);const $c=(e,t,n)=>e.getValue(t)===n;$c.autoRemove=e=>De(e);const Oc=(e,t,n)=>e.getValue(t)==n;Oc.autoRemove=e=>De(e);const mi=(e,t,n)=>{let[o,s]=n;const i=e.getValue(t);return i>=o&&i<=s};mi.resolveFilterValue=e=>{let[t,n]=e,o=typeof t!="number"?parseFloat(t):t,s=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(o)?-1/0:o,r=n===null||Number.isNaN(s)?1/0:s;if(i>r){const a=i;i=r,r=a}return[i,r]};mi.autoRemove=e=>De(e)||De(e[0])&&De(e[1]);const Oe={includesString:Dc,includesStringSensitive:kc,equalsString:Fc,arrIncludes:Lc,arrIncludesAll:Ic,arrIncludesSome:jc,equals:$c,weakEquals:Oc,inNumberRange:mi};function De(e){return e==null||e===""}const $y={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ce("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=n?.getValue(e.id);return typeof o=="string"?Oe.includesString:typeof o=="number"?Oe.inNumberRange:typeof o=="boolean"||o!==null&&typeof o=="object"?Oe.equals:Array.isArray(o)?Oe.arrIncludes:Oe.weakEquals},e.getFilterFn=()=>{var n,o;return no(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(o=t.options.filterFns)==null?void 0:o[e.columnDef.filterFn])!=null?n:Oe[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,s;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((o=t.options.enableColumnFilters)!=null?o:!0)&&((s=t.options.enableFilters)!=null?s:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(o=>o.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,o;return(n=(o=t.getState().columnFilters)==null?void 0:o.findIndex(s=>s.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(o=>{const s=e.getFilterFn(),i=o?.find(u=>u.id===e.id),r=qe(n,i?i.value:void 0);if(da(s,r,e)){var a;return(a=o?.filter(u=>u.id!==e.id))!=null?a:[]}const l={id:e.id,value:r};if(i){var c;return(c=o?.map(u=>u.id===e.id?l:u))!=null?c:[]}return o!=null&&o.length?[...o,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),o=s=>{var i;return(i=qe(t,s))==null?void 0:i.filter(r=>{const a=n.find(l=>l.id===r.id);if(a){const l=a.getFilterFn();if(da(l,r.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(o)},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:(n=(o=e.initialState)==null?void 0:o.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function da(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Oy=(e,t,n)=>n.reduce((o,s)=>{const i=s.getValue(e);return o+(typeof i=="number"?i:0)},0),Ny=(e,t,n)=>{let o;return n.forEach(s=>{const i=s.getValue(e);i!=null&&(o>i||o===void 0&&i>=i)&&(o=i)}),o},By=(e,t,n)=>{let o;return n.forEach(s=>{const i=s.getValue(e);i!=null&&(o<i||o===void 0&&i>=i)&&(o=i)}),o},zy=(e,t,n)=>{let o,s;return n.forEach(i=>{const r=i.getValue(e);r!=null&&(o===void 0?r>=r&&(o=s=r):(o>r&&(o=r),s<r&&(s=r)))}),[o,s]},Hy=(e,t)=>{let n=0,o=0;if(t.forEach(s=>{let i=s.getValue(e);i!=null&&(i=+i)>=i&&(++n,o+=i)}),n)return o/n},Wy=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!Vy(n))return;if(n.length===1)return n[0];const o=Math.floor(n.length/2),s=n.sort((i,r)=>i-r);return n.length%2!==0?s[o]:(s[o-1]+s[o])/2},Gy=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),Uy=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,Ky=(e,t)=>t.length,Do={sum:Oy,min:Ny,max:By,extent:zy,mean:Hy,median:Wy,unique:Gy,uniqueCount:Uy,count:Ky},qy={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Ce("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(o=>o!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,o;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((o=t.options.enableGrouping)!=null?o:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=n?.getValue(e.id);if(typeof o=="number")return Do.sum;if(Object.prototype.toString.call(o)==="[object Date]")return Do.extent},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return no(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(o=t.options.aggregationFns)==null?void 0:o[e.columnDef.aggregationFn])!=null?n:Do[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:(n=(o=e.initialState)==null?void 0:o.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return o!=null&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var s;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((s=n.subRows)!=null&&s.length)}}};function Xy(e,t,n){if(!(t!=null&&t.length)||!n)return e;const o=e.filter(i=>!t.includes(i.id));return n==="remove"?o:[...t.map(i=>e.find(r=>r.id===i)).filter(Boolean),...o]}const Yy={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ce("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=H(n=>[qt(t,n)],n=>n.findIndex(o=>o.id===e.id),W(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var o;return((o=qt(t,n)[0])==null?void 0:o.id)===e.id},e.getIsLastColumn=n=>{var o;const s=qt(t,n);return((o=s[s.length-1])==null?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=H(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,o)=>s=>{let i=[];if(!(t!=null&&t.length))i=s;else{const r=[...t],a=[...s];for(;a.length&&r.length;){const l=r.shift(),c=a.findIndex(u=>u.id===l);c>-1&&i.push(a.splice(c,1)[0])}i=[...i,...a]}return Xy(i,n,o)},W(e.options,"debugTable","_getOrderColumnsFn"))}},ko=()=>({left:[],right:[]}),Zy={getInitialState:e=>({columnPinning:ko(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Ce("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map(s=>s.id).filter(Boolean);t.setColumnPinning(s=>{var i,r;if(n==="right"){var a,l;return{left:((a=s?.left)!=null?a:[]).filter(f=>!(o!=null&&o.includes(f))),right:[...((l=s?.right)!=null?l:[]).filter(f=>!(o!=null&&o.includes(f))),...o]}}if(n==="left"){var c,u;return{left:[...((c=s?.left)!=null?c:[]).filter(f=>!(o!=null&&o.includes(f))),...o],right:((u=s?.right)!=null?u:[]).filter(f=>!(o!=null&&o.includes(f)))}}return{left:((i=s?.left)!=null?i:[]).filter(f=>!(o!=null&&o.includes(f))),right:((r=s?.right)!=null?r:[]).filter(f=>!(o!=null&&o.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(o=>{var s,i,r;return((s=o.columnDef.enablePinning)!=null?s:!0)&&((i=(r=t.options.enableColumnPinning)!=null?r:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(a=>a.id),{left:o,right:s}=t.getState().columnPinning,i=n.some(a=>o?.includes(a)),r=n.some(a=>s?.includes(a));return i?"left":r?"right":!1},e.getPinnedIndex=()=>{var n,o;const s=e.getIsPinned();return s?(n=(o=t.getState().columnPinning)==null||(o=o[s])==null?void 0:o.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=H(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,o,s)=>{const i=[...o??[],...s??[]];return n.filter(r=>!i.includes(r.column.id))},W(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=H(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,o)=>(o??[]).map(i=>n.find(r=>r.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),W(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=H(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,o)=>(o??[]).map(i=>n.find(r=>r.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),W(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?ko():(n=(o=e.initialState)==null?void 0:o.columnPinning)!=null?n:ko())},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;if(!t){var s,i;return!!((s=o.left)!=null&&s.length||(i=o.right)!=null&&i.length)}return!!((n=o[t])!=null&&n.length)},e.getLeftLeafColumns=H(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(o=>t.find(s=>s.id===o)).filter(Boolean),W(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=H(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(o=>t.find(s=>s.id===o)).filter(Boolean),W(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=H(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o)=>{const s=[...n??[],...o??[]];return t.filter(i=>!s.includes(i.id))},W(e.options,"debugColumns","getCenterLeafColumns"))}};function Jy(e){return e||(typeof document<"u"?document:null)}const Cn={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Fo=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Qy={getDefaultColumnDef:()=>Cn,getInitialState:e=>({columnSizing:{},columnSizingInfo:Fo(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ce("columnSizing",e),onColumnSizingInfoChange:Ce("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,s;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Cn.minSize,(o=i??e.columnDef.size)!=null?o:Cn.size),(s=e.columnDef.maxSize)!=null?s:Cn.maxSize)},e.getStart=H(n=>[n,qt(t,n),t.getState().columnSizing],(n,o)=>o.slice(0,e.getIndex(n)).reduce((s,i)=>s+i.getSize(),0),W(t.options,"debugColumns","getStart")),e.getAfter=H(n=>[n,qt(t,n),t.getState().columnSizing],(n,o)=>o.slice(e.getIndex(n)+1).reduce((s,i)=>s+i.getSize(),0),W(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:o,...s}=n;return s})},e.getCanResize=()=>{var n,o;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((o=t.options.enableColumnResizing)!=null?o:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const o=s=>{if(s.subHeaders.length)s.subHeaders.forEach(o);else{var i;n+=(i=s.column.getSize())!=null?i:0}};return o(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const o=t.getColumn(e.column.id),s=o?.getCanResize();return i=>{if(!o||!s||(i.persist==null||i.persist(),Lo(i)&&i.touches&&i.touches.length>1))return;const r=e.getSize(),a=e?e.getLeafHeaders().map(w=>[w.column.id,w.column.getSize()]):[[o.id,o.getSize()]],l=Lo(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(w,x)=>{typeof x=="number"&&(t.setColumnSizingInfo(y=>{var S,_;const M=t.options.columnResizeDirection==="rtl"?-1:1,T=(x-((S=y?.startOffset)!=null?S:0))*M,P=Math.max(T/((_=y?.startSize)!=null?_:0),-.999999);return y.columnSizingStart.forEach(D=>{let[F,j]=D;c[F]=Math.round(Math.max(j+j*P,0)*100)/100}),{...y,deltaOffset:T,deltaPercentage:P}}),(t.options.columnResizeMode==="onChange"||w==="end")&&t.setColumnSizing(y=>({...y,...c})))},f=w=>u("move",w),d=w=>{u("end",w),t.setColumnSizingInfo(x=>({...x,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=Jy(n),p={moveHandler:w=>f(w.clientX),upHandler:w=>{h?.removeEventListener("mousemove",p.moveHandler),h?.removeEventListener("mouseup",p.upHandler),d(w.clientX)}},g={moveHandler:w=>(w.cancelable&&(w.preventDefault(),w.stopPropagation()),f(w.touches[0].clientX),!1),upHandler:w=>{var x;h?.removeEventListener("touchmove",g.moveHandler),h?.removeEventListener("touchend",g.upHandler),w.cancelable&&(w.preventDefault(),w.stopPropagation()),d((x=w.touches[0])==null?void 0:x.clientX)}},m=e0()?{passive:!1}:!1;Lo(i)?(h?.addEventListener("touchmove",g.moveHandler,m),h?.addEventListener("touchend",g.upHandler,m)):(h?.addEventListener("mousemove",p.moveHandler,m),h?.addEventListener("mouseup",p.upHandler,m)),t.setColumnSizingInfo(w=>({...w,startOffset:l,startSize:r,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:o.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Fo():(n=e.initialState.columnSizingInfo)!=null?n:Fo())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((o,s)=>o+s.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((o,s)=>o+s.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((o,s)=>o+s.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((o,s)=>o+s.getSize(),0))!=null?t:0}}};let Sn=null;function e0(){if(typeof Sn=="boolean")return Sn;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Sn=e,Sn}function Lo(e){return e.type==="touchstart"}const t0={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ce("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(o=>({...o,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,o;const s=e.columns;return(n=s.length?s.some(i=>i.getIsVisible()):(o=t.getState().columnVisibility)==null?void 0:o[e.id])!=null?n:!0},e.getCanHide=()=>{var n,o;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((o=t.options.enableHiding)!=null?o:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=H(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(o=>o.column.getIsVisible()),W(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=H(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,o,s)=>[...n,...o,...s],W(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,o)=>H(()=>[o(),o().filter(s=>s.getIsVisible()).map(s=>s.id).join("_")],s=>s.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),W(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var o;e.setColumnVisibility(n?{}:(o=e.initialState.columnVisibility)!=null?o:{})},e.toggleAllColumnsVisible=n=>{var o;n=(o=n)!=null?o:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((s,i)=>({...s,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var o;e.toggleAllColumnsVisible((o=n.target)==null?void 0:o.checked)}}};function qt(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const n0={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},o0={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Ce("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,o,s,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((o=t.options.enableGlobalFilter)!=null?o:!0)&&((s=t.options.enableFilters)!=null?s:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Oe.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return no(o)?o:o==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[o])!=null?t:Oe[o]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},s0={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ce("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,s;if(!t){e._queue(()=>{t=!0});return}if((o=(s=e.options.autoResetAll)!=null?s:e.options.autoResetExpanded)!=null?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=o=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(o),e.toggleAllRowsExpanded=o=>{o??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=o=>{var s,i;e.setExpanded(o?{}:(s=(i=e.initialState)==null?void 0:i.expanded)!=null?s:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(o=>o.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>o=>{o.persist==null||o.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const o=e.getState().expanded;return o===!0||Object.values(o).some(Boolean)},e.getIsAllRowsExpanded=()=>{const o=e.getState().expanded;return typeof o=="boolean"?o===!0:!(!Object.keys(o).length||e.getRowModel().flatRows.some(s=>!s.getIsExpanded()))},e.getExpandedDepth=()=>{let o=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const r=i.split(".");o=Math.max(o,r.length)}),o},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(o=>{var s;const i=o===!0?!0:!!(o!=null&&o[e.id]);let r={};if(o===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{r[a]=!0}):r=o,n=(s=n)!=null?s:!i,!i&&n)return{...r,[e.id]:!0};if(i&&!n){const{[e.id]:a,...l}=r;return l}return o})},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:o===!0||o?.[e.id])},e.getCanExpand=()=>{var n,o,s;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((o=t.options.enableExpanding)!=null?o:!0)&&!!((s=e.subRows)!=null&&s.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},ps=0,ms=10,Io=()=>({pageIndex:ps,pageSize:ms}),i0={getInitialState:e=>({...e,pagination:{...Io(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ce("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,s;if(!t){e._queue(()=>{t=!0});return}if((o=(s=e.options.autoResetAll)!=null?s:e.options.autoResetPageIndex)!=null?o:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=o=>{const s=i=>qe(o,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(s)},e.resetPagination=o=>{var s;e.setPagination(o?Io():(s=e.initialState.pagination)!=null?s:Io())},e.setPageIndex=o=>{e.setPagination(s=>{let i=qe(o,s.pageIndex);const r=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,r)),{...s,pageIndex:i}})},e.resetPageIndex=o=>{var s,i;e.setPageIndex(o?ps:(s=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?s:ps)},e.resetPageSize=o=>{var s,i;e.setPageSize(o?ms:(s=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?s:ms)},e.setPageSize=o=>{e.setPagination(s=>{const i=Math.max(1,qe(o,s.pageSize)),r=s.pageSize*s.pageIndex,a=Math.floor(r/i);return{...s,pageIndex:a,pageSize:i}})},e.setPageCount=o=>e.setPagination(s=>{var i;let r=qe(o,(i=e.options.pageCount)!=null?i:-1);return typeof r=="number"&&(r=Math.max(-1,r)),{...s,pageCount:r}}),e.getPageOptions=H(()=>[e.getPageCount()],o=>{let s=[];return o&&o>0&&(s=[...new Array(o)].fill(null).map((i,r)=>r)),s},W(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:o}=e.getState().pagination,s=e.getPageCount();return s===-1?!0:s===0?!1:o<s-1},e.previousPage=()=>e.setPageIndex(o=>o-1),e.nextPage=()=>e.setPageIndex(o=>o+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var o;return(o=e.options.pageCount)!=null?o:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var o;return(o=e.options.rowCount)!=null?o:e.getPrePaginationRowModel().rows.length}}},jo=()=>({top:[],bottom:[]}),r0={getInitialState:e=>({rowPinning:jo(),...e}),getDefaultOptions:e=>({onRowPinningChange:Ce("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,o,s)=>{const i=o?e.getLeafRows().map(l=>{let{id:c}=l;return c}):[],r=s?e.getParentRows().map(l=>{let{id:c}=l;return c}):[],a=new Set([...r,e.id,...i]);t.setRowPinning(l=>{var c,u;if(n==="bottom"){var f,d;return{top:((f=l?.top)!=null?f:[]).filter(g=>!(a!=null&&a.has(g))),bottom:[...((d=l?.bottom)!=null?d:[]).filter(g=>!(a!=null&&a.has(g))),...Array.from(a)]}}if(n==="top"){var h,p;return{top:[...((h=l?.top)!=null?h:[]).filter(g=>!(a!=null&&a.has(g))),...Array.from(a)],bottom:((p=l?.bottom)!=null?p:[]).filter(g=>!(a!=null&&a.has(g)))}}return{top:((c=l?.top)!=null?c:[]).filter(g=>!(a!=null&&a.has(g))),bottom:((u=l?.bottom)!=null?u:[]).filter(g=>!(a!=null&&a.has(g)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:s}=t.options;return typeof o=="function"?o(e):(n=o??s)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:s}=t.getState().rowPinning,i=n.some(a=>o?.includes(a)),r=n.some(a=>s?.includes(a));return i?"top":r?"bottom":!1},e.getPinnedIndex=()=>{var n,o;const s=e.getIsPinned();if(!s)return-1;const i=(n=s==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(r=>{let{id:a}=r;return a});return(o=i?.indexOf(e.id))!=null?o:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?jo():(n=(o=e.initialState)==null?void 0:o.rowPinning)!=null?n:jo())},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;if(!t){var s,i;return!!((s=o.top)!=null&&s.length||(i=o.bottom)!=null&&i.length)}return!!((n=o[t])!=null&&n.length)},e._getPinnedRows=(t,n,o)=>{var s;return((s=e.options.keepPinnedRows)==null||s?(n??[]).map(r=>{const a=e.getRow(r,!0);return a.getIsAllParentsExpanded()?a:null}):(n??[]).map(r=>t.find(a=>a.id===r))).filter(Boolean).map(r=>({...r,position:o}))},e.getTopRows=H(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),W(e.options,"debugRows","getTopRows")),e.getBottomRows=H(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),W(e.options,"debugRows","getBottomRows")),e.getCenterRows=H(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,o)=>{const s=new Set([...n??[],...o??[]]);return t.filter(i=>!s.has(i.id))},W(e.options,"debugRows","getCenterRows"))}},a0={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ce("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const o={...n},s=e.getPreGroupedRowModel().flatRows;return t?s.forEach(i=>{i.getCanSelect()&&(o[i.id]=!0)}):s.forEach(i=>{delete o[i.id]}),o})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),s={...n};return e.getRowModel().rows.forEach(i=>{vs(s,i.id,o,!0,e)}),s}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=H(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?$o(e,n):{rows:[],flatRows:[],rowsById:{}},W(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=H(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?$o(e,n):{rows:[],flatRows:[],rowsById:{}},W(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=H(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?$o(e,n):{rows:[],flatRows:[],rowsById:{}},W(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=!!(t.length&&Object.keys(n).length);return o&&t.some(s=>s.getCanSelect()&&!n[s.id])&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(s=>s.getCanSelect()),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some(s=>!n[s.id])&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,o)=>{const s=e.getIsSelected();t.setRowSelection(i=>{var r;if(n=typeof n<"u"?n:!s,e.getCanSelect()&&s===n)return i;const a={...i};return vs(a,e.id,n,(r=o?.selectChildren)!=null?r:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return vi(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return ys(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return ys(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return o=>{var s;n&&e.toggleSelected((s=o.target)==null?void 0:s.checked)}}}},vs=(e,t,n,o,s)=>{var i;const r=s.getRow(t,!0);n?(r.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),r.getCanSelect()&&(e[t]=!0)):delete e[t],o&&(i=r.subRows)!=null&&i.length&&r.getCanSelectSubRows()&&r.subRows.forEach(a=>vs(e,a.id,n,o,s))};function $o(e,t){const n=e.getState().rowSelection,o=[],s={},i=function(r,a){return r.map(l=>{var c;const u=vi(l,n);if(u&&(o.push(l),s[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:i(l.subRows)}),u)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:o,rowsById:s}}function vi(e,t){var n;return(n=t[e.id])!=null?n:!1}function ys(e,t,n){var o;if(!((o=e.subRows)!=null&&o.length))return!1;let s=!0,i=!1;return e.subRows.forEach(r=>{if(!(i&&!s)&&(r.getCanSelect()&&(vi(r,t)?i=!0:s=!1),r.subRows&&r.subRows.length)){const a=ys(r,t);a==="all"?i=!0:(a==="some"&&(i=!0),s=!1)}}),s?"all":i?"some":!1}const ws=/([0-9]+)/gm,l0=(e,t,n)=>Nc(et(e.getValue(n)).toLowerCase(),et(t.getValue(n)).toLowerCase()),c0=(e,t,n)=>Nc(et(e.getValue(n)),et(t.getValue(n))),u0=(e,t,n)=>yi(et(e.getValue(n)).toLowerCase(),et(t.getValue(n)).toLowerCase()),d0=(e,t,n)=>yi(et(e.getValue(n)),et(t.getValue(n))),f0=(e,t,n)=>{const o=e.getValue(n),s=t.getValue(n);return o>s?1:o<s?-1:0},h0=(e,t,n)=>yi(e.getValue(n),t.getValue(n));function yi(e,t){return e===t?0:e>t?1:-1}function et(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Nc(e,t){const n=e.split(ws).filter(Boolean),o=t.split(ws).filter(Boolean);for(;n.length&&o.length;){const s=n.shift(),i=o.shift(),r=parseInt(s,10),a=parseInt(i,10),l=[r,a].sort();if(isNaN(l[0])){if(s>i)return 1;if(i>s)return-1;continue}if(isNaN(l[1]))return isNaN(r)?-1:1;if(r>a)return 1;if(a>r)return-1}return n.length-o.length}const Ht={alphanumeric:l0,alphanumericCaseSensitive:c0,text:u0,textCaseSensitive:d0,datetime:f0,basic:h0},g0={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ce("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const s of n){const i=s?.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return Ht.datetime;if(typeof i=="string"&&(o=!0,i.split(ws).length>1))return Ht.alphanumeric}return o?Ht.text:Ht.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return no(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(o=t.options.sortingFns)==null?void 0:o[e.columnDef.sortingFn])!=null?n:Ht[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const s=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(r=>{const a=r?.find(h=>h.id===e.id),l=r?.findIndex(h=>h.id===e.id);let c=[],u,f=i?n:s==="desc";if(r!=null&&r.length&&e.getCanMultiSort()&&o?a?u="toggle":u="add":r!=null&&r.length&&l!==r.length-1?u="replace":a?u="toggle":u="replace",u==="toggle"&&(i||s||(u="remove")),u==="add"){var d;c=[...r,{id:e.id,desc:f}],c.splice(0,c.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else u==="toggle"?c=r.map(h=>h.id===e.id?{...h,desc:f}:h):u==="remove"?c=r.filter(h=>h.id!==e.id):c=[{id:e.id,desc:f}];return c})},e.getFirstSortDir=()=>{var n,o;return((n=(o=e.columnDef.sortDescFirst)!=null?o:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var o,s;const i=e.getFirstSortDir(),r=e.getIsSorted();return r?r!==i&&((o=t.options.enableSortingRemoval)==null||o)&&(!(n&&(s=t.options.enableMultiRemove)!=null)||s)?!1:r==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,o;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((o=t.options.enableSorting)!=null?o:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return(n=(o=e.columnDef.enableMultiSort)!=null?o:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=(n=t.getState().sorting)==null?void 0:n.find(s=>s.id===e.id);return o?o.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,o;return(n=(o=t.getState().sorting)==null?void 0:o.findIndex(s=>s.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(o=>o.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(o.persist==null||o.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(o):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:(n=(o=e.initialState)==null?void 0:o.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},p0=[Ly,t0,Yy,Zy,jy,$y,n0,o0,g0,qy,s0,i0,r0,a0,Qy];function m0(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const o=[...p0,...(t=e._features)!=null?t:[]];let s={_features:o};const i=s._features.reduce((d,h)=>Object.assign(d,h.getDefaultOptions==null?void 0:h.getDefaultOptions(s)),{}),r=d=>s.options.mergeOptions?s.options.mergeOptions(i,d):{...i,...d};let l={...{},...(n=e.initialState)!=null?n:{}};s._features.forEach(d=>{var h;l=(h=d.getInitialState==null?void 0:d.getInitialState(l))!=null?h:l});const c=[];let u=!1;const f={_features:o,options:{...i,...e},initialState:l,_queue:d=>{c.push(d),u||(u=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();u=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{s.setState(s.initialState)},setOptions:d=>{const h=qe(d,s.options);s.options=r(h)},getState:()=>s.options.state,setState:d=>{s.options.onStateChange==null||s.options.onStateChange(d)},_getRowId:(d,h,p)=>{var g;return(g=s.options.getRowId==null?void 0:s.options.getRowId(d,h,p))!=null?g:`${p?[p.id,h].join("."):h}`},getCoreRowModel:()=>(s._getCoreRowModel||(s._getCoreRowModel=s.options.getCoreRowModel(s)),s._getCoreRowModel()),getRowModel:()=>s.getPaginationRowModel(),getRow:(d,h)=>{let p=(h?s.getPrePaginationRowModel():s.getRowModel()).rowsById[d];if(!p&&(p=s.getCoreRowModel().rowsById[d],!p))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${d}`):new Error;return p},_getDefaultColumnDef:H(()=>[s.options.defaultColumn],d=>{var h;return d=(h=d)!=null?h:{},{header:p=>{const g=p.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:p=>{var g,m;return(g=(m=p.renderValue())==null||m.toString==null?void 0:m.toString())!=null?g:null},...s._features.reduce((p,g)=>Object.assign(p,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...d}},W(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>s.options.columns,getAllColumns:H(()=>[s._getColumnDefs()],d=>{const h=function(p,g,m){return m===void 0&&(m=0),p.map(w=>{const x=Fy(s,w,m,g),y=w;return x.columns=y.columns?h(y.columns,x,m+1):[],x})};return h(d)},W(e,"debugColumns","getAllColumns")),getAllFlatColumns:H(()=>[s.getAllColumns()],d=>d.flatMap(h=>h.getFlatColumns()),W(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:H(()=>[s.getAllFlatColumns()],d=>d.reduce((h,p)=>(h[p.id]=p,h),{}),W(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:H(()=>[s.getAllColumns(),s._getOrderColumnsFn()],(d,h)=>{let p=d.flatMap(g=>g.getLeafColumns());return h(p)},W(e,"debugColumns","getAllLeafColumns")),getColumn:d=>{const h=s._getAllFlatColumnsById()[d];return process.env.NODE_ENV!=="production"&&!h&&console.error(`[Table] Column with id '${d}' does not exist.`),h}};Object.assign(s,f);for(let d=0;d<s._features.length;d++){const h=s._features[d];h==null||h.createTable==null||h.createTable(s)}return s}function v0(){return e=>H(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(s,i,r){i===void 0&&(i=0);const a=[];for(let c=0;c<s.length;c++){const u=Iy(e,e._getRowId(s[c],c,r),s[c],c,i,void 0,r?.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows){var l;u.originalSubRows=e.options.getSubRows(s[c],c),(l=u.originalSubRows)!=null&&l.length&&(u.subRows=o(u.originalSubRows,i+1,u))}}return a};return n.rows=o(t),n},W(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function y0(e){const t=[],n=o=>{var s;t.push(o),(s=o.subRows)!=null&&s.length&&o.getIsExpanded()&&o.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function w0(e){return t=>H(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,o)=>{if(!o.rows.length)return o;const{pageSize:s,pageIndex:i}=n;let{rows:r,flatRows:a,rowsById:l}=o;const c=s*i,u=c+s;r=r.slice(c,u);let f;t.options.paginateExpandedRows?f={rows:r,flatRows:a,rowsById:l}:f=y0({rows:r,flatRows:a,rowsById:l}),f.flatRows=[];const d=h=>{f.flatRows.push(h),h.subRows.length&&h.subRows.forEach(d)};return f.rows.forEach(d),f},W(t.options,"debugTable","getPaginationRowModel"))}function x0(){return e=>H(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const o=e.getState().sorting,s=[],i=o.filter(l=>{var c;return(c=e.getColumn(l.id))==null?void 0:c.getCanSort()}),r={};i.forEach(l=>{const c=e.getColumn(l.id);c&&(r[l.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const a=l=>{const c=l.map(u=>({...u}));return c.sort((u,f)=>{for(let h=0;h<i.length;h+=1){var d;const p=i[h],g=r[p.id],m=g.sortUndefined,w=(d=p?.desc)!=null?d:!1;let x=0;if(m){const y=u.getValue(p.id),S=f.getValue(p.id),_=y===void 0,M=S===void 0;if(_||M){if(m==="first")return _?-1:1;if(m==="last")return _?1:-1;x=_&&M?0:_?m:-m}}if(x===0&&(x=g.sortingFn(u,f,p.id)),x!==0)return w&&(x*=-1),g.invertSorting&&(x*=-1),x}return u.index-f.index}),c.forEach(u=>{var f;s.push(u),(f=u.subRows)!=null&&f.length&&(u.subRows=a(u.subRows))}),c};return{rows:a(n.rows),flatRows:s,rowsById:n.rowsById}},W(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function fa(e,t){return e?C0(e)?b.createElement(e,t):e:null}function C0(e){return S0(e)||typeof e=="function"||b0(e)}function S0(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function b0(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function _0(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=b.useState(()=>({current:m0(t)})),[o,s]=b.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...o,...e.state},onStateChange:r=>{s(r),e.onStateChange==null||e.onStateChange(r)}})),n.current}const R0=e=>b.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("style",null,`
|
|
38
16
|
@keyframes spin {
|
|
39
17
|
from {
|
|
40
18
|
transform: rotate(0deg);
|
|
@@ -47,232 +25,15 @@
|
|
|
47
25
|
transform-origin: center;
|
|
48
26
|
animation: spin 1s linear infinite;
|
|
49
27
|
}
|
|
50
|
-
`),Re.createElement("g",{className:"spinner"},Re.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0003 6.83317C13.5692 6.83317 11.2376 7.79894 9.51851 9.51803C7.79943 11.2371 6.83366 13.5687 6.83366 15.9998C6.83366 18.431 7.79943 20.7626 9.51851 22.4817C11.2376 24.2007 13.5692 25.1665 16.0003 25.1665C18.4315 25.1665 20.7631 24.2007 22.4821 22.4817C24.2012 20.7626 25.167 18.431 25.167 15.9998C25.167 13.5687 24.2012 11.2371 22.4821 9.51803C20.7631 7.79894 18.4315 6.83317 16.0003 6.83317ZM3.16699 15.9998C3.16699 8.91217 8.91266 3.1665 16.0003 3.1665C23.088 3.1665 28.8337 8.91217 28.8337 15.9998C28.8337 23.0875 23.088 28.8332 16.0003 28.8332C8.91266 28.8332 3.16699 23.0875 3.16699 15.9998Z",fill:"currentColor",fillOpacity:.12}),Re.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9997 6.83319C13.6363 6.82787 11.3633 7.74068 9.65999 9.37907C9.30711 9.70535 8.84021 9.88001 8.35982 9.86545C7.87943 9.85089 7.42396 9.64827 7.09149 9.30122C6.75902 8.95416 6.57612 8.49043 6.58218 8.00985C6.58823 7.52928 6.78276 7.07031 7.12388 6.73174C9.50956 4.43941 12.6912 3.16143 15.9997 3.16652C16.4859 3.16652 16.9522 3.35967 17.296 3.70349C17.6398 4.04731 17.833 4.51362 17.833 4.99985C17.833 5.48608 17.6398 5.9524 17.296 6.29621C16.9522 6.64003 16.4859 6.83319 15.9997 6.83319Z",fill:"currentColor"}))),IL=n=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("g",{clipPath:"url(#clip0_2074_3858)"},Re.createElement("path",{d:"M21 21L16.65 16.65M19 11C19 15.4183 15.4183 19 11 19C6.58172 19 3 15.4183 3 11C3 6.58172 6.58172 3 11 3C15.4183 3 19 6.58172 19 11Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Re.createElement("defs",null,Re.createElement("clipPath",{id:"clip0_2074_3858"},Re.createElement("rect",{width:24,height:24,fill:"white"})))),DL="_table_19yhs_8",BL={table:DL},lE=ge.forwardRef(({children:n,className:e,style:t,...i},r)=>ae.jsx("td",{ref:r,className:Je.cx(e),style:t,...i,children:n}));lE.displayName="TableBodyCell";const cE=ge.forwardRef(({children:n,row:e=!0,justifyContent:t="flex-start",alignItems:i="center",py:r="var(--spacing-sm)",px:o="var(--spacing-md)",minHeight:s="56px",...a},l)=>ae.jsx(et,{row:e,justifyContent:t,alignItems:i,py:r,px:o,minHeight:s,ref:l,...a,children:n}));cE.displayName="TableBodyCellContent";const uE=ge.forwardRef(({children:n,className:e,showBorders:t=!1,isSelected:i=!1,...r},o)=>{const s=Je.css({borderBottom:t?"1px solid var(--border-neutral-alpha-low)":"none"});return ae.jsx("tr",{ref:o,className:Je.cx(s,e),...r,children:n})});uE.displayName="TableBodyRow";const NL=ge.forwardRef(({children:n,className:e,style:t,justifyContent:i="flex-start",alignItems:r="flex-start",...o},s)=>{const a=Je.css({justifyContent:i,alignItems:r,fontWeight:"inherit"});return ae.jsx("th",{ref:s,className:Je.cx(a,e),style:t,...o,children:n})}),R0=ge.forwardRef(({children:n,row:e=!0,justifyContent:t="flex-start",alignItems:i="center",py:r="var(--spacing-sm)",px:o="var(--spacing-md)",minHeight:s="56px",...a},l)=>ae.jsx(et,{row:e,justifyContent:t,alignItems:i,py:r,px:o,minHeight:s,ref:l,...a,children:n}));R0.displayName="TableHeadCellContent";const zL=n=>Re.createElement("svg",{width:10,height:6,viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("path",{d:"M8.75 0.75L4.75 4.75L0.75 0.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),HL=n=>Re.createElement("svg",{width:10,height:6,viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("path",{d:"M8.75 4.75L4.75 0.75L0.75 4.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),WL=({sortDirection:n,gap:e="5px",...t})=>ae.jsxs(et,{gap:e,...t,children:[ae.jsx(HL,{style:{color:n==="asc"?"var(--icon-accent)":"var(--icon-tertiary)"}}),ae.jsx(zL,{style:{color:n==="desc"?"var(--icon-accent)":"var(--icon-tertiary)"}})]}),hE=({children:n,tableProps:e,gap:t="10px",...i})=>{const r=e.column.getIsSorted();return ae.jsxs(R0,{style:{cursor:"pointer",userSelect:"none"},gap:t,...i,children:[n,ae.jsx(WL,{sortDirection:r})]})};hE.displayName="TableHeadCellContentSortable";const fE=ge.forwardRef(({children:n,className:e,showBorders:t=!1,...i},r)=>{const o=Je.css({backgroundColor:"var(--fill-bg-secondary)",borderBottom:t?"1px solid var(--border-neutral-alpha-low)":"none"});return ae.jsx("tr",{ref:r,className:Je.cx(o,e),...i,children:n})});fE.displayName="TableHeadRow";const VL=n=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("path",{d:"M15 18L9 12L15 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),GL=n=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),UL=n=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),Re.createElement("path",{d:"M19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),Re.createElement("path",{d:"M5 13C5.55228 13 6 12.5523 6 12C6 11.4477 5.55228 11 5 11C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),XL=(n,e)=>{const t=[];if(e<=10){for(let o=1;o<=e;o++)t.push(o);return t}const i=2,r=[];for(let o=Math.max(2,n+1-i);o<=Math.min(e-1,n+1+i);o++)r.push(o);return n+1-i>2?t.push(1,"..."):t.push(1),t.push(...r),n+1+i<e-1?t.push("...",e):e>1&&t.push(e),t},YL=({pageIndex:n,pageSize:e,totalCount:t,onPageChange:i,onPageSizeChange:r,pageSizeOptions:o=[10,20,50,100],showPageSizeSelector:s=!0,renderPageSizeSelectorDropdownItem:a=u=>u.label,renderPageSizeSelectorInputItem:l})=>{const u=Math.ceil(t/e),g=n>0,m=n<u-1,b=()=>{g&&i(n-1)},w=()=>{m&&i(n+1)},E=P=>{r(Number(P))},T=XL(n,u);return t===0?null:ae.jsxs(et,{row:!0,justifyContent:"space-between",children:[ae.jsxs(et,{row:!0,gap:"var(--spacing-sm)",children:[ae.jsx(Mg,{onClick:b,disabled:!g,color:"neutral",size:"sm",children:ae.jsx(VL,{})}),ae.jsx(et,{row:!0,gap:"var(--spacing-sm)",children:T.map(P=>ae.jsx(ZL,{isDots:P==="...",isCurrentPage:P===n+1,disabled:P==="...",onClick:()=>i(P-1),children:P},P))}),ae.jsx(Mg,{color:"neutral",size:"sm",onClick:w,disabled:!m,children:ae.jsx(GL,{})})]}),s&&ae.jsx(et,{children:ae.jsx(X1,{value:e.toString(),size:"sm",items:o.map(P=>({value:P.toString(),label:P.toString()})),returnedValue:P=>P.value,renderDropdownItem:a,renderSingleInputItem:l,onChange:P=>E(P)})})]})},ZL=({children:n,isCurrentPage:e=!1,onClick:t,isDots:i=!1,disabled:r=!1})=>{const o=Je.css({cursor:r?"not-allowed":"pointer",userSelect:"none",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e?"var(--fill-accent-secondary)":"var(--fill-bg-secondary)",borderRadius:"var(--corner-sm)",border:e?"1px solid var(--fill-accent-secondary-hover)":"1px solid var(--border-neutral-alpha-basic)"}),s=Je.css({width:"24px",height:"24px",color:e?"var(--icon-secondary)":"var(--icon-tertiary)"});return ae.jsx(et,{className:o,onClick:r?void 0:t,children:i?ae.jsx(UL,{className:s}):ae.jsx(en,{center:!0,variant:"body-2",fontWeight:"medium",children:n})})},KL=Je.css({position:"relative",borderRadius:"var(--corner-md)",overflow:"hidden","&::before, &::after":{content:'""',position:"absolute",top:0,bottom:14,width:96,pointerEvents:"none",zIndex:2,transition:"opacity 0.2s ease"},"&::before":{left:0,background:"linear-gradient(to left, rgba(255, 255, 255, 0.00) 0%, #FFF 100%)"},"&::after":{right:0,background:"linear-gradient(to right, rgba(255, 255, 255, 0.00) 0%, #FFF 100%)"}}),JL=Je.css({overflowX:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--gray-86) var(--gray-96)"}),dE=ge.memo(({data:n,children:e,className:t,showBorders:i=!1,...r})=>{const[o,s]=ge.useState(!1),[a,l]=ge.useState(!1),u=ge.useRef(null),g=ge.useCallback(()=>{const b=u.current;if(!b)return;const{scrollLeft:w,scrollWidth:E,clientWidth:T}=b,P=E>T;s(P&&w>0),l(P&&w<E-T-1)},[]);ge.useEffect(()=>{const b=u.current;if(!b)return;g();const w=new ResizeObserver(g);return w.observe(b),b.addEventListener("scroll",g),()=>{w.disconnect(),b.removeEventListener("scroll",g)}},[g,n]);const m=Je.css({border:i?"1px solid var(--border-neutral-alpha-low)":"transparent","&::before":{opacity:o?1:0},"&::after":{opacity:a?1:0}});return ae.jsx(et,{className:Je.cx(KL,m,t),...r,children:ae.jsx(et,{ref:u,className:JL,children:e})})});dE.displayName="TableWrapper";const QL=Je.css({width:"100%",maxWidth:"100%",minWidth:"max-content",borderCollapse:"collapse",borderSpacing:0,backgroundColor:"var(--fill-bg-primary)"}),jL=Je.css({backgroundColor:"var(--fill-bg-secondary)",color:"var(--text-tertiary)"}),Ud=({ref:n,data:e,columns:t,showBorders:i=!0,enableSorting:r=!1,enablePagination:o=!1,enableRowSelection:s=!1,enableMultiRowSelection:a=!1,sorting:l,onSortingChange:u,columnFilters:g,onColumnFiltersChange:m,columnVisibility:b,onColumnVisibilityChange:w,pagination:E,onPaginationChange:T,rowSelection:P,onRowSelectionChange:M,totalCount:I,loading:L=!1,emptyLabels:H={title:"Nothing found",description:"No results found for “result”",action:"Reset"},loadingLabels:W={title:"Loading...",description:"Please wait or reset your promt",action:"Reset"},className:G,containerClassName:J,tableOptions:Y={},onRowClick:$,getRowId:re,headCellComponent:be=NL,bodyCellComponent:we=lE,headRowComponent:Ee=fE,bodyRowComponent:pe=uE,onReset:me,renderPageSizeSelectorDropdownItem:ee,renderPageSizeSelectorInputItem:q})=>{const[le,Te]=ge.useState([]),[he,ue]=ge.useState([]),[Ne,We]=ge.useState({}),[Qe,_e]=ge.useState({pageIndex:0,pageSize:10}),[Ve,Oe]=ge.useState({}),qe=l??le,je=g??he,it=b??Ne,ct=E??Qe,li=P??Ve,tt=pt=>{const gt=typeof pt=="function"?pt(qe):pt;u?u(gt):Te(gt)},Nt=pt=>{const gt=typeof pt=="function"?pt(je):pt;m?m(gt):ue(gt)},Pt=pt=>{const gt=typeof pt=="function"?pt(it):pt;w?w(gt):We(gt)},pn=pt=>{const gt=typeof pt=="function"?pt(ct):pt;T?T(gt):_e(gt)},Xr=FL({data:e,columns:t,state:{sorting:qe,columnFilters:je,columnVisibility:it,pagination:ct,rowSelection:li},onSortingChange:tt,onColumnFiltersChange:Nt,onColumnVisibilityChange:Pt,onPaginationChange:pn,onRowSelectionChange:pt=>{const gt=typeof pt=="function"?pt(li):pt;M?M(gt):Oe(gt)},getCoreRowModel:RL(),getSortedRowModel:r?ML():void 0,getPaginationRowModel:o?PL():void 0,enableRowSelection:s,enableMultiRowSelection:a,getRowId:re,manualPagination:!!I,pageCount:I?Math.ceil(I/ct.pageSize):void 0,...Y});ge.useImperativeHandle(n,()=>Xr);const{rows:Yn}=Xr.getRowModel(),xi=(pt,gt)=>{$&&$(pt.original,gt)};return L?ae.jsxs(et,{w:"full",borderRadius:"var(--corner-md)",py:"var(--spacing-5xl)",px:"var(--spacing-10xl)",alignItems:"center",className:Je.cx(J),children:[ae.jsx(LL,{width:32,height:32,style:{color:"var(--icon-tertiary)",marginBottom:"var(--spacing-sm)"}}),ae.jsx(en,{mb:"var(--spacing-xs)",variant:"title-3",fontWeight:"semibold",children:W.title}),ae.jsx(en,{mb:"var(--spacing-md)",colorName:"tertiary",variant:"body-1",fontWeight:"medium",children:W.description}),typeof W.action=="string"?ae.jsx(Xy,{width:"auto",onClick:me,intensity:"secondary",color:"accent",children:W.action}):W.action]}):Yn.length?ae.jsxs(et,{w:"full",gap:"var(--spacing-xl)",className:Je.cx(J),children:[ae.jsx(dE,{data:e,showBorders:i,children:ae.jsxs("table",{className:Je.cx(QL,BL.table,G),children:[ae.jsx("thead",{className:jL,children:Xr.getHeaderGroups().map(pt=>ae.jsx(Ee,{showBorders:i,children:pt.headers.map(gt=>ae.jsx(be,{style:{width:gt.getSize()},onClick:gt.column.getToggleSortingHandler(),children:gt.isPlaceholder?null:Ww(gt.column.columnDef.header,gt.getContext())},gt.id))},pt.id))}),ae.jsx("tbody",{children:Yn.map((pt,gt)=>ae.jsx(pe,{showBorders:i,isSelected:pt.getIsSelected(),onClick:()=>xi(pt,gt),children:pt.getVisibleCells().map(or=>ae.jsx(we,{children:Ww(or.column.columnDef.cell,or.getContext())},or.id))},pt.id))})]})}),o&&!L&&ae.jsx(YL,{pageIndex:ct.pageIndex,pageSize:ct.pageSize,totalCount:I||e.length,renderPageSizeSelectorDropdownItem:ee,renderPageSizeSelectorInputItem:q,onPageChange:pt=>pn({...ct,pageIndex:pt}),onPageSizeChange:pt=>pn({...ct,pageSize:pt,pageIndex:0})})]}):ae.jsxs(et,{w:"full",borderRadius:"var(--corner-md)",py:"var(--spacing-5xl)",px:"var(--spacing-10xl)",alignItems:"center",className:Je.cx(J),children:[ae.jsx(IL,{width:24,height:24,style:{color:"var(--icon-tertiary)",marginBottom:"var(--spacing-sm)"}}),ae.jsx(en,{mb:"var(--spacing-xs)",variant:"title-3",fontWeight:"semibold",children:H.title}),ae.jsx(en,{mb:"var(--spacing-md)",colorName:"tertiary",variant:"body-1",fontWeight:"medium",children:H.description}),typeof H.action=="string"?ae.jsx(Xy,{width:"auto",onClick:me,intensity:"secondary",color:"accent",children:H.action}):H.action]})};Ud.displayName="Table";Ud.HeadCellContent=R0;Ud.BodyCellContent=cE;Ud.HeadCellContentSortable=hE;Ud.createColumnHelper=q1;var Bf={},eg={};/**
|
|
51
|
-
* @license React
|
|
52
|
-
* react-dom-server-legacy.browser.production.js
|
|
53
|
-
*
|
|
54
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the MIT license found in the
|
|
57
|
-
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/var Vw;function qL(){if(Vw)return eg;Vw=1;var n=ge,e=rd;function t(v){var x="https://react.dev/errors/"+v;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var k=2;k<arguments.length;k++)x+="&args[]="+encodeURIComponent(arguments[k])}return"Minified React error #"+v+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),T=Symbol.for("react.scope"),P=Symbol.for("react.activity"),M=Symbol.for("react.legacy_hidden"),I=Symbol.for("react.memo_cache_sentinel"),L=Symbol.for("react.view_transition"),H=Symbol.iterator;function W(v){return v===null||typeof v!="object"?null:(v=H&&v[H]||v["@@iterator"],typeof v=="function"?v:null)}var G=Array.isArray;function J(v,x){var k=v.length&3,O=v.length-k,z=x;for(x=0;x<O;){var Z=v.charCodeAt(x)&255|(v.charCodeAt(++x)&255)<<8|(v.charCodeAt(++x)&255)<<16|(v.charCodeAt(++x)&255)<<24;++x,Z=3432918353*(Z&65535)+((3432918353*(Z>>>16)&65535)<<16)&4294967295,Z=Z<<15|Z>>>17,Z=461845907*(Z&65535)+((461845907*(Z>>>16)&65535)<<16)&4294967295,z^=Z,z=z<<13|z>>>19,z=5*(z&65535)+((5*(z>>>16)&65535)<<16)&4294967295,z=(z&65535)+27492+(((z>>>16)+58964&65535)<<16)}switch(Z=0,k){case 3:Z^=(v.charCodeAt(x+2)&255)<<16;case 2:Z^=(v.charCodeAt(x+1)&255)<<8;case 1:Z^=v.charCodeAt(x)&255,Z=3432918353*(Z&65535)+((3432918353*(Z>>>16)&65535)<<16)&4294967295,Z=Z<<15|Z>>>17,z^=461845907*(Z&65535)+((461845907*(Z>>>16)&65535)<<16)&4294967295}return z^=v.length,z^=z>>>16,z=2246822507*(z&65535)+((2246822507*(z>>>16)&65535)<<16)&4294967295,z^=z>>>13,z=3266489909*(z&65535)+((3266489909*(z>>>16)&65535)<<16)&4294967295,(z^z>>>16)>>>0}var Y=Object.assign,$=Object.prototype.hasOwnProperty,re=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),be={},we={};function Ee(v){return $.call(we,v)?!0:$.call(be,v)?!1:re.test(v)?we[v]=!0:(be[v]=!0,!1)}var pe=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),me=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ee=/["'&<>]/;function q(v){if(typeof v=="boolean"||typeof v=="number"||typeof v=="bigint")return""+v;v=""+v;var x=ee.exec(v);if(x){var k="",O,z=0;for(O=x.index;O<v.length;O++){switch(v.charCodeAt(O)){case 34:x=""";break;case 38:x="&";break;case 39:x="'";break;case 60:x="<";break;case 62:x=">";break;default:continue}z!==O&&(k+=v.slice(z,O)),z=O+1,k+=x}v=z!==O?k+v.slice(z,O):k}return v}var le=/([A-Z])/g,Te=/^ms-/,he=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ue(v){return he.test(""+v)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":v}var Ne=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,We=e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qe={pending:!1,data:null,method:null,action:null},_e=We.d;We.d={f:_e.f,r:_e.r,D:fo,C:Ci,L:ha,m:Oc,X:mh,S:Ni,M:Pu};var Ve=[],Oe=null,qe=/(<\/|<)(s)(cript)/gi;function je(v,x,k,O){return""+x+(k==="s"?"\\u0073":"\\u0053")+O}function it(v,x,k,O,z){return{idPrefix:v===void 0?"":v,nextFormID:0,streamingFormat:0,bootstrapScriptContent:k,bootstrapScripts:O,bootstrapModules:z,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function ct(v,x,k,O){return{insertionMode:v,selectedValue:x,tagScope:k,viewTransition:O}}function li(v,x,k){var O=v.tagScope&-25;switch(x){case"noscript":return ct(2,null,O|1,null);case"select":return ct(2,k.value!=null?k.value:k.defaultValue,O,null);case"svg":return ct(4,null,O,null);case"picture":return ct(2,null,O|2,null);case"math":return ct(5,null,O,null);case"foreignObject":return ct(2,null,O,null);case"table":return ct(6,null,O,null);case"thead":case"tbody":case"tfoot":return ct(7,null,O,null);case"colgroup":return ct(9,null,O,null);case"tr":return ct(8,null,O,null);case"head":if(2>v.insertionMode)return ct(3,null,O,null);break;case"html":if(v.insertionMode===0)return ct(1,null,O,null)}return 6<=v.insertionMode||2>v.insertionMode?ct(2,null,O,null):v.tagScope!==O?ct(v.insertionMode,v.selectedValue,O,null):v}function tt(v){return v===null?null:{update:v.update,enter:"none",exit:"none",share:v.update,name:v.autoName,autoName:v.autoName,nameIdx:0}}function Nt(v,x){return x.tagScope&32&&(v.instructions|=128),ct(x.insertionMode,x.selectedValue,x.tagScope|12,tt(x.viewTransition))}function Pt(v,x){v=tt(x.viewTransition);var k=x.tagScope|16;return v!==null&&v.share!=="none"&&(k|=64),ct(x.insertionMode,x.selectedValue,k,v)}var pn=new Map;function ks(v,x){if(typeof x!="object")throw Error(t(62));var k=!0,O;for(O in x)if($.call(x,O)){var z=x[O];if(z!=null&&typeof z!="boolean"&&z!==""){if(O.indexOf("--")===0){var Z=q(O);z=q((""+z).trim())}else Z=pn.get(O),Z===void 0&&(Z=q(O.replace(le,"-$1").toLowerCase().replace(Te,"-ms-")),pn.set(O,Z)),z=typeof z=="number"?z===0||pe.has(O)?""+z:z+"px":q((""+z).trim());k?(k=!1,v.push(' style="',Z,":",z)):v.push(";",Z,":",z)}}k||v.push('"')}function Xr(v,x,k){k&&typeof k!="function"&&typeof k!="symbol"&&v.push(" ",x,'=""')}function Yn(v,x,k){typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&v.push(" ",x,'="',q(k),'"')}var xi=q("javascript:throw new Error('React form unexpectedly submitted.')");function pt(v,x){this.push('<input type="hidden"'),gt(v),Yn(this,"name",x),Yn(this,"value",v),this.push("/>")}function gt(v){if(typeof v!="string")throw Error(t(480))}function or(v,x){if(typeof x.$$FORM_ACTION=="function"){var k=v.nextFormID++;v=v.idPrefix+k;try{var O=x.$$FORM_ACTION(v);if(O){var z=O.data;z?.forEach(gt)}return O}catch(Z){if(typeof Z=="object"&&Z!==null&&typeof Z.then=="function")throw Z}}return null}function Ac(v,x,k,O,z,Z,j,Se){var oe=null;if(typeof O=="function"){var xe=or(x,O);xe!==null?(Se=xe.name,O=xe.action||"",z=xe.encType,Z=xe.method,j=xe.target,oe=xe.data):(v.push(" ","formAction",'="',xi,'"'),j=Z=z=O=Se=null,fh(x,k))}return Se!=null&&Gt(v,"name",Se),O!=null&&Gt(v,"formAction",O),z!=null&&Gt(v,"formEncType",z),Z!=null&&Gt(v,"formMethod",Z),j!=null&&Gt(v,"formTarget",j),oe}function Gt(v,x,k){switch(x){case"className":Yn(v,"class",k);break;case"tabIndex":Yn(v,"tabindex",k);break;case"dir":case"role":case"viewBox":case"width":case"height":Yn(v,x,k);break;case"style":ks(v,k);break;case"src":case"href":if(k==="")break;case"action":case"formAction":if(k==null||typeof k=="function"||typeof k=="symbol"||typeof k=="boolean")break;k=ue(""+k),v.push(" ",x,'="',q(k),'"');break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":Xr(v,x.toLowerCase(),k);break;case"xlinkHref":if(typeof k=="function"||typeof k=="symbol"||typeof k=="boolean")break;k=ue(""+k),v.push(" ","xlink:href",'="',q(k),'"');break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof k!="function"&&typeof k!="symbol"&&v.push(" ",x,'="',q(k),'"');break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":k&&typeof k!="function"&&typeof k!="symbol"&&v.push(" ",x,'=""');break;case"capture":case"download":k===!0?v.push(" ",x,'=""'):k!==!1&&typeof k!="function"&&typeof k!="symbol"&&v.push(" ",x,'="',q(k),'"');break;case"cols":case"rows":case"size":case"span":typeof k!="function"&&typeof k!="symbol"&&!isNaN(k)&&1<=k&&v.push(" ",x,'="',q(k),'"');break;case"rowSpan":case"start":typeof k=="function"||typeof k=="symbol"||isNaN(k)||v.push(" ",x,'="',q(k),'"');break;case"xlinkActuate":Yn(v,"xlink:actuate",k);break;case"xlinkArcrole":Yn(v,"xlink:arcrole",k);break;case"xlinkRole":Yn(v,"xlink:role",k);break;case"xlinkShow":Yn(v,"xlink:show",k);break;case"xlinkTitle":Yn(v,"xlink:title",k);break;case"xlinkType":Yn(v,"xlink:type",k);break;case"xmlBase":Yn(v,"xml:base",k);break;case"xmlLang":Yn(v,"xml:lang",k);break;case"xmlSpace":Yn(v,"xml:space",k);break;default:if((!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=me.get(x)||x,Ee(x))){switch(typeof k){case"function":case"symbol":return;case"boolean":var O=x.toLowerCase().slice(0,5);if(O!=="data-"&&O!=="aria-")return}v.push(" ",x,'="',q(k),'"')}}}function Bi(v,x,k){if(x!=null){if(k!=null)throw Error(t(60));if(typeof x!="object"||!("__html"in x))throw Error(t(61));x=x.__html,x!=null&&v.push(""+x)}}function mn(v){var x="";return n.Children.forEach(v,function(k){k!=null&&(x+=k)}),x}function fh(v,x){if((v.instructions&16)===0){v.instructions|=16;var k=x.preamble,O=x.bootstrapChunks;(k.htmlChunks||k.headChunks)&&O.length===0?(O.push(x.startInlineScript),Hl(O,v),O.push(">",`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>")):O.unshift(x.startInlineScript,">",`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>")}}function Gn(v,x){v.push(_n("link"));for(var k in x)if($.call(x,k)){var O=x[k];if(O!=null)switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"link"));default:Gt(v,k,O)}}return v.push("/>"),null}var Tu=/(<\/|<)(s)(tyle)/gi;function Eu(v,x,k,O){return""+x+(k==="s"?"\\73 ":"\\53 ")+O}function es(v,x,k){v.push(_n(k));for(var O in x)if($.call(x,O)){var z=x[O];if(z!=null)switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,k));default:Gt(v,O,z)}}return v.push("/>"),null}function Ru(v,x){v.push(_n("title"));var k=null,O=null,z;for(z in x)if($.call(x,z)){var Z=x[z];if(Z!=null)switch(z){case"children":k=Z;break;case"dangerouslySetInnerHTML":O=Z;break;default:Gt(v,z,Z)}}return v.push(">"),x=Array.isArray(k)?2>k.length?k[0]:null:k,typeof x!="function"&&typeof x!="symbol"&&x!==null&&x!==void 0&&v.push(q(""+x)),Bi(v,O,k),v.push(la("title")),null}function Il(v,x){v.push(_n("script"));var k=null,O=null,z;for(z in x)if($.call(x,z)){var Z=x[z];if(Z!=null)switch(z){case"children":k=Z;break;case"dangerouslySetInnerHTML":O=Z;break;default:Gt(v,z,Z)}}return v.push(">"),Bi(v,O,k),typeof k=="string"&&v.push((""+k).replace(qe,je)),v.push(la("script")),null}function sa(v,x,k){v.push(_n(k));var O=k=null,z;for(z in x)if($.call(x,z)){var Z=x[z];if(Z!=null)switch(z){case"children":k=Z;break;case"dangerouslySetInnerHTML":O=Z;break;default:Gt(v,z,Z)}}return v.push(">"),Bi(v,O,k),k}function Ps(v,x,k){v.push(_n(k));var O=k=null,z;for(z in x)if($.call(x,z)){var Z=x[z];if(Z!=null)switch(z){case"children":k=Z;break;case"dangerouslySetInnerHTML":O=Z;break;default:Gt(v,z,Z)}}return v.push(">"),Bi(v,O,k),typeof k=="string"?(v.push(q(k)),null):k}var aa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Dl=new Map;function _n(v){var x=Dl.get(v);if(x===void 0){if(!aa.test(v))throw Error(t(65,v));x="<"+v,Dl.set(v,x)}return x}function Cn(v,x,k,O,z,Z,j,Se,oe){switch(x){case"div":case"span":case"svg":case"path":break;case"a":v.push(_n("a"));var xe=null,Le=null,Ae;for(Ae in k)if($.call(k,Ae)){var Ue=k[Ae];if(Ue!=null)switch(Ae){case"children":xe=Ue;break;case"dangerouslySetInnerHTML":Le=Ue;break;case"href":Ue===""?Yn(v,"href",""):Gt(v,Ae,Ue);break;default:Gt(v,Ae,Ue)}}if(v.push(">"),Bi(v,Le,xe),typeof xe=="string"){v.push(q(xe));var rt=null}else rt=xe;return rt;case"g":case"p":case"li":break;case"select":v.push(_n("select"));var Mt=null,mt=null,at;for(at in k)if($.call(k,at)){var bt=k[at];if(bt!=null)switch(at){case"children":Mt=bt;break;case"dangerouslySetInnerHTML":mt=bt;break;case"defaultValue":case"value":break;default:Gt(v,at,bt)}}return v.push(">"),Bi(v,mt,Mt),Mt;case"option":var dt=Se.selectedValue;v.push(_n("option"));var Rn=null,At=null,zt=null,qt=null,Ct;for(Ct in k)if($.call(k,Ct)){var Fn=k[Ct];if(Fn!=null)switch(Ct){case"children":Rn=Fn;break;case"selected":zt=Fn;break;case"dangerouslySetInnerHTML":qt=Fn;break;case"value":At=Fn;default:Gt(v,Ct,Fn)}}if(dt!=null){var Zt=At!==null?""+At:mn(Rn);if(G(dt)){for(var zi=0;zi<dt.length;zi++)if(""+dt[zi]===Zt){v.push(' selected=""');break}}else""+dt===Zt&&v.push(' selected=""')}else zt&&v.push(' selected=""');return v.push(">"),Bi(v,qt,Rn),Rn;case"textarea":v.push(_n("textarea"));var tn=null,Vt=null,Kt=null,xt;for(xt in k)if($.call(k,xt)){var Jt=k[xt];if(Jt!=null)switch(xt){case"children":Kt=Jt;break;case"value":tn=Jt;break;case"defaultValue":Vt=Jt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:Gt(v,xt,Jt)}}if(tn===null&&Vt!==null&&(tn=Vt),v.push(">"),Kt!=null){if(tn!=null)throw Error(t(92));if(G(Kt)){if(1<Kt.length)throw Error(t(93));tn=""+Kt[0]}tn=""+Kt}return typeof tn=="string"&&tn[0]===`
|
|
59
|
-
`&&v.push(`
|
|
60
|
-
`),tn!==null&&v.push(q(""+tn)),null;case"input":v.push(_n("input"));var hi=null,Ot=null,Ws=null,fs=null,Hi=null,Zr=null,Kr=null,Jr=null,zo=null,ds;for(ds in k)if($.call(k,ds)){var si=k[ds];if(si!=null)switch(ds){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"name":hi=si;break;case"formAction":Ot=si;break;case"formEncType":Ws=si;break;case"formMethod":fs=si;break;case"formTarget":Hi=si;break;case"defaultChecked":zo=si;break;case"defaultValue":Kr=si;break;case"checked":Jr=si;break;case"value":Zr=si;break;default:Gt(v,ds,si)}}var Sa=Ac(v,O,z,Ot,Ws,fs,Hi,hi);return Jr!==null?Xr(v,"checked",Jr):zo!==null&&Xr(v,"checked",zo),Zr!==null?Gt(v,"value",Zr):Kr!==null&&Gt(v,"value",Kr),v.push("/>"),Sa?.forEach(pt,v),null;case"button":v.push(_n("button"));var Ta=null,ec=null,Uc=null,ul=null,Vs=null,Wi=null,tc=null,Vi;for(Vi in k)if($.call(k,Vi)){var Nr=k[Vi];if(Nr!=null)switch(Vi){case"children":Ta=Nr;break;case"dangerouslySetInnerHTML":ec=Nr;break;case"name":Uc=Nr;break;case"formAction":ul=Nr;break;case"formEncType":Vs=Nr;break;case"formMethod":Wi=Nr;break;case"formTarget":tc=Nr;break;default:Gt(v,Vi,Nr)}}var gs=Ac(v,O,z,ul,Vs,Wi,tc,Uc);if(v.push(">"),gs?.forEach(pt,v),Bi(v,ec,Ta),typeof Ta=="string"){v.push(q(Ta));var nc=null}else nc=Ta;return nc;case"form":v.push(_n("form"));var ps=null,Xc=null,Qn=null,ic=null,Gs=null,hl=null,Ea;for(Ea in k)if($.call(k,Ea)){var Un=k[Ea];if(Un!=null)switch(Ea){case"children":ps=Un;break;case"dangerouslySetInnerHTML":Xc=Un;break;case"action":Qn=Un;break;case"encType":ic=Un;break;case"method":Gs=Un;break;case"target":hl=Un;break;default:Gt(v,Ea,Un)}}var zr=null,_t=null;if(typeof Qn=="function"){var ms=or(O,Qn);ms!==null?(Qn=ms.action||"",ic=ms.encType,Gs=ms.method,hl=ms.target,zr=ms.data,_t=ms.name):(v.push(" ","action",'="',xi,'"'),hl=Gs=ic=Qn=null,fh(O,z))}if(Qn!=null&&Gt(v,"action",Qn),ic!=null&&Gt(v,"encType",ic),Gs!=null&&Gt(v,"method",Gs),hl!=null&&Gt(v,"target",hl),v.push(">"),_t!==null&&(v.push('<input type="hidden"'),Yn(v,"name",_t),v.push("/>"),zr?.forEach(pt,v)),Bi(v,Xc,ps),typeof ps=="string"){v.push(q(ps));var fl=null}else fl=ps;return fl;case"menuitem":v.push(_n("menuitem"));for(var Us in k)if($.call(k,Us)){var Ln=k[Us];if(Ln!=null)switch(Us){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:Gt(v,Us,Ln)}}return v.push(">"),null;case"object":v.push(_n("object"));var hr=null,Xs=null,Ra;for(Ra in k)if($.call(k,Ra)){var Qr=k[Ra];if(Qr!=null)switch(Ra){case"children":hr=Qr;break;case"dangerouslySetInnerHTML":Xs=Qr;break;case"data":var Ei=ue(""+Qr);if(Ei==="")break;v.push(" ","data",'="',q(Ei),'"');break;default:Gt(v,Ra,Qr)}}if(v.push(">"),Bi(v,Xs,hr),typeof hr=="string"){v.push(q(hr));var dl=null}else dl=hr;return dl;case"title":var Gi=Se.tagScope&1,zu=Se.tagScope&4;if(Se.insertionMode===4||Gi||k.itemProp!=null)var ka=Ru(v,k);else zu?ka=null:(Ru(z.hoistableChunks,k),ka=void 0);return ka;case"link":var rc=Se.tagScope&1,Yc=Se.tagScope&4,Zc=k.rel,Ho=k.href,Pa=k.precedence;if(Se.insertionMode===4||rc||k.itemProp!=null||typeof Zc!="string"||typeof Ho!="string"||Ho===""){Gn(v,k);var Ma=null}else if(k.rel==="stylesheet")if(typeof Pa!="string"||k.disabled!=null||k.onLoad||k.onError)Ma=Gn(v,k);else{var Ui=z.styles.get(Pa),oc=O.styleResources.hasOwnProperty(Ho)?O.styleResources[Ho]:void 0;if(oc!==null){O.styleResources[Ho]=null,Ui||(Ui={precedence:q(Pa),rules:[],hrefs:[],sheets:new Map},z.styles.set(Pa,Ui));var sc={state:0,props:Y({},k,{"data-precedence":k.precedence,precedence:null})};if(oc){oc.length===2&&Fc(sc.props,oc);var Hu=z.preloads.stylesheets.get(Ho);Hu&&0<Hu.length?Hu.length=0:sc.state=1}Ui.sheets.set(Ho,sc),j&&j.stylesheets.add(sc)}else if(Ui){var Wu=Ui.sheets.get(Ho);Wu&&j&&j.stylesheets.add(Wu)}oe&&v.push("<!-- -->"),Ma=null}else k.onLoad||k.onError?Ma=Gn(v,k):(oe&&v.push("<!-- -->"),Ma=Yc?null:Gn(z.hoistableChunks,k));return Ma;case"script":var Kc=Se.tagScope&1,Vu=k.async;if(typeof k.src!="string"||!k.src||!Vu||typeof Vu=="function"||typeof Vu=="symbol"||k.onLoad||k.onError||Se.insertionMode===4||Kc||k.itemProp!=null)var Gu=Il(v,k);else{var jn=k.src;if(k.type==="module")var Jc=O.moduleScriptResources,ac=z.preloads.moduleScripts;else Jc=O.scriptResources,ac=z.preloads.scripts;var lc=Jc.hasOwnProperty(jn)?Jc[jn]:void 0;if(lc!==null){Jc[jn]=null;var Qc=k;if(lc){lc.length===2&&(Qc=Y({},k),Fc(Qc,lc));var Uu=ac.get(jn);Uu&&(Uu.length=0)}var jc=[];z.scripts.add(jc),Il(jc,Qc)}oe&&v.push("<!-- -->"),Gu=null}return Gu;case"style":var qc=Se.tagScope&1,Ys=k.precedence,jr=k.href,Sh=k.nonce;if(Se.insertionMode===4||qc||k.itemProp!=null||typeof Ys!="string"||typeof jr!="string"||jr===""){v.push(_n("style"));var Aa=null,cc=null,wo;for(wo in k)if($.call(k,wo)){var gl=k[wo];if(gl!=null)switch(wo){case"children":Aa=gl;break;case"dangerouslySetInnerHTML":cc=gl;break;default:Gt(v,wo,gl)}}v.push(">");var Zs=Array.isArray(Aa)?2>Aa.length?Aa[0]:null:Aa;typeof Zs!="function"&&typeof Zs!="symbol"&&Zs!==null&&Zs!==void 0&&v.push((""+Zs).replace(Tu,Eu)),Bi(v,cc,Aa),v.push(la("style"));var uc=null}else{var Ks=z.styles.get(Ys);if((O.styleResources.hasOwnProperty(jr)?O.styleResources[jr]:void 0)!==null){O.styleResources[jr]=null,Ks||(Ks={precedence:q(Ys),rules:[],hrefs:[],sheets:new Map},z.styles.set(Ys,Ks));var Th=z.nonce.style;if(!Th||Th===Sh){Ks.hrefs.push(q(jr));var Eh=Ks.rules,Co=null,pl=null,Hr;for(Hr in k)if($.call(k,Hr)){var Js=k[Hr];if(Js!=null)switch(Hr){case"children":Co=Js;break;case"dangerouslySetInnerHTML":pl=Js}}var _a=Array.isArray(Co)?2>Co.length?Co[0]:null:Co;typeof _a!="function"&&typeof _a!="symbol"&&_a!==null&&_a!==void 0&&Eh.push((""+_a).replace(Tu,Eu)),Bi(Eh,pl,Co)}}Ks&&j&&j.styles.add(Ks),oe&&v.push("<!-- -->"),uc=void 0}return uc;case"meta":var qr=Se.tagScope&1,Xu=Se.tagScope&4;if(Se.insertionMode===4||qr||k.itemProp!=null)var Rh=es(v,k,"meta");else oe&&v.push("<!-- -->"),Rh=Xu?null:typeof k.charSet=="string"?es(z.charsetChunks,k,"meta"):k.name==="viewport"?es(z.viewportChunks,k,"meta"):es(z.hoistableChunks,k,"meta");return Rh;case"listing":case"pre":v.push(_n(x));var ml=null,p=null,y;for(y in k)if($.call(k,y)){var R=k[y];if(R!=null)switch(y){case"children":ml=R;break;case"dangerouslySetInnerHTML":p=R;break;default:Gt(v,y,R)}}if(v.push(">"),p!=null){if(ml!=null)throw Error(t(60));if(typeof p!="object"||!("__html"in p))throw Error(t(61));var F=p.__html;F!=null&&(typeof F=="string"&&0<F.length&&F[0]===`
|
|
61
|
-
`?v.push(`
|
|
62
|
-
`,F):v.push(""+F))}return typeof ml=="string"&&ml[0]===`
|
|
63
|
-
`&&v.push(`
|
|
64
|
-
`),ml;case"img":var N=Se.tagScope&3,X=k.src,K=k.srcSet;if(!(k.loading==="lazy"||!X&&!K||typeof X!="string"&&X!=null||typeof K!="string"&&K!=null||k.fetchPriority==="low"||N)&&(typeof X!="string"||X[4]!==":"||X[0]!=="d"&&X[0]!=="D"||X[1]!=="a"&&X[1]!=="A"||X[2]!=="t"&&X[2]!=="T"||X[3]!=="a"&&X[3]!=="A")&&(typeof K!="string"||K[4]!==":"||K[0]!=="d"&&K[0]!=="D"||K[1]!=="a"&&K[1]!=="A"||K[2]!=="t"&&K[2]!=="T"||K[3]!=="a"&&K[3]!=="A")){j!==null&&Se.tagScope&64&&(j.suspenseyImages=!0);var fe=typeof k.sizes=="string"?k.sizes:void 0,ne=K?K+`
|
|
65
|
-
`+(fe||""):X,de=z.preloads.images,Ce=de.get(ne);if(Ce)(k.fetchPriority==="high"||10>z.highImagePreloads.size)&&(de.delete(ne),z.highImagePreloads.add(Ce));else if(!O.imageResources.hasOwnProperty(ne)){O.imageResources[ne]=Ve;var Pe=k.crossOrigin,Ze=typeof Pe=="string"?Pe==="use-credentials"?Pe:"":void 0,Ye=z.headers,Dt;Ye&&0<Ye.remainingCapacity&&typeof k.srcSet!="string"&&(k.fetchPriority==="high"||500>Ye.highImagePreloads.length)&&(Dt=Sn(X,"image",{imageSrcSet:k.srcSet,imageSizes:k.sizes,crossOrigin:Ze,integrity:k.integrity,nonce:k.nonce,type:k.type,fetchPriority:k.fetchPriority,referrerPolicy:k.refererPolicy}),0<=(Ye.remainingCapacity-=Dt.length+2))?(z.resets.image[ne]=Ve,Ye.highImagePreloads&&(Ye.highImagePreloads+=", "),Ye.highImagePreloads+=Dt):(Ce=[],Gn(Ce,{rel:"preload",as:"image",href:K?void 0:X,imageSrcSet:K,imageSizes:fe,crossOrigin:Ze,integrity:k.integrity,type:k.type,fetchPriority:k.fetchPriority,referrerPolicy:k.referrerPolicy}),k.fetchPriority==="high"||10>z.highImagePreloads.size?z.highImagePreloads.add(Ce):(z.bulkPreloads.add(Ce),de.set(ne,Ce)))}}return es(v,k,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return es(v,k,x);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(2>Se.insertionMode){var vt=Z||z.preamble;if(vt.headChunks)throw Error(t(545,"`<head>`"));Z!==null&&v.push("<!--head-->"),vt.headChunks=[];var Bt=sa(vt.headChunks,k,"head")}else Bt=Ps(v,k,"head");return Bt;case"body":if(2>Se.insertionMode){var In=Z||z.preamble;if(In.bodyChunks)throw Error(t(545,"`<body>`"));Z!==null&&v.push("<!--body-->"),In.bodyChunks=[];var xn=sa(In.bodyChunks,k,"body")}else xn=Ps(v,k,"body");return xn;case"html":if(Se.insertionMode===0){var Ri=Z||z.preamble;if(Ri.htmlChunks)throw Error(t(545,"`<html>`"));Z!==null&&v.push("<!--html-->"),Ri.htmlChunks=[""];var br=sa(Ri.htmlChunks,k,"html")}else br=Ps(v,k,"html");return br;default:if(x.indexOf("-")!==-1){v.push(_n(x));var $r=null,yt=null,Xi;for(Xi in k)if($.call(k,Xi)){var Xn=k[Xi];if(Xn!=null){var fr=Xi;switch(Xi){case"children":$r=Xn;break;case"dangerouslySetInnerHTML":yt=Xn;break;case"style":ks(v,Xn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":fr="class";default:if(Ee(Xi)&&typeof Xn!="function"&&typeof Xn!="symbol"&&Xn!==!1){if(Xn===!0)Xn="";else if(typeof Xn=="object")continue;v.push(" ",fr,'="',q(Xn),'"')}}}}return v.push(">"),Bi(v,yt,$r),$r}}return Ps(v,k,x)}var _c=new Map;function la(v){var x=_c.get(v);return x===void 0&&(x="</"+v+">",_c.set(v,x)),x}function dh(v,x){v=v.preamble,v.htmlChunks===null&&x.htmlChunks&&(v.htmlChunks=x.htmlChunks),v.headChunks===null&&x.headChunks&&(v.headChunks=x.headChunks),v.bodyChunks===null&&x.bodyChunks&&(v.bodyChunks=x.bodyChunks)}function ku(v,x){x=x.bootstrapChunks;for(var k=0;k<x.length-1;k++)v.push(x[k]);return k<x.length?(k=x[k],x.length=0,v.push(k)):!0}function Yr(v,x,k){if(v.push('<!--$?--><template id="'),k===null)throw Error(t(395));return v.push(x.boundaryPrefix),x=k.toString(16),v.push(x),v.push('"></template>')}function Mo(v,x,k,O){switch(k.insertionMode){case 0:case 1:case 3:case 2:return v.push('<div hidden id="'),v.push(x.segmentPrefix),x=O.toString(16),v.push(x),v.push('">');case 4:return v.push('<svg aria-hidden="true" style="display:none" id="'),v.push(x.segmentPrefix),x=O.toString(16),v.push(x),v.push('">');case 5:return v.push('<math aria-hidden="true" style="display:none" id="'),v.push(x.segmentPrefix),x=O.toString(16),v.push(x),v.push('">');case 6:return v.push('<table hidden id="'),v.push(x.segmentPrefix),x=O.toString(16),v.push(x),v.push('">');case 7:return v.push('<table hidden><tbody id="'),v.push(x.segmentPrefix),x=O.toString(16),v.push(x),v.push('">');case 8:return v.push('<table hidden><tr id="'),v.push(x.segmentPrefix),x=O.toString(16),v.push(x),v.push('">');case 9:return v.push('<table hidden><colgroup id="'),v.push(x.segmentPrefix),x=O.toString(16),v.push(x),v.push('">');default:throw Error(t(397))}}function gh(v,x){switch(x.insertionMode){case 0:case 1:case 3:case 2:return v.push("</div>");case 4:return v.push("</svg>");case 5:return v.push("</math>");case 6:return v.push("</table>");case 7:return v.push("</tbody></table>");case 8:return v.push("</tr></table>");case 9:return v.push("</colgroup></table>");default:throw Error(t(397))}}var ca=/[<\u2028\u2029]/g;function Hn(v){return JSON.stringify(v).replace(ca,function(x){switch(x){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Ms=/[&><\u2028\u2029]/g;function As(v){return JSON.stringify(v).replace(Ms,function(x){switch(x){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var ua=!1,wi=!0;function vr(v){var x=v.rules,k=v.hrefs,O=0;if(k.length){for(this.push(Oe.startInlineStyle),this.push(' media="not all" data-precedence="'),this.push(v.precedence),this.push('" data-href="');O<k.length-1;O++)this.push(k[O]),this.push(" ");for(this.push(k[O]),this.push('">'),O=0;O<x.length;O++)this.push(x[O]);wi=this.push("</style>"),ua=!0,x.length=0,k.length=0}}function cn(v){return v.state!==2?ua=!0:!1}function Bl(v,x,k){return ua=!1,wi=!0,Oe=k,x.styles.forEach(vr,v),Oe=null,x.stylesheets.forEach(cn),ua&&(k.stylesToHoist=!0),wi}function Or(v){for(var x=0;x<v.length;x++)this.push(v[x]);v.length=0}var Ut=[];function ph(v){Gn(Ut,v.props);for(var x=0;x<Ut.length;x++)this.push(Ut[x]);Ut.length=0,v.state=2}function It(v){var x=0<v.sheets.size;v.sheets.forEach(ph,this),v.sheets.clear();var k=v.rules,O=v.hrefs;if(!x||O.length){if(this.push(Oe.startInlineStyle),this.push(' data-precedence="'),this.push(v.precedence),v=0,O.length){for(this.push('" data-href="');v<O.length-1;v++)this.push(O[v]),this.push(" ");this.push(O[v])}for(this.push('">'),v=0;v<k.length;v++)this.push(k[v]);this.push("</style>"),k.length=0,O.length=0}}function Nl(v){if(v.state===0){v.state=1;var x=v.props;for(Gn(Ut,{rel:"preload",as:"style",href:v.props.href,crossOrigin:x.crossOrigin,fetchPriority:x.fetchPriority,integrity:x.integrity,media:x.media,hrefLang:x.hrefLang,referrerPolicy:x.referrerPolicy}),v=0;v<Ut.length;v++)this.push(Ut[v]);Ut.length=0}}function zl(v){v.sheets.forEach(Nl,this),v.sheets.clear()}function Hl(v,x){(x.instructions&32)===0&&(x.instructions|=32,v.push(' id="',q("_"+x.idPrefix+"R_"),'"'))}function Ao(v,x){v.push("[");var k="[";x.stylesheets.forEach(function(O){if(O.state!==2)if(O.state===3)v.push(k),O=As(""+O.props.href),v.push(O),v.push("]"),k=",[";else{v.push(k);var z=O.props["data-precedence"],Z=O.props,j=ue(""+O.props.href);j=As(j),v.push(j),z=""+z,v.push(","),z=As(z),v.push(z);for(var Se in Z)if($.call(Z,Se)&&(z=Z[Se],z!=null))switch(Se){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"link"));default:rn(v,Se,z)}v.push("]"),k=",[",O.state=3}}),v.push("]")}function rn(v,x,k){var O=x.toLowerCase();switch(typeof k){case"function":case"symbol":return}switch(x){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":O="class",x=""+k;break;case"hidden":if(k===!1)return;x="";break;case"src":case"href":k=ue(k),x=""+k;break;default:if(2<x.length&&(x[0]==="o"||x[0]==="O")&&(x[1]==="n"||x[1]==="N")||!Ee(x))return;x=""+k}v.push(","),O=As(O),v.push(O),v.push(","),O=As(x),v.push(O)}function Xt(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function fo(v){var x=Jn||null;if(x){var k=x.resumableState,O=x.renderState;if(typeof v=="string"&&v){if(!k.dnsResources.hasOwnProperty(v)){k.dnsResources[v]=null,k=O.headers;var z,Z;(Z=k&&0<k.remainingCapacity)&&(Z=(z="<"+(""+v).replace(Lc,ja)+">; rel=dns-prefetch",0<=(k.remainingCapacity-=z.length+2))),Z?(O.resets.dns[v]=null,k.preconnects&&(k.preconnects+=", "),k.preconnects+=z):(z=[],Gn(z,{href:v,rel:"dns-prefetch"}),O.preconnects.add(z))}cl(x)}}else _e.D(v)}function Ci(v,x){var k=Jn||null;if(k){var O=k.resumableState,z=k.renderState;if(typeof v=="string"&&v){var Z=x==="use-credentials"?"credentials":typeof x=="string"?"anonymous":"default";if(!O.connectResources[Z].hasOwnProperty(v)){O.connectResources[Z][v]=null,O=z.headers;var j,Se;if(Se=O&&0<O.remainingCapacity){if(Se="<"+(""+v).replace(Lc,ja)+">; rel=preconnect",typeof x=="string"){var oe=(""+x).replace(Fr,fa);Se+='; crossorigin="'+oe+'"'}Se=(j=Se,0<=(O.remainingCapacity-=j.length+2))}Se?(z.resets.connect[Z][v]=null,O.preconnects&&(O.preconnects+=", "),O.preconnects+=j):(Z=[],Gn(Z,{rel:"preconnect",href:v,crossOrigin:x}),z.preconnects.add(Z))}cl(k)}}else _e.C(v,x)}function ha(v,x,k){var O=Jn||null;if(O){var z=O.resumableState,Z=O.renderState;if(x&&v){switch(x){case"image":if(k)var j=k.imageSrcSet,Se=k.imageSizes,oe=k.fetchPriority;var xe=j?j+`
|
|
66
|
-
`+(Se||""):v;if(z.imageResources.hasOwnProperty(xe))return;z.imageResources[xe]=Ve,z=Z.headers;var Le;z&&0<z.remainingCapacity&&typeof j!="string"&&oe==="high"&&(Le=Sn(v,x,k),0<=(z.remainingCapacity-=Le.length+2))?(Z.resets.image[xe]=Ve,z.highImagePreloads&&(z.highImagePreloads+=", "),z.highImagePreloads+=Le):(z=[],Gn(z,Y({rel:"preload",href:j?void 0:v,as:x},k)),oe==="high"?Z.highImagePreloads.add(z):(Z.bulkPreloads.add(z),Z.preloads.images.set(xe,z)));break;case"style":if(z.styleResources.hasOwnProperty(v))return;j=[],Gn(j,Y({rel:"preload",href:v,as:x},k)),z.styleResources[v]=!k||typeof k.crossOrigin!="string"&&typeof k.integrity!="string"?Ve:[k.crossOrigin,k.integrity],Z.preloads.stylesheets.set(v,j),Z.bulkPreloads.add(j);break;case"script":if(z.scriptResources.hasOwnProperty(v))return;j=[],Z.preloads.scripts.set(v,j),Z.bulkPreloads.add(j),Gn(j,Y({rel:"preload",href:v,as:x},k)),z.scriptResources[v]=!k||typeof k.crossOrigin!="string"&&typeof k.integrity!="string"?Ve:[k.crossOrigin,k.integrity];break;default:if(z.unknownResources.hasOwnProperty(x)){if(j=z.unknownResources[x],j.hasOwnProperty(v))return}else j={},z.unknownResources[x]=j;if(j[v]=Ve,(z=Z.headers)&&0<z.remainingCapacity&&x==="font"&&(xe=Sn(v,x,k),0<=(z.remainingCapacity-=xe.length+2)))Z.resets.font[v]=Ve,z.fontPreloads&&(z.fontPreloads+=", "),z.fontPreloads+=xe;else switch(z=[],v=Y({rel:"preload",href:v,as:x},k),Gn(z,v),x){case"font":Z.fontPreloads.add(z);break;default:Z.bulkPreloads.add(z)}}cl(O)}}else _e.L(v,x,k)}function Oc(v,x){var k=Jn||null;if(k){var O=k.resumableState,z=k.renderState;if(v){var Z=x&&typeof x.as=="string"?x.as:"script";switch(Z){case"script":if(O.moduleScriptResources.hasOwnProperty(v))return;Z=[],O.moduleScriptResources[v]=!x||typeof x.crossOrigin!="string"&&typeof x.integrity!="string"?Ve:[x.crossOrigin,x.integrity],z.preloads.moduleScripts.set(v,Z);break;default:if(O.moduleUnknownResources.hasOwnProperty(Z)){var j=O.unknownResources[Z];if(j.hasOwnProperty(v))return}else j={},O.moduleUnknownResources[Z]=j;Z=[],j[v]=Ve}Gn(Z,Y({rel:"modulepreload",href:v},x)),z.bulkPreloads.add(Z),cl(k)}}else _e.m(v,x)}function Ni(v,x,k){var O=Jn||null;if(O){var z=O.resumableState,Z=O.renderState;if(v){x=x||"default";var j=Z.styles.get(x),Se=z.styleResources.hasOwnProperty(v)?z.styleResources[v]:void 0;Se!==null&&(z.styleResources[v]=null,j||(j={precedence:q(x),rules:[],hrefs:[],sheets:new Map},Z.styles.set(x,j)),x={state:0,props:Y({rel:"stylesheet",href:v,"data-precedence":x},k)},Se&&(Se.length===2&&Fc(x.props,Se),(Z=Z.preloads.stylesheets.get(v))&&0<Z.length?Z.length=0:x.state=1),j.sheets.set(v,x),cl(O))}}else _e.S(v,x,k)}function mh(v,x){var k=Jn||null;if(k){var O=k.resumableState,z=k.renderState;if(v){var Z=O.scriptResources.hasOwnProperty(v)?O.scriptResources[v]:void 0;Z!==null&&(O.scriptResources[v]=null,x=Y({src:v,async:!0},x),Z&&(Z.length===2&&Fc(x,Z),v=z.preloads.scripts.get(v))&&(v.length=0),v=[],z.scripts.add(v),Il(v,x),cl(k))}}else _e.X(v,x)}function Pu(v,x){var k=Jn||null;if(k){var O=k.resumableState,z=k.renderState;if(v){var Z=O.moduleScriptResources.hasOwnProperty(v)?O.moduleScriptResources[v]:void 0;Z!==null&&(O.moduleScriptResources[v]=null,x=Y({src:v,type:"module",async:!0},x),Z&&(Z.length===2&&Fc(x,Z),v=z.preloads.moduleScripts.get(v))&&(v.length=0),v=[],z.scripts.add(v),Il(v,x),cl(k))}}else _e.M(v,x)}function Fc(v,x){v.crossOrigin==null&&(v.crossOrigin=x[0]),v.integrity==null&&(v.integrity=x[1])}function Sn(v,x,k){v=(""+v).replace(Lc,ja),x=(""+x).replace(Fr,fa),x="<"+v+'>; rel=preload; as="'+x+'"';for(var O in k)$.call(k,O)&&(v=k[O],typeof v=="string"&&(x+="; "+O.toLowerCase()+'="'+(""+v).replace(Fr,fa)+'"'));return x}var Lc=/[<>\r\n]/g;function ja(v){switch(v){case"<":return"%3C";case">":return"%3E";case`
|
|
67
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var Fr=/["';,\r\n]/g;function fa(v){switch(v){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
68
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function vh(v){this.styles.add(v)}function yh(v){this.stylesheets.add(v)}function qa(v,x){x.styles.forEach(vh,v),x.stylesheets.forEach(yh,v),x.suspenseyImages&&(v.suspenseyImages=!0)}function $a(v,x){var k=v.idPrefix,O=[],z=v.bootstrapScriptContent,Z=v.bootstrapScripts,j=v.bootstrapModules;z!==void 0&&(O.push("<script"),Hl(O,v),O.push(">",(""+z).replace(qe,je),"<\/script>")),z=k+"P:";var Se=k+"S:";k+="B:";var oe=new Set,xe=new Set,Le=new Set,Ae=new Map,Ue=new Set,rt=new Set,Mt=new Set,mt={images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map};if(Z!==void 0)for(var at=0;at<Z.length;at++){var bt=Z[at],dt,Rn=void 0,At=void 0,zt={rel:"preload",as:"script",fetchPriority:"low",nonce:void 0};typeof bt=="string"?zt.href=dt=bt:(zt.href=dt=bt.src,zt.integrity=At=typeof bt.integrity=="string"?bt.integrity:void 0,zt.crossOrigin=Rn=typeof bt=="string"||bt.crossOrigin==null?void 0:bt.crossOrigin==="use-credentials"?"use-credentials":""),bt=v;var qt=dt;bt.scriptResources[qt]=null,bt.moduleScriptResources[qt]=null,bt=[],Gn(bt,zt),Ue.add(bt),O.push('<script src="',q(dt),'"'),typeof At=="string"&&O.push(' integrity="',q(At),'"'),typeof Rn=="string"&&O.push(' crossorigin="',q(Rn),'"'),Hl(O,v),O.push(' async=""><\/script>')}if(j!==void 0)for(Z=0;Z<j.length;Z++)zt=j[Z],Rn=dt=void 0,At={rel:"modulepreload",fetchPriority:"low",nonce:void 0},typeof zt=="string"?At.href=at=zt:(At.href=at=zt.src,At.integrity=Rn=typeof zt.integrity=="string"?zt.integrity:void 0,At.crossOrigin=dt=typeof zt=="string"||zt.crossOrigin==null?void 0:zt.crossOrigin==="use-credentials"?"use-credentials":""),zt=v,bt=at,zt.scriptResources[bt]=null,zt.moduleScriptResources[bt]=null,zt=[],Gn(zt,At),Ue.add(zt),O.push('<script type="module" src="',q(at),'"'),typeof Rn=="string"&&O.push(' integrity="',q(Rn),'"'),typeof dt=="string"&&O.push(' crossorigin="',q(dt),'"'),Hl(O,v),O.push(' async=""><\/script>');return{placeholderPrefix:z,segmentPrefix:Se,boundaryPrefix:k,startInlineScript:"<script",startInlineStyle:"<style",preamble:{htmlChunks:null,headChunks:null,bodyChunks:null},externalRuntimeScript:null,bootstrapChunks:O,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:oe,fontPreloads:xe,highImagePreloads:Le,styles:Ae,bootstrapScripts:Ue,scripts:rt,bulkPreloads:Mt,preloads:mt,nonce:{script:void 0,style:void 0},stylesToHoist:!1,generateStaticMarkup:x}}function _o(v,x,k,O){return k.generateStaticMarkup?(v.push(q(x)),!1):(x===""?v=O:(O&&v.push("<!-- -->"),v.push(q(x)),v=!0),v)}function Oo(v,x,k,O){x.generateStaticMarkup||k&&O&&v.push("<!-- -->")}var Ic=Function.prototype.bind,Wl=Symbol.for("react.client.reference");function Vl(v){if(v==null)return null;if(typeof v=="function")return v.$$typeof===Wl?null:v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case o:return"Fragment";case a:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case b:return"SuspenseList";case P:return"Activity"}if(typeof v=="object")switch(v.$$typeof){case r:return"Portal";case u:return v.displayName||"Context";case l:return(v._context.displayName||"Context")+".Consumer";case g:var x=v.render;return v=v.displayName,v||(v=x.displayName||x.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case w:return x=v.displayName||null,x!==null?x:Vl(v.type)||"Memo";case E:x=v._payload,v=v._init;try{return Vl(v(x))}catch{}}return null}var ri={},el=null;function Gl(v,x){if(v!==x){v.context._currentValue2=v.parentValue,v=v.parent;var k=x.parent;if(v===null){if(k!==null)throw Error(t(401))}else{if(k===null)throw Error(t(401));Gl(v,k)}x.context._currentValue2=x.value}}function Dc(v){v.context._currentValue2=v.parentValue,v=v.parent,v!==null&&Dc(v)}function Fo(v){var x=v.parent;x!==null&&Fo(x),v.context._currentValue2=v.value}function Ul(v,x){if(v.context._currentValue2=v.parentValue,v=v.parent,v===null)throw Error(t(402));v.depth===x.depth?Gl(v,x):Ul(v,x)}function sr(v,x){var k=x.parent;if(k===null)throw Error(t(402));v.depth===k.depth?Gl(v,k):sr(v,k),x.context._currentValue2=x.value}function go(v){var x=el;x!==v&&(x===null?Fo(v):v===null?Dc(x):x.depth===v.depth?Gl(x,v):x.depth>v.depth?Ul(x,v):sr(x,v),el=v)}var Mu={enqueueSetState:function(v,x){v=v._reactInternals,v.queue!==null&&v.queue.push(x)},enqueueReplaceState:function(v,x){v=v._reactInternals,v.replace=!0,v.queue=[x]},enqueueForceUpdate:function(){}},Xl={id:1,overflow:""};function ar(v,x,k){var O=v.id;v=v.overflow;var z=32-Yl(O)-1;O&=~(1<<z),k+=1;var Z=32-Yl(x)+z;if(30<Z){var j=z-z%5;return Z=(O&(1<<j)-1).toString(32),O>>=j,z-=j,{id:1<<32-Yl(x)+z|k<<z|O,overflow:Z+v}}return{id:1<<Z|k<<z|O,overflow:v}}var Yl=Math.clz32?Math.clz32:lr,_s=Math.log,tl=Math.LN2;function lr(v){return v>>>=0,v===0?32:31-(_s(v)/tl|0)|0}function ci(){}var yn=Error(t(460));function Au(v,x,k){switch(k=v[k],k===void 0?v.push(x):k!==x&&(x.then(ci,ci),x=k),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(ci,ci):(v=x,v.status="pending",v.then(function(O){if(x.status==="pending"){var z=x;z.status="fulfilled",z.value=O}},function(O){if(x.status==="pending"){var z=x;z.status="rejected",z.reason=O}})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}throw ts=x,yn}}var ts=null;function po(){if(ts===null)throw Error(t(459));var v=ts;return ts=null,v}function _u(v,x){return v===x&&(v!==0||1/v===1/x)||v!==v&&x!==x}var ns=typeof Object.is=="function"?Object.is:_u,Lo=null,nl=null,is=null,rs=null,il=null,wt=null,mo=!1,Zn=!1,Io=0,oi=0,Os=-1,da=0,Do=null,os=null,Kn=0;function ss(){if(Lo===null)throw Error(t(321));return Lo}function as(){if(0<Kn)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function ga(){return wt===null?il===null?(mo=!1,il=wt=as()):(mo=!0,wt=il):wt.next===null?(mo=!1,wt=wt.next=as()):(mo=!0,wt=wt.next),wt}function Fs(){var v=Do;return Do=null,v}function pa(){rs=is=nl=Lo=null,Zn=!1,il=null,Kn=0,wt=os=null}function cr(v,x){return typeof x=="function"?x(v):x}function ma(v,x,k){if(Lo=ss(),wt=ga(),mo){var O=wt.queue;if(x=O.dispatch,os!==null&&(k=os.get(O),k!==void 0)){os.delete(O),O=wt.memoizedState;do O=v(O,k.action),k=k.next;while(k!==null);return wt.memoizedState=O,[O,x]}return[wt.memoizedState,x]}return v=v===cr?typeof x=="function"?x():x:k!==void 0?k(x):x,wt.memoizedState=v,v=wt.queue={last:null,dispatch:null},v=v.dispatch=Ou.bind(null,Lo,v),[wt.memoizedState,v]}function vo(v,x){if(Lo=ss(),wt=ga(),x=x===void 0?null:x,wt!==null){var k=wt.memoizedState;if(k!==null&&x!==null){var O=k[1];e:if(O===null)O=!1;else{for(var z=0;z<O.length&&z<x.length;z++)if(!ns(x[z],O[z])){O=!1;break e}O=!0}if(O)return k[0]}}return v=v(),wt.memoizedState=[v,x],v}function Ou(v,x,k){if(25<=Kn)throw Error(t(301));if(v===Lo)if(Zn=!0,v={action:k,next:null},os===null&&(os=new Map),k=os.get(x),k===void 0)os.set(x,v);else{for(x=k;x.next!==null;)x=x.next;x.next=v}}function Fu(){throw Error(t(440))}function Lu(){throw Error(t(394))}function rl(){throw Error(t(479))}function ol(v,x,k){ss();var O=oi++,z=is;if(typeof v.$$FORM_ACTION=="function"){var Z=null,j=rs;z=z.formState;var Se=v.$$IS_SIGNATURE_EQUAL;if(z!==null&&typeof Se=="function"){var oe=z[1];Se.call(v,z[2],z[3])&&(Z=k!==void 0?"p"+k:"k"+J(JSON.stringify([j,null,O]),0),oe===Z&&(Os=O,x=z[0]))}var xe=v.bind(null,x);return v=function(Ae){xe(Ae)},typeof xe.$$FORM_ACTION=="function"&&(v.$$FORM_ACTION=function(Ae){Ae=xe.$$FORM_ACTION(Ae),k!==void 0&&(k+="",Ae.action=k);var Ue=Ae.data;return Ue&&(Z===null&&(Z=k!==void 0?"p"+k:"k"+J(JSON.stringify([j,null,O]),0)),Ue.append("$ACTION_KEY",Z)),Ae}),[x,v,!1]}var Le=v.bind(null,x);return[x,function(Ae){Le(Ae)},!1]}function sl(v){var x=da;return da+=1,Do===null&&(Do=[]),Au(Do,v,x)}function ui(){throw Error(t(393))}var bh={readContext:function(v){return v._currentValue2},use:function(v){if(v!==null&&typeof v=="object"){if(typeof v.then=="function")return sl(v);if(v.$$typeof===u)return v._currentValue2}throw Error(t(438,String(v)))},useContext:function(v){return ss(),v._currentValue2},useMemo:vo,useReducer:ma,useRef:function(v){Lo=ss(),wt=ga();var x=wt.memoizedState;return x===null?(v={current:v},wt.memoizedState=v):x},useState:function(v){return ma(cr,v)},useInsertionEffect:ci,useLayoutEffect:ci,useCallback:function(v,x){return vo(function(){return v},x)},useImperativeHandle:ci,useEffect:ci,useDebugValue:ci,useDeferredValue:function(v,x){return ss(),x!==void 0?x:v},useTransition:function(){return ss(),[!1,Lu]},useId:function(){var v=nl.treeContext,x=v.overflow;v=v.id,v=(v&~(1<<32-Yl(v)-1)).toString(32)+x;var k=Ls;if(k===null)throw Error(t(404));return x=Io++,v="_"+k.idPrefix+"R_"+v,0<x&&(v+="H"+x.toString(32)),v+"_"},useSyncExternalStore:function(v,x,k){if(k===void 0)throw Error(t(407));return k()},useOptimistic:function(v){return ss(),[v,rl]},useActionState:ol,useFormState:ol,useHostTransitionStatus:function(){return ss(),Qe},useMemoCache:function(v){for(var x=Array(v),k=0;k<v;k++)x[k]=I;return x},useCacheRefresh:function(){return ui},useEffectEvent:function(){return Fu}},Ls=null,Zl={getCacheForType:function(){throw Error(t(248))},cacheSignal:function(){throw Error(t(248))}},Bc,ls;function Is(v){if(Bc===void 0)try{throw Error()}catch(k){var x=k.stack.trim().match(/\n( *(at )?)/);Bc=x&&x[1]||"",ls=-1<k.stack.indexOf(`
|
|
69
|
-
at`)?" (<anonymous>)":-1<k.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
70
|
-
`+Bc+v+ls}var al=!1;function yo(v,x){if(!v||al)return"";al=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var O={DetermineComponentFrameRoot:function(){try{if(x){var Ae=function(){throw Error()};if(Object.defineProperty(Ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ae,[])}catch(rt){var Ue=rt}Reflect.construct(v,[],Ae)}else{try{Ae.call()}catch(rt){Ue=rt}v.call(Ae.prototype)}}else{try{throw Error()}catch(rt){Ue=rt}(Ae=v())&&typeof Ae.catch=="function"&&Ae.catch(function(){})}}catch(rt){if(rt&&Ue&&typeof rt.stack=="string")return[rt.stack,Ue.stack]}return[null,null]}};O.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var z=Object.getOwnPropertyDescriptor(O.DetermineComponentFrameRoot,"name");z&&z.configurable&&Object.defineProperty(O.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var Z=O.DetermineComponentFrameRoot(),j=Z[0],Se=Z[1];if(j&&Se){var oe=j.split(`
|
|
71
|
-
`),xe=Se.split(`
|
|
72
|
-
`);for(z=O=0;O<oe.length&&!oe[O].includes("DetermineComponentFrameRoot");)O++;for(;z<xe.length&&!xe[z].includes("DetermineComponentFrameRoot");)z++;if(O===oe.length||z===xe.length)for(O=oe.length-1,z=xe.length-1;1<=O&&0<=z&&oe[O]!==xe[z];)z--;for(;1<=O&&0<=z;O--,z--)if(oe[O]!==xe[z]){if(O!==1||z!==1)do if(O--,z--,0>z||oe[O]!==xe[z]){var Le=`
|
|
73
|
-
`+oe[O].replace(" at new "," at ");return v.displayName&&Le.includes("<anonymous>")&&(Le=Le.replace("<anonymous>",v.displayName)),Le}while(1<=O&&0<=z);break}}}finally{al=!1,Error.prepareStackTrace=k}return(k=v?v.displayName||v.name:"")?Is(k):""}function Ds(v){if(typeof v=="string")return Is(v);if(typeof v=="function")return v.prototype&&v.prototype.isReactComponent?yo(v,!0):yo(v,!1);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case g:return yo(v.render,!1);case w:return yo(v.type,!1);case E:var x=v,k=x._payload;x=x._init;try{v=x(k)}catch{return Is("Lazy")}return Ds(v)}if(typeof v.name=="string"){e:{k=v.name,x=v.env;var O=v.debugLocation;if(O!=null&&(v=Error.prepareStackTrace,Error.prepareStackTrace=void 0,O=O.stack,Error.prepareStackTrace=v,O.startsWith(`Error: react-stack-top-frame
|
|
74
|
-
`)&&(O=O.slice(29)),v=O.indexOf(`
|
|
75
|
-
`),v!==-1&&(O=O.slice(v+1)),v=O.indexOf("react_stack_bottom_frame"),v!==-1&&(v=O.lastIndexOf(`
|
|
76
|
-
`,v)),v=v!==-1?O=O.slice(0,v):"",O=v.lastIndexOf(`
|
|
77
|
-
`),v=O===-1?v:v.slice(O+1),v.indexOf(k)!==-1)){k=`
|
|
78
|
-
`+v;break e}k=Is(k+(x?" ["+x+"]":""))}return k}}switch(v){case b:return Is("SuspenseList");case m:return Is("Suspense")}return""}function Bs(v,x){return(500<x.byteSize||!1)&&x.contentPreamble===null}function Iu(v){if(typeof v=="object"&&v!==null&&typeof v.environmentName=="string"){var x=v.environmentName;v=[v].slice(0),typeof v[0]=="string"?v.splice(0,1,"[%s] "+v[0]," "+x+" "):v.splice(0,0,"[%s]"," "+x+" "),v.unshift(console),x=Ic.apply(console.error,v),x()}else console.error(v);return null}function Qh(v,x,k,O,z,Z,j,Se,oe,xe,Le){var Ae=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=v,this.renderState=x,this.rootFormatContext=k,this.progressiveChunkSize=O===void 0?12800:O,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=Ae,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=z===void 0?Iu:z,this.onPostpone=xe===void 0?ci:xe,this.onAllReady=Z===void 0?ci:Z,this.onShellReady=j===void 0?ci:j,this.onShellError=Se===void 0?ci:Se,this.onFatalError=oe===void 0?ci:oe,this.formState=Le===void 0?null:Le}function va(v,x,k,O,z,Z,j,Se,oe,xe,Le,Ae){return x=new Qh(x,k,O,z,Z,j,Se,oe,xe,Le,Ae),k=Lr(x,0,null,O,!1,!1),k.parentFlushed=!0,v=Jl(x,null,v,-1,null,k,null,null,x.abortableTasks,null,O,null,Xl,null,null),Ir(v),x.pingedTasks.push(v),x}var Jn=null;function Bo(v,x){v.pingedTasks.push(x),v.pingedTasks.length===1&&(v.flushScheduled=v.destination!==null,wh(v))}function Kl(v,x,k,O,z){return k={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:x,completedSegments:[],byteSize:0,fallbackAbortableTasks:k,errorDigest:null,contentState:Xt(),fallbackState:Xt(),contentPreamble:O,fallbackPreamble:z,trackedContentKeyPath:null,trackedFallbackNode:null},x!==null&&(x.pendingTasks++,O=x.boundaries,O!==null&&(v.allPendingTasks++,k.pendingTasks++,O.push(k)),v=x.inheritedHoistables,v!==null&&qa(k.contentState,v)),k}function Jl(v,x,k,O,z,Z,j,Se,oe,xe,Le,Ae,Ue,rt,Mt){v.allPendingTasks++,z===null?v.pendingRootTasks++:z.pendingTasks++,rt!==null&&rt.pendingTasks++;var mt={replay:null,node:k,childIndex:O,ping:function(){return Bo(v,mt)},blockedBoundary:z,blockedSegment:Z,blockedPreamble:j,hoistableState:Se,abortSet:oe,keyPath:xe,formatContext:Le,context:Ae,treeContext:Ue,row:rt,componentStack:Mt,thenableState:x};return oe.add(mt),mt}function Nc(v,x,k,O,z,Z,j,Se,oe,xe,Le,Ae,Ue,rt){v.allPendingTasks++,Z===null?v.pendingRootTasks++:Z.pendingTasks++,Ue!==null&&Ue.pendingTasks++,k.pendingTasks++;var Mt={replay:k,node:O,childIndex:z,ping:function(){return Bo(v,Mt)},blockedBoundary:Z,blockedSegment:null,blockedPreamble:null,hoistableState:j,abortSet:Se,keyPath:oe,formatContext:xe,context:Le,treeContext:Ae,row:Ue,componentStack:rt,thenableState:x};return Se.add(Mt),Mt}function Lr(v,x,k,O,z,Z){return{status:0,parentFlushed:!1,id:-1,index:x,chunks:[],children:[],preambleChildren:[],parentFormatContext:O,boundary:k,lastPushedText:z,textEmbedded:Z}}function Ir(v){var x=v.node;if(typeof x=="object"&&x!==null)switch(x.$$typeof){case i:v.componentStack={parent:v.componentStack,type:x.type}}}function yr(v){return v===null?null:{parent:v.parent,type:"Suspense Fallback"}}function Dr(v){var x={};return v&&Object.defineProperty(x,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var k="",O=v;do k+=Ds(O.type),O=O.parent;while(O);var z=k}catch(Z){z=`
|
|
79
|
-
Error generating stack: `+Z.message+`
|
|
80
|
-
`+Z.stack}return Object.defineProperty(x,"componentStack",{value:z}),z}}),x}function un(v,x,k){if(v=v.onError,x=v(x,k),x==null||typeof x=="string")return x}function Br(v,x){var k=v.onShellError,O=v.onFatalError;k(x),O(x),v.destination!==null?(v.status=14,v.destination.destroy(x)):(v.status=13,v.fatalError=x)}function Tn(v,x){bo(v,x.next,x.hoistables)}function bo(v,x,k){for(;x!==null;){k!==null&&(qa(x.hoistables,k),x.inheritedHoistables=k);var O=x.boundaries;if(O!==null){x.boundaries=null;for(var z=0;z<O.length;z++){var Z=O[z];k!==null&&qa(Z.contentState,k),us(v,Z,null,null)}}if(x.pendingTasks--,0<x.pendingTasks)break;k=x.hoistables,x=x.next}}function zc(v,x){var k=x.boundaries;if(k!==null&&x.pendingTasks===k.length){for(var O=!0,z=0;z<k.length;z++){var Z=k[z];if(Z.pendingTasks!==1||Z.parentFlushed||Bs(v,Z)){O=!1;break}}O&&bo(v,x,x.hoistables)}}function Hc(v){var x={pendingTasks:1,boundaries:null,hoistables:Xt(),inheritedHoistables:null,together:!1,next:null};return v!==null&&0<v.pendingTasks&&(x.pendingTasks++,x.boundaries=[],v.next=x),x}function Wc(v,x,k,O,z){var Z=x.keyPath,j=x.treeContext,Se=x.row;x.keyPath=k,k=O.length;var oe=null;if(x.replay!==null){var xe=x.replay.slots;if(xe!==null&&typeof xe=="object")for(var Le=0;Le<k;Le++){var Ae=z!=="backwards"&&z!=="unstable_legacy-backwards"?Le:k-1-Le,Ue=O[Ae];x.row=oe=Hc(oe),x.treeContext=ar(j,k,Ae);var rt=xe[Ae];typeof rt=="number"?(ql(v,x,rt,Ue,Ae),delete xe[Ae]):pi(v,x,Ue,Ae),--oe.pendingTasks===0&&Tn(v,oe)}else for(xe=0;xe<k;xe++)Le=z!=="backwards"&&z!=="unstable_legacy-backwards"?xe:k-1-xe,Ae=O[Le],x.row=oe=Hc(oe),x.treeContext=ar(j,k,Le),pi(v,x,Ae,Le),--oe.pendingTasks===0&&Tn(v,oe)}else if(z!=="backwards"&&z!=="unstable_legacy-backwards")for(z=0;z<k;z++)xe=O[z],x.row=oe=Hc(oe),x.treeContext=ar(j,k,z),pi(v,x,xe,z),--oe.pendingTasks===0&&Tn(v,oe);else{for(z=x.blockedSegment,xe=z.children.length,Le=z.chunks.length,Ae=k-1;0<=Ae;Ae--){Ue=O[Ae],x.row=oe=Hc(oe),x.treeContext=ar(j,k,Ae),rt=Lr(v,Le,null,x.formatContext,Ae===0?z.lastPushedText:!0,!0),z.children.splice(xe,0,rt),x.blockedSegment=rt;try{pi(v,x,Ue,Ae),Oo(rt.chunks,v.renderState,rt.lastPushedText,rt.textEmbedded),rt.status=1,--oe.pendingTasks===0&&Tn(v,oe)}catch(Mt){throw rt.status=v.status===12?3:4,Mt}}x.blockedSegment=z,z.lastPushedText=!1}Se!==null&&oe!==null&&0<oe.pendingTasks&&(Se.pendingTasks++,oe.next=Se),x.treeContext=j,x.row=Se,x.keyPath=Z}function Ql(v,x,k,O,z,Z){var j=x.thenableState;for(x.thenableState=null,Lo={},nl=x,is=v,rs=k,oi=Io=0,Os=-1,da=0,Do=j,v=O(z,Z);Zn;)Zn=!1,oi=Io=0,Os=-1,da=0,Kn+=1,wt=null,v=O(z,Z);return pa(),v}function cs(v,x,k,O,z,Z,j){var Se=!1;if(Z!==0&&v.formState!==null){var oe=x.blockedSegment;if(oe!==null){Se=!0,oe=oe.chunks;for(var xe=0;xe<Z;xe++)xe===j?oe.push("<!--F!-->"):oe.push("<!--F-->")}}Z=x.keyPath,x.keyPath=k,z?(k=x.treeContext,x.treeContext=ar(k,1,0),pi(v,x,O,-1),x.treeContext=k):Se?pi(v,x,O,-1):ur(v,x,O,-1),x.keyPath=Z}function jl(v,x,k,O,z,Z){if(typeof O=="function")if(O.prototype&&O.prototype.isReactComponent){var j=z;if("ref"in z){j={};for(var Se in z)Se!=="ref"&&(j[Se]=z[Se])}var oe=O.defaultProps;if(oe){j===z&&(j=Y({},j,z));for(var xe in oe)j[xe]===void 0&&(j[xe]=oe[xe])}z=j,j=ri,oe=O.contextType,typeof oe=="object"&&oe!==null&&(j=oe._currentValue2),j=new O(z,j);var Le=j.state!==void 0?j.state:null;if(j.updater=Mu,j.props=z,j.state=Le,oe={queue:[],replace:!1},j._reactInternals=oe,Z=O.contextType,j.context=typeof Z=="object"&&Z!==null?Z._currentValue2:ri,Z=O.getDerivedStateFromProps,typeof Z=="function"&&(Z=Z(z,Le),Le=Z==null?Le:Y({},Le,Z),j.state=Le),typeof O.getDerivedStateFromProps!="function"&&typeof j.getSnapshotBeforeUpdate!="function"&&(typeof j.UNSAFE_componentWillMount=="function"||typeof j.componentWillMount=="function"))if(O=j.state,typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount(),O!==j.state&&Mu.enqueueReplaceState(j,j.state,null),oe.queue!==null&&0<oe.queue.length)if(O=oe.queue,Z=oe.replace,oe.queue=null,oe.replace=!1,Z&&O.length===1)j.state=O[0];else{for(oe=Z?O[0]:j.state,Le=!0,Z=Z?1:0;Z<O.length;Z++)xe=O[Z],xe=typeof xe=="function"?xe.call(j,oe,z,void 0):xe,xe!=null&&(Le?(Le=!1,oe=Y({},oe,xe)):Y(oe,xe));j.state=oe}else oe.queue=null;if(O=j.render(),v.status===12)throw null;z=x.keyPath,x.keyPath=k,ur(v,x,O,-1),x.keyPath=z}else{if(O=Ql(v,x,k,O,z,void 0),v.status===12)throw null;cs(v,x,k,O,Io!==0,oi,Os)}else if(typeof O=="string")if(j=x.blockedSegment,j===null)j=z.children,oe=x.formatContext,Le=x.keyPath,x.formatContext=li(oe,O,z),x.keyPath=k,pi(v,x,j,-1),x.formatContext=oe,x.keyPath=Le;else{if(Le=Cn(j.chunks,O,z,v.resumableState,v.renderState,x.blockedPreamble,x.hoistableState,x.formatContext,j.lastPushedText),j.lastPushedText=!1,oe=x.formatContext,Z=x.keyPath,x.keyPath=k,(x.formatContext=li(oe,O,z)).insertionMode===3){k=Lr(v,0,null,x.formatContext,!1,!1),j.preambleChildren.push(k),x.blockedSegment=k;try{k.status=6,pi(v,x,Le,-1),Oo(k.chunks,v.renderState,k.lastPushedText,k.textEmbedded),k.status=1}finally{x.blockedSegment=j}}else pi(v,x,Le,-1);x.formatContext=oe,x.keyPath=Z;e:{switch(x=j.chunks,v=v.resumableState,O){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=oe.insertionMode){v.hasBody=!0;break e}break;case"html":if(oe.insertionMode===0){v.hasHtml=!0;break e}break;case"head":if(1>=oe.insertionMode)break e}x.push(la(O))}j.lastPushedText=!1}else{switch(O){case M:case s:case a:case o:O=x.keyPath,x.keyPath=k,ur(v,x,z.children,-1),x.keyPath=O;return;case P:O=x.blockedSegment,O===null?z.mode!=="hidden"&&(O=x.keyPath,x.keyPath=k,pi(v,x,z.children,-1),x.keyPath=O):z.mode!=="hidden"&&(v.renderState.generateStaticMarkup||O.chunks.push("<!--&-->"),O.lastPushedText=!1,j=x.keyPath,x.keyPath=k,pi(v,x,z.children,-1),x.keyPath=j,v.renderState.generateStaticMarkup||O.chunks.push("<!--/&-->"),O.lastPushedText=!1);return;case b:e:{if(O=z.children,z=z.revealOrder,z==="forwards"||z==="backwards"||z==="unstable_legacy-backwards"){if(G(O)){Wc(v,x,k,O,z);break e}if((j=W(O))&&(j=j.call(O))){if(oe=j.next(),!oe.done){do oe=j.next();while(!oe.done);Wc(v,x,k,O,z)}break e}}z==="together"?(z=x.keyPath,j=x.row,oe=x.row=Hc(null),oe.boundaries=[],oe.together=!0,x.keyPath=k,ur(v,x,O,-1),--oe.pendingTasks===0&&Tn(v,oe),x.keyPath=z,x.row=j,j!==null&&0<oe.pendingTasks&&(j.pendingTasks++,oe.next=j)):(z=x.keyPath,x.keyPath=k,ur(v,x,O,-1),x.keyPath=z)}return;case L:case T:throw Error(t(343));case m:e:if(x.replay!==null){O=x.keyPath,j=x.formatContext,oe=x.row,x.keyPath=k,x.formatContext=Pt(v.resumableState,j),x.row=null,k=z.children;try{pi(v,x,k,-1)}finally{x.keyPath=O,x.formatContext=j,x.row=oe}}else{O=x.keyPath,Z=x.formatContext;var Ae=x.row,Ue=x.blockedBoundary;xe=x.blockedPreamble;var rt=x.hoistableState;Se=x.blockedSegment;var Mt=z.fallback;z=z.children;var mt=new Set,at=Kl(v,x.row,mt,null,null);v.trackedPostpones!==null&&(at.trackedContentKeyPath=k);var bt=Lr(v,Se.chunks.length,at,x.formatContext,!1,!1);Se.children.push(bt),Se.lastPushedText=!1;var dt=Lr(v,0,null,x.formatContext,!1,!1);if(dt.parentFlushed=!0,v.trackedPostpones!==null){j=x.componentStack,oe=[k[0],"Suspense Fallback",k[2]],Le=[oe[1],oe[2],[],null],v.trackedPostpones.workingMap.set(oe,Le),at.trackedFallbackNode=Le,x.blockedSegment=bt,x.blockedPreamble=at.fallbackPreamble,x.keyPath=oe,x.formatContext=Nt(v.resumableState,Z),x.componentStack=yr(j),bt.status=6;try{pi(v,x,Mt,-1),Oo(bt.chunks,v.renderState,bt.lastPushedText,bt.textEmbedded),bt.status=1}catch(Rn){throw bt.status=v.status===12?3:4,Rn}finally{x.blockedSegment=Se,x.blockedPreamble=xe,x.keyPath=O,x.formatContext=Z}x=Jl(v,null,z,-1,at,dt,at.contentPreamble,at.contentState,x.abortSet,k,Pt(v.resumableState,x.formatContext),x.context,x.treeContext,null,j),Ir(x),v.pingedTasks.push(x)}else{x.blockedBoundary=at,x.blockedPreamble=at.contentPreamble,x.hoistableState=at.contentState,x.blockedSegment=dt,x.keyPath=k,x.formatContext=Pt(v.resumableState,Z),x.row=null,dt.status=6;try{if(pi(v,x,z,-1),Oo(dt.chunks,v.renderState,dt.lastPushedText,dt.textEmbedded),dt.status=1,Si(at,dt),at.pendingTasks===0&&at.status===0){if(at.status=1,!Bs(v,at)){Ae!==null&&--Ae.pendingTasks===0&&Tn(v,Ae),v.pendingRootTasks===0&&x.blockedPreamble&&wa(v);break e}}else Ae!==null&&Ae.together&&zc(v,Ae)}catch(Rn){at.status=4,v.status===12?(dt.status=3,j=v.fatalError):(dt.status=4,j=Rn),oe=Dr(x.componentStack),Le=un(v,j,oe),at.errorDigest=Le,ba(v,at)}finally{x.blockedBoundary=Ue,x.blockedPreamble=xe,x.hoistableState=rt,x.blockedSegment=Se,x.keyPath=O,x.formatContext=Z,x.row=Ae}x=Jl(v,null,Mt,-1,Ue,bt,at.fallbackPreamble,at.fallbackState,mt,[k[0],"Suspense Fallback",k[2]],Nt(v.resumableState,x.formatContext),x.context,x.treeContext,x.row,yr(x.componentStack)),Ir(x),v.pingedTasks.push(x)}}return}if(typeof O=="object"&&O!==null)switch(O.$$typeof){case g:if("ref"in z)for(Mt in j={},z)Mt!=="ref"&&(j[Mt]=z[Mt]);else j=z;O=Ql(v,x,k,O.render,j,Z),cs(v,x,k,O,Io!==0,oi,Os);return;case w:jl(v,x,k,O.type,z,Z);return;case u:if(oe=z.children,j=x.keyPath,z=z.value,Le=O._currentValue2,O._currentValue2=z,Z=el,el=O={parent:Z,depth:Z===null?0:Z.depth+1,context:O,parentValue:Le,value:z},x.context=O,x.keyPath=k,ur(v,x,oe,-1),v=el,v===null)throw Error(t(403));v.context._currentValue2=v.parentValue,v=el=v.parent,x.context=v,x.keyPath=j;return;case l:z=z.children,O=z(O._context._currentValue2),z=x.keyPath,x.keyPath=k,ur(v,x,O,-1),x.keyPath=z;return;case E:if(j=O._init,O=j(O._payload),v.status===12)throw null;jl(v,x,k,O,z,Z);return}throw Error(t(130,O==null?O:typeof O,""))}}function ql(v,x,k,O,z){var Z=x.replay,j=x.blockedBoundary,Se=Lr(v,0,null,x.formatContext,!1,!1);Se.id=k,Se.parentFlushed=!0;try{x.replay=null,x.blockedSegment=Se,pi(v,x,O,z),Se.status=1,j===null?v.completedRootSegment=Se:(Si(j,Se),j.parentFlushed&&v.partialBoundaries.push(j))}finally{x.replay=Z,x.blockedSegment=null}}function ur(v,x,k,O){x.replay!==null&&typeof x.replay.slots=="number"?ql(v,x,x.replay.slots,k,O):(x.node=k,x.childIndex=O,k=x.componentStack,Ir(x),En(v,x),x.componentStack=k)}function En(v,x){var k=x.node,O=x.childIndex;if(k!==null){if(typeof k=="object"){switch(k.$$typeof){case i:var z=k.type,Z=k.key,j=k.props;k=j.ref;var Se=k!==void 0?k:null,oe=Vl(z),xe=Z??(O===-1?0:O);if(Z=[x.keyPath,oe,xe],x.replay!==null)e:{var Le=x.replay;for(O=Le.nodes,k=0;k<O.length;k++){var Ae=O[k];if(xe===Ae[1]){if(Ae.length===4){if(oe!==null&&oe!==Ae[0])throw Error(t(490,Ae[0],oe));var Ue=Ae[2];oe=Ae[3],xe=x.node,x.replay={nodes:Ue,slots:oe,pendingTasks:1};try{if(jl(v,x,Z,z,j,Se),x.replay.pendingTasks===1&&0<x.replay.nodes.length)throw Error(t(488));x.replay.pendingTasks--}catch(qt){if(typeof qt=="object"&&qt!==null&&(qt===yn||typeof qt.then=="function"))throw x.node===xe?x.replay=Le:O.splice(k,1),qt;x.replay.pendingTasks--,j=Dr(x.componentStack),Z=v,v=x.blockedBoundary,z=qt,j=un(Z,z,j),xo(Z,v,Ue,oe,z,j)}x.replay=Le}else{if(z!==m)throw Error(t(490,"Suspense",Vl(z)||"Unknown"));t:{Le=void 0,z=Ae[5],Se=Ae[2],oe=Ae[3],xe=Ae[4]===null?[]:Ae[4][2],Ae=Ae[4]===null?null:Ae[4][3];var rt=x.keyPath,Mt=x.formatContext,mt=x.row,at=x.replay,bt=x.blockedBoundary,dt=x.hoistableState,Rn=j.children,At=j.fallback,zt=new Set;j=Kl(v,x.row,zt,null,null),j.parentFlushed=!0,j.rootSegmentID=z,x.blockedBoundary=j,x.hoistableState=j.contentState,x.keyPath=Z,x.formatContext=Pt(v.resumableState,Mt),x.row=null,x.replay={nodes:Se,slots:oe,pendingTasks:1};try{if(pi(v,x,Rn,-1),x.replay.pendingTasks===1&&0<x.replay.nodes.length)throw Error(t(488));if(x.replay.pendingTasks--,j.pendingTasks===0&&j.status===0){j.status=1,v.completedBoundaries.push(j);break t}}catch(qt){j.status=4,Ue=Dr(x.componentStack),Le=un(v,qt,Ue),j.errorDigest=Le,x.replay.pendingTasks--,v.clientRenderedBoundaries.push(j)}finally{x.blockedBoundary=bt,x.hoistableState=dt,x.replay=at,x.keyPath=rt,x.formatContext=Mt,x.row=mt}Ue=Nc(v,null,{nodes:xe,slots:Ae,pendingTasks:0},At,-1,bt,j.fallbackState,zt,[Z[0],"Suspense Fallback",Z[2]],Nt(v.resumableState,x.formatContext),x.context,x.treeContext,x.row,yr(x.componentStack)),Ir(Ue),v.pingedTasks.push(Ue)}}O.splice(k,1);break e}}}else jl(v,x,Z,z,j,Se);return;case r:throw Error(t(257));case E:if(Ue=k._init,k=Ue(k._payload),v.status===12)throw null;ur(v,x,k,O);return}if(G(k)){Yt(v,x,k,O);return}if((Ue=W(k))&&(Ue=Ue.call(k))){if(k=Ue.next(),!k.done){j=[];do j.push(k.value),k=Ue.next();while(!k.done);Yt(v,x,j,O)}return}if(typeof k.then=="function")return x.thenableState=null,ur(v,x,sl(k),O);if(k.$$typeof===u)return ur(v,x,k._currentValue2,O);throw O=Object.prototype.toString.call(k),Error(t(31,O==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":O))}typeof k=="string"?(O=x.blockedSegment,O!==null&&(O.lastPushedText=_o(O.chunks,k,v.renderState,O.lastPushedText))):(typeof k=="number"||typeof k=="bigint")&&(O=x.blockedSegment,O!==null&&(O.lastPushedText=_o(O.chunks,""+k,v.renderState,O.lastPushedText)))}}function Yt(v,x,k,O){var z=x.keyPath;if(O!==-1&&(x.keyPath=[x.keyPath,"Fragment",O],x.replay!==null)){for(var Z=x.replay,j=Z.nodes,Se=0;Se<j.length;Se++){var oe=j[Se];if(oe[1]===O){O=oe[2],oe=oe[3],x.replay={nodes:O,slots:oe,pendingTasks:1};try{if(Yt(v,x,k,-1),x.replay.pendingTasks===1&&0<x.replay.nodes.length)throw Error(t(488));x.replay.pendingTasks--}catch(Ae){if(typeof Ae=="object"&&Ae!==null&&(Ae===yn||typeof Ae.then=="function"))throw Ae;x.replay.pendingTasks--,k=Dr(x.componentStack);var xe=x.blockedBoundary,Le=Ae;k=un(v,Le,k),xo(v,xe,O,oe,Le,k)}x.replay=Z,j.splice(Se,1);break}}x.keyPath=z;return}if(Z=x.treeContext,j=k.length,x.replay!==null&&(Se=x.replay.slots,Se!==null&&typeof Se=="object")){for(O=0;O<j;O++)oe=k[O],x.treeContext=ar(Z,j,O),xe=Se[O],typeof xe=="number"?(ql(v,x,xe,oe,O),delete Se[O]):pi(v,x,oe,O);x.treeContext=Z,x.keyPath=z;return}for(Se=0;Se<j;Se++)O=k[Se],x.treeContext=ar(Z,j,Se),pi(v,x,O,Se);x.treeContext=Z,x.keyPath=z}function Ns(v,x,k){if(k.status=5,k.rootSegmentID=v.nextSegmentId++,v=k.trackedContentKeyPath,v===null)throw Error(t(486));var O=k.trackedFallbackNode,z=[],Z=x.workingMap.get(v);return Z===void 0?(k=[v[1],v[2],z,null,O,k.rootSegmentID],x.workingMap.set(v,k),On(k,v[0],x),k):(Z[4]=O,Z[5]=k.rootSegmentID,Z)}function ya(v,x,k,O){O.status=5;var z=k.keyPath,Z=k.blockedBoundary;if(Z===null)O.id=v.nextSegmentId++,x.rootSlots=O.id,v.completedRootSegment!==null&&(v.completedRootSegment.status=5);else{if(Z!==null&&Z.status===0){var j=Ns(v,x,Z);if(Z.trackedContentKeyPath===z&&k.childIndex===-1){O.id===-1&&(O.id=O.parentFlushed?Z.rootSegmentID:v.nextSegmentId++),j[3]=O.id;return}}if(O.id===-1&&(O.id=O.parentFlushed&&Z!==null?Z.rootSegmentID:v.nextSegmentId++),k.childIndex===-1)z===null?x.rootSlots=O.id:(k=x.workingMap.get(z),k===void 0?(k=[z[1],z[2],[],O.id],On(k,z[0],x)):k[3]=O.id);else{if(z===null){if(v=x.rootSlots,v===null)v=x.rootSlots={};else if(typeof v=="number")throw Error(t(491))}else if(Z=x.workingMap,j=Z.get(z),j===void 0)v={},j=[z[1],z[2],[],v],Z.set(z,j),On(j,z[0],x);else if(v=j[3],v===null)v=j[3]={};else if(typeof v=="number")throw Error(t(491));v[k.childIndex]=O.id}}}function ba(v,x){v=v.trackedPostpones,v!==null&&(x=x.trackedContentKeyPath,x!==null&&(x=v.workingMap.get(x),x!==void 0&&(x.length=4,x[2]=[],x[3]=null)))}function zs(v,x,k){return Nc(v,k,x.replay,x.node,x.childIndex,x.blockedBoundary,x.hoistableState,x.abortSet,x.keyPath,x.formatContext,x.context,x.treeContext,x.row,x.componentStack)}function Du(v,x,k){var O=x.blockedSegment,z=Lr(v,O.chunks.length,null,x.formatContext,O.lastPushedText,!0);return O.children.push(z),O.lastPushedText=!1,Jl(v,k,x.node,x.childIndex,x.blockedBoundary,z,x.blockedPreamble,x.hoistableState,x.abortSet,x.keyPath,x.formatContext,x.context,x.treeContext,x.row,x.componentStack)}function pi(v,x,k,O){var z=x.formatContext,Z=x.context,j=x.keyPath,Se=x.treeContext,oe=x.componentStack,xe=x.blockedSegment;if(xe===null){xe=x.replay;try{return ur(v,x,k,O)}catch(Ue){if(pa(),k=Ue===yn?po():Ue,v.status!==12&&typeof k=="object"&&k!==null){if(typeof k.then=="function"){O=Ue===yn?Fs():null,v=zs(v,x,O).ping,k.then(v,v),x.formatContext=z,x.context=Z,x.keyPath=j,x.treeContext=Se,x.componentStack=oe,x.replay=xe,go(Z);return}if(k.message==="Maximum call stack size exceeded"){k=Ue===yn?Fs():null,k=zs(v,x,k),v.pingedTasks.push(k),x.formatContext=z,x.context=Z,x.keyPath=j,x.treeContext=Se,x.componentStack=oe,x.replay=xe,go(Z);return}}}}else{var Le=xe.children.length,Ae=xe.chunks.length;try{return ur(v,x,k,O)}catch(Ue){if(pa(),xe.children.length=Le,xe.chunks.length=Ae,k=Ue===yn?po():Ue,v.status!==12&&typeof k=="object"&&k!==null){if(typeof k.then=="function"){xe=k,k=Ue===yn?Fs():null,v=Du(v,x,k).ping,xe.then(v,v),x.formatContext=z,x.context=Z,x.keyPath=j,x.treeContext=Se,x.componentStack=oe,go(Z);return}if(k.message==="Maximum call stack size exceeded"){xe=Ue===yn?Fs():null,xe=Du(v,x,xe),v.pingedTasks.push(xe),x.formatContext=z,x.context=Z,x.keyPath=j,x.treeContext=Se,x.componentStack=oe,go(Z);return}}}}throw x.formatContext=z,x.context=Z,x.keyPath=j,x.treeContext=Se,go(Z),k}function jh(v){var x=v.blockedBoundary,k=v.blockedSegment;k!==null&&(k.status=3,us(this,x,v.row,k))}function xo(v,x,k,O,z,Z){for(var j=0;j<k.length;j++){var Se=k[j];if(Se.length===4)xo(v,x,Se[2],Se[3],z,Z);else{Se=Se[5];var oe=v,xe=Z,Le=Kl(oe,null,new Set,null,null);Le.parentFlushed=!0,Le.rootSegmentID=Se,Le.status=4,Le.errorDigest=xe,Le.parentFlushed&&oe.clientRenderedBoundaries.push(Le)}}if(k.length=0,O!==null){if(x===null)throw Error(t(487));if(x.status!==4&&(x.status=4,x.errorDigest=Z,x.parentFlushed&&v.clientRenderedBoundaries.push(x)),typeof O=="object")for(var Ae in O)delete O[Ae]}}function xh(v,x,k){var O=v.blockedBoundary,z=v.blockedSegment;if(z!==null){if(z.status===6)return;z.status=3}var Z=Dr(v.componentStack);if(O===null){if(x.status!==13&&x.status!==14){if(O=v.replay,O===null){x.trackedPostpones!==null&&z!==null?(O=x.trackedPostpones,un(x,k,Z),ya(x,O,v,z),us(x,null,v.row,z)):(un(x,k,Z),Br(x,k));return}O.pendingTasks--,O.pendingTasks===0&&0<O.nodes.length&&(z=un(x,k,Z),xo(x,null,O.nodes,O.slots,k,z)),x.pendingRootTasks--,x.pendingRootTasks===0&&No(x)}}else{var j=x.trackedPostpones;if(O.status!==4){if(j!==null&&z!==null)return un(x,k,Z),ya(x,j,v,z),O.fallbackAbortableTasks.forEach(function(Se){return xh(Se,x,k)}),O.fallbackAbortableTasks.clear(),us(x,O,v.row,z);O.status=4,z=un(x,k,Z),O.status=4,O.errorDigest=z,ba(x,O),O.parentFlushed&&x.clientRenderedBoundaries.push(O)}O.pendingTasks--,z=O.row,z!==null&&--z.pendingTasks===0&&Tn(x,z),O.fallbackAbortableTasks.forEach(function(Se){return xh(Se,x,k)}),O.fallbackAbortableTasks.clear()}v=v.row,v!==null&&--v.pendingTasks===0&&Tn(x,v),x.allPendingTasks--,x.allPendingTasks===0&&$l(x)}function Bu(v,x){try{var k=v.renderState,O=k.onHeaders;if(O){var z=k.headers;if(z){k.headers=null;var Z=z.preconnects;if(z.fontPreloads&&(Z&&(Z+=", "),Z+=z.fontPreloads),z.highImagePreloads&&(Z&&(Z+=", "),Z+=z.highImagePreloads),!x){var j=k.styles.values(),Se=j.next();e:for(;0<z.remainingCapacity&&!Se.done;Se=j.next())for(var oe=Se.value.sheets.values(),xe=oe.next();0<z.remainingCapacity&&!xe.done;xe=oe.next()){var Le=xe.value,Ae=Le.props,Ue=Ae.href,rt=Le.props,Mt=Sn(rt.href,"style",{crossOrigin:rt.crossOrigin,integrity:rt.integrity,nonce:rt.nonce,type:rt.type,fetchPriority:rt.fetchPriority,referrerPolicy:rt.referrerPolicy,media:rt.media});if(0<=(z.remainingCapacity-=Mt.length+2))k.resets.style[Ue]=Ve,Z&&(Z+=", "),Z+=Mt,k.resets.style[Ue]=typeof Ae.crossOrigin=="string"||typeof Ae.integrity=="string"?[Ae.crossOrigin,Ae.integrity]:Ve;else break e}}O(Z?{Link:Z}:{})}}}catch(mt){un(v,mt,{})}}function No(v){v.trackedPostpones===null&&Bu(v,!0),v.trackedPostpones===null&&wa(v),v.onShellError=ci,v=v.onShellReady,v()}function $l(v){Bu(v,v.trackedPostpones===null?!0:v.completedRootSegment===null||v.completedRootSegment.status!==5),wa(v),v=v.onAllReady,v()}function Si(v,x){if(x.chunks.length===0&&x.children.length===1&&x.children[0].boundary===null&&x.children[0].id===-1){var k=x.children[0];k.id=x.id,k.parentFlushed=!0,k.status!==1&&k.status!==3&&k.status!==4||Si(v,k)}else v.completedSegments.push(x)}function us(v,x,k,O){if(k!==null&&(--k.pendingTasks===0?Tn(v,k):k.together&&zc(v,k)),v.allPendingTasks--,x===null){if(O!==null&&O.parentFlushed){if(v.completedRootSegment!==null)throw Error(t(389));v.completedRootSegment=O}v.pendingRootTasks--,v.pendingRootTasks===0&&No(v)}else if(x.pendingTasks--,x.status!==4)if(x.pendingTasks===0){if(x.status===0&&(x.status=1),O!==null&&O.parentFlushed&&(O.status===1||O.status===3)&&Si(x,O),x.parentFlushed&&v.completedBoundaries.push(x),x.status===1)k=x.row,k!==null&&qa(k.hoistables,x.contentState),Bs(v,x)||(x.fallbackAbortableTasks.forEach(jh,v),x.fallbackAbortableTasks.clear(),k!==null&&--k.pendingTasks===0&&Tn(v,k)),v.pendingRootTasks===0&&v.trackedPostpones===null&&x.contentPreamble!==null&&wa(v);else if(x.status===5&&(x=x.row,x!==null)){if(v.trackedPostpones!==null){k=v.trackedPostpones;var z=x.next;if(z!==null&&(O=z.boundaries,O!==null))for(z.boundaries=null,z=0;z<O.length;z++){var Z=O[z];Ns(v,k,Z),us(v,Z,null,null)}}--x.pendingTasks===0&&Tn(v,x)}}else O===null||!O.parentFlushed||O.status!==1&&O.status!==3||(Si(x,O),x.completedSegments.length===1&&x.parentFlushed&&v.partialBoundaries.push(x)),x=x.row,x!==null&&x.together&&zc(v,x);v.allPendingTasks===0&&$l(v)}function wh(v){if(v.status!==14&&v.status!==13){var x=el,k=Ne.H;Ne.H=bh;var O=Ne.A;Ne.A=Zl;var z=Jn;Jn=v;var Z=Ls;Ls=v.resumableState;try{var j=v.pingedTasks,Se;for(Se=0;Se<j.length;Se++){var oe=j[Se],xe=v,Le=oe.blockedSegment;if(Le===null){var Ae=xe;if(oe.replay.pendingTasks!==0){go(oe.context);try{if(typeof oe.replay.slots=="number"?ql(Ae,oe,oe.replay.slots,oe.node,oe.childIndex):En(Ae,oe),oe.replay.pendingTasks===1&&0<oe.replay.nodes.length)throw Error(t(488));oe.replay.pendingTasks--,oe.abortSet.delete(oe),us(Ae,oe.blockedBoundary,oe.row,null)}catch(xt){pa();var Ue=xt===yn?po():xt;if(typeof Ue=="object"&&Ue!==null&&typeof Ue.then=="function"){var rt=oe.ping;Ue.then(rt,rt),oe.thenableState=xt===yn?Fs():null}else{oe.replay.pendingTasks--,oe.abortSet.delete(oe);var Mt=Dr(oe.componentStack);xe=void 0;var mt=Ae,at=oe.blockedBoundary,bt=Ae.status===12?Ae.fatalError:Ue,dt=oe.replay.nodes,Rn=oe.replay.slots;xe=un(mt,bt,Mt),xo(mt,at,dt,Rn,bt,xe),Ae.pendingRootTasks--,Ae.pendingRootTasks===0&&No(Ae),Ae.allPendingTasks--,Ae.allPendingTasks===0&&$l(Ae)}}finally{}}}else if(Ae=void 0,mt=Le,mt.status===0){mt.status=6,go(oe.context);var At=mt.children.length,zt=mt.chunks.length;try{En(xe,oe),Oo(mt.chunks,xe.renderState,mt.lastPushedText,mt.textEmbedded),oe.abortSet.delete(oe),mt.status=1,us(xe,oe.blockedBoundary,oe.row,mt)}catch(xt){pa(),mt.children.length=At,mt.chunks.length=zt;var qt=xt===yn?po():xe.status===12?xe.fatalError:xt;if(xe.status===12&&xe.trackedPostpones!==null){var Ct=xe.trackedPostpones,Fn=Dr(oe.componentStack);oe.abortSet.delete(oe),un(xe,qt,Fn),ya(xe,Ct,oe,mt),us(xe,oe.blockedBoundary,oe.row,mt)}else if(typeof qt=="object"&&qt!==null&&typeof qt.then=="function"){mt.status=0,oe.thenableState=xt===yn?Fs():null;var Zt=oe.ping;qt.then(Zt,Zt)}else{var zi=Dr(oe.componentStack);oe.abortSet.delete(oe),mt.status=4;var tn=oe.blockedBoundary,Vt=oe.row;if(Vt!==null&&--Vt.pendingTasks===0&&Tn(xe,Vt),xe.allPendingTasks--,Ae=un(xe,qt,zi),tn===null)Br(xe,qt);else if(tn.pendingTasks--,tn.status!==4){tn.status=4,tn.errorDigest=Ae,ba(xe,tn);var Kt=tn.row;Kt!==null&&--Kt.pendingTasks===0&&Tn(xe,Kt),tn.parentFlushed&&xe.clientRenderedBoundaries.push(tn),xe.pendingRootTasks===0&&xe.trackedPostpones===null&&tn.contentPreamble!==null&&wa(xe)}xe.allPendingTasks===0&&$l(xe)}}finally{}}}j.splice(0,Se),v.destination!==null&&Gc(v,v.destination)}catch(xt){un(v,xt,{}),Br(v,xt)}finally{Ls=Z,Ne.H=k,Ne.A=O,k===bh&&go(x),Jn=z}}}function xa(v,x,k){x.preambleChildren.length&&k.push(x.preambleChildren);for(var O=!1,z=0;z<x.children.length;z++)O=Vc(v,x.children[z],k)||O;return O}function Vc(v,x,k){var O=x.boundary;if(O===null)return xa(v,x,k);var z=O.contentPreamble,Z=O.fallbackPreamble;if(z===null||Z===null)return!1;switch(O.status){case 1:if(dh(v.renderState,z),v.byteSize+=O.byteSize,x=O.completedSegments[0],!x)throw Error(t(391));return xa(v,x,k);case 5:if(v.trackedPostpones!==null)return!0;case 4:if(x.status===1)return dh(v.renderState,Z),xa(v,x,k);default:return!0}}function wa(v){if(v.completedRootSegment&&v.completedPreambleSegments===null){var x=[],k=v.byteSize,O=Vc(v,v.completedRootSegment,x),z=v.renderState.preamble;O===!1||z.headChunks&&z.bodyChunks?v.completedPreambleSegments=x:v.byteSize=k}}function Ti(v,x,k,O){switch(k.parentFlushed=!0,k.status){case 0:k.id=v.nextSegmentId++;case 5:return O=k.id,k.lastPushedText=!1,k.textEmbedded=!1,v=v.renderState,x.push('<template id="'),x.push(v.placeholderPrefix),v=O.toString(16),x.push(v),x.push('"></template>');case 1:k.status=2;var z=!0,Z=k.chunks,j=0;k=k.children;for(var Se=0;Se<k.length;Se++){for(z=k[Se];j<z.index;j++)x.push(Z[j]);z=Hs(v,x,z,O)}for(;j<Z.length-1;j++)x.push(Z[j]);return j<Z.length&&(z=x.push(Z[j])),z;case 3:return!0;default:throw Error(t(390))}}var mi=0;function Hs(v,x,k,O){var z=k.boundary;if(z===null)return Ti(v,x,k,O);if(z.parentFlushed=!0,z.status===4){var Z=z.row;return Z!==null&&--Z.pendingTasks===0&&Tn(v,Z),v.renderState.generateStaticMarkup||(z=z.errorDigest,x.push("<!--$!-->"),x.push("<template"),z&&(x.push(' data-dgst="'),z=q(z),x.push(z),x.push('"')),x.push("></template>")),Ti(v,x,k,O),v=v.renderState.generateStaticMarkup?!0:x.push("<!--/$-->"),v}if(z.status!==1)return z.status===0&&(z.rootSegmentID=v.nextSegmentId++),0<z.completedSegments.length&&v.partialBoundaries.push(z),Yr(x,v.renderState,z.rootSegmentID),O&&qa(O,z.fallbackState),Ti(v,x,k,O),x.push("<!--/$-->");if(!ll&&Bs(v,z)&&mi+z.byteSize>v.progressiveChunkSize)return z.rootSegmentID=v.nextSegmentId++,v.completedBoundaries.push(z),Yr(x,v.renderState,z.rootSegmentID),Ti(v,x,k,O),x.push("<!--/$-->");if(mi+=z.byteSize,O&&qa(O,z.contentState),k=z.row,k!==null&&Bs(v,z)&&--k.pendingTasks===0&&Tn(v,k),v.renderState.generateStaticMarkup||x.push("<!--$-->"),k=z.completedSegments,k.length!==1)throw Error(t(391));return Hs(v,x,k[0],O),v=v.renderState.generateStaticMarkup?!0:x.push("<!--/$-->"),v}function bn(v,x,k,O){return Mo(x,v.renderState,k.parentFormatContext,k.id),Hs(v,x,k,O),gh(x,k.parentFormatContext)}function on(v,x,k){mi=k.byteSize;for(var O=k.completedSegments,z=0;z<O.length;z++)Ca(v,x,k,O[z]);O.length=0,O=k.row,O!==null&&Bs(v,k)&&--O.pendingTasks===0&&Tn(v,O),Bl(x,k.contentState,v.renderState),O=v.resumableState,v=v.renderState,z=k.rootSegmentID,k=k.contentState;var Z=v.stylesToHoist;return v.stylesToHoist=!1,x.push(v.startInlineScript),x.push(">"),Z?((O.instructions&4)===0&&(O.instructions|=4,x.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};')),(O.instructions&2)===0&&(O.instructions|=2,x.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
81
|
-
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),(O.instructions&8)===0?(O.instructions|=8,x.push(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
82
|
-
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
83
|
-
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`)):x.push('$RR("')):((O.instructions&2)===0&&(O.instructions|=2,x.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
84
|
-
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),x.push('$RC("')),O=z.toString(16),x.push(v.boundaryPrefix),x.push(O),x.push('","'),x.push(v.segmentPrefix),x.push(O),Z?(x.push('",'),Ao(x,k)):x.push('"'),k=x.push(")<\/script>"),ku(x,v)&&k}function Ca(v,x,k,O){if(O.status===2)return!0;var z=k.contentState,Z=O.id;if(Z===-1){if((O.id=k.rootSegmentID)===-1)throw Error(t(392));return bn(v,x,O,z)}return Z===k.rootSegmentID?bn(v,x,O,z):(bn(v,x,O,z),k=v.resumableState,v=v.renderState,x.push(v.startInlineScript),x.push(">"),(k.instructions&1)===0?(k.instructions|=1,x.push('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')):x.push('$RS("'),x.push(v.segmentPrefix),Z=Z.toString(16),x.push(Z),x.push('","'),x.push(v.placeholderPrefix),x.push(Z),x=x.push('")<\/script>'),x)}var ll=!1;function Gc(v,x){try{if(!(0<v.pendingRootTasks)){var k,O=v.completedRootSegment;if(O!==null){if(O.status===5)return;var z=v.completedPreambleSegments;if(z===null)return;mi=v.byteSize;var Z=v.resumableState,j=v.renderState,Se=j.preamble,oe=Se.htmlChunks,xe=Se.headChunks,Le;if(oe){for(Le=0;Le<oe.length;Le++)x.push(oe[Le]);if(xe)for(Le=0;Le<xe.length;Le++)x.push(xe[Le]);else{var Ae=_n("head");x.push(Ae),x.push(">")}}else if(xe)for(Le=0;Le<xe.length;Le++)x.push(xe[Le]);var Ue=j.charsetChunks;for(Le=0;Le<Ue.length;Le++)x.push(Ue[Le]);Ue.length=0,j.preconnects.forEach(Or,x),j.preconnects.clear();var rt=j.viewportChunks;for(Le=0;Le<rt.length;Le++)x.push(rt[Le]);rt.length=0,j.fontPreloads.forEach(Or,x),j.fontPreloads.clear(),j.highImagePreloads.forEach(Or,x),j.highImagePreloads.clear(),Oe=j,j.styles.forEach(It,x),Oe=null;var Mt=j.importMapChunks;for(Le=0;Le<Mt.length;Le++)x.push(Mt[Le]);Mt.length=0,j.bootstrapScripts.forEach(Or,x),j.scripts.forEach(Or,x),j.scripts.clear(),j.bulkPreloads.forEach(Or,x),j.bulkPreloads.clear(),Z.instructions|=32;var mt=j.hoistableChunks;for(Le=0;Le<mt.length;Le++)x.push(mt[Le]);for(Z=mt.length=0;Z<z.length;Z++){var at=z[Z];for(j=0;j<at.length;j++)Hs(v,x,at[j],null)}var bt=v.renderState.preamble,dt=bt.headChunks;if(bt.htmlChunks||dt){var Rn=la("head");x.push(Rn)}var At=bt.bodyChunks;if(At)for(z=0;z<At.length;z++)x.push(At[z]);Hs(v,x,O,null),v.completedRootSegment=null;var zt=v.renderState;if(v.allPendingTasks!==0||v.clientRenderedBoundaries.length!==0||v.completedBoundaries.length!==0||v.trackedPostpones!==null&&(v.trackedPostpones.rootNodes.length!==0||v.trackedPostpones.rootSlots!==null)){var qt=v.resumableState;if((qt.instructions&64)===0){if(qt.instructions|=64,x.push(zt.startInlineScript),(qt.instructions&32)===0){qt.instructions|=32;var Ct="_"+qt.idPrefix+"R_";x.push(' id="');var Fn=q(Ct);x.push(Fn),x.push('"')}x.push(">"),x.push("requestAnimationFrame(function(){$RT=performance.now()});"),x.push("<\/script>")}}ku(x,zt)}var Zt=v.renderState;O=0;var zi=Zt.viewportChunks;for(O=0;O<zi.length;O++)x.push(zi[O]);zi.length=0,Zt.preconnects.forEach(Or,x),Zt.preconnects.clear(),Zt.fontPreloads.forEach(Or,x),Zt.fontPreloads.clear(),Zt.highImagePreloads.forEach(Or,x),Zt.highImagePreloads.clear(),Zt.styles.forEach(zl,x),Zt.scripts.forEach(Or,x),Zt.scripts.clear(),Zt.bulkPreloads.forEach(Or,x),Zt.bulkPreloads.clear();var tn=Zt.hoistableChunks;for(O=0;O<tn.length;O++)x.push(tn[O]);tn.length=0;var Vt=v.clientRenderedBoundaries;for(k=0;k<Vt.length;k++){var Kt=Vt[k];Zt=x;var xt=v.resumableState,Jt=v.renderState,hi=Kt.rootSegmentID,Ot=Kt.errorDigest;Zt.push(Jt.startInlineScript),Zt.push(">"),(xt.instructions&4)===0?(xt.instructions|=4,Zt.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("')):Zt.push('$RX("'),Zt.push(Jt.boundaryPrefix);var Ws=hi.toString(16);if(Zt.push(Ws),Zt.push('"'),Ot){Zt.push(",");var fs=Hn(Ot||"");Zt.push(fs)}var Hi=Zt.push(")<\/script>");if(!Hi){v.destination=null,k++,Vt.splice(0,k);return}}Vt.splice(0,k);var Zr=v.completedBoundaries;for(k=0;k<Zr.length;k++)if(!on(v,x,Zr[k])){v.destination=null,k++,Zr.splice(0,k);return}Zr.splice(0,k),ll=!0;var Kr=v.partialBoundaries;for(k=0;k<Kr.length;k++){var Jr=Kr[k];e:{Vt=v,Kt=x,mi=Jr.byteSize;var zo=Jr.completedSegments;for(Hi=0;Hi<zo.length;Hi++)if(!Ca(Vt,Kt,Jr,zo[Hi])){Hi++,zo.splice(0,Hi);var ds=!1;break e}zo.splice(0,Hi);var si=Jr.row;si!==null&&si.together&&Jr.pendingTasks===1&&(si.pendingTasks===1?bo(Vt,si,si.hoistables):si.pendingTasks--),ds=Bl(Kt,Jr.contentState,Vt.renderState)}if(!ds){v.destination=null,k++,Kr.splice(0,k);return}}Kr.splice(0,k),ll=!1;var Sa=v.completedBoundaries;for(k=0;k<Sa.length;k++)if(!on(v,x,Sa[k])){v.destination=null,k++,Sa.splice(0,k);return}Sa.splice(0,k)}}finally{ll=!1,v.allPendingTasks===0&&v.clientRenderedBoundaries.length===0&&v.completedBoundaries.length===0&&(v.flushScheduled=!1,k=v.resumableState,k.hasBody&&(Kr=la("body"),x.push(Kr)),k.hasHtml&&(k=la("html"),x.push(k)),v.status=14,x.push(null),v.destination=null)}}function cl(v){if(v.flushScheduled===!1&&v.pingedTasks.length===0&&v.destination!==null){v.flushScheduled=!0;var x=v.destination;x?Gc(v,x):v.flushScheduled=!1}}function Nu(v,x){if(v.status===13)v.status=14,x.destroy(v.fatalError);else if(v.status!==14&&v.destination===null){v.destination=x;try{Gc(v,x)}catch(k){un(v,k,{}),Br(v,k)}}}function qh(v,x){(v.status===11||v.status===10)&&(v.status=12);try{var k=v.abortableTasks;if(0<k.size){var O=x===void 0?Error(t(432)):typeof x=="object"&&x!==null&&typeof x.then=="function"?Error(t(530)):x;v.fatalError=O,k.forEach(function(z){return xh(z,v,O)}),k.clear()}v.destination!==null&&Gc(v,v.destination)}catch(z){un(v,z,{}),Br(v,z)}}function On(v,x,k){if(x===null)k.rootNodes.push(v);else{var O=k.workingMap,z=O.get(x);z===void 0&&(z=[x[1],x[2],[],null],O.set(x,z),On(z,x[0],k)),z[2].push(v)}}function hs(){}function Ch(v,x,k,O){var z=!1,Z=null,j="",Se=!1;if(x=it(x?x.identifierPrefix:void 0),v=va(v,x,$a(x,k),ct(0,null,0,null),1/0,hs,void 0,function(){Se=!0},void 0,void 0,void 0),v.flushScheduled=v.destination!==null,wh(v),v.status===10&&(v.status=11),v.trackedPostpones===null&&Bu(v,v.pendingRootTasks===0),qh(v,O),Nu(v,{push:function(oe){return oe!==null&&(j+=oe),!0},destroy:function(oe){z=!0,Z=oe}}),z&&Z!==O)throw Z;if(!Se)throw Error(t(426));return j}return eg.renderToStaticMarkup=function(v,x){return Ch(v,x,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},eg.renderToString=function(v,x){return Ch(v,x,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},eg.version="19.2.0",eg}var Nf={};/**
|
|
85
|
-
* @license React
|
|
86
|
-
* react-dom-server.browser.production.js
|
|
87
|
-
*
|
|
88
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
89
|
-
*
|
|
90
|
-
* This source code is licensed under the MIT license found in the
|
|
91
|
-
* LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/var Gw;function $L(){if(Gw)return Nf;Gw=1;var n=ge,e=rd;function t(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var R=2;R<arguments.length;R++)y+="&args[]="+encodeURIComponent(arguments[R])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),T=Symbol.for("react.scope"),P=Symbol.for("react.activity"),M=Symbol.for("react.legacy_hidden"),I=Symbol.for("react.memo_cache_sentinel"),L=Symbol.for("react.view_transition"),H=Symbol.iterator;function W(p){return p===null||typeof p!="object"?null:(p=H&&p[H]||p["@@iterator"],typeof p=="function"?p:null)}var G=Array.isArray;function J(p,y){var R=p.length&3,F=p.length-R,N=y;for(y=0;y<F;){var X=p.charCodeAt(y)&255|(p.charCodeAt(++y)&255)<<8|(p.charCodeAt(++y)&255)<<16|(p.charCodeAt(++y)&255)<<24;++y,X=3432918353*(X&65535)+((3432918353*(X>>>16)&65535)<<16)&4294967295,X=X<<15|X>>>17,X=461845907*(X&65535)+((461845907*(X>>>16)&65535)<<16)&4294967295,N^=X,N=N<<13|N>>>19,N=5*(N&65535)+((5*(N>>>16)&65535)<<16)&4294967295,N=(N&65535)+27492+(((N>>>16)+58964&65535)<<16)}switch(X=0,R){case 3:X^=(p.charCodeAt(y+2)&255)<<16;case 2:X^=(p.charCodeAt(y+1)&255)<<8;case 1:X^=p.charCodeAt(y)&255,X=3432918353*(X&65535)+((3432918353*(X>>>16)&65535)<<16)&4294967295,X=X<<15|X>>>17,N^=461845907*(X&65535)+((461845907*(X>>>16)&65535)<<16)&4294967295}return N^=p.length,N^=N>>>16,N=2246822507*(N&65535)+((2246822507*(N>>>16)&65535)<<16)&4294967295,N^=N>>>13,N=3266489909*(N&65535)+((3266489909*(N>>>16)&65535)<<16)&4294967295,(N^N>>>16)>>>0}var Y=new MessageChannel,$=[];Y.port1.onmessage=function(){var p=$.shift();p&&p()};function re(p){$.push(p),Y.port2.postMessage(null)}function be(p){setTimeout(function(){throw p})}var we=Promise,Ee=typeof queueMicrotask=="function"?queueMicrotask:function(p){we.resolve(null).then(p).catch(be)},pe=null,me=0;function ee(p,y){if(y.byteLength!==0)if(2048<y.byteLength)0<me&&(p.enqueue(new Uint8Array(pe.buffer,0,me)),pe=new Uint8Array(2048),me=0),p.enqueue(y);else{var R=pe.length-me;R<y.byteLength&&(R===0?p.enqueue(pe):(pe.set(y.subarray(0,R),me),p.enqueue(pe),y=y.subarray(R)),pe=new Uint8Array(2048),me=0),pe.set(y,me),me+=y.byteLength}}function q(p,y){return ee(p,y),!0}function le(p){pe&&0<me&&(p.enqueue(new Uint8Array(pe.buffer,0,me)),pe=null,me=0)}var Te=new TextEncoder;function he(p){return Te.encode(p)}function ue(p){return Te.encode(p)}function Ne(p){return p.byteLength}function We(p,y){typeof p.error=="function"?p.error(y):p.close()}var Qe=Object.assign,_e=Object.prototype.hasOwnProperty,Ve=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Oe={},qe={};function je(p){return _e.call(qe,p)?!0:_e.call(Oe,p)?!1:Ve.test(p)?qe[p]=!0:(Oe[p]=!0,!1)}var it=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),ct=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),li=/["'&<>]/;function tt(p){if(typeof p=="boolean"||typeof p=="number"||typeof p=="bigint")return""+p;p=""+p;var y=li.exec(p);if(y){var R="",F,N=0;for(F=y.index;F<p.length;F++){switch(p.charCodeAt(F)){case 34:y=""";break;case 38:y="&";break;case 39:y="'";break;case 60:y="<";break;case 62:y=">";break;default:continue}N!==F&&(R+=p.slice(N,F)),N=F+1,R+=y}p=N!==F?R+p.slice(N,F):R}return p}var Nt=/([A-Z])/g,Pt=/^ms-/,pn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ks(p){return pn.test(""+p)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":p}var Xr=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Yn=e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xi={pending:!1,data:null,method:null,action:null},pt=Yn.d;Yn.d={f:pt.f,r:pt.r,D:xh,C:Bu,L:No,m:$l,X:us,S:Si,M:wh};var gt=[],or=null;ue('"></template>');var Ac=ue("<script"),Gt=ue("<\/script>"),Bi=ue('<script src="'),mn=ue('<script type="module" src="'),fh=ue(' nonce="'),Gn=ue(' integrity="'),Tu=ue(' crossorigin="'),Eu=ue(' async=""><\/script>'),es=ue("<style"),Ru=/(<\/|<)(s)(cript)/gi;function Il(p,y,R,F){return""+y+(R==="s"?"\\u0073":"\\u0053")+F}var sa=ue('<script type="importmap">'),Ps=ue("<\/script>");function aa(p,y,R,F,N,X){R=typeof y=="string"?y:y&&y.script;var K=R===void 0?Ac:ue('<script nonce="'+tt(R)+'"'),fe=typeof y=="string"?void 0:y&&y.style,ne=fe===void 0?es:ue('<style nonce="'+tt(fe)+'"'),de=p.idPrefix,Ce=[],Pe=p.bootstrapScriptContent,Ze=p.bootstrapScripts,Ye=p.bootstrapModules;if(Pe!==void 0&&(Ce.push(K),Ns(Ce,p),Ce.push(Xt,he((""+Pe).replace(Ru,Il)),Gt)),Pe=[],F!==void 0&&(Pe.push(sa),Pe.push(he((""+JSON.stringify(F)).replace(Ru,Il))),Pe.push(Ps)),F=N?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+(typeof X=="number"?X:2e3)}:null,N={placeholderPrefix:ue(de+"P:"),segmentPrefix:ue(de+"S:"),boundaryPrefix:ue(de+"B:"),startInlineScript:K,startInlineStyle:ne,preamble:_n(),externalRuntimeScript:null,bootstrapChunks:Ce,importMapChunks:Pe,onHeaders:N,headers:F,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:R,style:fe},hoistableState:null,stylesToHoist:!1},Ze!==void 0)for(F=0;F<Ze.length;F++)de=Ze[F],fe=K=void 0,ne={rel:"preload",as:"script",fetchPriority:"low",nonce:y},typeof de=="string"?ne.href=X=de:(ne.href=X=de.src,ne.integrity=fe=typeof de.integrity=="string"?de.integrity:void 0,ne.crossOrigin=K=typeof de=="string"||de.crossOrigin==null?void 0:de.crossOrigin==="use-credentials"?"use-credentials":""),de=p,Pe=X,de.scriptResources[Pe]=null,de.moduleScriptResources[Pe]=null,de=[],Sn(de,ne),N.bootstrapScripts.add(de),Ce.push(Bi,he(tt(X)),cn),R&&Ce.push(fh,he(tt(R)),cn),typeof fe=="string"&&Ce.push(Gn,he(tt(fe)),cn),typeof K=="string"&&Ce.push(Tu,he(tt(K)),cn),Ns(Ce,p),Ce.push(Eu);if(Ye!==void 0)for(y=0;y<Ye.length;y++)fe=Ye[y],X=F=void 0,K={rel:"modulepreload",fetchPriority:"low",nonce:R},typeof fe=="string"?K.href=Ze=fe:(K.href=Ze=fe.src,K.integrity=X=typeof fe.integrity=="string"?fe.integrity:void 0,K.crossOrigin=F=typeof fe=="string"||fe.crossOrigin==null?void 0:fe.crossOrigin==="use-credentials"?"use-credentials":""),fe=p,ne=Ze,fe.scriptResources[ne]=null,fe.moduleScriptResources[ne]=null,fe=[],Sn(fe,K),N.bootstrapScripts.add(fe),Ce.push(mn,he(tt(Ze)),cn),R&&Ce.push(fh,he(tt(R)),cn),typeof X=="string"&&Ce.push(Gn,he(tt(X)),cn),typeof F=="string"&&Ce.push(Tu,he(tt(F)),cn),Ns(Ce,p),Ce.push(Eu);return N}function Dl(p,y,R,F,N){return{idPrefix:p===void 0?"":p,nextFormID:0,streamingFormat:0,bootstrapScriptContent:R,bootstrapScripts:F,bootstrapModules:N,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function _n(){return{htmlChunks:null,headChunks:null,bodyChunks:null}}function Cn(p,y,R,F){return{insertionMode:p,selectedValue:y,tagScope:R,viewTransition:F}}function _c(p){return Cn(p==="http://www.w3.org/2000/svg"?4:p==="http://www.w3.org/1998/Math/MathML"?5:0,null,0,null)}function la(p,y,R){var F=p.tagScope&-25;switch(y){case"noscript":return Cn(2,null,F|1,null);case"select":return Cn(2,R.value!=null?R.value:R.defaultValue,F,null);case"svg":return Cn(4,null,F,null);case"picture":return Cn(2,null,F|2,null);case"math":return Cn(5,null,F,null);case"foreignObject":return Cn(2,null,F,null);case"table":return Cn(6,null,F,null);case"thead":case"tbody":case"tfoot":return Cn(7,null,F,null);case"colgroup":return Cn(9,null,F,null);case"tr":return Cn(8,null,F,null);case"head":if(2>p.insertionMode)return Cn(3,null,F,null);break;case"html":if(p.insertionMode===0)return Cn(1,null,F,null)}return 6<=p.insertionMode||2>p.insertionMode?Cn(2,null,F,null):p.tagScope!==F?Cn(p.insertionMode,p.selectedValue,F,null):p}function dh(p){return p===null?null:{update:p.update,enter:"none",exit:"none",share:p.update,name:p.autoName,autoName:p.autoName,nameIdx:0}}function ku(p,y){return y.tagScope&32&&(p.instructions|=128),Cn(y.insertionMode,y.selectedValue,y.tagScope|12,dh(y.viewTransition))}function Yr(p,y){p=dh(y.viewTransition);var R=y.tagScope|16;return p!==null&&p.share!=="none"&&(R|=64),Cn(y.insertionMode,y.selectedValue,R,p)}var Mo=ue("<!-- -->");function gh(p,y,R,F){return y===""?F:(F&&p.push(Mo),p.push(he(tt(y))),!0)}var ca=new Map,Hn=ue(' style="'),Ms=ue(":"),As=ue(";");function ua(p,y){if(typeof y!="object")throw Error(t(62));var R=!0,F;for(F in y)if(_e.call(y,F)){var N=y[F];if(N!=null&&typeof N!="boolean"&&N!==""){if(F.indexOf("--")===0){var X=he(tt(F));N=he(tt((""+N).trim()))}else X=ca.get(F),X===void 0&&(X=ue(tt(F.replace(Nt,"-$1").toLowerCase().replace(Pt,"-ms-"))),ca.set(F,X)),N=typeof N=="number"?N===0||it.has(F)?he(""+N):he(N+"px"):he(tt((""+N).trim()));R?(R=!1,p.push(Hn,X,Ms,N)):p.push(As,X,Ms,N)}}R||p.push(cn)}var wi=ue(" "),vr=ue('="'),cn=ue('"'),Bl=ue('=""');function Or(p,y,R){R&&typeof R!="function"&&typeof R!="symbol"&&p.push(wi,he(y),Bl)}function Ut(p,y,R){typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&p.push(wi,he(y),vr,he(tt(R)),cn)}var ph=ue(tt("javascript:throw new Error('React form unexpectedly submitted.')")),It=ue('<input type="hidden"');function Nl(p,y){this.push(It),zl(p),Ut(this,"name",y),Ut(this,"value",p),this.push(fo)}function zl(p){if(typeof p!="string")throw Error(t(480))}function Hl(p,y){if(typeof y.$$FORM_ACTION=="function"){var R=p.nextFormID++;p=p.idPrefix+R;try{var F=y.$$FORM_ACTION(p);if(F){var N=F.data;N?.forEach(zl)}return F}catch(X){if(typeof X=="object"&&X!==null&&typeof X.then=="function")throw X}}return null}function Ao(p,y,R,F,N,X,K,fe){var ne=null;if(typeof F=="function"){var de=Hl(y,F);de!==null?(fe=de.name,F=de.action||"",N=de.encType,X=de.method,K=de.target,ne=de.data):(p.push(wi,he("formAction"),vr,ph,cn),K=X=N=F=fe=null,mh(y,R))}return fe!=null&&rn(p,"name",fe),F!=null&&rn(p,"formAction",F),N!=null&&rn(p,"formEncType",N),X!=null&&rn(p,"formMethod",X),K!=null&&rn(p,"formTarget",K),ne}function rn(p,y,R){switch(y){case"className":Ut(p,"class",R);break;case"tabIndex":Ut(p,"tabindex",R);break;case"dir":case"role":case"viewBox":case"width":case"height":Ut(p,y,R);break;case"style":ua(p,R);break;case"src":case"href":if(R==="")break;case"action":case"formAction":if(R==null||typeof R=="function"||typeof R=="symbol"||typeof R=="boolean")break;R=ks(""+R),p.push(wi,he(y),vr,he(tt(R)),cn);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":Or(p,y.toLowerCase(),R);break;case"xlinkHref":if(typeof R=="function"||typeof R=="symbol"||typeof R=="boolean")break;R=ks(""+R),p.push(wi,he("xlink:href"),vr,he(tt(R)),cn);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof R!="function"&&typeof R!="symbol"&&p.push(wi,he(y),vr,he(tt(R)),cn);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":R&&typeof R!="function"&&typeof R!="symbol"&&p.push(wi,he(y),Bl);break;case"capture":case"download":R===!0?p.push(wi,he(y),Bl):R!==!1&&typeof R!="function"&&typeof R!="symbol"&&p.push(wi,he(y),vr,he(tt(R)),cn);break;case"cols":case"rows":case"size":case"span":typeof R!="function"&&typeof R!="symbol"&&!isNaN(R)&&1<=R&&p.push(wi,he(y),vr,he(tt(R)),cn);break;case"rowSpan":case"start":typeof R=="function"||typeof R=="symbol"||isNaN(R)||p.push(wi,he(y),vr,he(tt(R)),cn);break;case"xlinkActuate":Ut(p,"xlink:actuate",R);break;case"xlinkArcrole":Ut(p,"xlink:arcrole",R);break;case"xlinkRole":Ut(p,"xlink:role",R);break;case"xlinkShow":Ut(p,"xlink:show",R);break;case"xlinkTitle":Ut(p,"xlink:title",R);break;case"xlinkType":Ut(p,"xlink:type",R);break;case"xmlBase":Ut(p,"xml:base",R);break;case"xmlLang":Ut(p,"xml:lang",R);break;case"xmlSpace":Ut(p,"xml:space",R);break;default:if((!(2<y.length)||y[0]!=="o"&&y[0]!=="O"||y[1]!=="n"&&y[1]!=="N")&&(y=ct.get(y)||y,je(y))){switch(typeof R){case"function":case"symbol":return;case"boolean":var F=y.toLowerCase().slice(0,5);if(F!=="data-"&&F!=="aria-")return}p.push(wi,he(y),vr,he(tt(R)),cn)}}}var Xt=ue(">"),fo=ue("/>");function Ci(p,y,R){if(y!=null){if(R!=null)throw Error(t(60));if(typeof y!="object"||!("__html"in y))throw Error(t(61));y=y.__html,y!=null&&p.push(he(""+y))}}function ha(p){var y="";return n.Children.forEach(p,function(R){R!=null&&(y+=R)}),y}var Oc=ue(' selected=""'),Ni=ue(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`);function mh(p,y){if((p.instructions&16)===0){p.instructions|=16;var R=y.preamble,F=y.bootstrapChunks;(R.htmlChunks||R.headChunks)&&F.length===0?(F.push(y.startInlineScript),Ns(F,p),F.push(Xt,Ni,Gt)):F.unshift(y.startInlineScript,Xt,Ni,Gt)}}var Pu=ue("<!--F!-->"),Fc=ue("<!--F-->");function Sn(p,y){p.push(ri("link"));for(var R in y)if(_e.call(y,R)){var F=y[R];if(F!=null)switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"link"));default:rn(p,R,F)}}return p.push(fo),null}var Lc=/(<\/|<)(s)(tyle)/gi;function ja(p,y,R,F){return""+y+(R==="s"?"\\73 ":"\\53 ")+F}function Fr(p,y,R){p.push(ri(R));for(var F in y)if(_e.call(y,F)){var N=y[F];if(N!=null)switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,R));default:rn(p,F,N)}}return p.push(fo),null}function fa(p,y){p.push(ri("title"));var R=null,F=null,N;for(N in y)if(_e.call(y,N)){var X=y[N];if(X!=null)switch(N){case"children":R=X;break;case"dangerouslySetInnerHTML":F=X;break;default:rn(p,N,X)}}return p.push(Xt),y=Array.isArray(R)?2>R.length?R[0]:null:R,typeof y!="function"&&typeof y!="symbol"&&y!==null&&y!==void 0&&p.push(he(tt(""+y))),Ci(p,F,R),p.push(Fo("title")),null}var vh=ue("<!--head-->"),yh=ue("<!--body-->"),qa=ue("<!--html-->");function $a(p,y){p.push(ri("script"));var R=null,F=null,N;for(N in y)if(_e.call(y,N)){var X=y[N];if(X!=null)switch(N){case"children":R=X;break;case"dangerouslySetInnerHTML":F=X;break;default:rn(p,N,X)}}return p.push(Xt),Ci(p,F,R),typeof R=="string"&&p.push(he((""+R).replace(Ru,Il))),p.push(Fo("script")),null}function _o(p,y,R){p.push(ri(R));var F=R=null,N;for(N in y)if(_e.call(y,N)){var X=y[N];if(X!=null)switch(N){case"children":R=X;break;case"dangerouslySetInnerHTML":F=X;break;default:rn(p,N,X)}}return p.push(Xt),Ci(p,F,R),R}function Oo(p,y,R){p.push(ri(R));var F=R=null,N;for(N in y)if(_e.call(y,N)){var X=y[N];if(X!=null)switch(N){case"children":R=X;break;case"dangerouslySetInnerHTML":F=X;break;default:rn(p,N,X)}}return p.push(Xt),Ci(p,F,R),typeof R=="string"?(p.push(he(tt(R))),null):R}var Ic=ue(`
|
|
93
|
-
`),Wl=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Vl=new Map;function ri(p){var y=Vl.get(p);if(y===void 0){if(!Wl.test(p))throw Error(t(65,p));y=ue("<"+p),Vl.set(p,y)}return y}var el=ue("<!DOCTYPE html>");function Gl(p,y,R,F,N,X,K,fe,ne){switch(y){case"div":case"span":case"svg":case"path":break;case"a":p.push(ri("a"));var de=null,Ce=null,Pe;for(Pe in R)if(_e.call(R,Pe)){var Ze=R[Pe];if(Ze!=null)switch(Pe){case"children":de=Ze;break;case"dangerouslySetInnerHTML":Ce=Ze;break;case"href":Ze===""?Ut(p,"href",""):rn(p,Pe,Ze);break;default:rn(p,Pe,Ze)}}if(p.push(Xt),Ci(p,Ce,de),typeof de=="string"){p.push(he(tt(de)));var Ye=null}else Ye=de;return Ye;case"g":case"p":case"li":break;case"select":p.push(ri("select"));var Dt=null,vt=null,Bt;for(Bt in R)if(_e.call(R,Bt)){var In=R[Bt];if(In!=null)switch(Bt){case"children":Dt=In;break;case"dangerouslySetInnerHTML":vt=In;break;case"defaultValue":case"value":break;default:rn(p,Bt,In)}}return p.push(Xt),Ci(p,vt,Dt),Dt;case"option":var xn=fe.selectedValue;p.push(ri("option"));var Ri=null,br=null,$r=null,yt=null,Xi;for(Xi in R)if(_e.call(R,Xi)){var Xn=R[Xi];if(Xn!=null)switch(Xi){case"children":Ri=Xn;break;case"selected":$r=Xn;break;case"dangerouslySetInnerHTML":yt=Xn;break;case"value":br=Xn;default:rn(p,Xi,Xn)}}if(xn!=null){var fr=br!==null?""+br:ha(Ri);if(G(xn)){for(var vs=0;vs<xn.length;vs++)if(""+xn[vs]===fr){p.push(Oc);break}}else""+xn===fr&&p.push(Oc)}else $r&&p.push(Oc);return p.push(Xt),Ci(p,yt,Ri),Ri;case"textarea":p.push(ri("textarea"));var Dn=null,Oa=null,eo=null,Yi;for(Yi in R)if(_e.call(R,Yi)){var So=R[Yi];if(So!=null)switch(Yi){case"children":eo=So;break;case"value":Dn=So;break;case"defaultValue":Oa=So;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:rn(p,Yi,So)}}if(Dn===null&&Oa!==null&&(Dn=Oa),p.push(Xt),eo!=null){if(Dn!=null)throw Error(t(92));if(G(eo)){if(1<eo.length)throw Error(t(93));Dn=""+eo[0]}Dn=""+eo}return typeof Dn=="string"&&Dn[0]===`
|
|
94
|
-
`&&p.push(Ic),Dn!==null&&p.push(he(tt(""+Dn))),null;case"input":p.push(ri("input"));var Zi=null,Fa=null,vl=null,dr=null,yl=null,Ki=null,La=null,Yu=null,kn=null,bl;for(bl in R)if(_e.call(R,bl)){var To=R[bl];if(To!=null)switch(bl){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"name":Zi=To;break;case"formAction":Fa=To;break;case"formEncType":vl=To;break;case"formMethod":dr=To;break;case"formTarget":yl=To;break;case"defaultChecked":kn=To;break;case"defaultValue":La=To;break;case"checked":Yu=To;break;case"value":Ki=To;break;default:rn(p,bl,To)}}var $c=Ao(p,F,N,Fa,vl,dr,yl,Zi);return Yu!==null?Or(p,"checked",Yu):kn!==null&&Or(p,"checked",kn),Ki!==null?rn(p,"value",Ki):La!==null&&rn(p,"value",La),p.push(fo),$c?.forEach(Nl,p),null;case"button":p.push(ri("button"));var Ia=null,eu=null,tu=null,xl=null,Qs=null,nu=null,Wo=null,Da;for(Da in R)if(_e.call(R,Da)){var Ba=R[Da];if(Ba!=null)switch(Da){case"children":Ia=Ba;break;case"dangerouslySetInnerHTML":eu=Ba;break;case"name":tu=Ba;break;case"formAction":xl=Ba;break;case"formEncType":Qs=Ba;break;case"formMethod":nu=Ba;break;case"formTarget":Wo=Ba;break;default:rn(p,Da,Ba)}}var kh=Ao(p,F,N,xl,Qs,nu,Wo,tu);if(p.push(Xt),kh?.forEach(Nl,p),Ci(p,eu,Ia),typeof Ia=="string"){p.push(he(tt(Ia)));var to=null}else to=Ia;return to;case"form":p.push(ri("form"));var Ph=null,Wr=null,js=null,ys=null,iu=null,ru=null,ou;for(ou in R)if(_e.call(R,ou)){var Na=R[ou];if(Na!=null)switch(ou){case"children":Ph=Na;break;case"dangerouslySetInnerHTML":Wr=Na;break;case"action":js=Na;break;case"encType":ys=Na;break;case"method":iu=Na;break;case"target":ru=Na;break;default:rn(p,ou,Na)}}var Mh=null,Zu=null;if(typeof js=="function"){var wl=Hl(F,js);wl!==null?(js=wl.action||"",ys=wl.encType,iu=wl.method,ru=wl.target,Mh=wl.data,Zu=wl.name):(p.push(wi,he("action"),vr,ph,cn),ru=iu=ys=js=null,mh(F,N))}if(js!=null&&rn(p,"action",js),ys!=null&&rn(p,"encType",ys),iu!=null&&rn(p,"method",iu),ru!=null&&rn(p,"target",ru),p.push(Xt),Zu!==null&&(p.push(It),Ut(p,"name",Zu),p.push(fo),Mh?.forEach(Nl,p)),Ci(p,Wr,Ph),typeof Ph=="string"){p.push(he(tt(Ph)));var Ah=null}else Ah=Ph;return Ah;case"menuitem":p.push(ri("menuitem"));for(var su in R)if(_e.call(R,su)){var $h=R[su];if($h!=null)switch(su){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:rn(p,su,$h)}}return p.push(Xt),null;case"object":p.push(ri("object"));var Ku=null,ef=null,au;for(au in R)if(_e.call(R,au)){var Cl=R[au];if(Cl!=null)switch(au){case"children":Ku=Cl;break;case"dangerouslySetInnerHTML":ef=Cl;break;case"data":var kf=ks(""+Cl);if(kf==="")break;p.push(wi,he("data"),vr,he(tt(kf)),cn);break;default:rn(p,au,Cl)}}if(p.push(Xt),Ci(p,ef,Ku),typeof Ku=="string"){p.push(he(tt(Ku)));var Pf=null}else Pf=Ku;return Pf;case"title":var Vo=fe.tagScope&1,_h=fe.tagScope&4;if(fe.insertionMode===4||Vo||R.itemProp!=null)var Mf=fa(p,R);else _h?Mf=null:(fa(N.hoistableChunks,R),Mf=void 0);return Mf;case"link":var vi=fe.tagScope&1,bs=fe.tagScope&4,Ji=R.rel,qs=R.href,no=R.precedence;if(fe.insertionMode===4||vi||R.itemProp!=null||typeof Ji!="string"||typeof qs!="string"||qs===""){Sn(p,R);var nn=null}else if(R.rel==="stylesheet")if(typeof no!="string"||R.disabled!=null||R.onLoad||R.onError)nn=Sn(p,R);else{var xr=N.styles.get(no),xs=F.styleResources.hasOwnProperty(qs)?F.styleResources[qs]:void 0;if(xs!==null){F.styleResources[qs]=null,xr||(xr={precedence:he(tt(no)),rules:[],hrefs:[],sheets:new Map},N.styles.set(no,xr));var qn={state:0,props:Qe({},R,{"data-precedence":R.precedence,precedence:null})};if(xs){xs.length===2&&xa(qn.props,xs);var hc=N.preloads.stylesheets.get(qs);hc&&0<hc.length?hc.length=0:qn.state=1}xr.sheets.set(qs,qn),K&&K.stylesheets.add(qn)}else if(xr){var lu=xr.sheets.get(qs);lu&&K&&K.stylesheets.add(lu)}ne&&p.push(Mo),nn=null}else R.onLoad||R.onError?nn=Sn(p,R):(ne&&p.push(Mo),nn=bs?null:Sn(N.hoistableChunks,R));return nn;case"script":var Oh=fe.tagScope&1,Sl=R.async;if(typeof R.src!="string"||!R.src||!Sl||typeof Sl=="function"||typeof Sl=="symbol"||R.onLoad||R.onError||fe.insertionMode===4||Oh||R.itemProp!=null)var za=$a(p,R);else{var fc=R.src;if(R.type==="module")var Eo=F.moduleScriptResources,Ha=N.preloads.moduleScripts;else Eo=F.scriptResources,Ha=N.preloads.scripts;var dc=Eo.hasOwnProperty(fc)?Eo[fc]:void 0;if(dc!==null){Eo[fc]=null;var h=R;if(dc){dc.length===2&&(h=Qe({},R),xa(h,dc));var d=Ha.get(fc);d&&(d.length=0)}var S=[];N.scripts.add(S),$a(S,h)}ne&&p.push(Mo),za=null}return za;case"style":var _=fe.tagScope&1,B=R.precedence,U=R.href,te=R.nonce;if(fe.insertionMode===4||_||R.itemProp!=null||typeof B!="string"||typeof U!="string"||U===""){p.push(ri("style"));var se=null,Fe=null,ve;for(ve in R)if(_e.call(R,ve)){var Me=R[ve];if(Me!=null)switch(ve){case"children":se=Me;break;case"dangerouslySetInnerHTML":Fe=Me;break;default:rn(p,ve,Me)}}p.push(Xt);var Ge=Array.isArray(se)?2>se.length?se[0]:null:se;typeof Ge!="function"&&typeof Ge!="symbol"&&Ge!==null&&Ge!==void 0&&p.push(he((""+Ge).replace(Lc,ja))),Ci(p,Fe,se),p.push(Fo("style"));var Ke=null}else{var Xe=N.styles.get(B);if((F.styleResources.hasOwnProperty(U)?F.styleResources[U]:void 0)!==null){F.styleResources[U]=null,Xe||(Xe={precedence:he(tt(B)),rules:[],hrefs:[],sheets:new Map},N.styles.set(B,Xe));var De=N.nonce.style;if(!De||De===te){Xe.hrefs.push(he(tt(U)));var Ft=Xe.rules,vn=null,ht=null,Qt;for(Qt in R)if(_e.call(R,Qt)){var ki=R[Qt];if(ki!=null)switch(Qt){case"children":vn=ki;break;case"dangerouslySetInnerHTML":ht=ki}}var Pi=Array.isArray(vn)?2>vn.length?vn[0]:null:vn;typeof Pi!="function"&&typeof Pi!="symbol"&&Pi!==null&&Pi!==void 0&&Ft.push(he((""+Pi).replace(Lc,ja))),Ci(Ft,ht,vn)}}Xe&&K&&K.styles.add(Xe),ne&&p.push(Mo),Ke=void 0}return Ke;case"meta":var $t=fe.tagScope&1,fi=fe.tagScope&4;if(fe.insertionMode===4||$t||R.itemProp!=null)var Go=Fr(p,R,"meta");else ne&&p.push(Mo),Go=fi?null:typeof R.charSet=="string"?Fr(N.charsetChunks,R,"meta"):R.name==="viewport"?Fr(N.viewportChunks,R,"meta"):Fr(N.hoistableChunks,R,"meta");return Go;case"listing":case"pre":p.push(ri(y));var gr=null,$e=null,sn;for(sn in R)if(_e.call(R,sn)){var an=R[sn];if(an!=null)switch(sn){case"children":gr=an;break;case"dangerouslySetInnerHTML":$e=an;break;default:rn(p,sn,an)}}if(p.push(Xt),$e!=null){if(gr!=null)throw Error(t(60));if(typeof $e!="object"||!("__html"in $e))throw Error(t(61));var hn=$e.__html;hn!=null&&(typeof hn=="string"&&0<hn.length&&hn[0]===`
|
|
95
|
-
`?p.push(Ic,he(hn)):p.push(he(""+hn)))}return typeof gr=="string"&&gr[0]===`
|
|
96
|
-
`&&p.push(Ic),gr;case"img":var Bn=fe.tagScope&3,Ht=R.src,Tt=R.srcSet;if(!(R.loading==="lazy"||!Ht&&!Tt||typeof Ht!="string"&&Ht!=null||typeof Tt!="string"&&Tt!=null||R.fetchPriority==="low"||Bn)&&(typeof Ht!="string"||Ht[4]!==":"||Ht[0]!=="d"&&Ht[0]!=="D"||Ht[1]!=="a"&&Ht[1]!=="A"||Ht[2]!=="t"&&Ht[2]!=="T"||Ht[3]!=="a"&&Ht[3]!=="A")&&(typeof Tt!="string"||Tt[4]!==":"||Tt[0]!=="d"&&Tt[0]!=="D"||Tt[1]!=="a"&&Tt[1]!=="A"||Tt[2]!=="t"&&Tt[2]!=="T"||Tt[3]!=="a"&&Tt[3]!=="A")){K!==null&&fe.tagScope&64&&(K.suspenseyImages=!0);var Qi=typeof R.sizes=="string"?R.sizes:void 0,ln=Tt?Tt+`
|
|
97
|
-
`+(Qi||""):Ht,Mi=N.preloads.images,Pn=Mi.get(ln);if(Pn)(R.fetchPriority==="high"||10>N.highImagePreloads.size)&&(Mi.delete(ln),N.highImagePreloads.add(Pn));else if(!F.imageResources.hasOwnProperty(ln)){F.imageResources[ln]=gt;var wr=R.crossOrigin,Tl=typeof wr=="string"?wr==="use-credentials"?wr:"":void 0,Cr=N.headers,Uo;Cr&&0<Cr.remainingCapacity&&typeof R.srcSet!="string"&&(R.fetchPriority==="high"||500>Cr.highImagePreloads.length)&&(Uo=Vc(Ht,"image",{imageSrcSet:R.srcSet,imageSizes:R.sizes,crossOrigin:Tl,integrity:R.integrity,nonce:R.nonce,type:R.type,fetchPriority:R.fetchPriority,referrerPolicy:R.refererPolicy}),0<=(Cr.remainingCapacity-=Uo.length+2))?(N.resets.image[ln]=gt,Cr.highImagePreloads&&(Cr.highImagePreloads+=", "),Cr.highImagePreloads+=Uo):(Pn=[],Sn(Pn,{rel:"preload",as:"image",href:Tt?void 0:Ht,imageSrcSet:Tt,imageSizes:Qi,crossOrigin:Tl,integrity:R.integrity,type:R.type,fetchPriority:R.fetchPriority,referrerPolicy:R.referrerPolicy}),R.fetchPriority==="high"||10>N.highImagePreloads.size?N.highImagePreloads.add(Pn):(N.bulkPreloads.add(Pn),Mi.set(ln,Pn)))}}return Fr(p,R,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return Fr(p,R,y);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(2>fe.insertionMode){var Xo=X||N.preamble;if(Xo.headChunks)throw Error(t(545,"`<head>`"));X!==null&&p.push(vh),Xo.headChunks=[];var Yo=_o(Xo.headChunks,R,"head")}else Yo=Oo(p,R,"head");return Yo;case"body":if(2>fe.insertionMode){var yi=X||N.preamble;if(yi.bodyChunks)throw Error(t(545,"`<body>`"));X!==null&&p.push(yh),yi.bodyChunks=[];var c=_o(yi.bodyChunks,R,"body")}else c=Oo(p,R,"body");return c;case"html":if(fe.insertionMode===0){var f=X||N.preamble;if(f.htmlChunks)throw Error(t(545,"`<html>`"));X!==null&&p.push(qa),f.htmlChunks=[el];var C=_o(f.htmlChunks,R,"html")}else C=Oo(p,R,"html");return C;default:if(y.indexOf("-")!==-1){p.push(ri(y));var A=null,D=null,V;for(V in R)if(_e.call(R,V)){var Q=R[V];if(Q!=null){var ie=V;switch(V){case"children":A=Q;break;case"dangerouslySetInnerHTML":D=Q;break;case"style":ua(p,Q);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":ie="class";default:if(je(V)&&typeof Q!="function"&&typeof Q!="symbol"&&Q!==!1){if(Q===!0)Q="";else if(typeof Q=="object")continue;p.push(wi,he(ie),vr,he(tt(Q)),cn)}}}}return p.push(Xt),Ci(p,D,A),A}}return Oo(p,R,y)}var Dc=new Map;function Fo(p){var y=Dc.get(p);return y===void 0&&(y=ue("</"+p+">"),Dc.set(p,y)),y}function Ul(p,y){p=p.preamble,p.htmlChunks===null&&y.htmlChunks&&(p.htmlChunks=y.htmlChunks),p.headChunks===null&&y.headChunks&&(p.headChunks=y.headChunks),p.bodyChunks===null&&y.bodyChunks&&(p.bodyChunks=y.bodyChunks)}function sr(p,y){y=y.bootstrapChunks;for(var R=0;R<y.length-1;R++)ee(p,y[R]);return R<y.length?(R=y[R],y.length=0,q(p,R)):!0}var go=ue("requestAnimationFrame(function(){$RT=performance.now()});"),Mu=ue('<template id="'),Xl=ue('"></template>'),ar=ue("<!--&-->"),Yl=ue("<!--/&-->"),_s=ue("<!--$-->"),tl=ue('<!--$?--><template id="'),lr=ue('"></template>'),ci=ue("<!--$!-->"),yn=ue("<!--/$-->"),Au=ue("<template"),ts=ue('"'),po=ue(' data-dgst="');ue(' data-msg="'),ue(' data-stck="'),ue(' data-cstck="');var _u=ue("></template>");function ns(p,y,R){if(ee(p,tl),R===null)throw Error(t(395));return ee(p,y.boundaryPrefix),ee(p,he(R.toString(16))),q(p,lr)}var Lo=ue('<div hidden id="'),nl=ue('">'),is=ue("</div>"),rs=ue('<svg aria-hidden="true" style="display:none" id="'),il=ue('">'),wt=ue("</svg>"),mo=ue('<math aria-hidden="true" style="display:none" id="'),Zn=ue('">'),Io=ue("</math>"),oi=ue('<table hidden id="'),Os=ue('">'),da=ue("</table>"),Do=ue('<table hidden><tbody id="'),os=ue('">'),Kn=ue("</tbody></table>"),ss=ue('<table hidden><tr id="'),as=ue('">'),ga=ue("</tr></table>"),Fs=ue('<table hidden><colgroup id="'),pa=ue('">'),cr=ue("</colgroup></table>");function ma(p,y,R,F){switch(R.insertionMode){case 0:case 1:case 3:case 2:return ee(p,Lo),ee(p,y.segmentPrefix),ee(p,he(F.toString(16))),q(p,nl);case 4:return ee(p,rs),ee(p,y.segmentPrefix),ee(p,he(F.toString(16))),q(p,il);case 5:return ee(p,mo),ee(p,y.segmentPrefix),ee(p,he(F.toString(16))),q(p,Zn);case 6:return ee(p,oi),ee(p,y.segmentPrefix),ee(p,he(F.toString(16))),q(p,Os);case 7:return ee(p,Do),ee(p,y.segmentPrefix),ee(p,he(F.toString(16))),q(p,os);case 8:return ee(p,ss),ee(p,y.segmentPrefix),ee(p,he(F.toString(16))),q(p,as);case 9:return ee(p,Fs),ee(p,y.segmentPrefix),ee(p,he(F.toString(16))),q(p,pa);default:throw Error(t(397))}}function vo(p,y){switch(y.insertionMode){case 0:case 1:case 3:case 2:return q(p,is);case 4:return q(p,wt);case 5:return q(p,Io);case 6:return q(p,da);case 7:return q(p,Kn);case 8:return q(p,ga);case 9:return q(p,cr);default:throw Error(t(397))}}var Ou=ue('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Fu=ue('$RS("'),Lu=ue('","'),rl=ue('")<\/script>');ue('<template data-rsi="" data-sid="'),ue('" data-pid="');var ol=ue(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
98
|
-
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`);he(`$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),
|
|
99
|
-
H=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(B){var z=
|
|
100
|
-
document.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=
|
|
101
|
-
performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);`);var sl=ue('$RC("'),ui=ue(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
102
|
-
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
103
|
-
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),bh=ue('$RR("'),Ls=ue('","'),Zl=ue('",'),Bc=ue('"'),ls=ue(")<\/script>");ue('<template data-rci="" data-bid="'),ue('<template data-rri="" data-bid="'),ue('" data-sid="'),ue('" data-sty="');var Is=ue('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'),al=ue('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),yo=ue('$RX("'),Ds=ue('"'),Bs=ue(","),Iu=ue(")<\/script>");ue('<template data-rxi="" data-bid="'),ue('" data-dgst="'),ue('" data-msg="'),ue('" data-stck="'),ue('" data-cstck="');var Qh=/[<\u2028\u2029]/g;function va(p){return JSON.stringify(p).replace(Qh,function(y){switch(y){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Jn=/[&><\u2028\u2029]/g;function Bo(p){return JSON.stringify(p).replace(Jn,function(y){switch(y){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Kl=ue(' media="not all" data-precedence="'),Jl=ue('" data-href="'),Nc=ue('">'),Lr=ue("</style>"),Ir=!1,yr=!0;function Dr(p){var y=p.rules,R=p.hrefs,F=0;if(R.length){for(ee(this,or.startInlineStyle),ee(this,Kl),ee(this,p.precedence),ee(this,Jl);F<R.length-1;F++)ee(this,R[F]),ee(this,Ql);for(ee(this,R[F]),ee(this,Nc),F=0;F<y.length;F++)ee(this,y[F]);yr=q(this,Lr),Ir=!0,y.length=0,R.length=0}}function un(p){return p.state!==2?Ir=!0:!1}function Br(p,y,R){return Ir=!1,yr=!0,or=R,y.styles.forEach(Dr,p),or=null,y.stylesheets.forEach(un),Ir&&(R.stylesToHoist=!0),yr}function Tn(p){for(var y=0;y<p.length;y++)ee(this,p[y]);p.length=0}var bo=[];function zc(p){Sn(bo,p.props);for(var y=0;y<bo.length;y++)ee(this,bo[y]);bo.length=0,p.state=2}var Hc=ue(' data-precedence="'),Wc=ue('" data-href="'),Ql=ue(" "),cs=ue('">'),jl=ue("</style>");function ql(p){var y=0<p.sheets.size;p.sheets.forEach(zc,this),p.sheets.clear();var R=p.rules,F=p.hrefs;if(!y||F.length){if(ee(this,or.startInlineStyle),ee(this,Hc),ee(this,p.precedence),p=0,F.length){for(ee(this,Wc);p<F.length-1;p++)ee(this,F[p]),ee(this,Ql);ee(this,F[p])}for(ee(this,cs),p=0;p<R.length;p++)ee(this,R[p]);ee(this,jl),R.length=0,F.length=0}}function ur(p){if(p.state===0){p.state=1;var y=p.props;for(Sn(bo,{rel:"preload",as:"style",href:p.props.href,crossOrigin:y.crossOrigin,fetchPriority:y.fetchPriority,integrity:y.integrity,media:y.media,hrefLang:y.hrefLang,referrerPolicy:y.referrerPolicy}),p=0;p<bo.length;p++)ee(this,bo[p]);bo.length=0}}function En(p){p.sheets.forEach(ur,this),p.sheets.clear()}ue('<link rel="expect" href="#'),ue('" blocking="render"/>');var Yt=ue(' id="');function Ns(p,y){(y.instructions&32)===0&&(y.instructions|=32,p.push(Yt,he(tt("_"+y.idPrefix+"R_")),cn))}var ya=ue("["),ba=ue(",["),zs=ue(","),Du=ue("]");function pi(p,y){ee(p,ya);var R=ya;y.stylesheets.forEach(function(F){if(F.state!==2)if(F.state===3)ee(p,R),ee(p,he(Bo(""+F.props.href))),ee(p,Du),R=ba;else{ee(p,R);var N=F.props["data-precedence"],X=F.props,K=ks(""+F.props.href);ee(p,he(Bo(K))),N=""+N,ee(p,zs),ee(p,he(Bo(N)));for(var fe in X)if(_e.call(X,fe)&&(N=X[fe],N!=null))switch(fe){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"link"));default:jh(p,fe,N)}ee(p,Du),R=ba,F.state=3}}),ee(p,Du)}function jh(p,y,R){var F=y.toLowerCase();switch(typeof R){case"function":case"symbol":return}switch(y){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":F="class",y=""+R;break;case"hidden":if(R===!1)return;y="";break;case"src":case"href":R=ks(R),y=""+R;break;default:if(2<y.length&&(y[0]==="o"||y[0]==="O")&&(y[1]==="n"||y[1]==="N")||!je(y))return;y=""+R}ee(p,zs),ee(p,he(Bo(F))),ee(p,zs),ee(p,he(Bo(y)))}function xo(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function xh(p){var y=_t||null;if(y){var R=y.resumableState,F=y.renderState;if(typeof p=="string"&&p){if(!R.dnsResources.hasOwnProperty(p)){R.dnsResources[p]=null,R=F.headers;var N,X;(X=R&&0<R.remainingCapacity)&&(X=(N="<"+(""+p).replace(wa,Ti)+">; rel=dns-prefetch",0<=(R.remainingCapacity-=N.length+2))),X?(F.resets.dns[p]=null,R.preconnects&&(R.preconnects+=", "),R.preconnects+=N):(N=[],Sn(N,{href:p,rel:"dns-prefetch"}),F.preconnects.add(N))}Js(y)}}else pt.D(p)}function Bu(p,y){var R=_t||null;if(R){var F=R.resumableState,N=R.renderState;if(typeof p=="string"&&p){var X=y==="use-credentials"?"credentials":typeof y=="string"?"anonymous":"default";if(!F.connectResources[X].hasOwnProperty(p)){F.connectResources[X][p]=null,F=N.headers;var K,fe;if(fe=F&&0<F.remainingCapacity){if(fe="<"+(""+p).replace(wa,Ti)+">; rel=preconnect",typeof y=="string"){var ne=(""+y).replace(mi,Hs);fe+='; crossorigin="'+ne+'"'}fe=(K=fe,0<=(F.remainingCapacity-=K.length+2))}fe?(N.resets.connect[X][p]=null,F.preconnects&&(F.preconnects+=", "),F.preconnects+=K):(X=[],Sn(X,{rel:"preconnect",href:p,crossOrigin:y}),N.preconnects.add(X))}Js(R)}}else pt.C(p,y)}function No(p,y,R){var F=_t||null;if(F){var N=F.resumableState,X=F.renderState;if(y&&p){switch(y){case"image":if(R)var K=R.imageSrcSet,fe=R.imageSizes,ne=R.fetchPriority;var de=K?K+`
|
|
104
|
-
`+(fe||""):p;if(N.imageResources.hasOwnProperty(de))return;N.imageResources[de]=gt,N=X.headers;var Ce;N&&0<N.remainingCapacity&&typeof K!="string"&&ne==="high"&&(Ce=Vc(p,y,R),0<=(N.remainingCapacity-=Ce.length+2))?(X.resets.image[de]=gt,N.highImagePreloads&&(N.highImagePreloads+=", "),N.highImagePreloads+=Ce):(N=[],Sn(N,Qe({rel:"preload",href:K?void 0:p,as:y},R)),ne==="high"?X.highImagePreloads.add(N):(X.bulkPreloads.add(N),X.preloads.images.set(de,N)));break;case"style":if(N.styleResources.hasOwnProperty(p))return;K=[],Sn(K,Qe({rel:"preload",href:p,as:y},R)),N.styleResources[p]=!R||typeof R.crossOrigin!="string"&&typeof R.integrity!="string"?gt:[R.crossOrigin,R.integrity],X.preloads.stylesheets.set(p,K),X.bulkPreloads.add(K);break;case"script":if(N.scriptResources.hasOwnProperty(p))return;K=[],X.preloads.scripts.set(p,K),X.bulkPreloads.add(K),Sn(K,Qe({rel:"preload",href:p,as:y},R)),N.scriptResources[p]=!R||typeof R.crossOrigin!="string"&&typeof R.integrity!="string"?gt:[R.crossOrigin,R.integrity];break;default:if(N.unknownResources.hasOwnProperty(y)){if(K=N.unknownResources[y],K.hasOwnProperty(p))return}else K={},N.unknownResources[y]=K;if(K[p]=gt,(N=X.headers)&&0<N.remainingCapacity&&y==="font"&&(de=Vc(p,y,R),0<=(N.remainingCapacity-=de.length+2)))X.resets.font[p]=gt,N.fontPreloads&&(N.fontPreloads+=", "),N.fontPreloads+=de;else switch(N=[],p=Qe({rel:"preload",href:p,as:y},R),Sn(N,p),y){case"font":X.fontPreloads.add(N);break;default:X.bulkPreloads.add(N)}}Js(F)}}else pt.L(p,y,R)}function $l(p,y){var R=_t||null;if(R){var F=R.resumableState,N=R.renderState;if(p){var X=y&&typeof y.as=="string"?y.as:"script";switch(X){case"script":if(F.moduleScriptResources.hasOwnProperty(p))return;X=[],F.moduleScriptResources[p]=!y||typeof y.crossOrigin!="string"&&typeof y.integrity!="string"?gt:[y.crossOrigin,y.integrity],N.preloads.moduleScripts.set(p,X);break;default:if(F.moduleUnknownResources.hasOwnProperty(X)){var K=F.unknownResources[X];if(K.hasOwnProperty(p))return}else K={},F.moduleUnknownResources[X]=K;X=[],K[p]=gt}Sn(X,Qe({rel:"modulepreload",href:p},y)),N.bulkPreloads.add(X),Js(R)}}else pt.m(p,y)}function Si(p,y,R){var F=_t||null;if(F){var N=F.resumableState,X=F.renderState;if(p){y=y||"default";var K=X.styles.get(y),fe=N.styleResources.hasOwnProperty(p)?N.styleResources[p]:void 0;fe!==null&&(N.styleResources[p]=null,K||(K={precedence:he(tt(y)),rules:[],hrefs:[],sheets:new Map},X.styles.set(y,K)),y={state:0,props:Qe({rel:"stylesheet",href:p,"data-precedence":y},R)},fe&&(fe.length===2&&xa(y.props,fe),(X=X.preloads.stylesheets.get(p))&&0<X.length?X.length=0:y.state=1),K.sheets.set(p,y),Js(F))}}else pt.S(p,y,R)}function us(p,y){var R=_t||null;if(R){var F=R.resumableState,N=R.renderState;if(p){var X=F.scriptResources.hasOwnProperty(p)?F.scriptResources[p]:void 0;X!==null&&(F.scriptResources[p]=null,y=Qe({src:p,async:!0},y),X&&(X.length===2&&xa(y,X),p=N.preloads.scripts.get(p))&&(p.length=0),p=[],N.scripts.add(p),$a(p,y),Js(R))}}else pt.X(p,y)}function wh(p,y){var R=_t||null;if(R){var F=R.resumableState,N=R.renderState;if(p){var X=F.moduleScriptResources.hasOwnProperty(p)?F.moduleScriptResources[p]:void 0;X!==null&&(F.moduleScriptResources[p]=null,y=Qe({src:p,type:"module",async:!0},y),X&&(X.length===2&&xa(y,X),p=N.preloads.moduleScripts.get(p))&&(p.length=0),p=[],N.scripts.add(p),$a(p,y),Js(R))}}else pt.M(p,y)}function xa(p,y){p.crossOrigin==null&&(p.crossOrigin=y[0]),p.integrity==null&&(p.integrity=y[1])}function Vc(p,y,R){p=(""+p).replace(wa,Ti),y=(""+y).replace(mi,Hs),y="<"+p+'>; rel=preload; as="'+y+'"';for(var F in R)_e.call(R,F)&&(p=R[F],typeof p=="string"&&(y+="; "+F.toLowerCase()+'="'+(""+p).replace(mi,Hs)+'"'));return y}var wa=/[<>\r\n]/g;function Ti(p){switch(p){case"<":return"%3C";case">":return"%3E";case`
|
|
105
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var mi=/["';,\r\n]/g;function Hs(p){switch(p){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
106
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function bn(p){this.styles.add(p)}function on(p){this.stylesheets.add(p)}function Ca(p,y){y.styles.forEach(bn,p),y.stylesheets.forEach(on,p),y.suspenseyImages&&(p.suspenseyImages=!0)}function ll(p){return 0<p.stylesheets.size||p.suspenseyImages}var Gc=Function.prototype.bind,cl=Symbol.for("react.client.reference");function Nu(p){if(p==null)return null;if(typeof p=="function")return p.$$typeof===cl?null:p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case o:return"Fragment";case a:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case b:return"SuspenseList";case P:return"Activity"}if(typeof p=="object")switch(p.$$typeof){case r:return"Portal";case u:return p.displayName||"Context";case l:return(p._context.displayName||"Context")+".Consumer";case g:var y=p.render;return p=p.displayName,p||(p=y.displayName||y.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case w:return y=p.displayName||null,y!==null?y:Nu(p.type)||"Memo";case E:y=p._payload,p=p._init;try{return Nu(p(y))}catch{}}return null}var qh={},On=null;function hs(p,y){if(p!==y){p.context._currentValue=p.parentValue,p=p.parent;var R=y.parent;if(p===null){if(R!==null)throw Error(t(401))}else{if(R===null)throw Error(t(401));hs(p,R)}y.context._currentValue=y.value}}function Ch(p){p.context._currentValue=p.parentValue,p=p.parent,p!==null&&Ch(p)}function v(p){var y=p.parent;y!==null&&v(y),p.context._currentValue=p.value}function x(p,y){if(p.context._currentValue=p.parentValue,p=p.parent,p===null)throw Error(t(402));p.depth===y.depth?hs(p,y):x(p,y)}function k(p,y){var R=y.parent;if(R===null)throw Error(t(402));p.depth===R.depth?hs(p,R):k(p,R),y.context._currentValue=y.value}function O(p){var y=On;y!==p&&(y===null?v(p):p===null?Ch(y):y.depth===p.depth?hs(y,p):y.depth>p.depth?x(y,p):k(y,p),On=p)}var z={enqueueSetState:function(p,y){p=p._reactInternals,p.queue!==null&&p.queue.push(y)},enqueueReplaceState:function(p,y){p=p._reactInternals,p.replace=!0,p.queue=[y]},enqueueForceUpdate:function(){}},Z={id:1,overflow:""};function j(p,y,R){var F=p.id;p=p.overflow;var N=32-Se(F)-1;F&=~(1<<N),R+=1;var X=32-Se(y)+N;if(30<X){var K=N-N%5;return X=(F&(1<<K)-1).toString(32),F>>=K,N-=K,{id:1<<32-Se(y)+N|R<<N|F,overflow:X+p}}return{id:1<<X|R<<N|F,overflow:p}}var Se=Math.clz32?Math.clz32:Le,oe=Math.log,xe=Math.LN2;function Le(p){return p>>>=0,p===0?32:31-(oe(p)/xe|0)|0}function Ae(){}var Ue=Error(t(460));function rt(p,y,R){switch(R=p[R],R===void 0?p.push(y):R!==y&&(y.then(Ae,Ae),y=R),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(Ae,Ae):(p=y,p.status="pending",p.then(function(F){if(y.status==="pending"){var N=y;N.status="fulfilled",N.value=F}},function(F){if(y.status==="pending"){var N=y;N.status="rejected",N.reason=F}})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}throw Mt=y,Ue}}var Mt=null;function mt(){if(Mt===null)throw Error(t(459));var p=Mt;return Mt=null,p}function at(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var bt=typeof Object.is=="function"?Object.is:at,dt=null,Rn=null,At=null,zt=null,qt=null,Ct=null,Fn=!1,Zt=!1,zi=0,tn=0,Vt=-1,Kt=0,xt=null,Jt=null,hi=0;function Ot(){if(dt===null)throw Error(t(321));return dt}function Ws(){if(0<hi)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function fs(){return Ct===null?qt===null?(Fn=!1,qt=Ct=Ws()):(Fn=!0,Ct=qt):Ct.next===null?(Fn=!1,Ct=Ct.next=Ws()):(Fn=!0,Ct=Ct.next),Ct}function Hi(){var p=xt;return xt=null,p}function Zr(){zt=At=Rn=dt=null,Zt=!1,qt=null,hi=0,Ct=Jt=null}function Kr(p,y){return typeof y=="function"?y(p):y}function Jr(p,y,R){if(dt=Ot(),Ct=fs(),Fn){var F=Ct.queue;if(y=F.dispatch,Jt!==null&&(R=Jt.get(F),R!==void 0)){Jt.delete(F),F=Ct.memoizedState;do F=p(F,R.action),R=R.next;while(R!==null);return Ct.memoizedState=F,[F,y]}return[Ct.memoizedState,y]}return p=p===Kr?typeof y=="function"?y():y:R!==void 0?R(y):y,Ct.memoizedState=p,p=Ct.queue={last:null,dispatch:null},p=p.dispatch=ds.bind(null,dt,p),[Ct.memoizedState,p]}function zo(p,y){if(dt=Ot(),Ct=fs(),y=y===void 0?null:y,Ct!==null){var R=Ct.memoizedState;if(R!==null&&y!==null){var F=R[1];e:if(F===null)F=!1;else{for(var N=0;N<F.length&&N<y.length;N++)if(!bt(y[N],F[N])){F=!1;break e}F=!0}if(F)return R[0]}}return p=p(),Ct.memoizedState=[p,y],p}function ds(p,y,R){if(25<=hi)throw Error(t(301));if(p===dt)if(Zt=!0,p={action:R,next:null},Jt===null&&(Jt=new Map),R=Jt.get(y),R===void 0)Jt.set(y,p);else{for(y=R;y.next!==null;)y=y.next;y.next=p}}function si(){throw Error(t(440))}function Sa(){throw Error(t(394))}function Ta(){throw Error(t(479))}function ec(p,y,R){Ot();var F=tn++,N=At;if(typeof p.$$FORM_ACTION=="function"){var X=null,K=zt;N=N.formState;var fe=p.$$IS_SIGNATURE_EQUAL;if(N!==null&&typeof fe=="function"){var ne=N[1];fe.call(p,N[2],N[3])&&(X=R!==void 0?"p"+R:"k"+J(JSON.stringify([K,null,F]),0),ne===X&&(Vt=F,y=N[0]))}var de=p.bind(null,y);return p=function(Pe){de(Pe)},typeof de.$$FORM_ACTION=="function"&&(p.$$FORM_ACTION=function(Pe){Pe=de.$$FORM_ACTION(Pe),R!==void 0&&(R+="",Pe.action=R);var Ze=Pe.data;return Ze&&(X===null&&(X=R!==void 0?"p"+R:"k"+J(JSON.stringify([K,null,F]),0)),Ze.append("$ACTION_KEY",X)),Pe}),[y,p,!1]}var Ce=p.bind(null,y);return[y,function(Pe){Ce(Pe)},!1]}function Uc(p){var y=Kt;return Kt+=1,xt===null&&(xt=[]),rt(xt,p,y)}function ul(){throw Error(t(393))}var Vs={readContext:function(p){return p._currentValue},use:function(p){if(p!==null&&typeof p=="object"){if(typeof p.then=="function")return Uc(p);if(p.$$typeof===u)return p._currentValue}throw Error(t(438,String(p)))},useContext:function(p){return Ot(),p._currentValue},useMemo:zo,useReducer:Jr,useRef:function(p){dt=Ot(),Ct=fs();var y=Ct.memoizedState;return y===null?(p={current:p},Ct.memoizedState=p):y},useState:function(p){return Jr(Kr,p)},useInsertionEffect:Ae,useLayoutEffect:Ae,useCallback:function(p,y){return zo(function(){return p},y)},useImperativeHandle:Ae,useEffect:Ae,useDebugValue:Ae,useDeferredValue:function(p,y){return Ot(),y!==void 0?y:p},useTransition:function(){return Ot(),[!1,Sa]},useId:function(){var p=Rn.treeContext,y=p.overflow;p=p.id,p=(p&~(1<<32-Se(p)-1)).toString(32)+y;var R=Wi;if(R===null)throw Error(t(404));return y=zi++,p="_"+R.idPrefix+"R_"+p,0<y&&(p+="H"+y.toString(32)),p+"_"},useSyncExternalStore:function(p,y,R){if(R===void 0)throw Error(t(407));return R()},useOptimistic:function(p){return Ot(),[p,Ta]},useActionState:ec,useFormState:ec,useHostTransitionStatus:function(){return Ot(),xi},useMemoCache:function(p){for(var y=Array(p),R=0;R<p;R++)y[R]=I;return y},useCacheRefresh:function(){return ul},useEffectEvent:function(){return si}},Wi=null,tc={getCacheForType:function(){throw Error(t(248))},cacheSignal:function(){throw Error(t(248))}},Vi,Nr;function gs(p){if(Vi===void 0)try{throw Error()}catch(R){var y=R.stack.trim().match(/\n( *(at )?)/);Vi=y&&y[1]||"",Nr=-1<R.stack.indexOf(`
|
|
107
|
-
at`)?" (<anonymous>)":-1<R.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
108
|
-
`+Vi+p+Nr}var nc=!1;function ps(p,y){if(!p||nc)return"";nc=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var F={DetermineComponentFrameRoot:function(){try{if(y){var Pe=function(){throw Error()};if(Object.defineProperty(Pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Pe,[])}catch(Ye){var Ze=Ye}Reflect.construct(p,[],Pe)}else{try{Pe.call()}catch(Ye){Ze=Ye}p.call(Pe.prototype)}}else{try{throw Error()}catch(Ye){Ze=Ye}(Pe=p())&&typeof Pe.catch=="function"&&Pe.catch(function(){})}}catch(Ye){if(Ye&&Ze&&typeof Ye.stack=="string")return[Ye.stack,Ze.stack]}return[null,null]}};F.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var N=Object.getOwnPropertyDescriptor(F.DetermineComponentFrameRoot,"name");N&&N.configurable&&Object.defineProperty(F.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var X=F.DetermineComponentFrameRoot(),K=X[0],fe=X[1];if(K&&fe){var ne=K.split(`
|
|
109
|
-
`),de=fe.split(`
|
|
110
|
-
`);for(N=F=0;F<ne.length&&!ne[F].includes("DetermineComponentFrameRoot");)F++;for(;N<de.length&&!de[N].includes("DetermineComponentFrameRoot");)N++;if(F===ne.length||N===de.length)for(F=ne.length-1,N=de.length-1;1<=F&&0<=N&&ne[F]!==de[N];)N--;for(;1<=F&&0<=N;F--,N--)if(ne[F]!==de[N]){if(F!==1||N!==1)do if(F--,N--,0>N||ne[F]!==de[N]){var Ce=`
|
|
111
|
-
`+ne[F].replace(" at new "," at ");return p.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",p.displayName)),Ce}while(1<=F&&0<=N);break}}}finally{nc=!1,Error.prepareStackTrace=R}return(R=p?p.displayName||p.name:"")?gs(R):""}function Xc(p){if(typeof p=="string")return gs(p);if(typeof p=="function")return p.prototype&&p.prototype.isReactComponent?ps(p,!0):ps(p,!1);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case g:return ps(p.render,!1);case w:return ps(p.type,!1);case E:var y=p,R=y._payload;y=y._init;try{p=y(R)}catch{return gs("Lazy")}return Xc(p)}if(typeof p.name=="string"){e:{R=p.name,y=p.env;var F=p.debugLocation;if(F!=null&&(p=Error.prepareStackTrace,Error.prepareStackTrace=void 0,F=F.stack,Error.prepareStackTrace=p,F.startsWith(`Error: react-stack-top-frame
|
|
112
|
-
`)&&(F=F.slice(29)),p=F.indexOf(`
|
|
113
|
-
`),p!==-1&&(F=F.slice(p+1)),p=F.indexOf("react_stack_bottom_frame"),p!==-1&&(p=F.lastIndexOf(`
|
|
114
|
-
`,p)),p=p!==-1?F=F.slice(0,p):"",F=p.lastIndexOf(`
|
|
115
|
-
`),p=F===-1?p:p.slice(F+1),p.indexOf(R)!==-1)){R=`
|
|
116
|
-
`+p;break e}R=gs(R+(y?" ["+y+"]":""))}return R}}switch(p){case b:return gs("SuspenseList");case m:return gs("Suspense")}return""}function Qn(p,y){return(500<y.byteSize||ll(y.contentState))&&y.contentPreamble===null}function ic(p){if(typeof p=="object"&&p!==null&&typeof p.environmentName=="string"){var y=p.environmentName;p=[p].slice(0),typeof p[0]=="string"?p.splice(0,1,"%c%s%c "+p[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+y+" ",""):p.splice(0,0,"%c%s%c","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+y+" ",""),p.unshift(console),y=Gc.apply(console.error,p),y()}else console.error(p);return null}function Gs(p,y,R,F,N,X,K,fe,ne,de,Ce){var Pe=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=p,this.renderState=y,this.rootFormatContext=R,this.progressiveChunkSize=F===void 0?12800:F,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=Pe,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=N===void 0?ic:N,this.onPostpone=de===void 0?Ae:de,this.onAllReady=X===void 0?Ae:X,this.onShellReady=K===void 0?Ae:K,this.onShellError=fe===void 0?Ae:fe,this.onFatalError=ne===void 0?Ae:ne,this.formState=Ce===void 0?null:Ce}function hl(p,y,R,F,N,X,K,fe,ne,de,Ce,Pe){return y=new Gs(y,R,F,N,X,K,fe,ne,de,Ce,Pe),R=hr(y,0,null,F,!1,!1),R.parentFlushed=!0,p=Us(y,null,p,-1,null,R,null,null,y.abortableTasks,null,F,null,Z,null,null),Xs(p),y.pingedTasks.push(p),y}function Ea(p,y,R,F,N,X,K,fe,ne,de,Ce){return p=hl(p,y,R,F,N,X,K,fe,ne,de,Ce,void 0),p.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},p}function Un(p,y,R,F,N,X,K,fe,ne){return R=new Gs(y.resumableState,R,y.rootFormatContext,y.progressiveChunkSize,F,N,X,K,fe,ne,null),R.nextSegmentId=y.nextSegmentId,typeof y.replaySlots=="number"?(F=hr(R,0,null,y.rootFormatContext,!1,!1),F.parentFlushed=!0,p=Us(R,null,p,-1,null,F,null,null,R.abortableTasks,null,y.rootFormatContext,null,Z,null,null),Xs(p),R.pingedTasks.push(p),R):(p=Ln(R,null,{nodes:y.replayNodes,slots:y.replaySlots,pendingTasks:0},p,-1,null,null,R.abortableTasks,null,y.rootFormatContext,null,Z,null,null),Xs(p),R.pingedTasks.push(p),R)}function zr(p,y,R,F,N,X,K,fe,ne){return p=Un(p,y,R,F,N,X,K,fe,ne),p.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},p}var _t=null;function ms(p,y){p.pingedTasks.push(y),p.pingedTasks.length===1&&(p.flushScheduled=p.destination!==null,p.trackedPostpones!==null||p.status===10?Ee(function(){return Sh(p)}):re(function(){return Sh(p)}))}function fl(p,y,R,F,N){return R={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:y,completedSegments:[],byteSize:0,fallbackAbortableTasks:R,errorDigest:null,contentState:xo(),fallbackState:xo(),contentPreamble:F,fallbackPreamble:N,trackedContentKeyPath:null,trackedFallbackNode:null},y!==null&&(y.pendingTasks++,F=y.boundaries,F!==null&&(p.allPendingTasks++,R.pendingTasks++,F.push(R)),p=y.inheritedHoistables,p!==null&&Ca(R.contentState,p)),R}function Us(p,y,R,F,N,X,K,fe,ne,de,Ce,Pe,Ze,Ye,Dt){p.allPendingTasks++,N===null?p.pendingRootTasks++:N.pendingTasks++,Ye!==null&&Ye.pendingTasks++;var vt={replay:null,node:R,childIndex:F,ping:function(){return ms(p,vt)},blockedBoundary:N,blockedSegment:X,blockedPreamble:K,hoistableState:fe,abortSet:ne,keyPath:de,formatContext:Ce,context:Pe,treeContext:Ze,row:Ye,componentStack:Dt,thenableState:y};return ne.add(vt),vt}function Ln(p,y,R,F,N,X,K,fe,ne,de,Ce,Pe,Ze,Ye){p.allPendingTasks++,X===null?p.pendingRootTasks++:X.pendingTasks++,Ze!==null&&Ze.pendingTasks++,R.pendingTasks++;var Dt={replay:R,node:F,childIndex:N,ping:function(){return ms(p,Dt)},blockedBoundary:X,blockedSegment:null,blockedPreamble:null,hoistableState:K,abortSet:fe,keyPath:ne,formatContext:de,context:Ce,treeContext:Pe,row:Ze,componentStack:Ye,thenableState:y};return fe.add(Dt),Dt}function hr(p,y,R,F,N,X){return{status:0,parentFlushed:!1,id:-1,index:y,chunks:[],children:[],preambleChildren:[],parentFormatContext:F,boundary:R,lastPushedText:N,textEmbedded:X}}function Xs(p){var y=p.node;if(typeof y=="object"&&y!==null)switch(y.$$typeof){case i:p.componentStack={parent:p.componentStack,type:y.type}}}function Ra(p){return p===null?null:{parent:p.parent,type:"Suspense Fallback"}}function Qr(p){var y={};return p&&Object.defineProperty(y,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var R="",F=p;do R+=Xc(F.type),F=F.parent;while(F);var N=R}catch(X){N=`
|
|
117
|
-
Error generating stack: `+X.message+`
|
|
118
|
-
`+X.stack}return Object.defineProperty(y,"componentStack",{value:N}),N}}),y}function Ei(p,y,R){if(p=p.onError,y=p(y,R),y==null||typeof y=="string")return y}function dl(p,y){var R=p.onShellError,F=p.onFatalError;R(y),F(y),p.destination!==null?(p.status=14,We(p.destination,y)):(p.status=13,p.fatalError=y)}function Gi(p,y){zu(p,y.next,y.hoistables)}function zu(p,y,R){for(;y!==null;){R!==null&&(Ca(y.hoistables,R),y.inheritedHoistables=R);var F=y.boundaries;if(F!==null){y.boundaries=null;for(var N=0;N<F.length;N++){var X=F[N];R!==null&&Ca(X.contentState,R),jr(p,X,null,null)}}if(y.pendingTasks--,0<y.pendingTasks)break;R=y.hoistables,y=y.next}}function ka(p,y){var R=y.boundaries;if(R!==null&&y.pendingTasks===R.length){for(var F=!0,N=0;N<R.length;N++){var X=R[N];if(X.pendingTasks!==1||X.parentFlushed||Qn(p,X)){F=!1;break}}F&&zu(p,y,y.hoistables)}}function rc(p){var y={pendingTasks:1,boundaries:null,hoistables:xo(),inheritedHoistables:null,together:!1,next:null};return p!==null&&0<p.pendingTasks&&(y.pendingTasks++,y.boundaries=[],p.next=y),y}function Yc(p,y,R,F,N){var X=y.keyPath,K=y.treeContext,fe=y.row;y.keyPath=R,R=F.length;var ne=null;if(y.replay!==null){var de=y.replay.slots;if(de!==null&&typeof de=="object")for(var Ce=0;Ce<R;Ce++){var Pe=N!=="backwards"&&N!=="unstable_legacy-backwards"?Ce:R-1-Ce,Ze=F[Pe];y.row=ne=rc(ne),y.treeContext=j(K,R,Pe);var Ye=de[Pe];typeof Ye=="number"?(Ma(p,y,Ye,Ze,Pe),delete de[Pe]):jn(p,y,Ze,Pe),--ne.pendingTasks===0&&Gi(p,ne)}else for(de=0;de<R;de++)Ce=N!=="backwards"&&N!=="unstable_legacy-backwards"?de:R-1-de,Pe=F[Ce],y.row=ne=rc(ne),y.treeContext=j(K,R,Ce),jn(p,y,Pe,Ce),--ne.pendingTasks===0&&Gi(p,ne)}else if(N!=="backwards"&&N!=="unstable_legacy-backwards")for(N=0;N<R;N++)de=F[N],y.row=ne=rc(ne),y.treeContext=j(K,R,N),jn(p,y,de,N),--ne.pendingTasks===0&&Gi(p,ne);else{for(N=y.blockedSegment,de=N.children.length,Ce=N.chunks.length,Pe=R-1;0<=Pe;Pe--){Ze=F[Pe],y.row=ne=rc(ne),y.treeContext=j(K,R,Pe),Ye=hr(p,Ce,null,y.formatContext,Pe===0?N.lastPushedText:!0,!0),N.children.splice(de,0,Ye),y.blockedSegment=Ye;try{jn(p,y,Ze,Pe),Ye.lastPushedText&&Ye.textEmbedded&&Ye.chunks.push(Mo),Ye.status=1,Ys(p,y.blockedBoundary,Ye),--ne.pendingTasks===0&&Gi(p,ne)}catch(Dt){throw Ye.status=p.status===12?3:4,Dt}}y.blockedSegment=N,N.lastPushedText=!1}fe!==null&&ne!==null&&0<ne.pendingTasks&&(fe.pendingTasks++,ne.next=fe),y.treeContext=K,y.row=fe,y.keyPath=X}function Zc(p,y,R,F,N,X){var K=y.thenableState;for(y.thenableState=null,dt={},Rn=y,At=p,zt=R,tn=zi=0,Vt=-1,Kt=0,xt=K,p=F(N,X);Zt;)Zt=!1,tn=zi=0,Vt=-1,Kt=0,hi+=1,Ct=null,p=F(N,X);return Zr(),p}function Ho(p,y,R,F,N,X,K){var fe=!1;if(X!==0&&p.formState!==null){var ne=y.blockedSegment;if(ne!==null){fe=!0,ne=ne.chunks;for(var de=0;de<X;de++)de===K?ne.push(Pu):ne.push(Fc)}}X=y.keyPath,y.keyPath=R,N?(R=y.treeContext,y.treeContext=j(R,1,0),jn(p,y,F,-1),y.treeContext=R):fe?jn(p,y,F,-1):Ui(p,y,F,-1),y.keyPath=X}function Pa(p,y,R,F,N,X){if(typeof F=="function")if(F.prototype&&F.prototype.isReactComponent){var K=N;if("ref"in N){K={};for(var fe in N)fe!=="ref"&&(K[fe]=N[fe])}var ne=F.defaultProps;if(ne){K===N&&(K=Qe({},K,N));for(var de in ne)K[de]===void 0&&(K[de]=ne[de])}N=K,K=qh,ne=F.contextType,typeof ne=="object"&&ne!==null&&(K=ne._currentValue),K=new F(N,K);var Ce=K.state!==void 0?K.state:null;if(K.updater=z,K.props=N,K.state=Ce,ne={queue:[],replace:!1},K._reactInternals=ne,X=F.contextType,K.context=typeof X=="object"&&X!==null?X._currentValue:qh,X=F.getDerivedStateFromProps,typeof X=="function"&&(X=X(N,Ce),Ce=X==null?Ce:Qe({},Ce,X),K.state=Ce),typeof F.getDerivedStateFromProps!="function"&&typeof K.getSnapshotBeforeUpdate!="function"&&(typeof K.UNSAFE_componentWillMount=="function"||typeof K.componentWillMount=="function"))if(F=K.state,typeof K.componentWillMount=="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount=="function"&&K.UNSAFE_componentWillMount(),F!==K.state&&z.enqueueReplaceState(K,K.state,null),ne.queue!==null&&0<ne.queue.length)if(F=ne.queue,X=ne.replace,ne.queue=null,ne.replace=!1,X&&F.length===1)K.state=F[0];else{for(ne=X?F[0]:K.state,Ce=!0,X=X?1:0;X<F.length;X++)de=F[X],de=typeof de=="function"?de.call(K,ne,N,void 0):de,de!=null&&(Ce?(Ce=!1,ne=Qe({},ne,de)):Qe(ne,de));K.state=ne}else ne.queue=null;if(F=K.render(),p.status===12)throw null;N=y.keyPath,y.keyPath=R,Ui(p,y,F,-1),y.keyPath=N}else{if(F=Zc(p,y,R,F,N,void 0),p.status===12)throw null;Ho(p,y,R,F,zi!==0,tn,Vt)}else if(typeof F=="string")if(K=y.blockedSegment,K===null)K=N.children,ne=y.formatContext,Ce=y.keyPath,y.formatContext=la(ne,F,N),y.keyPath=R,jn(p,y,K,-1),y.formatContext=ne,y.keyPath=Ce;else{if(Ce=Gl(K.chunks,F,N,p.resumableState,p.renderState,y.blockedPreamble,y.hoistableState,y.formatContext,K.lastPushedText),K.lastPushedText=!1,ne=y.formatContext,X=y.keyPath,y.keyPath=R,(y.formatContext=la(ne,F,N)).insertionMode===3){R=hr(p,0,null,y.formatContext,!1,!1),K.preambleChildren.push(R),y.blockedSegment=R;try{R.status=6,jn(p,y,Ce,-1),R.lastPushedText&&R.textEmbedded&&R.chunks.push(Mo),R.status=1,Ys(p,y.blockedBoundary,R)}finally{y.blockedSegment=K}}else jn(p,y,Ce,-1);y.formatContext=ne,y.keyPath=X;e:{switch(y=K.chunks,p=p.resumableState,F){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=ne.insertionMode){p.hasBody=!0;break e}break;case"html":if(ne.insertionMode===0){p.hasHtml=!0;break e}break;case"head":if(1>=ne.insertionMode)break e}y.push(Fo(F))}K.lastPushedText=!1}else{switch(F){case M:case s:case a:case o:F=y.keyPath,y.keyPath=R,Ui(p,y,N.children,-1),y.keyPath=F;return;case P:F=y.blockedSegment,F===null?N.mode!=="hidden"&&(F=y.keyPath,y.keyPath=R,jn(p,y,N.children,-1),y.keyPath=F):N.mode!=="hidden"&&(F.chunks.push(ar),F.lastPushedText=!1,K=y.keyPath,y.keyPath=R,jn(p,y,N.children,-1),y.keyPath=K,F.chunks.push(Yl),F.lastPushedText=!1);return;case b:e:{if(F=N.children,N=N.revealOrder,N==="forwards"||N==="backwards"||N==="unstable_legacy-backwards"){if(G(F)){Yc(p,y,R,F,N);break e}if((K=W(F))&&(K=K.call(F))){if(ne=K.next(),!ne.done){do ne=K.next();while(!ne.done);Yc(p,y,R,F,N)}break e}}N==="together"?(N=y.keyPath,K=y.row,ne=y.row=rc(null),ne.boundaries=[],ne.together=!0,y.keyPath=R,Ui(p,y,F,-1),--ne.pendingTasks===0&&Gi(p,ne),y.keyPath=N,y.row=K,K!==null&&0<ne.pendingTasks&&(K.pendingTasks++,ne.next=K)):(N=y.keyPath,y.keyPath=R,Ui(p,y,F,-1),y.keyPath=N)}return;case L:case T:throw Error(t(343));case m:e:if(y.replay!==null){F=y.keyPath,K=y.formatContext,ne=y.row,y.keyPath=R,y.formatContext=Yr(p.resumableState,K),y.row=null,R=N.children;try{jn(p,y,R,-1)}finally{y.keyPath=F,y.formatContext=K,y.row=ne}}else{F=y.keyPath,X=y.formatContext;var Pe=y.row;de=y.blockedBoundary,fe=y.blockedPreamble;var Ze=y.hoistableState,Ye=y.blockedSegment,Dt=N.fallback;N=N.children;var vt=new Set,Bt=2>y.formatContext.insertionMode?fl(p,y.row,vt,_n(),_n()):fl(p,y.row,vt,null,null);p.trackedPostpones!==null&&(Bt.trackedContentKeyPath=R);var In=hr(p,Ye.chunks.length,Bt,y.formatContext,!1,!1);Ye.children.push(In),Ye.lastPushedText=!1;var xn=hr(p,0,null,y.formatContext,!1,!1);if(xn.parentFlushed=!0,p.trackedPostpones!==null){K=y.componentStack,ne=[R[0],"Suspense Fallback",R[2]],Ce=[ne[1],ne[2],[],null],p.trackedPostpones.workingMap.set(ne,Ce),Bt.trackedFallbackNode=Ce,y.blockedSegment=In,y.blockedPreamble=Bt.fallbackPreamble,y.keyPath=ne,y.formatContext=ku(p.resumableState,X),y.componentStack=Ra(K),In.status=6;try{jn(p,y,Dt,-1),In.lastPushedText&&In.textEmbedded&&In.chunks.push(Mo),In.status=1,Ys(p,de,In)}catch(Ri){throw In.status=p.status===12?3:4,Ri}finally{y.blockedSegment=Ye,y.blockedPreamble=fe,y.keyPath=F,y.formatContext=X}y=Us(p,null,N,-1,Bt,xn,Bt.contentPreamble,Bt.contentState,y.abortSet,R,Yr(p.resumableState,y.formatContext),y.context,y.treeContext,null,K),Xs(y),p.pingedTasks.push(y)}else{y.blockedBoundary=Bt,y.blockedPreamble=Bt.contentPreamble,y.hoistableState=Bt.contentState,y.blockedSegment=xn,y.keyPath=R,y.formatContext=Yr(p.resumableState,X),y.row=null,xn.status=6;try{if(jn(p,y,N,-1),xn.lastPushedText&&xn.textEmbedded&&xn.chunks.push(Mo),xn.status=1,Ys(p,Bt,xn),qc(Bt,xn),Bt.pendingTasks===0&&Bt.status===0){if(Bt.status=1,!Qn(p,Bt)){Pe!==null&&--Pe.pendingTasks===0&&Gi(p,Pe),p.pendingRootTasks===0&&y.blockedPreamble&&wo(p);break e}}else Pe!==null&&Pe.together&&ka(p,Pe)}catch(Ri){Bt.status=4,p.status===12?(xn.status=3,K=p.fatalError):(xn.status=4,K=Ri),ne=Qr(y.componentStack),Ce=Ei(p,K,ne),Bt.errorDigest=Ce,Kc(p,Bt)}finally{y.blockedBoundary=de,y.blockedPreamble=fe,y.hoistableState=Ze,y.blockedSegment=Ye,y.keyPath=F,y.formatContext=X,y.row=Pe}y=Us(p,null,Dt,-1,de,In,Bt.fallbackPreamble,Bt.fallbackState,vt,[R[0],"Suspense Fallback",R[2]],ku(p.resumableState,y.formatContext),y.context,y.treeContext,y.row,Ra(y.componentStack)),Xs(y),p.pingedTasks.push(y)}}return}if(typeof F=="object"&&F!==null)switch(F.$$typeof){case g:if("ref"in N)for(Ye in K={},N)Ye!=="ref"&&(K[Ye]=N[Ye]);else K=N;F=Zc(p,y,R,F.render,K,X),Ho(p,y,R,F,zi!==0,tn,Vt);return;case w:Pa(p,y,R,F.type,N,X);return;case u:if(ne=N.children,K=y.keyPath,N=N.value,Ce=F._currentValue,F._currentValue=N,X=On,On=F={parent:X,depth:X===null?0:X.depth+1,context:F,parentValue:Ce,value:N},y.context=F,y.keyPath=R,Ui(p,y,ne,-1),p=On,p===null)throw Error(t(403));p.context._currentValue=p.parentValue,p=On=p.parent,y.context=p,y.keyPath=K;return;case l:N=N.children,F=N(F._context._currentValue),N=y.keyPath,y.keyPath=R,Ui(p,y,F,-1),y.keyPath=N;return;case E:if(K=F._init,F=K(F._payload),p.status===12)throw null;Pa(p,y,R,F,N,X);return}throw Error(t(130,F==null?F:typeof F,""))}}function Ma(p,y,R,F,N){var X=y.replay,K=y.blockedBoundary,fe=hr(p,0,null,y.formatContext,!1,!1);fe.id=R,fe.parentFlushed=!0;try{y.replay=null,y.blockedSegment=fe,jn(p,y,F,N),fe.status=1,Ys(p,K,fe),K===null?p.completedRootSegment=fe:(qc(K,fe),K.parentFlushed&&p.partialBoundaries.push(K))}finally{y.replay=X,y.blockedSegment=null}}function Ui(p,y,R,F){y.replay!==null&&typeof y.replay.slots=="number"?Ma(p,y,y.replay.slots,R,F):(y.node=R,y.childIndex=F,R=y.componentStack,Xs(y),oc(p,y),y.componentStack=R)}function oc(p,y){var R=y.node,F=y.childIndex;if(R!==null){if(typeof R=="object"){switch(R.$$typeof){case i:var N=R.type,X=R.key,K=R.props;R=K.ref;var fe=R!==void 0?R:null,ne=Nu(N),de=X??(F===-1?0:F);if(X=[y.keyPath,ne,de],y.replay!==null)e:{var Ce=y.replay;for(F=Ce.nodes,R=0;R<F.length;R++){var Pe=F[R];if(de===Pe[1]){if(Pe.length===4){if(ne!==null&&ne!==Pe[0])throw Error(t(490,Pe[0],ne));var Ze=Pe[2];ne=Pe[3],de=y.node,y.replay={nodes:Ze,slots:ne,pendingTasks:1};try{if(Pa(p,y,X,N,K,fe),y.replay.pendingTasks===1&&0<y.replay.nodes.length)throw Error(t(488));y.replay.pendingTasks--}catch(yt){if(typeof yt=="object"&&yt!==null&&(yt===Ue||typeof yt.then=="function"))throw y.node===de?y.replay=Ce:F.splice(R,1),yt;y.replay.pendingTasks--,K=Qr(y.componentStack),X=p,p=y.blockedBoundary,N=yt,K=Ei(X,N,K),ac(X,p,Ze,ne,N,K)}y.replay=Ce}else{if(N!==m)throw Error(t(490,"Suspense",Nu(N)||"Unknown"));t:{Ce=void 0,N=Pe[5],fe=Pe[2],ne=Pe[3],de=Pe[4]===null?[]:Pe[4][2],Pe=Pe[4]===null?null:Pe[4][3];var Ye=y.keyPath,Dt=y.formatContext,vt=y.row,Bt=y.replay,In=y.blockedBoundary,xn=y.hoistableState,Ri=K.children,br=K.fallback,$r=new Set;K=2>y.formatContext.insertionMode?fl(p,y.row,$r,_n(),_n()):fl(p,y.row,$r,null,null),K.parentFlushed=!0,K.rootSegmentID=N,y.blockedBoundary=K,y.hoistableState=K.contentState,y.keyPath=X,y.formatContext=Yr(p.resumableState,Dt),y.row=null,y.replay={nodes:fe,slots:ne,pendingTasks:1};try{if(jn(p,y,Ri,-1),y.replay.pendingTasks===1&&0<y.replay.nodes.length)throw Error(t(488));if(y.replay.pendingTasks--,K.pendingTasks===0&&K.status===0){K.status=1,p.completedBoundaries.push(K);break t}}catch(yt){K.status=4,Ze=Qr(y.componentStack),Ce=Ei(p,yt,Ze),K.errorDigest=Ce,y.replay.pendingTasks--,p.clientRenderedBoundaries.push(K)}finally{y.blockedBoundary=In,y.hoistableState=xn,y.replay=Bt,y.keyPath=Ye,y.formatContext=Dt,y.row=vt}Ze=Ln(p,null,{nodes:de,slots:Pe,pendingTasks:0},br,-1,In,K.fallbackState,$r,[X[0],"Suspense Fallback",X[2]],ku(p.resumableState,y.formatContext),y.context,y.treeContext,y.row,Ra(y.componentStack)),Xs(Ze),p.pingedTasks.push(Ze)}}F.splice(R,1);break e}}}else Pa(p,y,X,N,K,fe);return;case r:throw Error(t(257));case E:if(Ze=R._init,R=Ze(R._payload),p.status===12)throw null;Ui(p,y,R,F);return}if(G(R)){sc(p,y,R,F);return}if((Ze=W(R))&&(Ze=Ze.call(R))){if(R=Ze.next(),!R.done){K=[];do K.push(R.value),R=Ze.next();while(!R.done);sc(p,y,K,F)}return}if(typeof R.then=="function")return y.thenableState=null,Ui(p,y,Uc(R),F);if(R.$$typeof===u)return Ui(p,y,R._currentValue,F);throw F=Object.prototype.toString.call(R),Error(t(31,F==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":F))}typeof R=="string"?(F=y.blockedSegment,F!==null&&(F.lastPushedText=gh(F.chunks,R,p.renderState,F.lastPushedText))):(typeof R=="number"||typeof R=="bigint")&&(F=y.blockedSegment,F!==null&&(F.lastPushedText=gh(F.chunks,""+R,p.renderState,F.lastPushedText)))}}function sc(p,y,R,F){var N=y.keyPath;if(F!==-1&&(y.keyPath=[y.keyPath,"Fragment",F],y.replay!==null)){for(var X=y.replay,K=X.nodes,fe=0;fe<K.length;fe++){var ne=K[fe];if(ne[1]===F){F=ne[2],ne=ne[3],y.replay={nodes:F,slots:ne,pendingTasks:1};try{if(sc(p,y,R,-1),y.replay.pendingTasks===1&&0<y.replay.nodes.length)throw Error(t(488));y.replay.pendingTasks--}catch(Pe){if(typeof Pe=="object"&&Pe!==null&&(Pe===Ue||typeof Pe.then=="function"))throw Pe;y.replay.pendingTasks--,R=Qr(y.componentStack);var de=y.blockedBoundary,Ce=Pe;R=Ei(p,Ce,R),ac(p,de,F,ne,Ce,R)}y.replay=X,K.splice(fe,1);break}}y.keyPath=N;return}if(X=y.treeContext,K=R.length,y.replay!==null&&(fe=y.replay.slots,fe!==null&&typeof fe=="object")){for(F=0;F<K;F++)ne=R[F],y.treeContext=j(X,K,F),de=fe[F],typeof de=="number"?(Ma(p,y,de,ne,F),delete fe[F]):jn(p,y,ne,F);y.treeContext=X,y.keyPath=N;return}for(fe=0;fe<K;fe++)F=R[fe],y.treeContext=j(X,K,fe),jn(p,y,F,fe);y.treeContext=X,y.keyPath=N}function Hu(p,y,R){if(R.status=5,R.rootSegmentID=p.nextSegmentId++,p=R.trackedContentKeyPath,p===null)throw Error(t(486));var F=R.trackedFallbackNode,N=[],X=y.workingMap.get(p);return X===void 0?(R=[p[1],p[2],N,null,F,R.rootSegmentID],y.workingMap.set(p,R),Xu(R,p[0],y),R):(X[4]=F,X[5]=R.rootSegmentID,X)}function Wu(p,y,R,F){F.status=5;var N=R.keyPath,X=R.blockedBoundary;if(X===null)F.id=p.nextSegmentId++,y.rootSlots=F.id,p.completedRootSegment!==null&&(p.completedRootSegment.status=5);else{if(X!==null&&X.status===0){var K=Hu(p,y,X);if(X.trackedContentKeyPath===N&&R.childIndex===-1){F.id===-1&&(F.id=F.parentFlushed?X.rootSegmentID:p.nextSegmentId++),K[3]=F.id;return}}if(F.id===-1&&(F.id=F.parentFlushed&&X!==null?X.rootSegmentID:p.nextSegmentId++),R.childIndex===-1)N===null?y.rootSlots=F.id:(R=y.workingMap.get(N),R===void 0?(R=[N[1],N[2],[],F.id],Xu(R,N[0],y)):R[3]=F.id);else{if(N===null){if(p=y.rootSlots,p===null)p=y.rootSlots={};else if(typeof p=="number")throw Error(t(491))}else if(X=y.workingMap,K=X.get(N),K===void 0)p={},K=[N[1],N[2],[],p],X.set(N,K),Xu(K,N[0],y);else if(p=K[3],p===null)p=K[3]={};else if(typeof p=="number")throw Error(t(491));p[R.childIndex]=F.id}}}function Kc(p,y){p=p.trackedPostpones,p!==null&&(y=y.trackedContentKeyPath,y!==null&&(y=p.workingMap.get(y),y!==void 0&&(y.length=4,y[2]=[],y[3]=null)))}function Vu(p,y,R){return Ln(p,R,y.replay,y.node,y.childIndex,y.blockedBoundary,y.hoistableState,y.abortSet,y.keyPath,y.formatContext,y.context,y.treeContext,y.row,y.componentStack)}function Gu(p,y,R){var F=y.blockedSegment,N=hr(p,F.chunks.length,null,y.formatContext,F.lastPushedText,!0);return F.children.push(N),F.lastPushedText=!1,Us(p,R,y.node,y.childIndex,y.blockedBoundary,N,y.blockedPreamble,y.hoistableState,y.abortSet,y.keyPath,y.formatContext,y.context,y.treeContext,y.row,y.componentStack)}function jn(p,y,R,F){var N=y.formatContext,X=y.context,K=y.keyPath,fe=y.treeContext,ne=y.componentStack,de=y.blockedSegment;if(de===null){de=y.replay;try{return Ui(p,y,R,F)}catch(Ze){if(Zr(),R=Ze===Ue?mt():Ze,p.status!==12&&typeof R=="object"&&R!==null){if(typeof R.then=="function"){F=Ze===Ue?Hi():null,p=Vu(p,y,F).ping,R.then(p,p),y.formatContext=N,y.context=X,y.keyPath=K,y.treeContext=fe,y.componentStack=ne,y.replay=de,O(X);return}if(R.message==="Maximum call stack size exceeded"){R=Ze===Ue?Hi():null,R=Vu(p,y,R),p.pingedTasks.push(R),y.formatContext=N,y.context=X,y.keyPath=K,y.treeContext=fe,y.componentStack=ne,y.replay=de,O(X);return}}}}else{var Ce=de.children.length,Pe=de.chunks.length;try{return Ui(p,y,R,F)}catch(Ze){if(Zr(),de.children.length=Ce,de.chunks.length=Pe,R=Ze===Ue?mt():Ze,p.status!==12&&typeof R=="object"&&R!==null){if(typeof R.then=="function"){de=R,R=Ze===Ue?Hi():null,p=Gu(p,y,R).ping,de.then(p,p),y.formatContext=N,y.context=X,y.keyPath=K,y.treeContext=fe,y.componentStack=ne,O(X);return}if(R.message==="Maximum call stack size exceeded"){de=Ze===Ue?Hi():null,de=Gu(p,y,de),p.pingedTasks.push(de),y.formatContext=N,y.context=X,y.keyPath=K,y.treeContext=fe,y.componentStack=ne,O(X);return}}}}throw y.formatContext=N,y.context=X,y.keyPath=K,y.treeContext=fe,O(X),R}function Jc(p){var y=p.blockedBoundary,R=p.blockedSegment;R!==null&&(R.status=3,jr(this,y,p.row,R))}function ac(p,y,R,F,N,X){for(var K=0;K<R.length;K++){var fe=R[K];if(fe.length===4)ac(p,y,fe[2],fe[3],N,X);else{fe=fe[5];var ne=p,de=X,Ce=fl(ne,null,new Set,null,null);Ce.parentFlushed=!0,Ce.rootSegmentID=fe,Ce.status=4,Ce.errorDigest=de,Ce.parentFlushed&&ne.clientRenderedBoundaries.push(Ce)}}if(R.length=0,F!==null){if(y===null)throw Error(t(487));if(y.status!==4&&(y.status=4,y.errorDigest=X,y.parentFlushed&&p.clientRenderedBoundaries.push(y)),typeof F=="object")for(var Pe in F)delete F[Pe]}}function lc(p,y,R){var F=p.blockedBoundary,N=p.blockedSegment;if(N!==null){if(N.status===6)return;N.status=3}var X=Qr(p.componentStack);if(F===null){if(y.status!==13&&y.status!==14){if(F=p.replay,F===null){y.trackedPostpones!==null&&N!==null?(F=y.trackedPostpones,Ei(y,R,X),Wu(y,F,p,N),jr(y,null,p.row,N)):(Ei(y,R,X),dl(y,R));return}F.pendingTasks--,F.pendingTasks===0&&0<F.nodes.length&&(N=Ei(y,R,X),ac(y,null,F.nodes,F.slots,R,N)),y.pendingRootTasks--,y.pendingRootTasks===0&&Uu(y)}}else{var K=y.trackedPostpones;if(F.status!==4){if(K!==null&&N!==null)return Ei(y,R,X),Wu(y,K,p,N),F.fallbackAbortableTasks.forEach(function(fe){return lc(fe,y,R)}),F.fallbackAbortableTasks.clear(),jr(y,F,p.row,N);F.status=4,N=Ei(y,R,X),F.status=4,F.errorDigest=N,Kc(y,F),F.parentFlushed&&y.clientRenderedBoundaries.push(F)}F.pendingTasks--,N=F.row,N!==null&&--N.pendingTasks===0&&Gi(y,N),F.fallbackAbortableTasks.forEach(function(fe){return lc(fe,y,R)}),F.fallbackAbortableTasks.clear()}p=p.row,p!==null&&--p.pendingTasks===0&&Gi(y,p),y.allPendingTasks--,y.allPendingTasks===0&&jc(y)}function Qc(p,y){try{var R=p.renderState,F=R.onHeaders;if(F){var N=R.headers;if(N){R.headers=null;var X=N.preconnects;if(N.fontPreloads&&(X&&(X+=", "),X+=N.fontPreloads),N.highImagePreloads&&(X&&(X+=", "),X+=N.highImagePreloads),!y){var K=R.styles.values(),fe=K.next();e:for(;0<N.remainingCapacity&&!fe.done;fe=K.next())for(var ne=fe.value.sheets.values(),de=ne.next();0<N.remainingCapacity&&!de.done;de=ne.next()){var Ce=de.value,Pe=Ce.props,Ze=Pe.href,Ye=Ce.props,Dt=Vc(Ye.href,"style",{crossOrigin:Ye.crossOrigin,integrity:Ye.integrity,nonce:Ye.nonce,type:Ye.type,fetchPriority:Ye.fetchPriority,referrerPolicy:Ye.referrerPolicy,media:Ye.media});if(0<=(N.remainingCapacity-=Dt.length+2))R.resets.style[Ze]=gt,X&&(X+=", "),X+=Dt,R.resets.style[Ze]=typeof Pe.crossOrigin=="string"||typeof Pe.integrity=="string"?[Pe.crossOrigin,Pe.integrity]:gt;else break e}}F(X?{Link:X}:{})}}}catch(vt){Ei(p,vt,{})}}function Uu(p){p.trackedPostpones===null&&Qc(p,!0),p.trackedPostpones===null&&wo(p),p.onShellError=Ae,p=p.onShellReady,p()}function jc(p){Qc(p,p.trackedPostpones===null?!0:p.completedRootSegment===null||p.completedRootSegment.status!==5),wo(p),p=p.onAllReady,p()}function qc(p,y){if(y.chunks.length===0&&y.children.length===1&&y.children[0].boundary===null&&y.children[0].id===-1){var R=y.children[0];R.id=y.id,R.parentFlushed=!0,R.status!==1&&R.status!==3&&R.status!==4||qc(p,R)}else p.completedSegments.push(y)}function Ys(p,y,R){if(Ne!==null){R=R.chunks;for(var F=0,N=0;N<R.length;N++)F+=R[N].byteLength;y===null?p.byteSize+=F:y.byteSize+=F}}function jr(p,y,R,F){if(R!==null&&(--R.pendingTasks===0?Gi(p,R):R.together&&ka(p,R)),p.allPendingTasks--,y===null){if(F!==null&&F.parentFlushed){if(p.completedRootSegment!==null)throw Error(t(389));p.completedRootSegment=F}p.pendingRootTasks--,p.pendingRootTasks===0&&Uu(p)}else if(y.pendingTasks--,y.status!==4)if(y.pendingTasks===0){if(y.status===0&&(y.status=1),F!==null&&F.parentFlushed&&(F.status===1||F.status===3)&&qc(y,F),y.parentFlushed&&p.completedBoundaries.push(y),y.status===1)R=y.row,R!==null&&Ca(R.hoistables,y.contentState),Qn(p,y)||(y.fallbackAbortableTasks.forEach(Jc,p),y.fallbackAbortableTasks.clear(),R!==null&&--R.pendingTasks===0&&Gi(p,R)),p.pendingRootTasks===0&&p.trackedPostpones===null&&y.contentPreamble!==null&&wo(p);else if(y.status===5&&(y=y.row,y!==null)){if(p.trackedPostpones!==null){R=p.trackedPostpones;var N=y.next;if(N!==null&&(F=N.boundaries,F!==null))for(N.boundaries=null,N=0;N<F.length;N++){var X=F[N];Hu(p,R,X),jr(p,X,null,null)}}--y.pendingTasks===0&&Gi(p,y)}}else F===null||!F.parentFlushed||F.status!==1&&F.status!==3||(qc(y,F),y.completedSegments.length===1&&y.parentFlushed&&p.partialBoundaries.push(y)),y=y.row,y!==null&&y.together&&ka(p,y);p.allPendingTasks===0&&jc(p)}function Sh(p){if(p.status!==14&&p.status!==13){var y=On,R=Xr.H;Xr.H=Vs;var F=Xr.A;Xr.A=tc;var N=_t;_t=p;var X=Wi;Wi=p.resumableState;try{var K=p.pingedTasks,fe;for(fe=0;fe<K.length;fe++){var ne=K[fe],de=p,Ce=ne.blockedSegment;if(Ce===null){var Pe=de;if(ne.replay.pendingTasks!==0){O(ne.context);try{if(typeof ne.replay.slots=="number"?Ma(Pe,ne,ne.replay.slots,ne.node,ne.childIndex):oc(Pe,ne),ne.replay.pendingTasks===1&&0<ne.replay.nodes.length)throw Error(t(488));ne.replay.pendingTasks--,ne.abortSet.delete(ne),jr(Pe,ne.blockedBoundary,ne.row,null)}catch(Yi){Zr();var Ze=Yi===Ue?mt():Yi;if(typeof Ze=="object"&&Ze!==null&&typeof Ze.then=="function"){var Ye=ne.ping;Ze.then(Ye,Ye),ne.thenableState=Yi===Ue?Hi():null}else{ne.replay.pendingTasks--,ne.abortSet.delete(ne);var Dt=Qr(ne.componentStack);de=void 0;var vt=Pe,Bt=ne.blockedBoundary,In=Pe.status===12?Pe.fatalError:Ze,xn=ne.replay.nodes,Ri=ne.replay.slots;de=Ei(vt,In,Dt),ac(vt,Bt,xn,Ri,In,de),Pe.pendingRootTasks--,Pe.pendingRootTasks===0&&Uu(Pe),Pe.allPendingTasks--,Pe.allPendingTasks===0&&jc(Pe)}}finally{}}}else if(Pe=void 0,vt=Ce,vt.status===0){vt.status=6,O(ne.context);var br=vt.children.length,$r=vt.chunks.length;try{oc(de,ne),vt.lastPushedText&&vt.textEmbedded&&vt.chunks.push(Mo),ne.abortSet.delete(ne),vt.status=1,Ys(de,ne.blockedBoundary,vt),jr(de,ne.blockedBoundary,ne.row,vt)}catch(Yi){Zr(),vt.children.length=br,vt.chunks.length=$r;var yt=Yi===Ue?mt():de.status===12?de.fatalError:Yi;if(de.status===12&&de.trackedPostpones!==null){var Xi=de.trackedPostpones,Xn=Qr(ne.componentStack);ne.abortSet.delete(ne),Ei(de,yt,Xn),Wu(de,Xi,ne,vt),jr(de,ne.blockedBoundary,ne.row,vt)}else if(typeof yt=="object"&&yt!==null&&typeof yt.then=="function"){vt.status=0,ne.thenableState=Yi===Ue?Hi():null;var fr=ne.ping;yt.then(fr,fr)}else{var vs=Qr(ne.componentStack);ne.abortSet.delete(ne),vt.status=4;var Dn=ne.blockedBoundary,Oa=ne.row;if(Oa!==null&&--Oa.pendingTasks===0&&Gi(de,Oa),de.allPendingTasks--,Pe=Ei(de,yt,vs),Dn===null)dl(de,yt);else if(Dn.pendingTasks--,Dn.status!==4){Dn.status=4,Dn.errorDigest=Pe,Kc(de,Dn);var eo=Dn.row;eo!==null&&--eo.pendingTasks===0&&Gi(de,eo),Dn.parentFlushed&&de.clientRenderedBoundaries.push(Dn),de.pendingRootTasks===0&&de.trackedPostpones===null&&Dn.contentPreamble!==null&&wo(de)}de.allPendingTasks===0&&jc(de)}}finally{}}}K.splice(0,fe),p.destination!==null&&pl(p,p.destination)}catch(Yi){Ei(p,Yi,{}),dl(p,Yi)}finally{Wi=X,Xr.H=R,Xr.A=F,R===Vs&&O(y),_t=N}}}function Aa(p,y,R){y.preambleChildren.length&&R.push(y.preambleChildren);for(var F=!1,N=0;N<y.children.length;N++)F=cc(p,y.children[N],R)||F;return F}function cc(p,y,R){var F=y.boundary;if(F===null)return Aa(p,y,R);var N=F.contentPreamble,X=F.fallbackPreamble;if(N===null||X===null)return!1;switch(F.status){case 1:if(Ul(p.renderState,N),p.byteSize+=F.byteSize,y=F.completedSegments[0],!y)throw Error(t(391));return Aa(p,y,R);case 5:if(p.trackedPostpones!==null)return!0;case 4:if(y.status===1)return Ul(p.renderState,X),Aa(p,y,R);default:return!0}}function wo(p){if(p.completedRootSegment&&p.completedPreambleSegments===null){var y=[],R=p.byteSize,F=cc(p,p.completedRootSegment,y),N=p.renderState.preamble;F===!1||N.headChunks&&N.bodyChunks?p.completedPreambleSegments=y:p.byteSize=R}}function gl(p,y,R,F){switch(R.parentFlushed=!0,R.status){case 0:R.id=p.nextSegmentId++;case 5:return F=R.id,R.lastPushedText=!1,R.textEmbedded=!1,p=p.renderState,ee(y,Mu),ee(y,p.placeholderPrefix),p=he(F.toString(16)),ee(y,p),q(y,Xl);case 1:R.status=2;var N=!0,X=R.chunks,K=0;R=R.children;for(var fe=0;fe<R.length;fe++){for(N=R[fe];K<N.index;K++)ee(y,X[K]);N=uc(p,y,N,F)}for(;K<X.length-1;K++)ee(y,X[K]);return K<X.length&&(N=q(y,X[K])),N;case 3:return!0;default:throw Error(t(390))}}var Zs=0;function uc(p,y,R,F){var N=R.boundary;if(N===null)return gl(p,y,R,F);if(N.parentFlushed=!0,N.status===4){var X=N.row;X!==null&&--X.pendingTasks===0&&Gi(p,X),N=N.errorDigest,q(y,ci),ee(y,Au),N&&(ee(y,po),ee(y,he(tt(N))),ee(y,ts)),q(y,_u),gl(p,y,R,F)}else if(N.status!==1)N.status===0&&(N.rootSegmentID=p.nextSegmentId++),0<N.completedSegments.length&&p.partialBoundaries.push(N),ns(y,p.renderState,N.rootSegmentID),F&&Ca(F,N.fallbackState),gl(p,y,R,F);else if(!Co&&Qn(p,N)&&(Zs+N.byteSize>p.progressiveChunkSize||ll(N.contentState)))N.rootSegmentID=p.nextSegmentId++,p.completedBoundaries.push(N),ns(y,p.renderState,N.rootSegmentID),gl(p,y,R,F);else{if(Zs+=N.byteSize,F&&Ca(F,N.contentState),R=N.row,R!==null&&Qn(p,N)&&--R.pendingTasks===0&&Gi(p,R),q(y,_s),R=N.completedSegments,R.length!==1)throw Error(t(391));uc(p,y,R[0],F)}return q(y,yn)}function Ks(p,y,R,F){return ma(y,p.renderState,R.parentFormatContext,R.id),uc(p,y,R,F),vo(y,R.parentFormatContext)}function Th(p,y,R){Zs=R.byteSize;for(var F=R.completedSegments,N=0;N<F.length;N++)Eh(p,y,R,F[N]);F.length=0,F=R.row,F!==null&&Qn(p,R)&&--F.pendingTasks===0&&Gi(p,F),Br(y,R.contentState,p.renderState),F=p.resumableState,p=p.renderState,N=R.rootSegmentID,R=R.contentState;var X=p.stylesToHoist;return p.stylesToHoist=!1,ee(y,p.startInlineScript),ee(y,Xt),X?((F.instructions&4)===0&&(F.instructions|=4,ee(y,Is)),(F.instructions&2)===0&&(F.instructions|=2,ee(y,ol)),(F.instructions&8)===0?(F.instructions|=8,ee(y,ui)):ee(y,bh)):((F.instructions&2)===0&&(F.instructions|=2,ee(y,ol)),ee(y,sl)),F=he(N.toString(16)),ee(y,p.boundaryPrefix),ee(y,F),ee(y,Ls),ee(y,p.segmentPrefix),ee(y,F),X?(ee(y,Zl),pi(y,R)):ee(y,Bc),R=q(y,ls),sr(y,p)&&R}function Eh(p,y,R,F){if(F.status===2)return!0;var N=R.contentState,X=F.id;if(X===-1){if((F.id=R.rootSegmentID)===-1)throw Error(t(392));return Ks(p,y,F,N)}return X===R.rootSegmentID?Ks(p,y,F,N):(Ks(p,y,F,N),R=p.resumableState,p=p.renderState,ee(y,p.startInlineScript),ee(y,Xt),(R.instructions&1)===0?(R.instructions|=1,ee(y,Ou)):ee(y,Fu),ee(y,p.segmentPrefix),X=he(X.toString(16)),ee(y,X),ee(y,Lu),ee(y,p.placeholderPrefix),ee(y,X),y=q(y,rl),y)}var Co=!1;function pl(p,y){pe=new Uint8Array(2048),me=0;try{if(!(0<p.pendingRootTasks)){var R,F=p.completedRootSegment;if(F!==null){if(F.status===5)return;var N=p.completedPreambleSegments;if(N===null)return;Zs=p.byteSize;var X=p.resumableState,K=p.renderState,fe=K.preamble,ne=fe.htmlChunks,de=fe.headChunks,Ce;if(ne){for(Ce=0;Ce<ne.length;Ce++)ee(y,ne[Ce]);if(de)for(Ce=0;Ce<de.length;Ce++)ee(y,de[Ce]);else ee(y,ri("head")),ee(y,Xt)}else if(de)for(Ce=0;Ce<de.length;Ce++)ee(y,de[Ce]);var Pe=K.charsetChunks;for(Ce=0;Ce<Pe.length;Ce++)ee(y,Pe[Ce]);Pe.length=0,K.preconnects.forEach(Tn,y),K.preconnects.clear();var Ze=K.viewportChunks;for(Ce=0;Ce<Ze.length;Ce++)ee(y,Ze[Ce]);Ze.length=0,K.fontPreloads.forEach(Tn,y),K.fontPreloads.clear(),K.highImagePreloads.forEach(Tn,y),K.highImagePreloads.clear(),or=K,K.styles.forEach(ql,y),or=null;var Ye=K.importMapChunks;for(Ce=0;Ce<Ye.length;Ce++)ee(y,Ye[Ce]);Ye.length=0,K.bootstrapScripts.forEach(Tn,y),K.scripts.forEach(Tn,y),K.scripts.clear(),K.bulkPreloads.forEach(Tn,y),K.bulkPreloads.clear(),ne||de||(X.instructions|=32);var Dt=K.hoistableChunks;for(Ce=0;Ce<Dt.length;Ce++)ee(y,Dt[Ce]);for(X=Dt.length=0;X<N.length;X++){var vt=N[X];for(K=0;K<vt.length;K++)uc(p,y,vt[K],null)}var Bt=p.renderState.preamble,In=Bt.headChunks;(Bt.htmlChunks||In)&&ee(y,Fo("head"));var xn=Bt.bodyChunks;if(xn)for(N=0;N<xn.length;N++)ee(y,xn[N]);uc(p,y,F,null),p.completedRootSegment=null;var Ri=p.renderState;if(p.allPendingTasks!==0||p.clientRenderedBoundaries.length!==0||p.completedBoundaries.length!==0||p.trackedPostpones!==null&&(p.trackedPostpones.rootNodes.length!==0||p.trackedPostpones.rootSlots!==null)){var br=p.resumableState;if((br.instructions&64)===0){if(br.instructions|=64,ee(y,Ri.startInlineScript),(br.instructions&32)===0){br.instructions|=32;var $r="_"+br.idPrefix+"R_";ee(y,Yt),ee(y,he(tt($r))),ee(y,cn)}ee(y,Xt),ee(y,go),q(y,Gt)}}sr(y,Ri)}var yt=p.renderState;F=0;var Xi=yt.viewportChunks;for(F=0;F<Xi.length;F++)ee(y,Xi[F]);Xi.length=0,yt.preconnects.forEach(Tn,y),yt.preconnects.clear(),yt.fontPreloads.forEach(Tn,y),yt.fontPreloads.clear(),yt.highImagePreloads.forEach(Tn,y),yt.highImagePreloads.clear(),yt.styles.forEach(En,y),yt.scripts.forEach(Tn,y),yt.scripts.clear(),yt.bulkPreloads.forEach(Tn,y),yt.bulkPreloads.clear();var Xn=yt.hoistableChunks;for(F=0;F<Xn.length;F++)ee(y,Xn[F]);Xn.length=0;var fr=p.clientRenderedBoundaries;for(R=0;R<fr.length;R++){var vs=fr[R];yt=y;var Dn=p.resumableState,Oa=p.renderState,eo=vs.rootSegmentID,Yi=vs.errorDigest;ee(yt,Oa.startInlineScript),ee(yt,Xt),(Dn.instructions&4)===0?(Dn.instructions|=4,ee(yt,al)):ee(yt,yo),ee(yt,Oa.boundaryPrefix),ee(yt,he(eo.toString(16))),ee(yt,Ds),Yi&&(ee(yt,Bs),ee(yt,he(va(Yi||""))));var So=q(yt,Iu);if(!So){p.destination=null,R++,fr.splice(0,R);return}}fr.splice(0,R);var Zi=p.completedBoundaries;for(R=0;R<Zi.length;R++)if(!Th(p,y,Zi[R])){p.destination=null,R++,Zi.splice(0,R);return}Zi.splice(0,R),le(y),pe=new Uint8Array(2048),me=0,Co=!0;var Fa=p.partialBoundaries;for(R=0;R<Fa.length;R++){var vl=Fa[R];e:{fr=p,vs=y,Zs=vl.byteSize;var dr=vl.completedSegments;for(So=0;So<dr.length;So++)if(!Eh(fr,vs,vl,dr[So])){So++,dr.splice(0,So);var yl=!1;break e}dr.splice(0,So);var Ki=vl.row;Ki!==null&&Ki.together&&vl.pendingTasks===1&&(Ki.pendingTasks===1?zu(fr,Ki,Ki.hoistables):Ki.pendingTasks--),yl=Br(vs,vl.contentState,fr.renderState)}if(!yl){p.destination=null,R++,Fa.splice(0,R);return}}Fa.splice(0,R),Co=!1;var La=p.completedBoundaries;for(R=0;R<La.length;R++)if(!Th(p,y,La[R])){p.destination=null,R++,La.splice(0,R);return}La.splice(0,R)}}finally{Co=!1,p.allPendingTasks===0&&p.clientRenderedBoundaries.length===0&&p.completedBoundaries.length===0?(p.flushScheduled=!1,R=p.resumableState,R.hasBody&&ee(y,Fo("body")),R.hasHtml&&ee(y,Fo("html")),le(y),p.status=14,y.close(),p.destination=null):le(y)}}function Hr(p){p.flushScheduled=p.destination!==null,Ee(function(){return Sh(p)}),re(function(){p.status===10&&(p.status=11),p.trackedPostpones===null&&Qc(p,p.pendingRootTasks===0)})}function Js(p){p.flushScheduled===!1&&p.pingedTasks.length===0&&p.destination!==null&&(p.flushScheduled=!0,re(function(){var y=p.destination;y?pl(p,y):p.flushScheduled=!1}))}function _a(p,y){if(p.status===13)p.status=14,We(y,p.fatalError);else if(p.status!==14&&p.destination===null){p.destination=y;try{pl(p,y)}catch(R){Ei(p,R,{}),dl(p,R)}}}function qr(p,y){(p.status===11||p.status===10)&&(p.status=12);try{var R=p.abortableTasks;if(0<R.size){var F=y===void 0?Error(t(432)):typeof y=="object"&&y!==null&&typeof y.then=="function"?Error(t(530)):y;p.fatalError=F,R.forEach(function(N){return lc(N,p,F)}),R.clear()}p.destination!==null&&pl(p,p.destination)}catch(N){Ei(p,N,{}),dl(p,N)}}function Xu(p,y,R){if(y===null)R.rootNodes.push(p);else{var F=R.workingMap,N=F.get(y);N===void 0&&(N=[y[1],y[2],[],null],F.set(y,N),Xu(N,y[0],R)),N[2].push(p)}}function Rh(p){var y=p.trackedPostpones;if(y===null||y.rootNodes.length===0&&y.rootSlots===null)return p.trackedPostpones=null;if(p.completedRootSegment===null||p.completedRootSegment.status!==5&&p.completedPreambleSegments!==null){var R=p.nextSegmentId,F=y.rootSlots,N=p.resumableState;N.bootstrapScriptContent=void 0,N.bootstrapScripts=void 0,N.bootstrapModules=void 0}else{R=0,F=-1,N=p.resumableState;var X=p.renderState;N.nextFormID=0,N.hasBody=!1,N.hasHtml=!1,N.unknownResources={font:X.resets.font},N.dnsResources=X.resets.dns,N.connectResources=X.resets.connect,N.imageResources=X.resets.image,N.styleResources=X.resets.style,N.scriptResources={},N.moduleUnknownResources={},N.moduleScriptResources={},N.instructions=0}return{nextSegmentId:R,rootFormatContext:p.rootFormatContext,progressiveChunkSize:p.progressiveChunkSize,resumableState:p.resumableState,replayNodes:y.rootNodes,replaySlots:F}}function ml(){var p=n.version;if(p!=="19.2.0")throw Error(t(527,p,"19.2.0"))}return ml(),ml(),Nf.prerender=function(p,y){return new Promise(function(R,F){var N=y?y.onHeaders:void 0,X;N&&(X=function(Ce){N(new Headers(Ce))});var K=Dl(y?y.identifierPrefix:void 0,y?y.unstable_externalRuntimeSrc:void 0,y?y.bootstrapScriptContent:void 0,y?y.bootstrapScripts:void 0,y?y.bootstrapModules:void 0),fe=Ea(p,K,aa(K,void 0,y?y.unstable_externalRuntimeSrc:void 0,y?y.importMap:void 0,X,y?y.maxHeadersLength:void 0),_c(y?y.namespaceURI:void 0),y?y.progressiveChunkSize:void 0,y?y.onError:void 0,function(){var Ce=new ReadableStream({type:"bytes",pull:function(Pe){_a(fe,Pe)},cancel:function(Pe){fe.destination=null,qr(fe,Pe)}},{highWaterMark:0});Ce={postponed:Rh(fe),prelude:Ce},R(Ce)},void 0,void 0,F,y?y.onPostpone:void 0);if(y&&y.signal){var ne=y.signal;if(ne.aborted)qr(fe,ne.reason);else{var de=function(){qr(fe,ne.reason),ne.removeEventListener("abort",de)};ne.addEventListener("abort",de)}}Hr(fe)})},Nf.renderToReadableStream=function(p,y){return new Promise(function(R,F){var N,X,K=new Promise(function(Ye,Dt){X=Ye,N=Dt}),fe=y?y.onHeaders:void 0,ne;fe&&(ne=function(Ye){fe(new Headers(Ye))});var de=Dl(y?y.identifierPrefix:void 0,y?y.unstable_externalRuntimeSrc:void 0,y?y.bootstrapScriptContent:void 0,y?y.bootstrapScripts:void 0,y?y.bootstrapModules:void 0),Ce=hl(p,de,aa(de,y?y.nonce:void 0,y?y.unstable_externalRuntimeSrc:void 0,y?y.importMap:void 0,ne,y?y.maxHeadersLength:void 0),_c(y?y.namespaceURI:void 0),y?y.progressiveChunkSize:void 0,y?y.onError:void 0,X,function(){var Ye=new ReadableStream({type:"bytes",pull:function(Dt){_a(Ce,Dt)},cancel:function(Dt){Ce.destination=null,qr(Ce,Dt)}},{highWaterMark:0});Ye.allReady=K,R(Ye)},function(Ye){K.catch(function(){}),F(Ye)},N,y?y.onPostpone:void 0,y?y.formState:void 0);if(y&&y.signal){var Pe=y.signal;if(Pe.aborted)qr(Ce,Pe.reason);else{var Ze=function(){qr(Ce,Pe.reason),Pe.removeEventListener("abort",Ze)};Pe.addEventListener("abort",Ze)}}Hr(Ce)})},Nf.resume=function(p,y,R){return new Promise(function(F,N){var X,K,fe=new Promise(function(Pe,Ze){K=Pe,X=Ze}),ne=Un(p,y,aa(y.resumableState,R?R.nonce:void 0,void 0,void 0,void 0,void 0),R?R.onError:void 0,K,function(){var Pe=new ReadableStream({type:"bytes",pull:function(Ze){_a(ne,Ze)},cancel:function(Ze){ne.destination=null,qr(ne,Ze)}},{highWaterMark:0});Pe.allReady=fe,F(Pe)},function(Pe){fe.catch(function(){}),N(Pe)},X,R?R.onPostpone:void 0);if(R&&R.signal){var de=R.signal;if(de.aborted)qr(ne,de.reason);else{var Ce=function(){qr(ne,de.reason),de.removeEventListener("abort",Ce)};de.addEventListener("abort",Ce)}}Hr(ne)})},Nf.resumeAndPrerender=function(p,y,R){return new Promise(function(F,N){var X=zr(p,y,aa(y.resumableState,void 0,void 0,void 0,void 0,void 0),R?R.onError:void 0,function(){var ne=new ReadableStream({type:"bytes",pull:function(de){_a(X,de)},cancel:function(de){X.destination=null,qr(X,de)}},{highWaterMark:0});ne={postponed:Rh(X),prelude:ne},F(ne)},void 0,void 0,N,R?R.onPostpone:void 0);if(R&&R.signal){var K=R.signal;if(K.aborted)qr(X,K.reason);else{var fe=function(){qr(X,K.reason),K.removeEventListener("abort",fe)};K.addEventListener("abort",fe)}}Hr(X)})},Nf.version="19.2.0",Nf}var tg={};/**
|
|
119
|
-
* @license React
|
|
120
|
-
* react-dom-server-legacy.browser.development.js
|
|
121
|
-
*
|
|
122
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the MIT license found in the
|
|
125
|
-
* LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/var Uw;function eI(){return Uw||(Uw=1,process.env.NODE_ENV!=="production"&&(function(){function n(h,d,S,_){return""+d+(S==="s"?"\\73 ":"\\53 ")+_}function e(h,d,S,_){return""+d+(S==="s"?"\\u0073":"\\u0053")+_}function t(h){return h===null||typeof h!="object"?null:(h=Ql&&h[Ql]||h["@@iterator"],typeof h=="function"?h:null)}function i(h){return h=Object.prototype.toString.call(h),h.slice(8,h.length-1)}function r(h){var d=JSON.stringify(h);return'"'+h+'"'===d?h:d}function o(h){switch(typeof h){case"string":return JSON.stringify(10>=h.length?h:h.slice(0,10)+"...");case"object":return cs(h)?"[...]":h!==null&&h.$$typeof===ur?"client":(h=i(h),h==="Object"?"{...}":h);case"function":return h.$$typeof===ur?"client":(h=h.displayName||h.name)?"function "+h:"function";default:return String(h)}}function s(h){if(typeof h=="string")return h;switch(h){case yr:return"Suspense";case Dr:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case Ir:return s(h.render);case un:return s(h.type);case Br:var d=h._payload;h=h._init;try{return s(h(d))}catch{}}return""}function a(h,d){var S=i(h);if(S!=="Object"&&S!=="Array")return S;var _=-1,B=0;if(cs(h))if(ql.has(h)){var U=ql.get(h);S="<"+s(U)+">";for(var te=0;te<h.length;te++){var se=h[te];se=typeof se=="string"?se:typeof se=="object"&&se!==null?"{"+a(se)+"}":"{"+o(se)+"}",""+te===d?(_=S.length,B=se.length,S+=se):S=15>se.length&&40>S.length+se.length?S+se:S+"{...}"}S+="</"+s(U)+">"}else{for(S="[",U=0;U<h.length;U++)0<U&&(S+=", "),te=h[U],te=typeof te=="object"&&te!==null?a(te):o(te),""+U===d?(_=S.length,B=te.length,S+=te):S=10>te.length&&40>S.length+te.length?S+te:S+"...";S+="]"}else if(h.$$typeof===va)S="<"+s(h.type)+"/>";else{if(h.$$typeof===ur)return"client";if(jl.has(h)){for(S=jl.get(h),S="<"+(s(S)||"..."),U=Object.keys(h),te=0;te<U.length;te++){S+=" ",se=U[te],S+=r(se)+"=";var Fe=h[se],ve=se===d&&typeof Fe=="object"&&Fe!==null?a(Fe):o(Fe);typeof Fe!="string"&&(ve="{"+ve+"}"),se===d?(_=S.length,B=ve.length,S+=ve):S=10>ve.length&&40>S.length+ve.length?S+ve:S+"..."}S+=">"}else{for(S="{",U=Object.keys(h),te=0;te<U.length;te++)0<te&&(S+=", "),se=U[te],S+=r(se)+": ",Fe=h[se],Fe=typeof Fe=="object"&&Fe!==null?a(Fe):o(Fe),se===d?(_=S.length,B=Fe.length,S+=Fe):S=10>Fe.length&&40>S.length+Fe.length?S+Fe:S+"...";S+="}"}}return d===void 0?S:-1<_&&0<B?(h=" ".repeat(_)+"^".repeat(B),`
|
|
127
|
-
`+S+`
|
|
128
|
-
`+h):`
|
|
129
|
-
`+S}function l(h,d){var S=h.length&3,_=h.length-S,B=d;for(d=0;d<_;){var U=h.charCodeAt(d)&255|(h.charCodeAt(++d)&255)<<8|(h.charCodeAt(++d)&255)<<16|(h.charCodeAt(++d)&255)<<24;++d,U=3432918353*(U&65535)+((3432918353*(U>>>16)&65535)<<16)&4294967295,U=U<<15|U>>>17,U=461845907*(U&65535)+((461845907*(U>>>16)&65535)<<16)&4294967295,B^=U,B=B<<13|B>>>19,B=5*(B&65535)+((5*(B>>>16)&65535)<<16)&4294967295,B=(B&65535)+27492+(((B>>>16)+58964&65535)<<16)}switch(U=0,S){case 3:U^=(h.charCodeAt(d+2)&255)<<16;case 2:U^=(h.charCodeAt(d+1)&255)<<8;case 1:U^=h.charCodeAt(d)&255,U=3432918353*(U&65535)+((3432918353*(U>>>16)&65535)<<16)&4294967295,U=U<<15|U>>>17,B^=461845907*(U&65535)+((461845907*(U>>>16)&65535)<<16)&4294967295}return B^=h.length,B^=B>>>16,B=2246822507*(B&65535)+((2246822507*(B>>>16)&65535)<<16)&4294967295,B^=B>>>13,B=3266489909*(B&65535)+((3266489909*(B>>>16)&65535)<<16)&4294967295,(B^B>>>16)>>>0}function u(h){return typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object"}function g(h){try{return m(h),!1}catch{return!0}}function m(h){return""+h}function b(h,d){if(g(h))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",d,u(h)),m(h)}function w(h,d){if(g(h))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",d,u(h)),m(h)}function E(h){if(g(h))return console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",u(h)),m(h)}function T(h){return Yt.call(ba,h)?!0:Yt.call(ya,h)?!1:Ns.test(h)?ba[h]=!0:(ya[h]=!0,console.error("Invalid attribute name: `%s`",h),!1)}function P(h,d){pi[d.type]||d.onChange||d.onInput||d.readOnly||d.disabled||d.value==null||console.error(h==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),d.onChange||d.readOnly||d.disabled||d.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function M(h,d){if(Yt.call(xo,d)&&xo[d])return!0;if(Bu.test(d)){if(h="aria-"+d.slice(4).toLowerCase(),h=jh.hasOwnProperty(h)?h:null,h==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",d),xo[d]=!0;if(d!==h)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",d,h),xo[d]=!0}if(xh.test(d)){if(h=d.toLowerCase(),h=jh.hasOwnProperty(h)?h:null,h==null)return xo[d]=!0,!1;d!==h&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",d,h),xo[d]=!0)}return!0}function I(h,d){var S=[],_;for(_ in d)M(h,_)||S.push(_);d=S.map(function(B){return"`"+B+"`"}).join(", "),S.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",d,h):1<S.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",d,h)}function L(h,d,S,_){if(Yt.call(Si,d)&&Si[d])return!0;var B=d.toLowerCase();if(B==="onfocusin"||B==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Si[d]=!0;if(typeof S=="function"&&(h==="form"&&d==="action"||h==="input"&&d==="formAction"||h==="button"&&d==="formAction"))return!0;if(us.test(d))return wh.test(d)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",d),Si[d]=!0;if(xa.test(d)||Vc.test(d))return!0;if(B==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Si[d]=!0;if(B==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Si[d]=!0;if(B==="is"&&S!==null&&S!==void 0&&typeof S!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof S),Si[d]=!0;if(typeof S=="number"&&isNaN(S))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",d),Si[d]=!0;if($l.hasOwnProperty(B)){if(B=$l[B],B!==d)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",d,B),Si[d]=!0}else if(d!==B)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",d,B),Si[d]=!0;switch(d){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof S){case"boolean":switch(d){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return B=d.toLowerCase().slice(0,5),B==="data-"||B==="aria-"?!0:(S?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',S,d,d,S,d):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',S,d,d,S,d,d,d),Si[d]=!0)}case"function":case"symbol":return Si[d]=!0,!1;case"string":if(S==="false"||S==="true"){switch(d){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",S,d,S==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',d,S),Si[d]=!0}}return!0}function H(h,d,S){var _=[],B;for(B in d)L(h,B,d[B])||_.push(B);d=_.map(function(U){return"`"+U+"`"}).join(", "),_.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",d,h):1<_.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",d,h)}function W(h){return h.replace(mi,function(d,S){return S.toUpperCase()})}function G(h){if(typeof h=="boolean"||typeof h=="number"||typeof h=="bigint")return""+h;E(h),h=""+h;var d=Gc.exec(h);if(d){var S="",_,B=0;for(_=d.index;_<h.length;_++){switch(h.charCodeAt(_)){case 34:d=""";break;case 38:d="&";break;case 39:d="'";break;case 60:d="<";break;case 62:d=">";break;default:continue}B!==_&&(S+=h.slice(B,_)),B=_+1,S+=d}h=B!==_?S+h.slice(B,_):S}return h}function J(h){return qh.test(""+h)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":h}function Y(h){return E(h),(""+h).replace(Ue,e)}function $(h,d,S,_,B){return{idPrefix:h===void 0?"":h,nextFormID:0,streamingFormat:0,bootstrapScriptContent:S,bootstrapScripts:_,bootstrapModules:B,instructions:x,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function re(h,d,S,_){return{insertionMode:h,selectedValue:d,tagScope:S,viewTransition:_}}function be(h,d,S){var _=h.tagScope&-25;switch(d){case"noscript":return re(at,null,_|1,null);case"select":return re(at,S.value!=null?S.value:S.defaultValue,_,null);case"svg":return re(dt,null,_,null);case"picture":return re(at,null,_|2,null);case"math":return re(Rn,null,_,null);case"foreignObject":return re(at,null,_,null);case"table":return re(At,null,_,null);case"thead":case"tbody":case"tfoot":return re(zt,null,_,null);case"colgroup":return re(Ct,null,_,null);case"tr":return re(qt,null,_,null);case"head":if(h.insertionMode<at)return re(bt,null,_,null);break;case"html":if(h.insertionMode===Mt)return re(mt,null,_,null)}return h.insertionMode>=At||h.insertionMode<at?re(at,null,_,null):h.tagScope!==_?re(h.insertionMode,h.selectedValue,_,null):h}function we(h){return h===null?null:{update:h.update,enter:"none",exit:"none",share:h.update,name:h.autoName,autoName:h.autoName,nameIdx:0}}function Ee(h,d){return d.tagScope&32&&(h.instructions|=128),re(d.insertionMode,d.selectedValue,d.tagScope|12,we(d.viewTransition))}function pe(h,d){h=we(d.viewTransition);var S=d.tagScope|16;return h!==null&&h.share!=="none"&&(S|=64),re(d.insertionMode,d.selectedValue,S,h)}function me(h,d){if(typeof d!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var S=!0,_;for(_ in d)if(Yt.call(d,_)){var B=d[_];if(B!=null&&typeof B!="boolean"&&B!==""){if(_.indexOf("--")===0){var U=G(_);w(B,_),B=G((""+B).trim())}else{U=_;var te=B;if(-1<U.indexOf("-")){var se=U;bn.hasOwnProperty(se)&&bn[se]||(bn[se]=!0,console.error("Unsupported style property %s. Did you mean %s?",se,W(se.replace(Ti,"ms-"))))}else if(wa.test(U))se=U,bn.hasOwnProperty(se)&&bn[se]||(bn[se]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",se,se.charAt(0).toUpperCase()+se.slice(1)));else if(Hs.test(te)){se=U;var Fe=te;on.hasOwnProperty(Fe)&&on[Fe]||(on[Fe]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,se,Fe.replace(Hs,"")))}typeof te=="number"&&(isNaN(te)?Ca||(Ca=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",U)):isFinite(te)||ll||(ll=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",U))),U=_,te=Fn.get(U),te!==void 0||(te=G(U.replace(cl,"-$1").toLowerCase().replace(Nu,"-ms-")),Fn.set(U,te)),U=te,typeof B=="number"?B=B===0||zs.has(_)?""+B:B+"px":(w(B,_),B=G((""+B).trim()))}S?(S=!1,h.push(Zt,U,zi,B)):h.push(tn,U,zi,B)}}S||h.push(xt)}function ee(h,d,S){S&&typeof S!="function"&&typeof S!="symbol"&&h.push(Vt,d,Jt)}function q(h,d,S){typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&h.push(Vt,d,Kt,G(S),xt)}function le(h,d){this.push('<input type="hidden"'),Te(h),q(this,"name",d),q(this,"value",h),this.push(Ws)}function Te(h){if(typeof h!="string")throw Error("File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration.")}function he(h,d){if(typeof d.$$FORM_ACTION=="function"){var S=h.nextFormID++;h=h.idPrefix+S;try{var _=d.$$FORM_ACTION(h);if(_){var B=_.data;B?.forEach(Te)}return _}catch(U){if(typeof U=="object"&&U!==null&&typeof U.then=="function")throw U;console.error(`Failed to serialize an action for progressive enhancement:
|
|
130
|
-
%s`,U)}}return null}function ue(h,d,S,_,B,U,te,se){var Fe=null;if(typeof _=="function"){se===null||Sa||(Sa=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),B===null&&U===null||ec||(ec=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),te===null||Ta||(Ta=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."));var ve=he(d,_);ve!==null?(se=ve.name,_=ve.action||"",B=ve.encType,U=ve.method,te=ve.target,Fe=ve.data):(h.push(Vt,"formAction",Kt,hi,xt),te=U=B=_=se=null,Ve(d,S))}return se!=null&&Ne(h,"name",se),_!=null&&Ne(h,"formAction",_),B!=null&&Ne(h,"formEncType",B),U!=null&&Ne(h,"formMethod",U),te!=null&&Ne(h,"formTarget",te),Fe}function Ne(h,d,S){switch(d){case"className":q(h,"class",S);break;case"tabIndex":q(h,"tabindex",S);break;case"dir":case"role":case"viewBox":case"width":case"height":q(h,d,S);break;case"style":me(h,S);break;case"src":case"href":if(S===""){console.error(d==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',d,d);break}case"action":case"formAction":if(S==null||typeof S=="function"||typeof S=="symbol"||typeof S=="boolean")break;b(S,d),S=J(""+S),h.push(Vt,d,Kt,G(S),xt);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":ee(h,d.toLowerCase(),S);break;case"xlinkHref":if(typeof S=="function"||typeof S=="symbol"||typeof S=="boolean")break;b(S,d),S=J(""+S),h.push(Vt,"xlink:href",Kt,G(S),xt);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof S!="function"&&typeof S!="symbol"&&h.push(Vt,d,Kt,G(S),xt);break;case"inert":S!==""||rt[d]||(rt[d]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",d));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":S&&typeof S!="function"&&typeof S!="symbol"&&h.push(Vt,d,Jt);break;case"capture":case"download":S===!0?h.push(Vt,d,Jt):S!==!1&&typeof S!="function"&&typeof S!="symbol"&&h.push(Vt,d,Kt,G(S),xt);break;case"cols":case"rows":case"size":case"span":typeof S!="function"&&typeof S!="symbol"&&!isNaN(S)&&1<=S&&h.push(Vt,d,Kt,G(S),xt);break;case"rowSpan":case"start":typeof S=="function"||typeof S=="symbol"||isNaN(S)||h.push(Vt,d,Kt,G(S),xt);break;case"xlinkActuate":q(h,"xlink:actuate",S);break;case"xlinkArcrole":q(h,"xlink:arcrole",S);break;case"xlinkRole":q(h,"xlink:role",S);break;case"xlinkShow":q(h,"xlink:show",S);break;case"xlinkTitle":q(h,"xlink:title",S);break;case"xlinkType":q(h,"xlink:type",S);break;case"xmlBase":q(h,"xml:base",S);break;case"xmlLang":q(h,"xml:lang",S);break;case"xmlSpace":q(h,"xml:space",S);break;default:if((!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=Du.get(d)||d,T(d))){switch(typeof S){case"function":case"symbol":return;case"boolean":var _=d.toLowerCase().slice(0,5);if(_!=="data-"&&_!=="aria-")return}h.push(Vt,d,Kt,G(S),xt)}}}function We(h,d,S){if(d!=null){if(S!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof d!="object"||!("__html"in d))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");d=d.__html,d!=null&&(E(d),h.push(""+d))}}function Qe(h,d){var S=h[d];S!=null&&(S=cs(S),h.multiple&&!S?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.",d):!h.multiple&&S&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",d))}function _e(h){var d="";return Iu.Children.forEach(h,function(S){S!=null&&(d+=S,Jr||typeof S=="string"||typeof S=="number"||typeof S=="bigint"||(Jr=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),d}function Ve(h,d){if((h.instructions&16)===x){h.instructions|=16;var S=d.preamble,_=d.bootstrapChunks;(S.htmlChunks||S.headChunks)&&_.length===0?(_.push(d.startInlineScript),es(_,h),_.push(Ot,Uc,Ae)):_.unshift(d.startInlineScript,Ot,Uc,Ae)}}function Oe(h,d){h.push(Nt("link"));for(var S in d)if(Yt.call(d,S)){var _=d[S];if(_!=null)switch(S){case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ne(h,S,_)}}return h.push(Ws),null}function qe(h){return E(h),(""+h).replace(ul,n)}function je(h,d,S){h.push(Nt(S));for(var _ in d)if(Yt.call(d,_)){var B=d[_];if(B!=null)switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(S+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ne(h,_,B)}}return h.push(Ws),null}function it(h,d){h.push(Nt("title"));var S=null,_=null,B;for(B in d)if(Yt.call(d,B)){var U=d[B];if(U!=null)switch(B){case"children":S=U;break;case"dangerouslySetInnerHTML":_=U;break;default:Ne(h,B,U)}}return h.push(Ot),d=Array.isArray(S)?2>S.length?S[0]:null:S,typeof d!="function"&&typeof d!="symbol"&&d!==null&&d!==void 0&&h.push(G(""+d)),We(h,_,S),h.push(pn("title")),null}function ct(h,d){h.push(Nt("script"));var S=null,_=null,B;for(B in d)if(Yt.call(d,B)){var U=d[B];if(U!=null)switch(B){case"children":S=U;break;case"dangerouslySetInnerHTML":_=U;break;default:Ne(h,B,U)}}return h.push(Ot),S!=null&&typeof S!="string"&&(d=typeof S=="number"?"a number for children":Array.isArray(S)?"an array for children":"something unexpected for children",console.error("A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.",d)),We(h,_,S),typeof S=="string"&&h.push(Y(S)),h.push(pn("script")),null}function li(h,d,S){h.push(Nt(S));var _=S=null,B;for(B in d)if(Yt.call(d,B)){var U=d[B];if(U!=null)switch(B){case"children":S=U;break;case"dangerouslySetInnerHTML":_=U;break;default:Ne(h,B,U)}}return h.push(Ot),We(h,_,S),S}function tt(h,d,S){h.push(Nt(S));var _=S=null,B;for(B in d)if(Yt.call(d,B)){var U=d[B];if(U!=null)switch(B){case"children":S=U;break;case"dangerouslySetInnerHTML":_=U;break;default:Ne(h,B,U)}}return h.push(Ot),We(h,_,S),typeof S=="string"?(h.push(G(S)),null):S}function Nt(h){var d=tc.get(h);if(d===void 0){if(!Wi.test(h))throw Error("Invalid tag: "+h);d="<"+h,tc.set(h,d)}return d}function Pt(h,d,S,_,B,U,te,se,Fe){I(d,S),d!=="input"&&d!=="textarea"&&d!=="select"||S==null||S.value!==null||No||(No=!0,d==="select"&&S.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",d):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",d));e:if(d.indexOf("-")===-1)var ve=!1;else switch(d){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":ve=!1;break e;default:ve=!0}switch(ve||typeof S.is=="string"||H(d,S),!S.suppressContentEditableWarning&&S.contentEditable&&S.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),se.insertionMode!==dt&&se.insertionMode!==Rn&&d.indexOf("-")===-1&&d.toLowerCase()!==d&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",d),d){case"div":case"span":case"svg":case"path":break;case"a":h.push(Nt("a"));var Me=null,Ge=null,Ke;for(Ke in S)if(Yt.call(S,Ke)){var Xe=S[Ke];if(Xe!=null)switch(Ke){case"children":Me=Xe;break;case"dangerouslySetInnerHTML":Ge=Xe;break;case"href":Xe===""?q(h,"href",""):Ne(h,Ke,Xe);break;default:Ne(h,Ke,Xe)}}if(h.push(Ot),We(h,Ge,Me),typeof Me=="string"){h.push(G(Me));var De=null}else De=Me;return De;case"g":case"p":case"li":break;case"select":P("select",S),Qe(S,"value"),Qe(S,"defaultValue"),S.value===void 0||S.defaultValue===void 0||Zr||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),Zr=!0),h.push(Nt("select"));var Ft=null,vn=null,ht;for(ht in S)if(Yt.call(S,ht)){var Qt=S[ht];if(Qt!=null)switch(ht){case"children":Ft=Qt;break;case"dangerouslySetInnerHTML":vn=Qt;break;case"defaultValue":case"value":break;default:Ne(h,ht,Qt)}}return h.push(Ot),We(h,vn,Ft),Ft;case"option":var ki=se.selectedValue;h.push(Nt("option"));var Pi=null,$t=null,fi=null,Go=null,gr;for(gr in S)if(Yt.call(S,gr)){var $e=S[gr];if($e!=null)switch(gr){case"children":Pi=$e;break;case"selected":fi=$e,ds||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ds=!0);break;case"dangerouslySetInnerHTML":Go=$e;break;case"value":$t=$e;default:Ne(h,gr,$e)}}if(ki!=null){if($t!==null){b($t,"value");var sn=""+$t}else Go===null||zo||(zo=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")),sn=_e(Pi);if(cs(ki)){for(var an=0;an<ki.length;an++)if(b(ki[an],"value"),""+ki[an]===sn){h.push(' selected=""');break}}else b(ki,"select.value"),""+ki===sn&&h.push(' selected=""')}else fi&&h.push(' selected=""');return h.push(Ot),We(h,Go,Pi),Pi;case"textarea":P("textarea",S),S.value===void 0||S.defaultValue===void 0||Kr||(console.error("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components"),Kr=!0),h.push(Nt("textarea"));var hn=null,Bn=null,Ht=null,Tt;for(Tt in S)if(Yt.call(S,Tt)){var Qi=S[Tt];if(Qi!=null)switch(Tt){case"children":Ht=Qi;break;case"value":hn=Qi;break;case"defaultValue":Bn=Qi;break;case"dangerouslySetInnerHTML":throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Ne(h,Tt,Qi)}}if(hn===null&&Bn!==null&&(hn=Bn),h.push(Ot),Ht!=null){if(console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),hn!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(cs(Ht)){if(1<Ht.length)throw Error("<textarea> can only have at most one child.");E(Ht[0]),hn=""+Ht[0]}E(Ht),hn=""+Ht}return typeof hn=="string"&&hn[0]===`
|
|
131
|
-
`&&h.push(Vs),hn!==null&&(b(hn,"value"),h.push(G(""+hn))),null;case"input":P("input",S),h.push(Nt("input"));var ln=null,Mi=null,Pn=null,wr=null,Tl=null,Cr=null,Uo=null,Xo=null,Yo=null,yi;for(yi in S)if(Yt.call(S,yi)){var c=S[yi];if(c!=null)switch(yi){case"children":case"dangerouslySetInnerHTML":throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"name":ln=c;break;case"formAction":Mi=c;break;case"formEncType":Pn=c;break;case"formMethod":wr=c;break;case"formTarget":Tl=c;break;case"defaultChecked":Yo=c;break;case"defaultValue":Uo=c;break;case"checked":Xo=c;break;case"value":Cr=c;break;default:Ne(h,yi,c)}}Mi===null||S.type==="image"||S.type==="submit"||si||(si=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".'));var f=ue(h,_,B,Mi,Pn,wr,Tl,ln);return Xo===null||Yo===null||Hi||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",S.type),Hi=!0),Cr===null||Uo===null||fs||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",S.type),fs=!0),Xo!==null?ee(h,"checked",Xo):Yo!==null&&ee(h,"checked",Yo),Cr!==null?Ne(h,"value",Cr):Uo!==null&&Ne(h,"value",Uo),h.push(Ws),f?.forEach(le,h),null;case"button":h.push(Nt("button"));var C=null,A=null,D=null,V=null,Q=null,ie=null,ke=null,ce;for(ce in S)if(Yt.call(S,ce)){var ye=S[ce];if(ye!=null)switch(ce){case"children":C=ye;break;case"dangerouslySetInnerHTML":A=ye;break;case"name":D=ye;break;case"formAction":V=ye;break;case"formEncType":Q=ye;break;case"formMethod":ie=ye;break;case"formTarget":ke=ye;break;default:Ne(h,ce,ye)}}V===null||S.type==null||S.type==="submit"||si||(si=!0,console.error('A button can only specify a formAction along with type="submit" or no type.'));var Be=ue(h,_,B,V,Q,ie,ke,D);if(h.push(Ot),Be?.forEach(le,h),We(h,A,C),typeof C=="string"){h.push(G(C));var He=null}else He=C;return He;case"form":h.push(Nt("form"));var ze=null,Ie=null,ut=null,fn=null,st=null,Lt=null,Wn;for(Wn in S)if(Yt.call(S,Wn)){var $n=S[Wn];if($n!=null)switch(Wn){case"children":ze=$n;break;case"dangerouslySetInnerHTML":Ie=$n;break;case"action":ut=$n;break;case"encType":fn=$n;break;case"method":st=$n;break;case"target":Lt=$n;break;default:Ne(h,Wn,$n)}}var jt=null,ot=null;if(typeof ut=="function"){fn===null&&st===null||ec||(ec=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),Lt===null||Ta||(Ta=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."));var ei=he(_,ut);ei!==null?(ut=ei.action||"",fn=ei.encType,st=ei.method,Lt=ei.target,jt=ei.data,ot=ei.name):(h.push(Vt,"action",Kt,hi,xt),Lt=st=fn=ut=null,Ve(_,B))}if(ut!=null&&Ne(h,"action",ut),fn!=null&&Ne(h,"encType",fn),st!=null&&Ne(h,"method",st),Lt!=null&&Ne(h,"target",Lt),h.push(Ot),ot!==null&&(h.push('<input type="hidden"'),q(h,"name",ot),h.push(Ws),jt?.forEach(le,h)),We(h,Ie,ze),typeof ze=="string"){h.push(G(ze));var ji=null}else ji=ze;return ji;case"menuitem":h.push(Nt("menuitem"));for(var dn in S)if(Yt.call(S,dn)){var Mn=S[dn];if(Mn!=null)switch(dn){case"children":case"dangerouslySetInnerHTML":throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Ne(h,dn,Mn)}}return h.push(Ot),null;case"object":h.push(Nt("object"));var Sr=null,Ai=null,di;for(di in S)if(Yt.call(S,di)){var An=S[di];if(An!=null)switch(di){case"children":Sr=An;break;case"dangerouslySetInnerHTML":Ai=An;break;case"data":b(An,"data");var ai=J(""+An);if(ai===""){console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',di,di);break}h.push(Vt,"data",Kt,G(ai),xt);break;default:Ne(h,di,An)}}if(h.push(Ot),We(h,Ai,Sr),typeof Sr=="string"){h.push(G(Sr));var Tr=null}else Tr=Sr;return Tr;case"title":var Vr=se.tagScope&1,gi=se.tagScope&4;if(Yt.call(S,"children")){var Nn=S.children,qi=Array.isArray(Nn)?2>Nn.length?Nn[0]:null:Nn;Array.isArray(Nn)&&1<Nn.length?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",Nn.length):typeof qi=="function"||typeof qi=="symbol"?console.error("React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.",typeof qi=="function"?"a Function":"a Sybmol"):qi&&qi.toString==={}.toString&&(qi.$$typeof!=null?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."):console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."))}if(se.insertionMode===dt||Vr||S.itemProp!=null)var Er=it(h,S);else gi?Er=null:(it(B.hoistableChunks,S),Er=void 0);return Er;case"link":var $i=se.tagScope&1,ws=se.tagScope&4,Rr=S.rel,ti=S.href,io=S.precedence;if(se.insertionMode===dt||$i||S.itemProp!=null||typeof Rr!="string"||typeof ti!="string"||ti===""){Rr==="stylesheet"&&typeof S.precedence=="string"&&(typeof ti=="string"&&ti||console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.',ti===null?"`null`":ti===void 0?"`undefined`":ti===""?"an empty string":'something with type "'+typeof ti+'"')),Oe(h,S);var bi=null}else if(S.rel==="stylesheet")if(typeof io!="string"||S.disabled!=null||S.onLoad||S.onError){if(typeof io=="string"){if(S.disabled!=null)console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.');else if(S.onLoad||S.onError){var Ju=S.onLoad&&S.onError?"`onLoad` and `onError` props":S.onLoad?"`onLoad` prop":"`onError` prop";console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',Ju,Ju)}}bi=Oe(h,S)}else{var Zo=B.styles.get(io),Vn=_.styleResources.hasOwnProperty(ti)?_.styleResources[ti]:void 0;if(Vn!==oe){_.styleResources[ti]=oe,Zo||(Zo={precedence:G(io),rules:[],hrefs:[],sheets:new Map},B.styles.set(io,Zo));var ro={state:N,props:En({},S,{"data-precedence":S.precedence,precedence:null})};if(Vn){Vn.length===2&&aa(ro.props,Vn);var er=B.preloads.stylesheets.get(ti);er&&0<er.length?er.length=0:ro.state=X}Zo.sheets.set(ti,ro),te&&te.stylesheets.add(ro)}else if(Zo){var gc=Zo.sheets.get(ti);gc&&te&&te.stylesheets.add(gc)}Fe&&h.push("<!-- -->"),bi=null}else S.onLoad||S.onError?bi=Oe(h,S):(Fe&&h.push("<!-- -->"),bi=ws?null:Oe(B.hoistableChunks,S));return bi;case"script":var El=se.tagScope&1,Ro=S.async;if(typeof S.src!="string"||!S.src||!Ro||typeof Ro=="function"||typeof Ro=="symbol"||S.onLoad||S.onError||se.insertionMode===dt||El||S.itemProp!=null)var Rl=ct(h,S);else{var kr=S.src;if(S.type==="module")var pc=_.moduleScriptResources,Qu=B.preloads.moduleScripts;else pc=_.scriptResources,Qu=B.preloads.scripts;var oo=pc.hasOwnProperty(kr)?pc[kr]:void 0;if(oo!==oe){pc[kr]=oe;var mc=S;if(oo){oo.length===2&&(mc=En({},S),aa(mc,oo));var tr=Qu.get(kr);tr&&(tr.length=0)}var kl=[];B.scripts.add(kl),ct(kl,mc)}Fe&&h.push("<!-- -->"),Rl=null}return Rl;case"style":var Wa=se.tagScope&1;if(Yt.call(S,"children")){var $s=S.children,so=Array.isArray($s)?2>$s.length?$s[0]:null:$s;(typeof so=="function"||typeof so=="symbol"||Array.isArray(so))&&console.error("React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.",typeof so=="function"?"a Function":typeof so=="symbol"?"a Sybmol":"an Array")}var ao=S.precedence,Ko=S.href,Pr=S.nonce;if(se.insertionMode===dt||Wa||S.itemProp!=null||typeof ao!="string"||typeof Ko!="string"||Ko===""){h.push(Nt("style"));var _i=null,ea=null,Jo;for(Jo in S)if(Yt.call(S,Jo)){var Va=S[Jo];if(Va!=null)switch(Jo){case"children":_i=Va;break;case"dangerouslySetInnerHTML":ea=Va;break;default:Ne(h,Jo,Va)}}h.push(Ot);var Cs=Array.isArray(_i)?2>_i.length?_i[0]:null:_i;typeof Cs!="function"&&typeof Cs!="symbol"&&Cs!==null&&Cs!==void 0&&h.push(qe(Cs)),We(h,ea,_i),h.push(pn("style"));var Fh=null}else{Ko.includes(" ")&&console.error('React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is "%s".',Ko);var pr=B.styles.get(ao),ko=_.styleResources.hasOwnProperty(Ko)?_.styleResources[Ko]:void 0;if(ko!==oe){_.styleResources[Ko]=oe,ko&&console.error('React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.',Ko),pr||(pr={precedence:G(ao),rules:[],hrefs:[],sheets:new Map},B.styles.set(ao,pr));var vc=B.nonce.style;if(vc&&vc!==Pr)console.error('React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include rules if the nonce matches the style nonce "%s" that was included with this render.',ao,Pr,vc);else{!vc&&Pr&&console.error('React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include a nonce attributes if you also provide the same style nonce value as a render option.',ao,Pr),pr.hrefs.push(G(Ko));var cu=pr.rules,uu=null,ad=null,Ga;for(Ga in S)if(Yt.call(S,Ga)){var Pl=S[Ga];if(Pl!=null)switch(Ga){case"children":uu=Pl;break;case"dangerouslySetInnerHTML":ad=Pl}}var Ua=Array.isArray(uu)?2>uu.length?uu[0]:null:uu;typeof Ua!="function"&&typeof Ua!="symbol"&&Ua!==null&&Ua!==void 0&&cu.push(qe(Ua)),We(cu,ad,uu)}}pr&&te&&te.styles.add(pr),Fe&&h.push("<!-- -->"),Fh=void 0}return Fh;case"meta":var hu=se.tagScope&1,Af=se.tagScope&4;if(se.insertionMode===dt||hu||S.itemProp!=null)var tf=je(h,S,"meta");else Fe&&h.push("<!-- -->"),tf=Af?null:typeof S.charSet=="string"?je(B.charsetChunks,S,"meta"):S.name==="viewport"?je(B.viewportChunks,S,"meta"):je(B.hoistableChunks,S,"meta");return tf;case"listing":case"pre":h.push(Nt(d));var mr=null,Qo=null,Xa;for(Xa in S)if(Yt.call(S,Xa)){var ju=S[Xa];if(ju!=null)switch(Xa){case"children":mr=ju;break;case"dangerouslySetInnerHTML":Qo=ju;break;default:Ne(h,Xa,ju)}}if(h.push(Ot),Qo!=null){if(mr!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof Qo!="object"||!("__html"in Qo))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");var lo=Qo.__html;lo!=null&&(typeof lo=="string"&&0<lo.length&&lo[0]===`
|
|
132
|
-
`?h.push(Vs,lo):(E(lo),h.push(""+lo)))}return typeof mr=="string"&&mr[0]===`
|
|
133
|
-
`&&h.push(Vs),mr;case"img":var ni=se.tagScope&3,zn=S.src,wn=S.srcSet;if(!(S.loading==="lazy"||!zn&&!wn||typeof zn!="string"&&zn!=null||typeof wn!="string"&&wn!=null||S.fetchPriority==="low"||ni)&&(typeof zn!="string"||zn[4]!==":"||zn[0]!=="d"&&zn[0]!=="D"||zn[1]!=="a"&&zn[1]!=="A"||zn[2]!=="t"&&zn[2]!=="T"||zn[3]!=="a"&&zn[3]!=="A")&&(typeof wn!="string"||wn[4]!==":"||wn[0]!=="d"&&wn[0]!=="D"||wn[1]!=="a"&&wn[1]!=="A"||wn[2]!=="t"&&wn[2]!=="T"||wn[3]!=="a"&&wn[3]!=="A")){te!==null&&se.tagScope&64&&(te.suspenseyImages=!0);var nf=typeof S.sizes=="string"?S.sizes:void 0,Ml=wn?wn+`
|
|
134
|
-
`+(nf||""):zn,qu=B.preloads.images,Al=qu.get(Ml);if(Al)(S.fetchPriority==="high"||10>B.highImagePreloads.size)&&(qu.delete(Ml),B.highImagePreloads.add(Al));else if(!_.imageResources.hasOwnProperty(Ml)){_.imageResources[Ml]=xe;var yc=S.crossOrigin,$u=typeof yc=="string"?yc==="use-credentials"?yc:"":void 0,bc=B.headers,fu;bc&&0<bc.remainingCapacity&&typeof S.srcSet!="string"&&(S.fetchPriority==="high"||500>bc.highImagePreloads.length)&&(fu=Dl(zn,"image",{imageSrcSet:S.srcSet,imageSizes:S.sizes,crossOrigin:$u,integrity:S.integrity,nonce:S.nonce,type:S.type,fetchPriority:S.fetchPriority,referrerPolicy:S.refererPolicy}),0<=(bc.remainingCapacity-=fu.length+2))?(B.resets.image[Ml]=xe,bc.highImagePreloads&&(bc.highImagePreloads+=", "),bc.highImagePreloads+=fu):(Al=[],Oe(Al,{rel:"preload",as:"image",href:wn?void 0:zn,imageSrcSet:wn,imageSizes:nf,crossOrigin:$u,integrity:S.integrity,type:S.type,fetchPriority:S.fetchPriority,referrerPolicy:S.referrerPolicy}),S.fetchPriority==="high"||10>B.highImagePreloads.size?B.highImagePreloads.add(Al):(B.bulkPreloads.add(Al),qu.set(Ml,Al)))}}return je(h,S,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return je(h,S,d);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(se.insertionMode<at){var du=U||B.preamble;if(du.headChunks)throw Error("The `<head>` tag may only be rendered once.");U!==null&&h.push("<!--head-->"),du.headChunks=[];var Lh=li(du.headChunks,S,"head")}else Lh=tt(h,S,"head");return Lh;case"body":if(se.insertionMode<at){var rf=U||B.preamble;if(rf.bodyChunks)throw Error("The `<body>` tag may only be rendered once.");U!==null&&h.push("<!--body-->"),rf.bodyChunks=[];var _f=li(rf.bodyChunks,S,"body")}else _f=tt(h,S,"body");return _f;case"html":if(se.insertionMode===Mt){var eh=U||B.preamble;if(eh.htmlChunks)throw Error("The `<html>` tag may only be rendered once.");U!==null&&h.push("<!--html-->"),eh.htmlChunks=[Ce];var th=li(eh.htmlChunks,S,"html")}else th=tt(h,S,"html");return th;default:if(d.indexOf("-")!==-1){h.push(Nt(d));var xc=null,Ya=null,ta;for(ta in S)if(Yt.call(S,ta)){var Mr=S[ta];if(Mr!=null){var gu=ta;switch(ta){case"children":xc=Mr;break;case"dangerouslySetInnerHTML":Ya=Mr;break;case"style":me(h,Mr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":gu="class";default:if(T(ta)&&typeof Mr!="function"&&typeof Mr!="symbol"&&Mr!==!1){if(Mr===!0)Mr="";else if(typeof Mr=="object")continue;h.push(Vt,gu,Kt,G(Mr),xt)}}}}return h.push(Ot),We(h,Ya,xc),xc}}return tt(h,S,d)}function pn(h){var d=Vi.get(h);return d===void 0&&(d="</"+h+">",Vi.set(h,d)),d}function ks(h,d){h=h.preamble,h.htmlChunks===null&&d.htmlChunks&&(h.htmlChunks=d.htmlChunks),h.headChunks===null&&d.headChunks&&(h.headChunks=d.headChunks),h.bodyChunks===null&&d.bodyChunks&&(h.bodyChunks=d.bodyChunks)}function Xr(h,d){d=d.bootstrapChunks;for(var S=0;S<d.length-1;S++)h.push(d[S]);return S<d.length?(S=d[S],d.length=0,h.push(S)):!0}function Yn(h,d,S){if(h.push(Xc),S===null)throw Error("An ID must have been assigned before we can complete the boundary.");return h.push(d.boundaryPrefix),d=S.toString(16),h.push(d),h.push(Qn)}function xi(h,d,S,_){switch(S.insertionMode){case Mt:case mt:case bt:case at:return h.push(Us),h.push(d.segmentPrefix),d=_.toString(16),h.push(d),h.push(Ln);case dt:return h.push(Xs),h.push(d.segmentPrefix),d=_.toString(16),h.push(d),h.push(Ra);case Rn:return h.push(Ei),h.push(d.segmentPrefix),d=_.toString(16),h.push(d),h.push(dl);case At:return h.push(zu),h.push(d.segmentPrefix),d=_.toString(16),h.push(d),h.push(ka);case zt:return h.push(Yc),h.push(d.segmentPrefix),d=_.toString(16),h.push(d),h.push(Zc);case qt:return h.push(Pa),h.push(d.segmentPrefix),d=_.toString(16),h.push(d),h.push(Ma);case Ct:return h.push(oc),h.push(d.segmentPrefix),d=_.toString(16),h.push(d),h.push(sc);default:throw Error("Unknown insertion mode. This is a bug in React.")}}function pt(h,d){switch(d.insertionMode){case Mt:case mt:case bt:case at:return h.push(hr);case dt:return h.push(Qr);case Rn:return h.push(Gi);case At:return h.push(rc);case zt:return h.push(Ho);case qt:return h.push(Ui);case Ct:return h.push(Hu);default:throw Error("Unknown insertion mode. This is a bug in React.")}}function gt(h){return JSON.stringify(h).replace(gl,function(d){switch(d){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function or(h){return JSON.stringify(h).replace(Zs,function(d){switch(d){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Ac(h){var d=h.rules,S=h.hrefs;0<d.length&&S.length===0&&console.error("React expected to have at least one href for an a hoistable style but found none. This is a bug in React.");var _=0;if(S.length){for(this.push(Le.startInlineStyle),this.push(uc),this.push(h.precedence),this.push(Ks);_<S.length-1;_++)this.push(S[_]),this.push(qr);for(this.push(S[_]),this.push(Th),_=0;_<d.length;_++)this.push(d[_]);pl=this.push(Eh),Co=!0,d.length=0,S.length=0}}function Gt(h){return h.state!==K?Co=!0:!1}function Bi(h,d,S){return Co=!1,pl=!0,Le=S,d.styles.forEach(Ac,h),Le=null,d.stylesheets.forEach(Gt),Co&&(S.stylesToHoist=!0),pl}function mn(h){for(var d=0;d<h.length;d++)this.push(h[d]);h.length=0}function fh(h){Oe(Hr,h.props);for(var d=0;d<Hr.length;d++)this.push(Hr[d]);Hr.length=0,h.state=K}function Gn(h){var d=0<h.sheets.size;h.sheets.forEach(fh,this),h.sheets.clear();var S=h.rules,_=h.hrefs;if(!d||_.length){if(this.push(Le.startInlineStyle),this.push(Js),this.push(h.precedence),h=0,_.length){for(this.push(_a);h<_.length-1;h++)this.push(_[h]),this.push(qr);this.push(_[h])}for(this.push(Xu),h=0;h<S.length;h++)this.push(S[h]);this.push(Rh),S.length=0,_.length=0}}function Tu(h){if(h.state===N){h.state=X;var d=h.props;for(Oe(Hr,{rel:"preload",as:"style",href:h.props.href,crossOrigin:d.crossOrigin,fetchPriority:d.fetchPriority,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy}),h=0;h<Hr.length;h++)this.push(Hr[h]);Hr.length=0}}function Eu(h){h.sheets.forEach(Tu,this),h.sheets.clear()}function es(h,d){(d.instructions&j)===x&&(d.instructions|=j,h.push(ml,G("_"+d.idPrefix+"R_"),xt))}function Ru(h,d){h.push(p);var S=p;d.stylesheets.forEach(function(_){if(_.state!==K)if(_.state===fe)h.push(S),_=_.props.href,b(_,"href"),_=or(""+_),h.push(_),h.push(F),S=y;else{h.push(S);var B=_.props["data-precedence"],U=_.props,te=J(""+_.props.href);te=or(te),h.push(te),b(B,"precedence"),B=""+B,h.push(R),B=or(B),h.push(B);for(var se in U)if(Yt.call(U,se)&&(B=U[se],B!=null))switch(se){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Il(h,se,B)}h.push(F),S=y,_.state=fe}}),h.push(F)}function Il(h,d,S){var _=d.toLowerCase();switch(typeof S){case"function":case"symbol":return}switch(d){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":_="class",b(S,_),d=""+S;break;case"hidden":if(S===!1)return;d="";break;case"src":case"href":S=J(S),b(S,_),d=""+S;break;default:if(2<d.length&&(d[0]==="o"||d[0]==="O")&&(d[1]==="n"||d[1]==="N")||!T(d))return;b(S,_),d=""+S}h.push(R),_=or(_),h.push(_),h.push(R),_=or(d),h.push(_)}function sa(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function Ps(h,d,S,_){(h.scriptResources.hasOwnProperty(S)||h.moduleScriptResources.hasOwnProperty(S))&&console.error('Internal React Error: React expected bootstrap script or module with src "%s" to not have been preloaded already. please file an issue',S),h.scriptResources[S]=oe,h.moduleScriptResources[S]=oe,h=[],Oe(h,_),d.bootstrapScripts.add(h)}function aa(h,d){h.crossOrigin==null&&(h.crossOrigin=d[0]),h.integrity==null&&(h.integrity=d[1])}function Dl(h,d,S){h=_n(h),d=_c(d,"as"),d="<"+h+'>; rel=preload; as="'+d+'"';for(var _ in S)Yt.call(S,_)&&(h=S[_],typeof h=="string"&&(d+="; "+_.toLowerCase()+'="'+_c(h,_)+'"'));return d}function _n(h){return b(h,"href"),(""+h).replace(ne,Cn)}function Cn(h){switch(h){case"<":return"%3C";case">":return"%3E";case`
|
|
135
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function _c(h,d){return g(h)&&(console.error("The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.",d,u(h)),m(h)),(""+h).replace(de,la)}function la(h){switch(h){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
136
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function dh(h){this.styles.add(h)}function ku(h){this.stylesheets.add(h)}function Yr(h,d){d.styles.forEach(dh,h),d.stylesheets.forEach(ku,h),d.suspenseyImages&&(h.suspenseyImages=!0)}function Mo(h,d){var S=h.idPrefix,_=[],B=h.bootstrapScriptContent,U=h.bootstrapScripts,te=h.bootstrapModules;if(B!==void 0&&(_.push("<script"),es(_,h),_.push(Ot,Y(B),Ae)),S={placeholderPrefix:S+"P:",segmentPrefix:S+"S:",boundaryPrefix:S+"B:",startInlineScript:"<script",startInlineStyle:"<style",preamble:{htmlChunks:null,headChunks:null,bodyChunks:null},externalRuntimeScript:null,bootstrapChunks:_,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:void 0,style:void 0},hoistableState:null,stylesToHoist:!1},U!==void 0)for(B=0;B<U.length;B++){var se=U[B],Fe,ve=void 0,Me=void 0,Ge={rel:"preload",as:"script",fetchPriority:"low",nonce:void 0};typeof se=="string"?Ge.href=Fe=se:(Ge.href=Fe=se.src,Ge.integrity=Me=typeof se.integrity=="string"?se.integrity:void 0,Ge.crossOrigin=ve=typeof se=="string"||se.crossOrigin==null?void 0:se.crossOrigin==="use-credentials"?"use-credentials":""),Ps(h,S,Fe,Ge),_.push('<script src="',G(Fe),xt),typeof Me=="string"&&_.push(' integrity="',G(Me),xt),typeof ve=="string"&&_.push(' crossorigin="',G(ve),xt),es(_,h),_.push(' async=""><\/script>')}if(te!==void 0)for(U=0;U<te.length;U++)B=te[U],ve=Fe=void 0,Me={rel:"modulepreload",fetchPriority:"low",nonce:void 0},typeof B=="string"?Me.href=se=B:(Me.href=se=B.src,Me.integrity=ve=typeof B.integrity=="string"?B.integrity:void 0,Me.crossOrigin=Fe=typeof B=="string"||B.crossOrigin==null?void 0:B.crossOrigin==="use-credentials"?"use-credentials":""),Ps(h,S,se,Me),_.push('<script type="module" src="',G(se),xt),typeof ve=="string"&&_.push(' integrity="',G(ve),xt),typeof Fe=="string"&&_.push(' crossorigin="',G(Fe),xt),es(_,h),_.push(' async=""><\/script>');return{placeholderPrefix:S.placeholderPrefix,segmentPrefix:S.segmentPrefix,boundaryPrefix:S.boundaryPrefix,startInlineScript:S.startInlineScript,startInlineStyle:S.startInlineStyle,preamble:S.preamble,externalRuntimeScript:S.externalRuntimeScript,bootstrapChunks:S.bootstrapChunks,importMapChunks:S.importMapChunks,onHeaders:S.onHeaders,headers:S.headers,resets:S.resets,charsetChunks:S.charsetChunks,viewportChunks:S.viewportChunks,hoistableChunks:S.hoistableChunks,preconnects:S.preconnects,fontPreloads:S.fontPreloads,highImagePreloads:S.highImagePreloads,styles:S.styles,bootstrapScripts:S.bootstrapScripts,scripts:S.scripts,bulkPreloads:S.bulkPreloads,preloads:S.preloads,nonce:S.nonce,stylesToHoist:S.stylesToHoist,generateStaticMarkup:d}}function gh(h,d,S,_){return S.generateStaticMarkup?(h.push(G(d)),!1):(d===""?h=_:(_&&h.push("<!-- -->"),h.push(G(d)),h=!0),h)}function ca(h,d,S,_){d.generateStaticMarkup||S&&_&&h.push("<!-- -->")}function Hn(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===Ze?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case Bo:return"Fragment";case Jl:return"Profiler";case Kl:return"StrictMode";case yr:return"Suspense";case Dr:return"SuspenseList";case bo:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case Jn:return"Portal";case Lr:return h.displayName||"Context";case Nc:return(h._context.displayName||"Context")+".Consumer";case Ir:var d=h.render;return h=h.displayName,h||(h=d.displayName||d.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case un:return d=h.displayName||null,d!==null?d:Hn(h.type)||"Memo";case Br:d=h._payload,h=h._init;try{return Hn(h(d))}catch{}}return null}function Ms(h,d){if(h!==d){h.context._currentValue2=h.parentValue,h=h.parent;var S=d.parent;if(h===null){if(S!==null)throw Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(S===null)throw Error("The stacks must reach the root at the same time. This is a bug in React.");Ms(h,S)}d.context._currentValue2=d.value}}function As(h){h.context._currentValue2=h.parentValue,h=h.parent,h!==null&&As(h)}function ua(h){var d=h.parent;d!==null&&ua(d),h.context._currentValue2=h.value}function wi(h,d){if(h.context._currentValue2=h.parentValue,h=h.parent,h===null)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");h.depth===d.depth?Ms(h,d):wi(h,d)}function vr(h,d){var S=d.parent;if(S===null)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");h.depth===S.depth?Ms(h,S):vr(h,S),d.context._currentValue2=d.value}function cn(h){var d=vt;d!==h&&(d===null?ua(h):h===null?As(d):d.depth===h.depth?Ms(d,h):d.depth>h.depth?wi(d,h):vr(d,h),vt=h)}function Bl(h){if(h!==null&&typeof h!="function"){var d=String(h);vs.has(d)||(vs.add(d),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",h))}}function Or(h,d){h=(h=h.constructor)&&Hn(h)||"ReactClass";var S=h+"."+d;Bt[S]||(console.error(`Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
137
|
-
|
|
138
|
-
Please check the code for the %s component.`,d,h),Bt[S]=!0)}function Ut(h,d,S){var _=h.id;h=h.overflow;var B=32-eo(_)-1;_&=~(1<<B),S+=1;var U=32-eo(d)+B;if(30<U){var te=B-B%5;return U=(_&(1<<te)-1).toString(32),_>>=te,B-=te,{id:1<<32-eo(d)+B|S<<B|_,overflow:U+h}}return{id:1<<U|S<<B|_,overflow:h}}function ph(h){return h>>>=0,h===0?32:31-(Yi(h)/So|0)|0}function It(){}function Nl(h,d,S){switch(S=h[S],S===void 0?h.push(d):S!==d&&(d.then(It,It),d=S),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(It,It):(h=d,h.status="pending",h.then(function(_){if(d.status==="pending"){var B=d;B.status="fulfilled",B.value=_}},function(_){if(d.status==="pending"){var B=d;B.status="rejected",B.reason=_}})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}throw Fa=d,Zi}}function zl(){if(Fa===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var h=Fa;return Fa=null,h}function Hl(h,d){return h===d&&(h!==0||1/h===1/d)||h!==h&&d!==d}function Ao(){if(dr===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
139
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
140
|
-
2. You might be breaking the Rules of Hooks
|
|
141
|
-
3. You might have more than one copy of React in the same app
|
|
142
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Wo&&console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"),dr}function rn(){if(0<nu)throw Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Xt(){return kn===null?Yu===null?(bl=!1,Yu=kn=rn()):(bl=!0,kn=Yu):kn.next===null?(bl=!1,kn=kn.next=rn()):(bl=!0,kn=kn.next),kn}function fo(){var h=xl;return xl=null,h}function Ci(){Wo=!1,La=Ki=yl=dr=null,To=!1,Yu=null,nu=0,kn=Qs=null}function ha(h){return Wo&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),h._currentValue2}function Oc(h,d){return typeof d=="function"?d(h):d}function Ni(h,d,S){if(h!==Oc&&(Da="useReducer"),dr=Ao(),kn=Xt(),bl){if(S=kn.queue,d=S.dispatch,Qs!==null){var _=Qs.get(S);if(_!==void 0){Qs.delete(S),S=kn.memoizedState;do{var B=_.action;Wo=!0,S=h(S,B),Wo=!1,_=_.next}while(_!==null);return kn.memoizedState=S,[S,d]}}return[kn.memoizedState,d]}return Wo=!0,h=h===Oc?typeof d=="function"?d():d:S!==void 0?S(d):d,Wo=!1,kn.memoizedState=h,h=kn.queue={last:null,dispatch:null},h=h.dispatch=Pu.bind(null,dr,h),[kn.memoizedState,h]}function mh(h,d){if(dr=Ao(),kn=Xt(),d=d===void 0?null:d,kn!==null){var S=kn.memoizedState;if(S!==null&&d!==null){e:{var _=S[1];if(_===null)console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Da),_=!1;else{d.length!==_.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
143
|
-
|
|
144
|
-
Previous: %s
|
|
145
|
-
Incoming: %s`,Da,"["+d.join(", ")+"]","["+_.join(", ")+"]");for(var B=0;B<_.length&&B<d.length;B++)if(!vl(d[B],_[B])){_=!1;break e}_=!0}}if(_)return S[0]}}return Wo=!0,h=h(),Wo=!1,kn.memoizedState=[h,d],h}function Pu(h,d,S){if(25<=nu)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(h===dr)if(To=!0,h={action:S,next:null},Qs===null&&(Qs=new Map),S=Qs.get(d),S===void 0)Qs.set(d,h);else{for(d=S;d.next!==null;)d=d.next;d.next=h}}function Fc(){throw Error("A function wrapped in useEffectEvent can't be called during rendering.")}function Sn(){throw Error("startTransition cannot be called during server rendering.")}function Lc(){throw Error("Cannot update optimistic state while rendering.")}function ja(h,d,S){Ao();var _=Ia++,B=Ki;if(typeof h.$$FORM_ACTION=="function"){var U=null,te=La;B=B.formState;var se=h.$$IS_SIGNATURE_EQUAL;if(B!==null&&typeof se=="function"){var Fe=B[1];se.call(h,B[2],B[3])&&(U=S!==void 0?"p"+S:"k"+l(JSON.stringify([te,null,_]),0),Fe===U&&(eu=_,d=B[0]))}var ve=h.bind(null,d);return h=function(Ge){ve(Ge)},typeof ve.$$FORM_ACTION=="function"&&(h.$$FORM_ACTION=function(Ge){Ge=ve.$$FORM_ACTION(Ge),S!==void 0&&(b(S,"target"),S+="",Ge.action=S);var Ke=Ge.data;return Ke&&(U===null&&(U=S!==void 0?"p"+S:"k"+l(JSON.stringify([te,null,_]),0)),Ke.append("$ACTION_KEY",U)),Ge}),[d,h,!1]}var Me=h.bind(null,d);return[d,function(Ge){Me(Ge)},!1]}function Fr(h){var d=tu;return tu+=1,xl===null&&(xl=[]),Nl(xl,h,d)}function fa(){throw Error("Cache cannot be refreshed during server rendering.")}function vh(){}function yh(){if(Wr===0){js=console.log,ys=console.info,iu=console.warn,ru=console.error,ou=console.group,Na=console.groupCollapsed,Mh=console.groupEnd;var h={configurable:!0,enumerable:!0,value:vh,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}Wr++}function qa(){if(Wr--,Wr===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:En({},h,{value:js}),info:En({},h,{value:ys}),warn:En({},h,{value:iu}),error:En({},h,{value:ru}),group:En({},h,{value:ou}),groupCollapsed:En({},h,{value:Na}),groupEnd:En({},h,{value:Mh})})}0>Wr&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function $a(h){var d=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,h=h.stack,Error.prepareStackTrace=d,h.startsWith(`Error: react-stack-top-frame
|
|
146
|
-
`)&&(h=h.slice(29)),d=h.indexOf(`
|
|
147
|
-
`),d!==-1&&(h=h.slice(d+1)),d=h.indexOf("react_stack_bottom_frame"),d!==-1&&(d=h.lastIndexOf(`
|
|
148
|
-
`,d)),d!==-1)h=h.slice(0,d);else return"";return h}function _o(h){if(Zu===void 0)try{throw Error()}catch(S){var d=S.stack.trim().match(/\n( *(at )?)/);Zu=d&&d[1]||"",wl=-1<S.stack.indexOf(`
|
|
149
|
-
at`)?" (<anonymous>)":-1<S.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
150
|
-
`+Zu+h+wl}function Oo(h,d){if(!h||Ah)return"";var S=su.get(h);if(S!==void 0)return S;Ah=!0,S=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var _=null;_=On.H,On.H=null,yh();try{var B={DetermineComponentFrameRoot:function(){try{if(d){var Ke=function(){throw Error()};if(Object.defineProperty(Ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ke,[])}catch(De){var Xe=De}Reflect.construct(h,[],Ke)}else{try{Ke.call()}catch(De){Xe=De}h.call(Ke.prototype)}}else{try{throw Error()}catch(De){Xe=De}(Ke=h())&&typeof Ke.catch=="function"&&Ke.catch(function(){})}}catch(De){if(De&&Xe&&typeof De.stack=="string")return[De.stack,Xe.stack]}return[null,null]}};B.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var U=Object.getOwnPropertyDescriptor(B.DetermineComponentFrameRoot,"name");U&&U.configurable&&Object.defineProperty(B.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var te=B.DetermineComponentFrameRoot(),se=te[0],Fe=te[1];if(se&&Fe){var ve=se.split(`
|
|
151
|
-
`),Me=Fe.split(`
|
|
152
|
-
`);for(te=U=0;U<ve.length&&!ve[U].includes("DetermineComponentFrameRoot");)U++;for(;te<Me.length&&!Me[te].includes("DetermineComponentFrameRoot");)te++;if(U===ve.length||te===Me.length)for(U=ve.length-1,te=Me.length-1;1<=U&&0<=te&&ve[U]!==Me[te];)te--;for(;1<=U&&0<=te;U--,te--)if(ve[U]!==Me[te]){if(U!==1||te!==1)do if(U--,te--,0>te||ve[U]!==Me[te]){var Ge=`
|
|
153
|
-
`+ve[U].replace(" at new "," at ");return h.displayName&&Ge.includes("<anonymous>")&&(Ge=Ge.replace("<anonymous>",h.displayName)),typeof h=="function"&&su.set(h,Ge),Ge}while(1<=U&&0<=te);break}}}finally{Ah=!1,On.H=_,qa(),Error.prepareStackTrace=S}return ve=(ve=h?h.displayName||h.name:"")?_o(ve):"",typeof h=="function"&&su.set(h,ve),ve}function Ic(h){if(typeof h=="string")return _o(h);if(typeof h=="function")return h.prototype&&h.prototype.isReactComponent?Oo(h,!0):Oo(h,!1);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Ir:return Oo(h.render,!1);case un:return Oo(h.type,!1);case Br:var d=h,S=d._payload;d=d._init;try{h=d(S)}catch{return _o("Lazy")}return Ic(h)}if(typeof h.name=="string"){e:{if(S=h.name,d=h.env,h=h.debugLocation,h!=null){h=$a(h);var _=h.lastIndexOf(`
|
|
154
|
-
`);if(h=_===-1?h:h.slice(_+1),h.indexOf(S)!==-1){S=`
|
|
155
|
-
`+h;break e}}S=_o(S+(d?" ["+d+"]":""))}return S}}switch(h){case Dr:return _o("SuspenseList");case yr:return _o("Suspense")}return""}function Wl(h,d){return(500<d.byteSize||!1)&&d.contentPreamble===null}function Vl(h){if(typeof h=="object"&&h!==null&&typeof h.environmentName=="string"){var d=h.environmentName;h=[h].slice(0),typeof h[0]=="string"?h.splice(0,1,"[%s] "+h[0]," "+d+" "):h.splice(0,0,"[%s]"," "+d+" "),h.unshift(console),d=Pe.apply(console.error,h),d()}else console.error(h);return null}function ri(h,d,S,_,B,U,te,se,Fe,ve,Me){var Ge=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=h,this.renderState=d,this.rootFormatContext=S,this.progressiveChunkSize=_===void 0?12800:_,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=Ge,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=B===void 0?Vl:B,this.onPostpone=ve===void 0?It:ve,this.onAllReady=U===void 0?It:U,this.onShellReady=te===void 0?It:te,this.onShellError=se===void 0?It:se,this.onFatalError=Fe===void 0?It:Fe,this.formState=Me===void 0?null:Me,this.didWarnForKey=null}function el(h,d,S,_,B,U,te,se,Fe,ve,Me,Ge){var Ke=_h();return 1e3<Ke-Pf&&(On.recentlyCreatedOwnerStacks=0,Pf=Ke),d=new ri(d,S,_,B,U,te,se,Fe,ve,Me,Ge),S=sr(d,0,null,_,!1,!1),S.parentFlushed=!0,h=Fo(d,null,h,-1,null,S,null,null,d.abortableTasks,null,_,null,Oa,null,null,Ye,null),ar(h),d.pingedTasks.push(h),d}function Gl(h,d){h.pingedTasks.push(d),h.pingedTasks.length===1&&(h.flushScheduled=h.destination!==null,Ou(h))}function Dc(h,d,S,_,B){return S={status:bs,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:d,completedSegments:[],byteSize:0,fallbackAbortableTasks:S,errorDigest:null,contentState:sa(),fallbackState:sa(),contentPreamble:_,fallbackPreamble:B,trackedContentKeyPath:null,trackedFallbackNode:null,errorMessage:null,errorStack:null,errorComponentStack:null},d!==null&&(d.pendingTasks++,_=d.boundaries,_!==null&&(h.allPendingTasks++,S.pendingTasks++,_.push(S)),h=d.inheritedHoistables,h!==null&&Yr(S.contentState,h)),S}function Fo(h,d,S,_,B,U,te,se,Fe,ve,Me,Ge,Ke,Xe,De,Ft,vn){h.allPendingTasks++,B===null?h.pendingRootTasks++:B.pendingTasks++,Xe!==null&&Xe.pendingTasks++;var ht={replay:null,node:S,childIndex:_,ping:function(){return Gl(h,ht)},blockedBoundary:B,blockedSegment:U,blockedPreamble:te,hoistableState:se,abortSet:Fe,keyPath:ve,formatContext:Me,context:Ge,treeContext:Ke,row:Xe,componentStack:De,thenableState:d};return ht.debugTask=vn,Fe.add(ht),ht}function Ul(h,d,S,_,B,U,te,se,Fe,ve,Me,Ge,Ke,Xe,De,Ft){h.allPendingTasks++,U===null?h.pendingRootTasks++:U.pendingTasks++,Ke!==null&&Ke.pendingTasks++,S.pendingTasks++;var vn={replay:S,node:_,childIndex:B,ping:function(){return Gl(h,vn)},blockedBoundary:U,blockedSegment:null,blockedPreamble:null,hoistableState:te,abortSet:se,keyPath:Fe,formatContext:ve,context:Me,treeContext:Ge,row:Ke,componentStack:Xe,thenableState:d};return vn.debugTask=Ft,se.add(vn),vn}function sr(h,d,S,_,B,U){return{status:bs,parentFlushed:!1,id:-1,index:d,chunks:[],children:[],preambleChildren:[],parentFormatContext:_,boundary:S,lastPushedText:B,textEmbedded:U}}function go(){if(to===null||to.componentStack===null)return"";var h=to.componentStack;try{var d="";if(typeof h.type=="string")d+=_o(h.type);else if(typeof h.type=="function"){if(!h.owner){var S=d,_=h.type,B=_?_.displayName||_.name:"",U=B?_o(B):"";d=S+U}}else h.owner||(d+=Ic(h.type));for(;h;)S=null,h.debugStack!=null?S=$a(h.debugStack):(U=h,U.stack!=null&&(S=typeof U.stack!="string"?U.stack=$a(U.stack):U.stack)),(h=h.owner)&&S&&(d+=`
|
|
156
|
-
`+S);var te=d}catch(se){te=`
|
|
157
|
-
Error generating stack: `+se.message+`
|
|
158
|
-
`+se.stack}return te}function Mu(h,d){if(d!=null)for(var S=d.length-1;0<=S;S--){var _=d[S];if(typeof _.name=="string"||typeof _.time=="number")break;if(_.awaited!=null){var B=_.debugStack==null?_.awaited:_;if(B.debugStack!==void 0){h.componentStack={parent:h.componentStack,type:_,owner:B.owner,stack:B.debugStack},h.debugTask=B.debugTask;break}}}}function Xl(h,d){if(d!=null)for(var S=0;S<d.length;S++){var _=d[S];typeof _.name=="string"&&_.debugStack!==void 0&&(h.componentStack={parent:h.componentStack,type:_,owner:_.owner,stack:_.debugStack},h.debugTask=_.debugTask)}}function ar(h){var d=h.node;if(typeof d=="object"&&d!==null)switch(d.$$typeof){case va:var S=d.type,_=d._owner,B=d._debugStack;Xl(h,d._debugInfo),h.debugTask=d._debugTask,h.componentStack={parent:h.componentStack,type:S,owner:_,stack:B};break;case Br:Xl(h,d._debugInfo);break;default:typeof d.then=="function"&&Xl(h,d._debugInfo)}}function Yl(h){return h===null?null:{parent:h.parent,type:"Suspense Fallback",owner:h.owner,stack:h.stack}}function _s(h){var d={};return h&&Object.defineProperty(d,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var S="",_=h;do S+=Ic(_.type),_=_.parent;while(_);var B=S}catch(U){B=`
|
|
159
|
-
Error generating stack: `+U.message+`
|
|
160
|
-
`+U.stack}return Object.defineProperty(d,"componentStack",{value:B}),B}}),d}function tl(h,d,S,_,B){h.errorDigest=d,S instanceof Error?(d=String(S.message),S=String(S.stack)):(d=typeof S=="object"&&S!==null?a(S):String(S),S=null),B=B?`Switched to client rendering because the server rendering aborted due to:
|
|
161
|
-
|
|
162
|
-
`:`Switched to client rendering because the server rendering errored:
|
|
163
|
-
|
|
164
|
-
`,h.errorMessage=B+d,h.errorStack=S!==null?B+S:null,h.errorComponentStack=_.componentStack}function lr(h,d,S,_){if(h=h.onError,d=_?_.run(h.bind(null,d,S)):h(d,S),d!=null&&typeof d!="string")console.error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "%s" instead',typeof d);else return d}function ci(h,d,S,_){S=h.onShellError;var B=h.onFatalError;_?(_.run(S.bind(null,d)),_.run(B.bind(null,d))):(S(d),B(d)),h.destination!==null?(h.status=xs,h.destination.destroy(d)):(h.status=13,h.fatalError=d)}function yn(h,d){Au(h,d.next,d.hoistables)}function Au(h,d,S){for(;d!==null;){S!==null&&(Yr(d.hoistables,S),d.inheritedHoistables=S);var _=d.boundaries;if(_!==null){d.boundaries=null;for(var B=0;B<_.length;B++){var U=_[B];S!==null&&Yr(U.contentState,S),vo(h,U,null,null)}}if(d.pendingTasks--,0<d.pendingTasks)break;S=d.hoistables,d=d.next}}function ts(h,d){var S=d.boundaries;if(S!==null&&d.pendingTasks===S.length){for(var _=!0,B=0;B<S.length;B++){var U=S[B];if(U.pendingTasks!==1||U.parentFlushed||Wl(h,U)){_=!1;break}}_&&Au(h,d,d.hoistables)}}function po(h){var d={pendingTasks:1,boundaries:null,hoistables:sa(),inheritedHoistables:null,together:!1,next:null};return h!==null&&0<h.pendingTasks&&(d.pendingTasks++,d.boundaries=[],h.next=d),d}function _u(h,d,S,_,B){var U=d.keyPath,te=d.treeContext,se=d.row,Fe=d.componentStack,ve=d.debugTask;Xl(d,d.node.props.children._debugInfo),d.keyPath=S,S=_.length;var Me=null;if(d.replay!==null){var Ge=d.replay.slots;if(Ge!==null&&typeof Ge=="object")for(var Ke=0;Ke<S;Ke++){var Xe=B!=="backwards"&&B!=="unstable_legacy-backwards"?Ke:S-1-Ke,De=_[Xe];d.row=Me=po(Me),d.treeContext=Ut(te,S,Xe);var Ft=Ge[Xe];typeof Ft=="number"?(is(h,d,Ft,De,Xe),delete Ge[Xe]):Kn(h,d,De,Xe),--Me.pendingTasks===0&&yn(h,Me)}else for(Ge=0;Ge<S;Ge++)Ke=B!=="backwards"&&B!=="unstable_legacy-backwards"?Ge:S-1-Ge,Xe=_[Ke],Zn(h,d,Xe),d.row=Me=po(Me),d.treeContext=Ut(te,S,Ke),Kn(h,d,Xe,Ke),--Me.pendingTasks===0&&yn(h,Me)}else if(B!=="backwards"&&B!=="unstable_legacy-backwards")for(B=0;B<S;B++)Ge=_[B],Zn(h,d,Ge),d.row=Me=po(Me),d.treeContext=Ut(te,S,B),Kn(h,d,Ge,B),--Me.pendingTasks===0&&yn(h,Me);else{for(B=d.blockedSegment,Ge=B.children.length,Ke=B.chunks.length,Xe=S-1;0<=Xe;Xe--){De=_[Xe],d.row=Me=po(Me),d.treeContext=Ut(te,S,Xe),Ft=sr(h,Ke,null,d.formatContext,Xe===0?B.lastPushedText:!0,!0),B.children.splice(Ge,0,Ft),d.blockedSegment=Ft,Zn(h,d,De);try{Kn(h,d,De,Xe),ca(Ft.chunks,h.renderState,Ft.lastPushedText,Ft.textEmbedded),Ft.status=Ji,--Me.pendingTasks===0&&yn(h,Me)}catch(vn){throw Ft.status=h.status===12?no:nn,vn}}d.blockedSegment=B,B.lastPushedText=!1}se!==null&&Me!==null&&0<Me.pendingTasks&&(se.pendingTasks++,Me.next=se),d.treeContext=te,d.row=se,d.keyPath=U,d.componentStack=Fe,d.debugTask=ve}function ns(h,d,S,_,B,U){var te=d.thenableState;for(d.thenableState=null,dr={},yl=d,Ki=h,La=S,Wo=!1,Ia=$c=0,eu=-1,tu=0,xl=te,h=Ku(_,B,U);To;)To=!1,Ia=$c=0,eu=-1,tu=0,nu+=1,kn=null,h=_(B,U);return Ci(),h}function Lo(h,d,S,_,B,U,te){var se=!1;if(U!==0&&h.formState!==null){var Fe=d.blockedSegment;if(Fe!==null){se=!0,Fe=Fe.chunks;for(var ve=0;ve<U;ve++)ve===te?Fe.push("<!--F!-->"):Fe.push("<!--F-->")}}U=d.keyPath,d.keyPath=S,B?(S=d.treeContext,d.treeContext=Ut(S,1,0),Kn(h,d,_,-1),d.treeContext=S):se?Kn(h,d,_,-1):wt(h,d,_,-1),d.keyPath=U}function nl(h,d,S,_,B,U){if(typeof _=="function")if(_.prototype&&_.prototype.isReactComponent){var te=B;if("ref"in B){te={};for(var se in B)se!=="ref"&&(te[se]=B[se])}var Fe=_.defaultProps;if(Fe){te===B&&(te=En({},te,B));for(var ve in Fe)te[ve]===void 0&&(te[ve]=Fe[ve])}var Me=te,Ge=Ye,Ke=_.contextType;if("contextType"in _&&Ke!==null&&(Ke===void 0||Ke.$$typeof!==Lr)&&!fr.has(_)){fr.add(_);var Xe=Ke===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof Ke!="object"?" However, it is set to a "+typeof Ke+".":Ke.$$typeof===Nc?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(Ke).join(", ")+"}.";console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Hn(_)||"Component",Xe)}typeof Ke=="object"&&Ke!==null&&(Ge=Ke._currentValue2);var De=new _(Me,Ge);if(typeof _.getDerivedStateFromProps=="function"&&(De.state===null||De.state===void 0)){var Ft=Hn(_)||"Component";xn.has(Ft)||(xn.add(Ft),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",Ft,De.state===null?"null":"undefined",Ft))}if(typeof _.getDerivedStateFromProps=="function"||typeof De.getSnapshotBeforeUpdate=="function"){var vn=null,ht=null,Qt=null;if(typeof De.componentWillMount=="function"&&De.componentWillMount.__suppressDeprecationWarning!==!0?vn="componentWillMount":typeof De.UNSAFE_componentWillMount=="function"&&(vn="UNSAFE_componentWillMount"),typeof De.componentWillReceiveProps=="function"&&De.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ht="componentWillReceiveProps":typeof De.UNSAFE_componentWillReceiveProps=="function"&&(ht="UNSAFE_componentWillReceiveProps"),typeof De.componentWillUpdate=="function"&&De.componentWillUpdate.__suppressDeprecationWarning!==!0?Qt="componentWillUpdate":typeof De.UNSAFE_componentWillUpdate=="function"&&(Qt="UNSAFE_componentWillUpdate"),vn!==null||ht!==null||Qt!==null){var ki=Hn(_)||"Component",Pi=typeof _.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";br.has(ki)||(br.add(ki),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
165
|
-
|
|
166
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
167
|
-
|
|
168
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
169
|
-
https://react.dev/link/unsafe-component-lifecycles`,ki,Pi,vn!==null?`
|
|
170
|
-
`+vn:"",ht!==null?`
|
|
171
|
-
`+ht:"",Qt!==null?`
|
|
172
|
-
`+Qt:""))}}var $t=Hn(_)||"Component";De.render||(_.prototype&&typeof _.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",$t):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",$t)),!De.getInitialState||De.getInitialState.isReactClassApproved||De.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",$t),De.getDefaultProps&&!De.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",$t),De.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",$t),_.childContextTypes&&!Xn.has(_)&&(Xn.add(_),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",$t)),_.contextTypes&&!Xi.has(_)&&(Xi.add(_),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",$t)),typeof De.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",$t),_.prototype&&_.prototype.isPureReactComponent&&typeof De.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Hn(_)||"A pure component"),typeof De.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",$t),typeof De.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",$t),typeof De.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",$t),typeof De.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",$t);var fi=De.props!==Me;De.props!==void 0&&fi&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",$t),De.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",$t,$t),typeof De.getSnapshotBeforeUpdate!="function"||typeof De.componentDidUpdate=="function"||Ri.has(_)||(Ri.add(_),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Hn(_))),typeof De.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",$t),typeof De.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",$t),typeof _.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",$t);var Go=De.state;Go&&(typeof Go!="object"||cs(Go))&&console.error("%s.state: must be set to an object or null",$t),typeof De.getChildContext=="function"&&typeof _.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",$t);var gr=De.state!==void 0?De.state:null;De.updater=Dn,De.props=Me,De.state=gr;var $e={queue:[],replace:!1};De._reactInternals=$e;var sn=_.contextType;if(De.context=typeof sn=="object"&&sn!==null?sn._currentValue2:Ye,De.state===Me){var an=Hn(_)||"Component";$r.has(an)||($r.add(an),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",an))}var hn=_.getDerivedStateFromProps;if(typeof hn=="function"){var Bn=hn(Me,gr);if(Bn===void 0){var Ht=Hn(_)||"Component";yt.has(Ht)||(yt.add(Ht),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Ht))}var Tt=Bn==null?gr:En({},gr,Bn);De.state=Tt}if(typeof _.getDerivedStateFromProps!="function"&&typeof De.getSnapshotBeforeUpdate!="function"&&(typeof De.UNSAFE_componentWillMount=="function"||typeof De.componentWillMount=="function")){var Qi=De.state;if(typeof De.componentWillMount=="function"){if(De.componentWillMount.__suppressDeprecationWarning!==!0){var ln=Hn(_)||"Unknown";In[ln]||(console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
173
|
-
|
|
174
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
175
|
-
|
|
176
|
-
Please update the following components: %s`,ln),In[ln]=!0)}De.componentWillMount()}if(typeof De.UNSAFE_componentWillMount=="function"&&De.UNSAFE_componentWillMount(),Qi!==De.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Hn(_)||"Component"),Dn.enqueueReplaceState(De,De.state,null)),$e.queue!==null&&0<$e.queue.length){var Mi=$e.queue,Pn=$e.replace;if($e.queue=null,$e.replace=!1,Pn&&Mi.length===1)De.state=Mi[0];else{for(var wr=Pn?Mi[0]:De.state,Tl=!0,Cr=Pn?1:0;Cr<Mi.length;Cr++){var Uo=Mi[Cr],Xo=typeof Uo=="function"?Uo.call(De,wr,Me,void 0):Uo;Xo!=null&&(Tl?(Tl=!1,wr=En({},wr,Xo)):En(wr,Xo))}De.state=wr}}else $e.queue=null}var Yo=au(De);if(h.status===12)throw null;De.props!==Me&&(za||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Hn(_)||"a component"),za=!0);var yi=d.keyPath;d.keyPath=S,wt(h,d,Yo,-1),d.keyPath=yi}else{if(_.prototype&&typeof _.prototype.render=="function"){var c=Hn(_)||"Unknown";hc[c]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",c,c),hc[c]=!0)}var f=ns(h,d,S,_,B,void 0);if(h.status===12)throw null;var C=$c!==0,A=Ia,D=eu;if(_.contextTypes){var V=Hn(_)||"Unknown";lu[V]||(lu[V]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",V))}if(_&&_.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
177
|
-
%s.childContextTypes = ...`,_.displayName||_.name||"Component"),typeof _.getDerivedStateFromProps=="function"){var Q=Hn(_)||"Unknown";Sl[Q]||(console.error("%s: Function components do not support getDerivedStateFromProps.",Q),Sl[Q]=!0)}if(typeof _.contextType=="object"&&_.contextType!==null){var ie=Hn(_)||"Unknown";Oh[ie]||(console.error("%s: Function components do not support contextType.",ie),Oh[ie]=!0)}Lo(h,d,S,f,C,A,D)}else if(typeof _=="string"){var ke=d.blockedSegment;if(ke===null){var ce=B.children,ye=d.formatContext,Be=d.keyPath;d.formatContext=be(ye,_,B),d.keyPath=S,Kn(h,d,ce,-1),d.formatContext=ye,d.keyPath=Be}else{var He=Pt(ke.chunks,_,B,h.resumableState,h.renderState,d.blockedPreamble,d.hoistableState,d.formatContext,ke.lastPushedText);ke.lastPushedText=!1;var ze=d.formatContext,Ie=d.keyPath;if(d.keyPath=S,(d.formatContext=be(ze,_,B)).insertionMode===bt){var ut=sr(h,0,null,d.formatContext,!1,!1);ke.preambleChildren.push(ut),d.blockedSegment=ut;try{ut.status=6,Kn(h,d,He,-1),ca(ut.chunks,h.renderState,ut.lastPushedText,ut.textEmbedded),ut.status=Ji}finally{d.blockedSegment=ke}}else Kn(h,d,He,-1);d.formatContext=ze,d.keyPath=Ie;e:{var fn=ke.chunks,st=h.resumableState;switch(_){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(ze.insertionMode<=mt){st.hasBody=!0;break e}break;case"html":if(ze.insertionMode===Mt){st.hasHtml=!0;break e}break;case"head":if(ze.insertionMode<=mt)break e}fn.push(pn(_))}ke.lastPushedText=!1}}else{switch(_){case zc:case Kl:case Jl:case Bo:var Lt=d.keyPath;d.keyPath=S,wt(h,d,B.children,-1),d.keyPath=Lt;return;case bo:var Wn=d.blockedSegment;if(Wn===null){if(B.mode!=="hidden"){var $n=d.keyPath;d.keyPath=S,Kn(h,d,B.children,-1),d.keyPath=$n}}else if(B.mode!=="hidden"){h.renderState.generateStaticMarkup||Wn.chunks.push("<!--&-->"),Wn.lastPushedText=!1;var jt=d.keyPath;d.keyPath=S,Kn(h,d,B.children,-1),d.keyPath=jt,h.renderState.generateStaticMarkup||Wn.chunks.push("<!--/&-->"),Wn.lastPushedText=!1}return;case Dr:e:{var ot=B.children,ei=B.revealOrder;if(ei==="forwards"||ei==="backwards"||ei==="unstable_legacy-backwards"){if(cs(ot)){_u(h,d,S,ot,ei);break e}var ji=t(ot);if(ji){var dn=ji.call(ot);if(dn){il(d,ot,-1,dn,ji);var Mn=dn.next();if(!Mn.done){var Sr=[];do Sr.push(Mn.value),Mn=dn.next();while(!Mn.done);_u(h,d,S,ot,ei)}break e}}}if(ei==="together"){var Ai=d.keyPath,di=d.row,An=d.row=po(null);An.boundaries=[],An.together=!0,d.keyPath=S,wt(h,d,ot,-1),--An.pendingTasks===0&&yn(h,An),d.keyPath=Ai,d.row=di,di!==null&&0<An.pendingTasks&&(di.pendingTasks++,An.next=di)}else{var ai=d.keyPath;d.keyPath=S,wt(h,d,ot,-1),d.keyPath=ai}}return;case Wc:case Tn:throw Error("ReactDOMServer does not yet support scope components.");case yr:e:if(d.replay!==null){var Tr=d.keyPath,Vr=d.formatContext,gi=d.row;d.keyPath=S,d.formatContext=pe(h.resumableState,Vr),d.row=null;var Nn=B.children;try{Kn(h,d,Nn,-1)}finally{d.keyPath=Tr,d.formatContext=Vr,d.row=gi}}else{var qi=d.keyPath,Er=d.formatContext,$i=d.row,ws=d.blockedBoundary,Rr=d.blockedPreamble,ti=d.hoistableState,io=d.blockedSegment,bi=B.fallback,Ju=B.children,Zo=new Set,Vn=Dc(h,d.row,Zo,null,null);h.trackedPostpones!==null&&(Vn.trackedContentKeyPath=S);var ro=sr(h,io.chunks.length,Vn,d.formatContext,!1,!1);io.children.push(ro),io.lastPushedText=!1;var er=sr(h,0,null,d.formatContext,!1,!1);if(er.parentFlushed=!0,h.trackedPostpones!==null){var gc=d.componentStack,El=[S[0],"Suspense Fallback",S[2]],Ro=[El[1],El[2],[],null];h.trackedPostpones.workingMap.set(El,Ro),Vn.trackedFallbackNode=Ro,d.blockedSegment=ro,d.blockedPreamble=Vn.fallbackPreamble,d.keyPath=El,d.formatContext=Ee(h.resumableState,Er),d.componentStack=Yl(gc),ro.status=6;try{Kn(h,d,bi,-1),ca(ro.chunks,h.renderState,ro.lastPushedText,ro.textEmbedded),ro.status=Ji}catch(cu){throw ro.status=h.status===12?no:nn,cu}finally{d.blockedSegment=io,d.blockedPreamble=Rr,d.keyPath=qi,d.formatContext=Er}var Rl=Fo(h,null,Ju,-1,Vn,er,Vn.contentPreamble,Vn.contentState,d.abortSet,S,pe(h.resumableState,d.formatContext),d.context,d.treeContext,null,gc,Ye,d.debugTask);ar(Rl),h.pingedTasks.push(Rl)}else{d.blockedBoundary=Vn,d.blockedPreamble=Vn.contentPreamble,d.hoistableState=Vn.contentState,d.blockedSegment=er,d.keyPath=S,d.formatContext=pe(h.resumableState,Er),d.row=null,er.status=6;try{if(Kn(h,d,Ju,-1),ca(er.chunks,h.renderState,er.lastPushedText,er.textEmbedded),er.status=Ji,ma(Vn,er),Vn.pendingTasks===0&&Vn.status===bs){if(Vn.status=Ji,!Wl(h,Vn)){$i!==null&&--$i.pendingTasks===0&&yn(h,$i),h.pendingRootTasks===0&&d.blockedPreamble&&rl(h);break e}}else $i!==null&&$i.together&&ts(h,$i)}catch(cu){if(Vn.status=vi,h.status===12){er.status=no;var kr=h.fatalError}else er.status=nn,kr=cu;var pc=_s(d.componentStack),Qu=lr(h,kr,pc,d.debugTask);tl(Vn,Qu,kr,pc,!1),da(h,Vn)}finally{d.blockedBoundary=ws,d.blockedPreamble=Rr,d.hoistableState=ti,d.blockedSegment=io,d.keyPath=qi,d.formatContext=Er,d.row=$i}var oo=Fo(h,null,bi,-1,ws,ro,Vn.fallbackPreamble,Vn.fallbackState,Zo,[S[0],"Suspense Fallback",S[2]],Ee(h.resumableState,d.formatContext),d.context,d.treeContext,d.row,Yl(d.componentStack),Ye,d.debugTask);ar(oo),h.pingedTasks.push(oo)}}return}if(typeof _=="object"&&_!==null)switch(_.$$typeof){case Ir:if("ref"in B){var mc={};for(var tr in B)tr!=="ref"&&(mc[tr]=B[tr])}else mc=B;var kl=ns(h,d,S,_.render,mc,U);Lo(h,d,S,kl,$c!==0,Ia,eu);return;case un:nl(h,d,S,_.type,B,U);return;case Lr:var Wa=B.value,$s=B.children,so=d.context,ao=d.keyPath,Ko=_._currentValue2;_._currentValue2=Wa,_._currentRenderer2!==void 0&&_._currentRenderer2!==null&&_._currentRenderer2!==Dt&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),_._currentRenderer2=Dt;var Pr=vt,_i={parent:Pr,depth:Pr===null?0:Pr.depth+1,context:_,parentValue:Ko,value:Wa};vt=_i,d.context=_i,d.keyPath=S,wt(h,d,$s,-1);var ea=vt;if(ea===null)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");ea.context!==_&&console.error("The parent context is not the expected context. This is probably a bug in React."),ea.context._currentValue2=ea.parentValue,_._currentRenderer2!==void 0&&_._currentRenderer2!==null&&_._currentRenderer2!==Dt&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),_._currentRenderer2=Dt;var Jo=vt=ea.parent;d.context=Jo,d.keyPath=ao,so!==d.context&&console.error("Popping the context provider did not return back to the original snapshot. This is a bug in React.");return;case Nc:var Va=_._context,Cs=B.children;typeof Cs!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var Fh=Cs(Va._currentValue2),pr=d.keyPath;d.keyPath=S,wt(h,d,Fh,-1),d.keyPath=pr;return;case Br:var ko=kf(_);if(h.status===12)throw null;nl(h,d,S,ko,B,U);return}var vc="";throw(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(vc+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+((_==null?_:typeof _)+"."+vc))}}function is(h,d,S,_,B){var U=d.replay,te=d.blockedBoundary,se=sr(h,0,null,d.formatContext,!1,!1);se.id=S,se.parentFlushed=!0;try{d.replay=null,d.blockedSegment=se,Kn(h,d,_,B),se.status=Ji,te===null?h.completedRootSegment=se:(ma(te,se),te.parentFlushed&&h.partialBoundaries.push(te))}finally{d.replay=U,d.blockedSegment=null}}function rs(h,d,S,_,B,U,te,se,Fe,ve){U=ve.nodes;for(var Me=0;Me<U.length;Me++){var Ge=U[Me];if(B===Ge[1]){if(Ge.length===4){if(_!==null&&_!==Ge[0])throw Error("Expected the resume to render <"+Ge[0]+"> in this slot but instead it rendered <"+_+">. The tree doesn't match so React will fallback to client rendering.");var Ke=Ge[2];_=Ge[3],B=d.node,d.replay={nodes:Ke,slots:_,pendingTasks:1};try{if(nl(h,d,S,te,se,Fe),d.replay.pendingTasks===1&&0<d.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");d.replay.pendingTasks--}catch(fi){if(typeof fi=="object"&&fi!==null&&(fi===Zi||typeof fi.then=="function"))throw d.node===B?d.replay=ve:U.splice(Me,1),fi;d.replay.pendingTasks--,te=_s(d.componentStack),se=h,h=d.blockedBoundary,S=fi,Fe=_,_=lr(se,S,te,d.debugTask),as(se,h,Ke,Fe,S,_,te,!1)}d.replay=ve}else{if(te!==yr)throw Error("Expected the resume to render <Suspense> in this slot but instead it rendered <"+(Hn(te)||"Unknown")+">. The tree doesn't match so React will fallback to client rendering.");e:{ve=void 0,_=Ge[5],te=Ge[2],Fe=Ge[3],B=Ge[4]===null?[]:Ge[4][2],Ge=Ge[4]===null?null:Ge[4][3];var Xe=d.keyPath,De=d.formatContext,Ft=d.row,vn=d.replay,ht=d.blockedBoundary,Qt=d.hoistableState,ki=se.children,Pi=se.fallback,$t=new Set;se=Dc(h,d.row,$t,null,null),se.parentFlushed=!0,se.rootSegmentID=_,d.blockedBoundary=se,d.hoistableState=se.contentState,d.keyPath=S,d.formatContext=pe(h.resumableState,De),d.row=null,d.replay={nodes:te,slots:Fe,pendingTasks:1};try{if(Kn(h,d,ki,-1),d.replay.pendingTasks===1&&0<d.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");if(d.replay.pendingTasks--,se.pendingTasks===0&&se.status===bs){se.status=Ji,h.completedBoundaries.push(se);break e}}catch(fi){se.status=vi,Ke=_s(d.componentStack),ve=lr(h,fi,Ke,d.debugTask),tl(se,ve,fi,Ke,!1),d.replay.pendingTasks--,h.clientRenderedBoundaries.push(se)}finally{d.blockedBoundary=ht,d.hoistableState=Qt,d.replay=vn,d.keyPath=Xe,d.formatContext=De,d.row=Ft}se=Ul(h,null,{nodes:B,slots:Ge,pendingTasks:0},Pi,-1,ht,se.fallbackState,$t,[S[0],"Suspense Fallback",S[2]],Ee(h.resumableState,d.formatContext),d.context,d.treeContext,d.row,Yl(d.componentStack),Ye,d.debugTask),ar(se),h.pingedTasks.push(se)}}U.splice(Me,1);break}}}function il(h,d,S,_,B){_===d?(S!==-1||h.componentStack===null||typeof h.componentStack.type!="function"||Object.prototype.toString.call(h.componentStack.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(_)!=="[object Generator]")&&(fc||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),fc=!0):d.entries!==B||Eo||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Eo=!0)}function wt(h,d,S,_){d.replay!==null&&typeof d.replay.slots=="number"?is(h,d,d.replay.slots,S,_):(d.node=S,d.childIndex=_,S=d.componentStack,_=d.debugTask,ar(d),mo(h,d),d.componentStack=S,d.debugTask=_)}function mo(h,d){var S=d.node,_=d.childIndex;if(S!==null){if(typeof S=="object"){switch(S.$$typeof){case va:var B=S.type,U=S.key;S=S.props;var te=S.ref;te=te!==void 0?te:null;var se=d.debugTask,Fe=Hn(B);U=U??(_===-1?0:_);var ve=[d.keyPath,Fe,U];d.replay!==null?se?se.run(rs.bind(null,h,d,ve,Fe,U,_,B,S,te,d.replay)):rs(h,d,ve,Fe,U,_,B,S,te,d.replay):se?se.run(nl.bind(null,h,d,ve,B,S,te)):nl(h,d,ve,B,S,te);return;case Jn:throw Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Br:if(B=kf(S),h.status===12)throw null;wt(h,d,B,_);return}if(cs(S)){Io(h,d,S,_);return}if((U=t(S))&&(B=U.call(S))){if(il(d,S,_,B,U),S=B.next(),!S.done){U=[];do U.push(S.value),S=B.next();while(!S.done);Io(h,d,U,_)}return}if(typeof S.then=="function")return d.thenableState=null,wt(h,d,Fr(S),_);if(S.$$typeof===Lr)return wt(h,d,S._currentValue2,_);throw h=Object.prototype.toString.call(S),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.")}typeof S=="string"?(d=d.blockedSegment,d!==null&&(d.lastPushedText=gh(d.chunks,S,h.renderState,d.lastPushedText))):typeof S=="number"||typeof S=="bigint"?(d=d.blockedSegment,d!==null&&(d.lastPushedText=gh(d.chunks,""+S,h.renderState,d.lastPushedText))):(typeof S=="function"&&(h=S.displayName||S.name||"Component",console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.",h,h)),typeof S=="symbol"&&console.error(`Symbols are not valid as a React child.
|
|
178
|
-
%s`,String(S)))}}function Zn(h,d,S){if(S!==null&&typeof S=="object"&&(S.$$typeof===va||S.$$typeof===Jn)&&S._store&&(!S._store.validated&&S.key==null||S._store.validated===2)){if(typeof S._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");S._store.validated=1;var _=h.didWarnForKey;if(_==null&&(_=h.didWarnForKey=new WeakSet),h=d.componentStack,h!==null&&!_.has(h)){_.add(h);var B=Hn(S.type);_=S._owner;var U=h.owner;if(h="",U&&typeof U.type<"u"){var te=Hn(U.type);te&&(h=`
|
|
179
|
-
|
|
180
|
-
Check the render method of \``+te+"`.")}h||B&&(h=`
|
|
181
|
-
|
|
182
|
-
Check the top-level render call using <`+B+">."),B="",_!=null&&U!==_&&(U=null,typeof _.type<"u"?U=Hn(_.type):typeof _.name=="string"&&(U=_.name),U&&(B=" It was passed a child from "+U+".")),_=d.componentStack,d.componentStack={parent:d.componentStack,type:S.type,owner:S._owner,stack:S._debugStack},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',h,B),d.componentStack=_}}}function Io(h,d,S,_){var B=d.keyPath,U=d.componentStack,te=d.debugTask;if(Xl(d,d.node._debugInfo),_!==-1&&(d.keyPath=[d.keyPath,"Fragment",_],d.replay!==null)){for(var se=d.replay,Fe=se.nodes,ve=0;ve<Fe.length;ve++){var Me=Fe[ve];if(Me[1]===_){_=Me[2],Me=Me[3],d.replay={nodes:_,slots:Me,pendingTasks:1};try{if(Io(h,d,S,-1),d.replay.pendingTasks===1&&0<d.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");d.replay.pendingTasks--}catch(De){if(typeof De=="object"&&De!==null&&(De===Zi||typeof De.then=="function"))throw De;d.replay.pendingTasks--;var Ge=_s(d.componentStack);S=d.blockedBoundary;var Ke=De,Xe=Me;Me=lr(h,Ke,Ge,d.debugTask),as(h,S,_,Xe,Ke,Me,Ge,!1)}d.replay=se,Fe.splice(ve,1);break}}d.keyPath=B,d.componentStack=U,d.debugTask=te;return}if(se=d.treeContext,Fe=S.length,d.replay!==null&&(ve=d.replay.slots,ve!==null&&typeof ve=="object")){for(_=0;_<Fe;_++)Me=S[_],d.treeContext=Ut(se,Fe,_),Ke=ve[_],typeof Ke=="number"?(is(h,d,Ke,Me,_),delete ve[_]):Kn(h,d,Me,_);d.treeContext=se,d.keyPath=B,d.componentStack=U,d.debugTask=te;return}for(ve=0;ve<Fe;ve++)_=S[ve],Zn(h,d,_),d.treeContext=Ut(se,Fe,ve),Kn(h,d,_,ve);d.treeContext=se,d.keyPath=B,d.componentStack=U,d.debugTask=te}function oi(h,d,S){if(S.status=xr,S.rootSegmentID=h.nextSegmentId++,h=S.trackedContentKeyPath,h===null)throw Error("It should not be possible to postpone at the root. This is a bug in React.");var _=S.trackedFallbackNode,B=[],U=d.workingMap.get(h);return U===void 0?(S=[h[1],h[2],B,null,_,S.rootSegmentID],d.workingMap.set(h,S),yo(S,h[0],d),S):(U[4]=_,U[5]=S.rootSegmentID,U)}function Os(h,d,S,_){_.status=xr;var B=S.keyPath,U=S.blockedBoundary;if(U===null)_.id=h.nextSegmentId++,d.rootSlots=_.id,h.completedRootSegment!==null&&(h.completedRootSegment.status=xr);else{if(U!==null&&U.status===bs){var te=oi(h,d,U);if(U.trackedContentKeyPath===B&&S.childIndex===-1){_.id===-1&&(_.id=_.parentFlushed?U.rootSegmentID:h.nextSegmentId++),te[3]=_.id;return}}if(_.id===-1&&(_.id=_.parentFlushed&&U!==null?U.rootSegmentID:h.nextSegmentId++),S.childIndex===-1)B===null?d.rootSlots=_.id:(S=d.workingMap.get(B),S===void 0?(S=[B[1],B[2],[],_.id],yo(S,B[0],d)):S[3]=_.id);else{if(B===null){if(h=d.rootSlots,h===null)h=d.rootSlots={};else if(typeof h=="number")throw Error("It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.")}else if(U=d.workingMap,te=U.get(B),te===void 0)h={},te=[B[1],B[2],[],h],U.set(B,te),yo(te,B[0],d);else if(h=te[3],h===null)h=te[3]={};else if(typeof h=="number")throw Error("It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.");h[S.childIndex]=_.id}}}function da(h,d){h=h.trackedPostpones,h!==null&&(d=d.trackedContentKeyPath,d!==null&&(d=h.workingMap.get(d),d!==void 0&&(d.length=4,d[2]=[],d[3]=null)))}function Do(h,d,S){return Ul(h,S,d.replay,d.node,d.childIndex,d.blockedBoundary,d.hoistableState,d.abortSet,d.keyPath,d.formatContext,d.context,d.treeContext,d.row,d.componentStack,Ye,d.debugTask)}function os(h,d,S){var _=d.blockedSegment,B=sr(h,_.chunks.length,null,d.formatContext,_.lastPushedText,!0);return _.children.push(B),_.lastPushedText=!1,Fo(h,S,d.node,d.childIndex,d.blockedBoundary,B,d.blockedPreamble,d.hoistableState,d.abortSet,d.keyPath,d.formatContext,d.context,d.treeContext,d.row,d.componentStack,Ye,d.debugTask)}function Kn(h,d,S,_){var B=d.formatContext,U=d.context,te=d.keyPath,se=d.treeContext,Fe=d.componentStack,ve=d.debugTask,Me=d.blockedSegment;if(Me===null){Me=d.replay;try{return wt(h,d,S,_)}catch(Xe){if(Ci(),S=Xe===Zi?zl():Xe,h.status!==12&&typeof S=="object"&&S!==null){if(typeof S.then=="function"){_=Xe===Zi?fo():null,h=Do(h,d,_).ping,S.then(h,h),d.formatContext=B,d.context=U,d.keyPath=te,d.treeContext=se,d.componentStack=Fe,d.replay=Me,d.debugTask=ve,cn(U);return}if(S.message==="Maximum call stack size exceeded"){S=Xe===Zi?fo():null,S=Do(h,d,S),h.pingedTasks.push(S),d.formatContext=B,d.context=U,d.keyPath=te,d.treeContext=se,d.componentStack=Fe,d.replay=Me,d.debugTask=ve,cn(U);return}}}}else{var Ge=Me.children.length,Ke=Me.chunks.length;try{return wt(h,d,S,_)}catch(Xe){if(Ci(),Me.children.length=Ge,Me.chunks.length=Ke,S=Xe===Zi?zl():Xe,h.status!==12&&typeof S=="object"&&S!==null){if(typeof S.then=="function"){Me=S,S=Xe===Zi?fo():null,h=os(h,d,S).ping,Me.then(h,h),d.formatContext=B,d.context=U,d.keyPath=te,d.treeContext=se,d.componentStack=Fe,d.debugTask=ve,cn(U);return}if(S.message==="Maximum call stack size exceeded"){Me=Xe===Zi?fo():null,Me=os(h,d,Me),h.pingedTasks.push(Me),d.formatContext=B,d.context=U,d.keyPath=te,d.treeContext=se,d.componentStack=Fe,d.debugTask=ve,cn(U);return}}}}throw d.formatContext=B,d.context=U,d.keyPath=te,d.treeContext=se,cn(U),S}function ss(h){var d=h.blockedBoundary,S=h.blockedSegment;S!==null&&(S.status=no,vo(this,d,h.row,S))}function as(h,d,S,_,B,U,te,se){for(var Fe=0;Fe<S.length;Fe++){var ve=S[Fe];if(ve.length===4)as(h,d,ve[2],ve[3],B,U,te,se);else{var Me=h;ve=ve[5];var Ge=B,Ke=U,Xe=te,De=se,Ft=Dc(Me,null,new Set,null,null);Ft.parentFlushed=!0,Ft.rootSegmentID=ve,Ft.status=vi,tl(Ft,Ke,Ge,Xe,De),Ft.parentFlushed&&Me.clientRenderedBoundaries.push(Ft)}}if(S.length=0,_!==null){if(d===null)throw Error("We should not have any resumable nodes in the shell. This is a bug in React.");if(d.status!==vi&&(d.status=vi,tl(d,U,B,te,se),d.parentFlushed&&h.clientRenderedBoundaries.push(d)),typeof _=="object")for(var vn in _)delete _[vn]}}function ga(h,d,S){var _=h.blockedBoundary,B=h.blockedSegment;if(B!==null){if(B.status===6)return;B.status=no}var U=_s(h.componentStack),te=h.node;if(te!==null&&typeof te=="object"&&Mu(h,te._debugInfo),_===null){if(d.status!==13&&d.status!==xs){if(_=h.replay,_===null){d.trackedPostpones!==null&&B!==null?(_=d.trackedPostpones,lr(d,S,U,h.debugTask),Os(d,_,h,B),vo(d,null,h.row,B)):(lr(d,S,U,h.debugTask),ci(d,S,U,h.debugTask));return}_.pendingTasks--,_.pendingTasks===0&&0<_.nodes.length&&(B=lr(d,S,U,null),as(d,null,_.nodes,_.slots,S,B,U,!0)),d.pendingRootTasks--,d.pendingRootTasks===0&&pa(d)}}else{if(te=d.trackedPostpones,_.status!==vi){if(te!==null&&B!==null)return lr(d,S,U,h.debugTask),Os(d,te,h,B),_.fallbackAbortableTasks.forEach(function(se){return ga(se,d,S)}),_.fallbackAbortableTasks.clear(),vo(d,_,h.row,B);_.status=vi,B=lr(d,S,U,h.debugTask),_.status=vi,tl(_,B,S,U,!0),da(d,_),_.parentFlushed&&d.clientRenderedBoundaries.push(_)}_.pendingTasks--,U=_.row,U!==null&&--U.pendingTasks===0&&yn(d,U),_.fallbackAbortableTasks.forEach(function(se){return ga(se,d,S)}),_.fallbackAbortableTasks.clear()}h=h.row,h!==null&&--h.pendingTasks===0&&yn(d,h),d.allPendingTasks--,d.allPendingTasks===0&&cr(d)}function Fs(h,d){try{var S=h.renderState,_=S.onHeaders;if(_){var B=S.headers;if(B){S.headers=null;var U=B.preconnects;if(B.fontPreloads&&(U&&(U+=", "),U+=B.fontPreloads),B.highImagePreloads&&(U&&(U+=", "),U+=B.highImagePreloads),!d){var te=S.styles.values(),se=te.next();e:for(;0<B.remainingCapacity&&!se.done;se=te.next())for(var Fe=se.value.sheets.values(),ve=Fe.next();0<B.remainingCapacity&&!ve.done;ve=Fe.next()){var Me=ve.value,Ge=Me.props,Ke=Ge.href,Xe=Me.props,De=Dl(Xe.href,"style",{crossOrigin:Xe.crossOrigin,integrity:Xe.integrity,nonce:Xe.nonce,type:Xe.type,fetchPriority:Xe.fetchPriority,referrerPolicy:Xe.referrerPolicy,media:Xe.media});if(0<=(B.remainingCapacity-=De.length+2))S.resets.style[Ke]=xe,U&&(U+=", "),U+=De,S.resets.style[Ke]=typeof Ge.crossOrigin=="string"||typeof Ge.integrity=="string"?[Ge.crossOrigin,Ge.integrity]:xe;else break e}}_(U?{Link:U}:{})}}}catch(Ft){lr(h,Ft,{},null)}}function pa(h){h.trackedPostpones===null&&Fs(h,!0),h.trackedPostpones===null&&rl(h),h.onShellError=It,h=h.onShellReady,h()}function cr(h){Fs(h,h.trackedPostpones===null?!0:h.completedRootSegment===null||h.completedRootSegment.status!==xr),rl(h),h=h.onAllReady,h()}function ma(h,d){if(d.chunks.length===0&&d.children.length===1&&d.children[0].boundary===null&&d.children[0].id===-1){var S=d.children[0];S.id=d.id,S.parentFlushed=!0,S.status!==Ji&&S.status!==no&&S.status!==nn||ma(h,S)}else h.completedSegments.push(d)}function vo(h,d,S,_){if(S!==null&&(--S.pendingTasks===0?yn(h,S):S.together&&ts(h,S)),h.allPendingTasks--,d===null){if(_!==null&&_.parentFlushed){if(h.completedRootSegment!==null)throw Error("There can only be one root segment. This is a bug in React.");h.completedRootSegment=_}h.pendingRootTasks--,h.pendingRootTasks===0&&pa(h)}else if(d.pendingTasks--,d.status!==vi)if(d.pendingTasks===0){if(d.status===bs&&(d.status=Ji),_!==null&&_.parentFlushed&&(_.status===Ji||_.status===no)&&ma(d,_),d.parentFlushed&&h.completedBoundaries.push(d),d.status===Ji)S=d.row,S!==null&&Yr(S.hoistables,d.contentState),Wl(h,d)||(d.fallbackAbortableTasks.forEach(ss,h),d.fallbackAbortableTasks.clear(),S!==null&&--S.pendingTasks===0&&yn(h,S)),h.pendingRootTasks===0&&h.trackedPostpones===null&&d.contentPreamble!==null&&rl(h);else if(d.status===xr&&(d=d.row,d!==null)){if(h.trackedPostpones!==null){S=h.trackedPostpones;var B=d.next;if(B!==null&&(_=B.boundaries,_!==null))for(B.boundaries=null,B=0;B<_.length;B++){var U=_[B];oi(h,S,U),vo(h,U,null,null)}}--d.pendingTasks===0&&yn(h,d)}}else _===null||!_.parentFlushed||_.status!==Ji&&_.status!==no||(ma(d,_),d.completedSegments.length===1&&d.parentFlushed&&h.partialBoundaries.push(d)),d=d.row,d!==null&&d.together&&ts(h,d);h.allPendingTasks===0&&cr(h)}function Ou(h){if(h.status!==xs&&h.status!==13){var d=vt,S=On.H;On.H=Ba;var _=On.A;On.A=Ph;var B=qn;qn=h;var U=On.getCurrentStack;On.getCurrentStack=go;var te=kh;kh=h.resumableState;try{var se=h.pingedTasks,Fe;for(Fe=0;Fe<se.length;Fe++){var ve=h,Me=se[Fe],Ge=Me.blockedSegment;if(Ge===null){var Ke=void 0,Xe=ve;if(ve=Me,ve.replay.pendingTasks!==0){cn(ve.context),Ke=to,to=ve;try{if(typeof ve.replay.slots=="number"?is(Xe,ve,ve.replay.slots,ve.node,ve.childIndex):mo(Xe,ve),ve.replay.pendingTasks===1&&0<ve.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");ve.replay.pendingTasks--,ve.abortSet.delete(ve),vo(Xe,ve.blockedBoundary,ve.row,null)}catch(Pn){Ci();var De=Pn===Zi?zl():Pn;if(typeof De=="object"&&De!==null&&typeof De.then=="function"){var Ft=ve.ping;De.then(Ft,Ft),ve.thenableState=Pn===Zi?fo():null}else{ve.replay.pendingTasks--,ve.abortSet.delete(ve);var vn=_s(ve.componentStack),ht=void 0,Qt=Xe,ki=ve.blockedBoundary,Pi=Xe.status===12?Xe.fatalError:De,$t=vn,fi=ve.replay.nodes,Go=ve.replay.slots;ht=lr(Qt,Pi,$t,ve.debugTask),as(Qt,ki,fi,Go,Pi,ht,$t,!1),Xe.pendingRootTasks--,Xe.pendingRootTasks===0&&pa(Xe),Xe.allPendingTasks--,Xe.allPendingTasks===0&&cr(Xe)}}finally{to=Ke}}}else if(Xe=Ke=void 0,ht=Me,Qt=Ge,Qt.status===bs){Qt.status=6,cn(ht.context),Xe=to,to=ht;var gr=Qt.children.length,$e=Qt.chunks.length;try{mo(ve,ht),ca(Qt.chunks,ve.renderState,Qt.lastPushedText,Qt.textEmbedded),ht.abortSet.delete(ht),Qt.status=Ji,vo(ve,ht.blockedBoundary,ht.row,Qt)}catch(Pn){Ci(),Qt.children.length=gr,Qt.chunks.length=$e;var sn=Pn===Zi?zl():ve.status===12?ve.fatalError:Pn;if(ve.status===12&&ve.trackedPostpones!==null){var an=ve.trackedPostpones,hn=_s(ht.componentStack);ht.abortSet.delete(ht),lr(ve,sn,hn,ht.debugTask),Os(ve,an,ht,Qt),vo(ve,ht.blockedBoundary,ht.row,Qt)}else if(typeof sn=="object"&&sn!==null&&typeof sn.then=="function"){Qt.status=bs,ht.thenableState=Pn===Zi?fo():null;var Bn=ht.ping;sn.then(Bn,Bn)}else{var Ht=_s(ht.componentStack);ht.abortSet.delete(ht),Qt.status=nn;var Tt=ht.blockedBoundary,Qi=ht.row,ln=ht.debugTask;if(Qi!==null&&--Qi.pendingTasks===0&&yn(ve,Qi),ve.allPendingTasks--,Ke=lr(ve,sn,Ht,ln),Tt===null)ci(ve,sn,Ht,ln);else if(Tt.pendingTasks--,Tt.status!==vi){Tt.status=vi,tl(Tt,Ke,sn,Ht,!1),da(ve,Tt);var Mi=Tt.row;Mi!==null&&--Mi.pendingTasks===0&&yn(ve,Mi),Tt.parentFlushed&&ve.clientRenderedBoundaries.push(Tt),ve.pendingRootTasks===0&&ve.trackedPostpones===null&&Tt.contentPreamble!==null&&rl(ve)}ve.allPendingTasks===0&&cr(ve)}}finally{to=Xe}}}se.splice(0,Fe),h.destination!==null&&Zl(h,h.destination)}catch(Pn){se={},lr(h,Pn,se,null),ci(h,Pn,se,null)}finally{kh=te,On.H=S,On.A=_,On.getCurrentStack=U,S===Ba&&cn(d),qn=B}}}function Fu(h,d,S){d.preambleChildren.length&&S.push(d.preambleChildren);for(var _=!1,B=0;B<d.children.length;B++)_=Lu(h,d.children[B],S)||_;return _}function Lu(h,d,S){var _=d.boundary;if(_===null)return Fu(h,d,S);var B=_.contentPreamble,U=_.fallbackPreamble;if(B===null||U===null)return!1;switch(_.status){case Ji:if(ks(h.renderState,B),h.byteSize+=_.byteSize,d=_.completedSegments[0],!d)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");return Fu(h,d,S);case xr:if(h.trackedPostpones!==null)return!0;case vi:if(d.status===Ji)return ks(h.renderState,U),Fu(h,d,S);default:return!0}}function rl(h){if(h.completedRootSegment&&h.completedPreambleSegments===null){var d=[],S=h.byteSize,_=Lu(h,h.completedRootSegment,d),B=h.renderState.preamble;_===!1||B.headChunks&&B.bodyChunks?h.completedPreambleSegments=d:h.byteSize=S}}function ol(h,d,S,_){switch(S.parentFlushed=!0,S.status){case bs:S.id=h.nextSegmentId++;case xr:return _=S.id,S.lastPushedText=!1,S.textEmbedded=!1,h=h.renderState,d.push(gs),d.push(h.placeholderPrefix),h=_.toString(16),d.push(h),d.push(nc);case Ji:S.status=qs;var B=!0,U=S.chunks,te=0;S=S.children;for(var se=0;se<S.length;se++){for(B=S[se];te<B.index;te++)d.push(U[te]);B=sl(h,d,B,_)}for(;te<U.length-1;te++)d.push(U[te]);return te<U.length&&(B=d.push(U[te])),B;case no:return!0;default:throw Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function sl(h,d,S,_){var B=S.boundary;if(B===null)return ol(h,d,S,_);if(B.parentFlushed=!0,B.status===vi){var U=B.row;if(U!==null&&--U.pendingTasks===0&&yn(h,U),!h.renderState.generateStaticMarkup){var te=B.errorDigest,se=B.errorMessage;U=B.errorStack,B=B.errorComponentStack,d.push(ic),d.push(hl),te&&(d.push(Un),te=G(te),d.push(te),d.push(Ea)),se&&(d.push(zr),se=G(se),d.push(se),d.push(Ea)),U&&(d.push(_t),U=G(U),d.push(U),d.push(Ea)),B&&(d.push(ms),U=G(B),d.push(U),d.push(Ea)),d.push(fl)}return ol(h,d,S,_),h=h.renderState.generateStaticMarkup?!0:d.push(Gs),h}if(B.status!==Ji)return B.status===bs&&(B.rootSegmentID=h.nextSegmentId++),0<B.completedSegments.length&&h.partialBoundaries.push(B),Yn(d,h.renderState,B.rootSegmentID),_&&Yr(_,B.fallbackState),ol(h,d,S,_),d.push(Gs);if(!dc&&Wl(h,B)&&Ha+B.byteSize>h.progressiveChunkSize)return B.rootSegmentID=h.nextSegmentId++,h.completedBoundaries.push(B),Yn(d,h.renderState,B.rootSegmentID),ol(h,d,S,_),d.push(Gs);if(Ha+=B.byteSize,_&&Yr(_,B.contentState),S=B.row,S!==null&&Wl(h,B)&&--S.pendingTasks===0&&yn(h,S),h.renderState.generateStaticMarkup||d.push(ps),S=B.completedSegments,S.length!==1)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");return sl(h,d,S[0],_),h=h.renderState.generateStaticMarkup?!0:d.push(Gs),h}function ui(h,d,S,_){return xi(d,h.renderState,S.parentFormatContext,S.id),sl(h,d,S,_),pt(d,S.parentFormatContext)}function bh(h,d,S){Ha=S.byteSize;for(var _=S.completedSegments,B=0;B<_.length;B++)Ls(h,d,S,_[B]);_.length=0,_=S.row,_!==null&&Wl(h,S)&&--_.pendingTasks===0&&yn(h,_),Bi(d,S.contentState,h.renderState),_=h.resumableState,h=h.renderState,B=S.rootSegmentID,S=S.contentState;var U=h.stylesToHoist;return h.stylesToHoist=!1,d.push(h.startInlineScript),d.push(Ot),U?((_.instructions&z)===x&&(_.instructions|=z,d.push(Ys)),(_.instructions&O)===x&&(_.instructions|=O,d.push(jn)),(_.instructions&Z)===x?(_.instructions|=Z,d.push(ac)):d.push(lc)):((_.instructions&O)===x&&(_.instructions|=O,d.push(jn)),d.push(Jc)),_=B.toString(16),d.push(h.boundaryPrefix),d.push(_),d.push(Qc),d.push(h.segmentPrefix),d.push(_),U?(d.push(Uu),Ru(d,S)):d.push(jc),S=d.push(qc),Xr(d,h)&&S}function Ls(h,d,S,_){if(_.status===qs)return!0;var B=S.contentState,U=_.id;if(U===-1){if((_.id=S.rootSegmentID)===-1)throw Error("A root segment ID must have been assigned by now. This is a bug in React.");return ui(h,d,_,B)}return U===S.rootSegmentID?ui(h,d,_,B):(ui(h,d,_,B),S=h.resumableState,h=h.renderState,d.push(h.startInlineScript),d.push(Ot),(S.instructions&k)===x?(S.instructions|=k,d.push(Wu)):d.push(Kc),d.push(h.segmentPrefix),U=U.toString(16),d.push(U),d.push(Vu),d.push(h.placeholderPrefix),d.push(U),d=d.push(Gu),d)}function Zl(h,d){try{if(!(0<h.pendingRootTasks)){var S,_=h.completedRootSegment;if(_!==null){if(_.status===xr)return;var B=h.completedPreambleSegments;if(B===null)return;Ha=h.byteSize;var U=h.resumableState,te=h.renderState,se=te.preamble,Fe=se.htmlChunks,ve=se.headChunks,Me;if(Fe){for(Me=0;Me<Fe.length;Me++)d.push(Fe[Me]);if(ve)for(Me=0;Me<ve.length;Me++)d.push(ve[Me]);else{var Ge=Nt("head");d.push(Ge),d.push(Ot)}}else if(ve)for(Me=0;Me<ve.length;Me++)d.push(ve[Me]);var Ke=te.charsetChunks;for(Me=0;Me<Ke.length;Me++)d.push(Ke[Me]);Ke.length=0,te.preconnects.forEach(mn,d),te.preconnects.clear();var Xe=te.viewportChunks;for(Me=0;Me<Xe.length;Me++)d.push(Xe[Me]);Xe.length=0,te.fontPreloads.forEach(mn,d),te.fontPreloads.clear(),te.highImagePreloads.forEach(mn,d),te.highImagePreloads.clear(),Le=te,te.styles.forEach(Gn,d),Le=null;var De=te.importMapChunks;for(Me=0;Me<De.length;Me++)d.push(De[Me]);De.length=0,te.bootstrapScripts.forEach(mn,d),te.scripts.forEach(mn,d),te.scripts.clear(),te.bulkPreloads.forEach(mn,d),te.bulkPreloads.clear(),U.instructions|=j;var Ft=te.hoistableChunks;for(Me=0;Me<Ft.length;Me++)d.push(Ft[Me]);for(U=Ft.length=0;U<B.length;U++){var vn=B[U];for(te=0;te<vn.length;te++)sl(h,d,vn[te],null)}var ht=h.renderState.preamble,Qt=ht.headChunks;if(ht.htmlChunks||Qt){var ki=pn("head");d.push(ki)}var Pi=ht.bodyChunks;if(Pi)for(B=0;B<Pi.length;B++)d.push(Pi[B]);sl(h,d,_,null),h.completedRootSegment=null;var $t=h.renderState;if(h.allPendingTasks!==0||h.clientRenderedBoundaries.length!==0||h.completedBoundaries.length!==0||h.trackedPostpones!==null&&(h.trackedPostpones.rootNodes.length!==0||h.trackedPostpones.rootSlots!==null)){var fi=h.resumableState;if((fi.instructions&Se)===x){if(fi.instructions|=Se,d.push($t.startInlineScript),(fi.instructions&j)===x){fi.instructions|=j;var Go="_"+fi.idPrefix+"R_";d.push(ml);var gr=G(Go);d.push(gr),d.push(xt)}d.push(Ot),d.push(Nr),d.push(Ae)}}Xr(d,$t)}var $e=h.renderState;_=0;var sn=$e.viewportChunks;for(_=0;_<sn.length;_++)d.push(sn[_]);sn.length=0,$e.preconnects.forEach(mn,d),$e.preconnects.clear(),$e.fontPreloads.forEach(mn,d),$e.fontPreloads.clear(),$e.highImagePreloads.forEach(mn,d),$e.highImagePreloads.clear(),$e.styles.forEach(Eu,d),$e.scripts.forEach(mn,d),$e.scripts.clear(),$e.bulkPreloads.forEach(mn,d),$e.bulkPreloads.clear();var an=$e.hoistableChunks;for(_=0;_<an.length;_++)d.push(an[_]);an.length=0;var hn=h.clientRenderedBoundaries;for(S=0;S<hn.length;S++){var Bn=hn[S];$e=d;var Ht=h.resumableState,Tt=h.renderState,Qi=Bn.rootSegmentID,ln=Bn.errorDigest,Mi=Bn.errorMessage,Pn=Bn.errorStack,wr=Bn.errorComponentStack;$e.push(Tt.startInlineScript),$e.push(Ot),(Ht.instructions&z)===x?(Ht.instructions|=z,$e.push(jr)):$e.push(Sh),$e.push(Tt.boundaryPrefix);var Tl=Qi.toString(16);if($e.push(Tl),$e.push(Aa),ln||Mi||Pn||wr){$e.push(cc);var Cr=gt(ln||"");$e.push(Cr)}if(Mi||Pn||wr){$e.push(cc);var Uo=gt(Mi||"");$e.push(Uo)}if(Pn||wr){$e.push(cc);var Xo=gt(Pn||"");$e.push(Xo)}if(wr){$e.push(cc);var Yo=gt(wr);$e.push(Yo)}var yi=$e.push(wo);if(!yi){h.destination=null,S++,hn.splice(0,S);return}}hn.splice(0,S);var c=h.completedBoundaries;for(S=0;S<c.length;S++)if(!bh(h,d,c[S])){h.destination=null,S++,c.splice(0,S);return}c.splice(0,S),dc=!0;var f=h.partialBoundaries;for(S=0;S<f.length;S++){e:{hn=h,Bn=d;var C=f[S];Ha=C.byteSize;var A=C.completedSegments;for(yi=0;yi<A.length;yi++)if(!Ls(hn,Bn,C,A[yi])){yi++,A.splice(0,yi);var D=!1;break e}A.splice(0,yi);var V=C.row;V!==null&&V.together&&C.pendingTasks===1&&(V.pendingTasks===1?Au(hn,V,V.hoistables):V.pendingTasks--),D=Bi(Bn,C.contentState,hn.renderState)}if(!D){h.destination=null,S++,f.splice(0,S);return}}f.splice(0,S),dc=!1;var Q=h.completedBoundaries;for(S=0;S<Q.length;S++)if(!bh(h,d,Q[S])){h.destination=null,S++,Q.splice(0,S);return}Q.splice(0,S)}}finally{dc=!1,h.allPendingTasks===0&&h.clientRenderedBoundaries.length===0&&h.completedBoundaries.length===0&&(h.flushScheduled=!1,S=h.resumableState,S.hasBody&&(f=pn("body"),d.push(f)),S.hasHtml&&(S=pn("html"),d.push(S)),h.abortableTasks.size!==0&&console.error("There was still abortable task at the root when we closed. This is a bug in React."),h.status=xs,d.push(null),h.destination=null)}}function Bc(h){h.flushScheduled=h.destination!==null,Ou(h),h.status===10&&(h.status=11),h.trackedPostpones===null&&Fs(h,h.pendingRootTasks===0)}function ls(h){if(h.flushScheduled===!1&&h.pingedTasks.length===0&&h.destination!==null){h.flushScheduled=!0;var d=h.destination;d?Zl(h,d):h.flushScheduled=!1}}function Is(h,d){if(h.status===13)h.status=xs,d.destroy(h.fatalError);else if(h.status!==xs&&h.destination===null){h.destination=d;try{Zl(h,d)}catch(S){d={},lr(h,S,d,null),ci(h,S,d,null)}}}function al(h,d){(h.status===11||h.status===10)&&(h.status=12);try{var S=h.abortableTasks;if(0<S.size){var _=d===void 0?Error("The render was aborted by the server without a reason."):typeof d=="object"&&d!==null&&typeof d.then=="function"?Error("The render was aborted by the server with a promise."):d;h.fatalError=_,S.forEach(function(B){var U=to,te=On.getCurrentStack;to=B,On.getCurrentStack=go;try{ga(B,h,_)}finally{to=U,On.getCurrentStack=te}}),S.clear()}h.destination!==null&&Zl(h,h.destination)}catch(B){d={},lr(h,B,d,null),ci(h,B,d,null)}}function yo(h,d,S){if(d===null)S.rootNodes.push(h);else{var _=S.workingMap,B=_.get(d);B===void 0&&(B=[d[1],d[2],[],null],_.set(d,B),yo(B,d[0],S)),B[2].push(h)}}function Ds(){}function Bs(h,d,S,_){var B=!1,U=null,te="",se=!1;if(d=$(d?d.identifierPrefix:void 0),h=el(h,d,Mo(d,S),re(Mt,null,0,null),1/0,Ds,void 0,function(){se=!0},void 0,void 0,void 0),Bc(h),al(h,_),Is(h,{push:function(Fe){return Fe!==null&&(te+=Fe),!0},destroy:function(Fe){B=!0,U=Fe}}),B&&U!==_)throw U;if(!se)throw Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return te}var Iu=ge,Qh=rd,va=Symbol.for("react.transitional.element"),Jn=Symbol.for("react.portal"),Bo=Symbol.for("react.fragment"),Kl=Symbol.for("react.strict_mode"),Jl=Symbol.for("react.profiler"),Nc=Symbol.for("react.consumer"),Lr=Symbol.for("react.context"),Ir=Symbol.for("react.forward_ref"),yr=Symbol.for("react.suspense"),Dr=Symbol.for("react.suspense_list"),un=Symbol.for("react.memo"),Br=Symbol.for("react.lazy"),Tn=Symbol.for("react.scope"),bo=Symbol.for("react.activity"),zc=Symbol.for("react.legacy_hidden"),Hc=Symbol.for("react.memo_cache_sentinel"),Wc=Symbol.for("react.view_transition"),Ql=Symbol.iterator,cs=Array.isArray,jl=new WeakMap,ql=new WeakMap,ur=Symbol.for("react.client.reference"),En=Object.assign,Yt=Object.prototype.hasOwnProperty,Ns=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ya={},ba={},zs=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Du=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),pi={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},jh={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},xo={},xh=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Bu=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),No=!1,$l={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Si={},us=/^on./,wh=/^on[^A-Z]/,xa=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Vc=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),wa=/^(?:webkit|moz|o)[A-Z]/,Ti=/^-ms-/,mi=/-(.)/g,Hs=/;\s*$/,bn={},on={},Ca=!1,ll=!1,Gc=/["'&<>]/,cl=/([A-Z])/g,Nu=/^ms-/,qh=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,On=Iu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,hs=Qh.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ch=Object.freeze({pending:!1,data:null,method:null,action:null}),v=hs.d;hs.d={f:v.f,r:v.r,D:function(h){var d=qn||null;if(d){var S=d.resumableState,_=d.renderState;if(typeof h=="string"&&h){if(!S.dnsResources.hasOwnProperty(h)){S.dnsResources[h]=oe,S=_.headers;var B,U;(U=S&&0<S.remainingCapacity)&&(U=(B="<"+_n(h)+">; rel=dns-prefetch",0<=(S.remainingCapacity-=B.length+2))),U?(_.resets.dns[h]=oe,S.preconnects&&(S.preconnects+=", "),S.preconnects+=B):(B=[],Oe(B,{href:h,rel:"dns-prefetch"}),_.preconnects.add(B))}ls(d)}}else v.D(h)},C:function(h,d){var S=qn||null;if(S){var _=S.resumableState,B=S.renderState;if(typeof h=="string"&&h){var U=d==="use-credentials"?"credentials":typeof d=="string"?"anonymous":"default";if(!_.connectResources[U].hasOwnProperty(h)){_.connectResources[U][h]=oe,_=B.headers;var te,se;if(se=_&&0<_.remainingCapacity){if(se="<"+_n(h)+">; rel=preconnect",typeof d=="string"){var Fe=_c(d,"crossOrigin");se+='; crossorigin="'+Fe+'"'}se=(te=se,0<=(_.remainingCapacity-=te.length+2))}se?(B.resets.connect[U][h]=oe,_.preconnects&&(_.preconnects+=", "),_.preconnects+=te):(U=[],Oe(U,{rel:"preconnect",href:h,crossOrigin:d}),B.preconnects.add(U))}ls(S)}}else v.C(h,d)},L:function(h,d,S){var _=qn||null;if(_){var B=_.resumableState,U=_.renderState;if(d&&h){switch(d){case"image":if(S)var te=S.imageSrcSet,se=S.imageSizes,Fe=S.fetchPriority;var ve=te?te+`
|
|
183
|
-
`+(se||""):h;if(B.imageResources.hasOwnProperty(ve))return;B.imageResources[ve]=xe,B=U.headers;var Me;B&&0<B.remainingCapacity&&typeof te!="string"&&Fe==="high"&&(Me=Dl(h,d,S),0<=(B.remainingCapacity-=Me.length+2))?(U.resets.image[ve]=xe,B.highImagePreloads&&(B.highImagePreloads+=", "),B.highImagePreloads+=Me):(B=[],Oe(B,En({rel:"preload",href:te?void 0:h,as:d},S)),Fe==="high"?U.highImagePreloads.add(B):(U.bulkPreloads.add(B),U.preloads.images.set(ve,B)));break;case"style":if(B.styleResources.hasOwnProperty(h))return;te=[],Oe(te,En({rel:"preload",href:h,as:d},S)),B.styleResources[h]=!S||typeof S.crossOrigin!="string"&&typeof S.integrity!="string"?xe:[S.crossOrigin,S.integrity],U.preloads.stylesheets.set(h,te),U.bulkPreloads.add(te);break;case"script":if(B.scriptResources.hasOwnProperty(h))return;te=[],U.preloads.scripts.set(h,te),U.bulkPreloads.add(te),Oe(te,En({rel:"preload",href:h,as:d},S)),B.scriptResources[h]=!S||typeof S.crossOrigin!="string"&&typeof S.integrity!="string"?xe:[S.crossOrigin,S.integrity];break;default:if(B.unknownResources.hasOwnProperty(d)){if(te=B.unknownResources[d],te.hasOwnProperty(h))return}else te={},B.unknownResources[d]=te;if(te[h]=xe,(B=U.headers)&&0<B.remainingCapacity&&d==="font"&&(ve=Dl(h,d,S),0<=(B.remainingCapacity-=ve.length+2)))U.resets.font[h]=xe,B.fontPreloads&&(B.fontPreloads+=", "),B.fontPreloads+=ve;else switch(B=[],h=En({rel:"preload",href:h,as:d},S),Oe(B,h),d){case"font":U.fontPreloads.add(B);break;default:U.bulkPreloads.add(B)}}ls(_)}}else v.L(h,d,S)},m:function(h,d){var S=qn||null;if(S){var _=S.resumableState,B=S.renderState;if(h){var U=d&&typeof d.as=="string"?d.as:"script";switch(U){case"script":if(_.moduleScriptResources.hasOwnProperty(h))return;U=[],_.moduleScriptResources[h]=!d||typeof d.crossOrigin!="string"&&typeof d.integrity!="string"?xe:[d.crossOrigin,d.integrity],B.preloads.moduleScripts.set(h,U);break;default:if(_.moduleUnknownResources.hasOwnProperty(U)){var te=_.unknownResources[U];if(te.hasOwnProperty(h))return}else te={},_.moduleUnknownResources[U]=te;U=[],te[h]=xe}Oe(U,En({rel:"modulepreload",href:h},d)),B.bulkPreloads.add(U),ls(S)}}else v.m(h,d)},X:function(h,d){var S=qn||null;if(S){var _=S.resumableState,B=S.renderState;if(h){var U=_.scriptResources.hasOwnProperty(h)?_.scriptResources[h]:void 0;U!==oe&&(_.scriptResources[h]=oe,d=En({src:h,async:!0},d),U&&(U.length===2&&aa(d,U),h=B.preloads.scripts.get(h))&&(h.length=0),h=[],B.scripts.add(h),ct(h,d),ls(S))}}else v.X(h,d)},S:function(h,d,S){var _=qn||null;if(_){var B=_.resumableState,U=_.renderState;if(h){d=d||"default";var te=U.styles.get(d),se=B.styleResources.hasOwnProperty(h)?B.styleResources[h]:void 0;se!==oe&&(B.styleResources[h]=oe,te||(te={precedence:G(d),rules:[],hrefs:[],sheets:new Map},U.styles.set(d,te)),d={state:N,props:En({rel:"stylesheet",href:h,"data-precedence":d},S)},se&&(se.length===2&&aa(d.props,se),(U=U.preloads.stylesheets.get(h))&&0<U.length?U.length=0:d.state=X),te.sheets.set(h,d),ls(_))}}else v.S(h,d,S)},M:function(h,d){var S=qn||null;if(S){var _=S.resumableState,B=S.renderState;if(h){var U=_.moduleScriptResources.hasOwnProperty(h)?_.moduleScriptResources[h]:void 0;U!==oe&&(_.moduleScriptResources[h]=oe,d=En({src:h,type:"module",async:!0},d),U&&(U.length===2&&aa(d,U),h=B.preloads.moduleScripts.get(h))&&(h.length=0),h=[],B.scripts.add(h),ct(h,d),ls(S))}}else v.M(h,d)}};var x=0,k=1,O=2,z=4,Z=8,j=32,Se=64,oe=null,xe=[];Object.freeze(xe);var Le=null,Ae="<\/script>",Ue=/(<\/|<)(s)(cript)/gi,rt={},Mt=0,mt=1,at=2,bt=3,dt=4,Rn=5,At=6,zt=7,qt=8,Ct=9,Fn=new Map,Zt=' style="',zi=":",tn=";",Vt=" ",Kt='="',xt='"',Jt='=""',hi=G("javascript:throw new Error('React form unexpectedly submitted.')"),Ot=">",Ws="/>",fs=!1,Hi=!1,Zr=!1,Kr=!1,Jr=!1,zo=!1,ds=!1,si=!1,Sa=!1,Ta=!1,ec=!1,Uc=`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,ul=/(<\/|<)(s)(tyle)/gi,Vs=`
|
|
184
|
-
`,Wi=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,tc=new Map,Vi=new Map,Nr="requestAnimationFrame(function(){$RT=performance.now()});",gs='<template id="',nc='"></template>',ps="<!--$-->",Xc='<!--$?--><template id="',Qn='"></template>',ic="<!--$!-->",Gs="<!--/$-->",hl="<template",Ea='"',Un=' data-dgst="',zr=' data-msg="',_t=' data-stck="',ms=' data-cstck="',fl="></template>",Us='<div hidden id="',Ln='">',hr="</div>",Xs='<svg aria-hidden="true" style="display:none" id="',Ra='">',Qr="</svg>",Ei='<math aria-hidden="true" style="display:none" id="',dl='">',Gi="</math>",zu='<table hidden id="',ka='">',rc="</table>",Yc='<table hidden><tbody id="',Zc='">',Ho="</tbody></table>",Pa='<table hidden><tr id="',Ma='">',Ui="</tr></table>",oc='<table hidden><colgroup id="',sc='">',Hu="</colgroup></table>",Wu='$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("',Kc='$RS("',Vu='","',Gu='")<\/script>',jn=`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
185
|
-
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`,Jc='$RC("',ac=`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
186
|
-
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
187
|
-
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`,lc='$RR("',Qc='","',Uu='",',jc='"',qc=")<\/script>",Ys='$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};',jr='$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("',Sh='$RX("',Aa='"',cc=",",wo=")<\/script>",gl=/[<\u2028\u2029]/g,Zs=/[&><\u2028\u2029]/g,uc=' media="not all" data-precedence="',Ks='" data-href="',Th='">',Eh="</style>",Co=!1,pl=!0,Hr=[],Js=' data-precedence="',_a='" data-href="',qr=" ",Xu='">',Rh="</style>",ml=' id="',p="[",y=",[",R=",",F="]",N=0,X=1,K=2,fe=3,ne=/[<>\r\n]/g,de=/["';,\r\n]/g,Ce="",Pe=Function.prototype.bind,Ze=Symbol.for("react.client.reference"),Ye={};Object.freeze(Ye);var Dt={},vt=null,Bt={},In={},xn=new Set,Ri=new Set,br=new Set,$r=new Set,yt=new Set,Xi=new Set,Xn=new Set,fr=new Set,vs=new Set,Dn={enqueueSetState:function(h,d,S){var _=h._reactInternals;_.queue===null?Or(h,"setState"):(_.queue.push(d),S!=null&&Bl(S))},enqueueReplaceState:function(h,d,S){h=h._reactInternals,h.replace=!0,h.queue=[d],S!=null&&Bl(S)},enqueueForceUpdate:function(h,d){h._reactInternals.queue===null?Or(h,"forceUpdate"):d!=null&&Bl(d)}},Oa={id:1,overflow:""},eo=Math.clz32?Math.clz32:ph,Yi=Math.log,So=Math.LN2,Zi=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Fa=null,vl=typeof Object.is=="function"?Object.is:Hl,dr=null,yl=null,Ki=null,La=null,Yu=null,kn=null,bl=!1,To=!1,$c=0,Ia=0,eu=-1,tu=0,xl=null,Qs=null,nu=0,Wo=!1,Da,Ba={readContext:ha,use:function(h){if(h!==null&&typeof h=="object"){if(typeof h.then=="function")return Fr(h);if(h.$$typeof===Lr)return ha(h)}throw Error("An unsupported type was passed to use(): "+String(h))},useContext:function(h){return Da="useContext",Ao(),h._currentValue2},useMemo:mh,useReducer:Ni,useRef:function(h){dr=Ao(),kn=Xt();var d=kn.memoizedState;return d===null?(h={current:h},Object.seal(h),kn.memoizedState=h):d},useState:function(h){return Da="useState",Ni(Oc,h)},useInsertionEffect:It,useLayoutEffect:It,useCallback:function(h,d){return mh(function(){return h},d)},useImperativeHandle:It,useEffect:It,useDebugValue:It,useDeferredValue:function(h,d){return Ao(),d!==void 0?d:h},useTransition:function(){return Ao(),[!1,Sn]},useId:function(){var h=yl.treeContext,d=h.overflow;h=h.id,h=(h&~(1<<32-eo(h)-1)).toString(32)+d;var S=kh;if(S===null)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");return d=$c++,h="_"+S.idPrefix+"R_"+h,0<d&&(h+="H"+d.toString(32)),h+"_"},useSyncExternalStore:function(h,d,S){if(S===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return S()},useOptimistic:function(h){return Ao(),[h,Lc]},useActionState:ja,useFormState:ja,useHostTransitionStatus:function(){return Ao(),Ch},useMemoCache:function(h){for(var d=Array(h),S=0;S<h;S++)d[S]=Hc;return d},useCacheRefresh:function(){return fa},useEffectEvent:function(){return Fc}},kh=null,to=null,Ph={getCacheForType:function(){throw Error("Not implemented.")},cacheSignal:function(){throw Error("Not implemented.")},getOwner:function(){return to===null?null:to.componentStack}},Wr=0,js,ys,iu,ru,ou,Na,Mh;vh.__reactDisabledLog=!0;var Zu,wl,Ah=!1,su=new(typeof WeakMap=="function"?WeakMap:Map),$h={react_stack_bottom_frame:function(h,d,S){return h(d,S)}},Ku=$h.react_stack_bottom_frame.bind($h),ef={react_stack_bottom_frame:function(h){return h.render()}},au=ef.react_stack_bottom_frame.bind(ef),Cl={react_stack_bottom_frame:function(h){var d=h._init;return d(h._payload)}},kf=Cl.react_stack_bottom_frame.bind(Cl),Pf=0;if(typeof performance=="object"&&typeof performance.now=="function")var Vo=performance,_h=function(){return Vo.now()};else{var Mf=Date;_h=function(){return Mf.now()}}var vi=4,bs=0,Ji=1,qs=2,no=3,nn=4,xr=5,xs=14,qn=null,hc={},lu={},Oh={},Sl={},za=!1,fc=!1,Eo=!1,Ha=0,dc=!1;tg.renderToStaticMarkup=function(h,d){return Bs(h,d,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},tg.renderToString=function(h,d){return Bs(h,d,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},tg.version="19.2.0"})()),tg}var zf={};/**
|
|
188
|
-
* @license React
|
|
189
|
-
* react-dom-server.browser.development.js
|
|
190
|
-
*
|
|
191
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the MIT license found in the
|
|
194
|
-
* LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/var Xw;function tI(){return Xw||(Xw=1,process.env.NODE_ENV!=="production"&&(function(){function n(c,f,C,A){return""+f+(C==="s"?"\\73 ":"\\53 ")+A}function e(c,f,C,A){return""+f+(C==="s"?"\\u0073":"\\u0053")+A}function t(c){return c===null||typeof c!="object"?null:(c=Bu&&c[Bu]||c["@@iterator"],typeof c=="function"?c:null)}function i(c){return c=Object.prototype.toString.call(c),c.slice(8,c.length-1)}function r(c){var f=JSON.stringify(c);return'"'+c+'"'===f?c:f}function o(c){switch(typeof c){case"string":return JSON.stringify(10>=c.length?c:c.slice(0,10)+"...");case"object":return No(c)?"[...]":c!==null&&c.$$typeof===us?"client":(c=i(c),c==="Object"?"{...}":c);case"function":return c.$$typeof===us?"client":(c=c.displayName||c.name)?"function "+c:"function";default:return String(c)}}function s(c){if(typeof c=="string")return c;switch(c){case Ns:return"Suspense";case ya:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case Yt:return s(c.render);case ba:return s(c.type);case zs:var f=c._payload;c=c._init;try{return s(c(f))}catch{}}return""}function a(c,f){var C=i(c);if(C!=="Object"&&C!=="Array")return C;var A=-1,D=0;if(No(c))if(Si.has(c)){var V=Si.get(c);C="<"+s(V)+">";for(var Q=0;Q<c.length;Q++){var ie=c[Q];ie=typeof ie=="string"?ie:typeof ie=="object"&&ie!==null?"{"+a(ie)+"}":"{"+o(ie)+"}",""+Q===f?(A=C.length,D=ie.length,C+=ie):C=15>ie.length&&40>C.length+ie.length?C+ie:C+"{...}"}C+="</"+s(V)+">"}else{for(C="[",V=0;V<c.length;V++)0<V&&(C+=", "),Q=c[V],Q=typeof Q=="object"&&Q!==null?a(Q):o(Q),""+V===f?(A=C.length,D=Q.length,C+=Q):C=10>Q.length&&40>C.length+Q.length?C+Q:C+"...";C+="]"}else if(c.$$typeof===Wc)C="<"+s(c.type)+"/>";else{if(c.$$typeof===us)return"client";if($l.has(c)){for(C=$l.get(c),C="<"+(s(C)||"..."),V=Object.keys(c),Q=0;Q<V.length;Q++){C+=" ",ie=V[Q],C+=r(ie)+"=";var ke=c[ie],ce=ie===f&&typeof ke=="object"&&ke!==null?a(ke):o(ke);typeof ke!="string"&&(ce="{"+ce+"}"),ie===f?(A=C.length,D=ce.length,C+=ce):C=10>ce.length&&40>C.length+ce.length?C+ce:C+"..."}C+=">"}else{for(C="{",V=Object.keys(c),Q=0;Q<V.length;Q++)0<Q&&(C+=", "),ie=V[Q],C+=r(ie)+": ",ke=c[ie],ke=typeof ke=="object"&&ke!==null?a(ke):o(ke),ie===f?(A=C.length,D=ke.length,C+=ke):C=10>ke.length&&40>C.length+ke.length?C+ke:C+"...";C+="}"}}return f===void 0?C:-1<A&&0<D?(c=" ".repeat(A)+"^".repeat(D),`
|
|
196
|
-
`+C+`
|
|
197
|
-
`+c):`
|
|
198
|
-
`+C}function l(c,f){var C=c.length&3,A=c.length-C,D=f;for(f=0;f<A;){var V=c.charCodeAt(f)&255|(c.charCodeAt(++f)&255)<<8|(c.charCodeAt(++f)&255)<<16|(c.charCodeAt(++f)&255)<<24;++f,V=3432918353*(V&65535)+((3432918353*(V>>>16)&65535)<<16)&4294967295,V=V<<15|V>>>17,V=461845907*(V&65535)+((461845907*(V>>>16)&65535)<<16)&4294967295,D^=V,D=D<<13|D>>>19,D=5*(D&65535)+((5*(D>>>16)&65535)<<16)&4294967295,D=(D&65535)+27492+(((D>>>16)+58964&65535)<<16)}switch(V=0,C){case 3:V^=(c.charCodeAt(f+2)&255)<<16;case 2:V^=(c.charCodeAt(f+1)&255)<<8;case 1:V^=c.charCodeAt(f)&255,V=3432918353*(V&65535)+((3432918353*(V>>>16)&65535)<<16)&4294967295,V=V<<15|V>>>17,D^=461845907*(V&65535)+((461845907*(V>>>16)&65535)<<16)&4294967295}return D^=c.length,D^=D>>>16,D=2246822507*(D&65535)+((2246822507*(D>>>16)&65535)<<16)&4294967295,D^=D>>>13,D=3266489909*(D&65535)+((3266489909*(D>>>16)&65535)<<16)&4294967295,(D^D>>>16)>>>0}function u(c){xa.push(c),wh.port2.postMessage(null)}function g(c){setTimeout(function(){throw c})}function m(c,f){if(f.byteLength!==0)if(2048<f.byteLength)0<mi&&(c.enqueue(new Uint8Array(Ti.buffer,0,mi)),Ti=new Uint8Array(2048),mi=0),c.enqueue(f);else{var C=Ti.length-mi;C<f.byteLength&&(C===0?c.enqueue(Ti):(Ti.set(f.subarray(0,C),mi),c.enqueue(Ti),f=f.subarray(C)),Ti=new Uint8Array(2048),mi=0),Ti.set(f,mi),mi+=f.byteLength}}function b(c,f){return m(c,f),!0}function w(c){Ti&&0<mi&&(c.enqueue(new Uint8Array(Ti.buffer,0,mi)),Ti=null,mi=0)}function E(c){return Hs.encode(c)}function T(c){return c=Hs.encode(c),2048<c.byteLength&&console.error("precomputed chunks must be smaller than the view size configured for this host. This is a bug in React."),c}function P(c){return c.byteLength}function M(c,f){typeof c.error=="function"?c.error(f):c.close()}function I(c){return typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object"}function L(c){try{return H(c),!1}catch{return!0}}function H(c){return""+c}function W(c,f){if(L(c))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",f,I(c)),H(c)}function G(c,f){if(L(c))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",f,I(c)),H(c)}function J(c){if(L(c))return console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",I(c)),H(c)}function Y(c){return on.call(Gc,c)?!0:on.call(ll,c)?!1:Ca.test(c)?Gc[c]=!0:(ll[c]=!0,console.error("Invalid attribute name: `%s`",c),!1)}function $(c,f){qh[f.type]||f.onChange||f.onInput||f.readOnly||f.disabled||f.value==null||console.error(c==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),f.onChange||f.readOnly||f.disabled||f.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function re(c,f){if(on.call(hs,f)&&hs[f])return!0;if(v.test(f)){if(c="aria-"+f.slice(4).toLowerCase(),c=On.hasOwnProperty(c)?c:null,c==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",f),hs[f]=!0;if(f!==c)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",f,c),hs[f]=!0}if(Ch.test(f)){if(c=f.toLowerCase(),c=On.hasOwnProperty(c)?c:null,c==null)return hs[f]=!0,!1;f!==c&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",f,c),hs[f]=!0)}return!0}function be(c,f){var C=[],A;for(A in f)re(c,A)||C.push(A);f=C.map(function(D){return"`"+D+"`"}).join(", "),C.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",f,c):1<C.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",f,c)}function we(c,f,C,A){if(on.call(O,f)&&O[f])return!0;var D=f.toLowerCase();if(D==="onfocusin"||D==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),O[f]=!0;if(typeof C=="function"&&(c==="form"&&f==="action"||c==="input"&&f==="formAction"||c==="button"&&f==="formAction"))return!0;if(z.test(f))return Z.test(f)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",f),O[f]=!0;if(j.test(f)||Se.test(f))return!0;if(D==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),O[f]=!0;if(D==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),O[f]=!0;if(D==="is"&&C!==null&&C!==void 0&&typeof C!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof C),O[f]=!0;if(typeof C=="number"&&isNaN(C))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",f),O[f]=!0;if(k.hasOwnProperty(D)){if(D=k[D],D!==f)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",f,D),O[f]=!0}else if(f!==D)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",f,D),O[f]=!0;switch(f){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof C){case"boolean":switch(f){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return D=f.toLowerCase().slice(0,5),D==="data-"||D==="aria-"?!0:(C?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',C,f,f,C,f):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',C,f,f,C,f,f,f),O[f]=!0)}case"function":case"symbol":return O[f]=!0,!1;case"string":if(C==="false"||C==="true"){switch(f){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",C,f,C==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',f,C),O[f]=!0}}return!0}function Ee(c,f,C){var A=[],D;for(D in f)we(c,D,f[D])||A.push(D);f=A.map(function(V){return"`"+V+"`"}).join(", "),A.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",f,c):1<A.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",f,c)}function pe(c){return c.replace(Le,function(f,C){return C.toUpperCase()})}function me(c){if(typeof c=="boolean"||typeof c=="number"||typeof c=="bigint")return""+c;J(c),c=""+c;var f=at.exec(c);if(f){var C="",A,D=0;for(A=f.index;A<c.length;A++){switch(c.charCodeAt(A)){case 34:f=""";break;case 38:f="&";break;case 39:f="'";break;case 60:f="<";break;case 62:f=">";break;default:continue}D!==A&&(C+=c.slice(D,A)),D=A+1,C+=f}c=D!==A?C+c.slice(D,A):C}return c}function ee(c){return Rn.test(""+c)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":c}function q(c){return J(c),(""+c).replace(Sa,e)}function le(c,f,C,A,D,V){C=typeof f=="string"?f:f&&f.script;var Q=C===void 0?Ws:T('<script nonce="'+me(C)+'"'),ie=typeof f=="string"?void 0:f&&f.style,ke=ie===void 0?si:T('<style nonce="'+me(ie)+'"'),ce=c.idPrefix,ye=[],Be=c.bootstrapScriptContent,He=c.bootstrapScripts,ze=c.bootstrapModules;if(Be!==void 0&&(ye.push(Q),Yr(ye,c),ye.push(Ln,E(q(Be)),fs)),Be=[],A!==void 0&&(Be.push(Ta),Be.push(E(q(JSON.stringify(A)))),Be.push(ec)),D&&typeof V=="number"&&0>=V&&console.error("React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.",V===0?"zero":V),A=D?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+(typeof V=="number"?V:2e3)}:null,D={placeholderPrefix:T(ce+"P:"),segmentPrefix:T(ce+"S:"),boundaryPrefix:T(ce+"B:"),startInlineScript:Q,startInlineStyle:ke,preamble:he(),externalRuntimeScript:null,bootstrapChunks:ye,importMapChunks:Be,onHeaders:D,headers:A,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:C,style:ie},hoistableState:null,stylesToHoist:!1},He!==void 0)for(A=0;A<He.length;A++)V=He[A],ke=ie=void 0,ce={rel:"preload",as:"script",fetchPriority:"low",nonce:f},typeof V=="string"?ce.href=Q=V:(ce.href=Q=V.src,ce.integrity=ke=typeof V.integrity=="string"?V.integrity:void 0,ce.crossOrigin=ie=typeof V=="string"||V.crossOrigin==null?void 0:V.crossOrigin==="use-credentials"?"use-credentials":""),Hn(c,D,Q,ce),ye.push(Hi,E(me(Q)),_t),C&&ye.push(Kr,E(me(C)),_t),typeof ke=="string"&&ye.push(Jr,E(me(ke)),_t),typeof ie=="string"&&ye.push(zo,E(me(ie)),_t),Yr(ye,c),ye.push(ds);if(ze!==void 0)for(f=0;f<ze.length;f++)He=ze[f],Q=V=void 0,ie={rel:"modulepreload",fetchPriority:"low",nonce:C},typeof He=="string"?ie.href=A=He:(ie.href=A=He.src,ie.integrity=Q=typeof He.integrity=="string"?He.integrity:void 0,ie.crossOrigin=V=typeof He=="string"||He.crossOrigin==null?void 0:He.crossOrigin==="use-credentials"?"use-credentials":""),Hn(c,D,A,ie),ye.push(Zr,E(me(A)),_t),C&&ye.push(Kr,E(me(C)),_t),typeof Q=="string"&&ye.push(Jr,E(me(Q)),_t),typeof V=="string"&&ye.push(zo,E(me(V)),_t),Yr(ye,c),ye.push(ds);return D}function Te(c,f,C,A,D){return{idPrefix:c===void 0?"":c,nextFormID:0,streamingFormat:0,bootstrapScriptContent:C,bootstrapScripts:A,bootstrapModules:D,instructions:Fn,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function he(){return{htmlChunks:null,headChunks:null,bodyChunks:null}}function ue(c,f,C,A){return{insertionMode:c,selectedValue:f,tagScope:C,viewTransition:A}}function Ne(c){return ue(c==="http://www.w3.org/2000/svg"?Vi:c==="http://www.w3.org/1998/Math/MathML"?Nr:ul,null,0,null)}function We(c,f,C){var A=c.tagScope&-25;switch(f){case"noscript":return ue(Wi,null,A|1,null);case"select":return ue(Wi,C.value!=null?C.value:C.defaultValue,A,null);case"svg":return ue(Vi,null,A,null);case"picture":return ue(Wi,null,A|2,null);case"math":return ue(Nr,null,A,null);case"foreignObject":return ue(Wi,null,A,null);case"table":return ue(gs,null,A,null);case"thead":case"tbody":case"tfoot":return ue(nc,null,A,null);case"colgroup":return ue(Xc,null,A,null);case"tr":return ue(ps,null,A,null);case"head":if(c.insertionMode<Wi)return ue(tc,null,A,null);break;case"html":if(c.insertionMode===ul)return ue(Vs,null,A,null)}return c.insertionMode>=gs||c.insertionMode<Wi?ue(Wi,null,A,null):c.tagScope!==A?ue(c.insertionMode,c.selectedValue,A,null):c}function Qe(c){return c===null?null:{update:c.update,enter:"none",exit:"none",share:c.update,name:c.autoName,autoName:c.autoName,nameIdx:0}}function _e(c,f){return f.tagScope&32&&(c.instructions|=128),ue(f.insertionMode,f.selectedValue,f.tagScope|12,Qe(f.viewTransition))}function Ve(c,f){c=Qe(f.viewTransition);var C=f.tagScope|16;return c!==null&&c.share!=="none"&&(C|=64),ue(f.insertionMode,f.selectedValue,C,c)}function Oe(c,f,C,A){return f===""?A:(A&&c.push(Qn),c.push(E(me(f))),!0)}function qe(c,f){if(typeof f!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var C=!0,A;for(A in f)if(on.call(f,A)){var D=f[A];if(D!=null&&typeof D!="boolean"&&D!==""){if(A.indexOf("--")===0){var V=E(me(A));G(D,A),D=E(me((""+D).trim()))}else{V=A;var Q=D;if(-1<V.indexOf("-")){var ie=V;Ue.hasOwnProperty(ie)&&Ue[ie]||(Ue[ie]=!0,console.error("Unsupported style property %s. Did you mean %s?",ie,pe(ie.replace(xe,"ms-"))))}else if(oe.test(V))ie=V,Ue.hasOwnProperty(ie)&&Ue[ie]||(Ue[ie]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",ie,ie.charAt(0).toUpperCase()+ie.slice(1)));else if(Ae.test(Q)){ie=V;var ke=Q;rt.hasOwnProperty(ke)&&rt[ke]||(rt[ke]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,ie,ke.replace(Ae,"")))}typeof Q=="number"&&(isNaN(Q)?Mt||(Mt=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",V)):isFinite(Q)||mt||(mt=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",V))),V=A,Q=ic.get(V),Q!==void 0||(Q=T(me(V.replace(bt,"-$1").toLowerCase().replace(dt,"-ms-"))),ic.set(V,Q)),V=Q,typeof D=="number"?D=D===0||cl.has(A)?E(""+D):E(D+"px"):(G(D,A),D=E(me((""+D).trim())))}C?(C=!1,c.push(Gs,V,hl,D)):c.push(Ea,V,hl,D)}}C||c.push(_t)}function je(c,f,C){C&&typeof C!="function"&&typeof C!="symbol"&&c.push(Un,E(f),ms)}function it(c,f,C){typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&c.push(Un,E(f),zr,E(me(C)),_t)}function ct(c,f){this.push(Us),li(c),it(this,"name",f),it(this,"value",c),this.push(hr)}function li(c){if(typeof c!="string")throw Error("File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration.")}function tt(c,f){if(typeof f.$$FORM_ACTION=="function"){var C=c.nextFormID++;c=c.idPrefix+C;try{var A=f.$$FORM_ACTION(c);if(A){var D=A.data;D?.forEach(li)}return A}catch(V){if(typeof V=="object"&&V!==null&&typeof V.then=="function")throw V;console.error(`Failed to serialize an action for progressive enhancement:
|
|
199
|
-
%s`,V)}}return null}function Nt(c,f,C,A,D,V,Q,ie){var ke=null;if(typeof A=="function"){ie===null||rc||(rc=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),D===null&&V===null||Zc||(Zc=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),Q===null||Yc||(Yc=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."));var ce=tt(f,A);ce!==null?(ie=ce.name,A=ce.action||"",D=ce.encType,V=ce.method,Q=ce.target,ke=ce.data):(c.push(Un,E("formAction"),zr,fl,_t),Q=V=D=A=ie=null,Yn(f,C))}return ie!=null&&Pt(c,"name",ie),A!=null&&Pt(c,"formAction",A),D!=null&&Pt(c,"formEncType",D),V!=null&&Pt(c,"formMethod",V),Q!=null&&Pt(c,"formTarget",Q),ke}function Pt(c,f,C){switch(f){case"className":it(c,"class",C);break;case"tabIndex":it(c,"tabindex",C);break;case"dir":case"role":case"viewBox":case"width":case"height":it(c,f,C);break;case"style":qe(c,C);break;case"src":case"href":if(C===""){console.error(f==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',f,f);break}case"action":case"formAction":if(C==null||typeof C=="function"||typeof C=="symbol"||typeof C=="boolean")break;W(C,f),C=ee(""+C),c.push(Un,E(f),zr,E(me(C)),_t);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":je(c,f.toLowerCase(),C);break;case"xlinkHref":if(typeof C=="function"||typeof C=="symbol"||typeof C=="boolean")break;W(C,f),C=ee(""+C),c.push(Un,E("xlink:href"),zr,E(me(C)),_t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof C!="function"&&typeof C!="symbol"&&c.push(Un,E(f),zr,E(me(C)),_t);break;case"inert":C!==""||Uc[f]||(Uc[f]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",f));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":C&&typeof C!="function"&&typeof C!="symbol"&&c.push(Un,E(f),ms);break;case"capture":case"download":C===!0?c.push(Un,E(f),ms):C!==!1&&typeof C!="function"&&typeof C!="symbol"&&c.push(Un,E(f),zr,E(me(C)),_t);break;case"cols":case"rows":case"size":case"span":typeof C!="function"&&typeof C!="symbol"&&!isNaN(C)&&1<=C&&c.push(Un,E(f),zr,E(me(C)),_t);break;case"rowSpan":case"start":typeof C=="function"||typeof C=="symbol"||isNaN(C)||c.push(Un,E(f),zr,E(me(C)),_t);break;case"xlinkActuate":it(c,"xlink:actuate",C);break;case"xlinkArcrole":it(c,"xlink:arcrole",C);break;case"xlinkRole":it(c,"xlink:role",C);break;case"xlinkShow":it(c,"xlink:show",C);break;case"xlinkTitle":it(c,"xlink:title",C);break;case"xlinkType":it(c,"xlink:type",C);break;case"xmlBase":it(c,"xml:base",C);break;case"xmlLang":it(c,"xml:lang",C);break;case"xmlSpace":it(c,"xml:space",C);break;default:if((!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=Nu.get(f)||f,Y(f))){switch(typeof C){case"function":case"symbol":return;case"boolean":var A=f.toLowerCase().slice(0,5);if(A!=="data-"&&A!=="aria-")return}c.push(Un,E(f),zr,E(me(C)),_t)}}}function pn(c,f,C){if(f!=null){if(C!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof f!="object"||!("__html"in f))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");f=f.__html,f!=null&&(J(f),c.push(E(""+f)))}}function ks(c,f){var C=c[f];C!=null&&(C=No(C),c.multiple&&!C?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.",f):!c.multiple&&C&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",f))}function Xr(c){var f="";return zc.Children.forEach(c,function(C){C!=null&&(f+=C,dl||typeof C=="string"||typeof C=="number"||typeof C=="bigint"||(dl=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),f}function Yn(c,f){if((c.instructions&16)===Fn){c.instructions|=16;var C=f.preamble,A=f.bootstrapChunks;(C.htmlChunks||C.headChunks)&&A.length===0?(A.push(f.startInlineScript),Yr(A,c),A.push(Ln,Pa,fs)):A.unshift(f.startInlineScript,Ln,Pa,fs)}}function xi(c,f){c.push(mn("link"));for(var C in f)if(on.call(f,C)){var A=f[C];if(A!=null)switch(C){case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Pt(c,C,A)}}return c.push(hr),null}function pt(c){return J(c),(""+c).replace(oc,n)}function gt(c,f,C){c.push(mn(C));for(var A in f)if(on.call(f,A)){var D=f[A];if(D!=null)switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(C+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Pt(c,A,D)}}return c.push(hr),null}function or(c,f){c.push(mn("title"));var C=null,A=null,D;for(D in f)if(on.call(f,D)){var V=f[D];if(V!=null)switch(D){case"children":C=V;break;case"dangerouslySetInnerHTML":A=V;break;default:Pt(c,D,V)}}return c.push(Ln),f=Array.isArray(C)?2>C.length?C[0]:null:C,typeof f!="function"&&typeof f!="symbol"&&f!==null&&f!==void 0&&c.push(E(me(""+f))),pn(c,A,C),c.push(Gn("title")),null}function Ac(c,f){c.push(mn("script"));var C=null,A=null,D;for(D in f)if(on.call(f,D)){var V=f[D];if(V!=null)switch(D){case"children":C=V;break;case"dangerouslySetInnerHTML":A=V;break;default:Pt(c,D,V)}}return c.push(Ln),C!=null&&typeof C!="string"&&(f=typeof C=="number"?"a number for children":Array.isArray(C)?"an array for children":"something unexpected for children",console.error("A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.",f)),pn(c,A,C),typeof C=="string"&&c.push(E(q(C))),c.push(Gn("script")),null}function Gt(c,f,C){c.push(mn(C));var A=C=null,D;for(D in f)if(on.call(f,D)){var V=f[D];if(V!=null)switch(D){case"children":C=V;break;case"dangerouslySetInnerHTML":A=V;break;default:Pt(c,D,V)}}return c.push(Ln),pn(c,A,C),C}function Bi(c,f,C){c.push(mn(C));var A=C=null,D;for(D in f)if(on.call(f,D)){var V=f[D];if(V!=null)switch(D){case"children":C=V;break;case"dangerouslySetInnerHTML":A=V;break;default:Pt(c,D,V)}}return c.push(Ln),pn(c,A,C),typeof C=="string"?(c.push(E(me(C))),null):C}function mn(c){var f=Gu.get(c);if(f===void 0){if(!Vu.test(c))throw Error("Invalid tag: "+c);f=T("<"+c),Gu.set(c,f)}return f}function fh(c,f,C,A,D,V,Q,ie,ke){be(f,C),f!=="input"&&f!=="textarea"&&f!=="select"||C==null||C.value!==null||x||(x=!0,f==="select"&&C.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",f):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",f));e:if(f.indexOf("-")===-1)var ce=!1;else switch(f){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":ce=!1;break e;default:ce=!0}switch(ce||typeof C.is=="string"||Ee(f,C),!C.suppressContentEditableWarning&&C.contentEditable&&C.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),ie.insertionMode!==Vi&&ie.insertionMode!==Nr&&f.indexOf("-")===-1&&f.toLowerCase()!==f&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",f),f){case"div":case"span":case"svg":case"path":break;case"a":c.push(mn("a"));var ye=null,Be=null,He;for(He in C)if(on.call(C,He)){var ze=C[He];if(ze!=null)switch(He){case"children":ye=ze;break;case"dangerouslySetInnerHTML":Be=ze;break;case"href":ze===""?it(c,"href",""):Pt(c,He,ze);break;default:Pt(c,He,ze)}}if(c.push(Ln),pn(c,Be,ye),typeof ye=="string"){c.push(E(me(ye)));var Ie=null}else Ie=ye;return Ie;case"g":case"p":case"li":break;case"select":$("select",C),ks(C,"value"),ks(C,"defaultValue"),C.value===void 0||C.defaultValue===void 0||Qr||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),Qr=!0),c.push(mn("select"));var ut=null,fn=null,st;for(st in C)if(on.call(C,st)){var Lt=C[st];if(Lt!=null)switch(st){case"children":ut=Lt;break;case"dangerouslySetInnerHTML":fn=Lt;break;case"defaultValue":case"value":break;default:Pt(c,st,Lt)}}return c.push(Ln),pn(c,fn,ut),ut;case"option":var Wn=ie.selectedValue;c.push(mn("option"));var $n=null,jt=null,ot=null,ei=null,ji;for(ji in C)if(on.call(C,ji)){var dn=C[ji];if(dn!=null)switch(ji){case"children":$n=dn;break;case"selected":ot=dn,zu||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),zu=!0);break;case"dangerouslySetInnerHTML":ei=dn;break;case"value":jt=dn;default:Pt(c,ji,dn)}}if(Wn!=null){if(jt!==null){W(jt,"value");var Mn=""+jt}else ei===null||Gi||(Gi=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")),Mn=Xr($n);if(No(Wn)){for(var Sr=0;Sr<Wn.length;Sr++)if(W(Wn[Sr],"value"),""+Wn[Sr]===Mn){c.push(Ho);break}}else W(Wn,"select.value"),""+Wn===Mn&&c.push(Ho)}else ot&&c.push(Ho);return c.push(Ln),pn(c,ei,$n),$n;case"textarea":$("textarea",C),C.value===void 0||C.defaultValue===void 0||Ei||(console.error("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components"),Ei=!0),c.push(mn("textarea"));var Ai=null,di=null,An=null,ai;for(ai in C)if(on.call(C,ai)){var Tr=C[ai];if(Tr!=null)switch(ai){case"children":An=Tr;break;case"value":Ai=Tr;break;case"defaultValue":di=Tr;break;case"dangerouslySetInnerHTML":throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Pt(c,ai,Tr)}}if(Ai===null&&di!==null&&(Ai=di),c.push(Ln),An!=null){if(console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),Ai!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(No(An)){if(1<An.length)throw Error("<textarea> can only have at most one child.");J(An[0]),Ai=""+An[0]}J(An),Ai=""+An}return typeof Ai=="string"&&Ai[0]===`
|
|
200
|
-
`&&c.push(Kc),Ai!==null&&(W(Ai,"value"),c.push(E(me(""+Ai)))),null;case"input":$("input",C),c.push(mn("input"));var Vr=null,gi=null,Nn=null,qi=null,Er=null,$i=null,ws=null,Rr=null,ti=null,io;for(io in C)if(on.call(C,io)){var bi=C[io];if(bi!=null)switch(io){case"children":case"dangerouslySetInnerHTML":throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"name":Vr=bi;break;case"formAction":gi=bi;break;case"formEncType":Nn=bi;break;case"formMethod":qi=bi;break;case"formTarget":Er=bi;break;case"defaultChecked":ti=bi;break;case"defaultValue":ws=bi;break;case"checked":Rr=bi;break;case"value":$i=bi;break;default:Pt(c,io,bi)}}gi===null||C.type==="image"||C.type==="submit"||ka||(ka=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".'));var Ju=Nt(c,A,D,gi,Nn,qi,Er,Vr);return Rr===null||ti===null||Ra||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",C.type),Ra=!0),$i===null||ws===null||Xs||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",C.type),Xs=!0),Rr!==null?je(c,"checked",Rr):ti!==null&&je(c,"checked",ti),$i!==null?Pt(c,"value",$i):ws!==null&&Pt(c,"value",ws),c.push(hr),Ju?.forEach(ct,c),null;case"button":c.push(mn("button"));var Zo=null,Vn=null,ro=null,er=null,gc=null,El=null,Ro=null,Rl;for(Rl in C)if(on.call(C,Rl)){var kr=C[Rl];if(kr!=null)switch(Rl){case"children":Zo=kr;break;case"dangerouslySetInnerHTML":Vn=kr;break;case"name":ro=kr;break;case"formAction":er=kr;break;case"formEncType":gc=kr;break;case"formMethod":El=kr;break;case"formTarget":Ro=kr;break;default:Pt(c,Rl,kr)}}er===null||C.type==null||C.type==="submit"||ka||(ka=!0,console.error('A button can only specify a formAction along with type="submit" or no type.'));var pc=Nt(c,A,D,er,gc,El,Ro,ro);if(c.push(Ln),pc?.forEach(ct,c),pn(c,Vn,Zo),typeof Zo=="string"){c.push(E(me(Zo)));var Qu=null}else Qu=Zo;return Qu;case"form":c.push(mn("form"));var oo=null,mc=null,tr=null,kl=null,Wa=null,$s=null,so;for(so in C)if(on.call(C,so)){var ao=C[so];if(ao!=null)switch(so){case"children":oo=ao;break;case"dangerouslySetInnerHTML":mc=ao;break;case"action":tr=ao;break;case"encType":kl=ao;break;case"method":Wa=ao;break;case"target":$s=ao;break;default:Pt(c,so,ao)}}var Ko=null,Pr=null;if(typeof tr=="function"){kl===null&&Wa===null||Zc||(Zc=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),$s===null||Yc||(Yc=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."));var _i=tt(A,tr);_i!==null?(tr=_i.action||"",kl=_i.encType,Wa=_i.method,$s=_i.target,Ko=_i.data,Pr=_i.name):(c.push(Un,E("action"),zr,fl,_t),$s=Wa=kl=tr=null,Yn(A,D))}if(tr!=null&&Pt(c,"action",tr),kl!=null&&Pt(c,"encType",kl),Wa!=null&&Pt(c,"method",Wa),$s!=null&&Pt(c,"target",$s),c.push(Ln),Pr!==null&&(c.push(Us),it(c,"name",Pr),c.push(hr),Ko?.forEach(ct,c)),pn(c,mc,oo),typeof oo=="string"){c.push(E(me(oo)));var ea=null}else ea=oo;return ea;case"menuitem":c.push(mn("menuitem"));for(var Jo in C)if(on.call(C,Jo)){var Va=C[Jo];if(Va!=null)switch(Jo){case"children":case"dangerouslySetInnerHTML":throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Pt(c,Jo,Va)}}return c.push(Ln),null;case"object":c.push(mn("object"));var Cs=null,Fh=null,pr;for(pr in C)if(on.call(C,pr)){var ko=C[pr];if(ko!=null)switch(pr){case"children":Cs=ko;break;case"dangerouslySetInnerHTML":Fh=ko;break;case"data":W(ko,"data");var vc=ee(""+ko);if(vc===""){console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',pr,pr);break}c.push(Un,E("data"),zr,E(me(vc)),_t);break;default:Pt(c,pr,ko)}}if(c.push(Ln),pn(c,Fh,Cs),typeof Cs=="string"){c.push(E(me(Cs)));var cu=null}else cu=Cs;return cu;case"title":var uu=ie.tagScope&1,ad=ie.tagScope&4;if(on.call(C,"children")){var Ga=C.children,Pl=Array.isArray(Ga)?2>Ga.length?Ga[0]:null:Ga;Array.isArray(Ga)&&1<Ga.length?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",Ga.length):typeof Pl=="function"||typeof Pl=="symbol"?console.error("React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.",typeof Pl=="function"?"a Function":"a Sybmol"):Pl&&Pl.toString==={}.toString&&(Pl.$$typeof!=null?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."):console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."))}if(ie.insertionMode===Vi||uu||C.itemProp!=null)var Ua=or(c,C);else ad?Ua=null:(or(D.hoistableChunks,C),Ua=void 0);return Ua;case"link":var hu=ie.tagScope&1,Af=ie.tagScope&4,tf=C.rel,mr=C.href,Qo=C.precedence;if(ie.insertionMode===Vi||hu||C.itemProp!=null||typeof tf!="string"||typeof mr!="string"||mr===""){tf==="stylesheet"&&typeof C.precedence=="string"&&(typeof mr=="string"&&mr||console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.',mr===null?"`null`":mr===void 0?"`undefined`":mr===""?"an empty string":'something with type "'+typeof mr+'"')),xi(c,C);var Xa=null}else if(C.rel==="stylesheet")if(typeof Qo!="string"||C.disabled!=null||C.onLoad||C.onError){if(typeof Qo=="string"){if(C.disabled!=null)console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.');else if(C.onLoad||C.onError){var ju=C.onLoad&&C.onError?"`onLoad` and `onError` props":C.onLoad?"`onLoad` prop":"`onError` prop";console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',ju,ju)}}Xa=xi(c,C)}else{var lo=D.styles.get(Qo),ni=A.styleResources.hasOwnProperty(mr)?A.styleResources[mr]:void 0;if(ni!==Jt){A.styleResources[mr]=Jt,lo||(lo={precedence:E(me(Qo)),rules:[],hrefs:[],sheets:new Map},D.styles.set(Qo,lo));var zn={state:Qs,props:bn({},C,{"data-precedence":C.precedence,precedence:null})};if(ni){ni.length===2&&Ms(zn.props,ni);var wn=D.preloads.stylesheets.get(mr);wn&&0<wn.length?wn.length=0:zn.state=nu}lo.sheets.set(mr,zn),Q&&Q.stylesheets.add(zn)}else if(lo){var nf=lo.sheets.get(mr);nf&&Q&&Q.stylesheets.add(nf)}ke&&c.push(Qn),Xa=null}else C.onLoad||C.onError?Xa=xi(c,C):(ke&&c.push(Qn),Xa=Af?null:xi(D.hoistableChunks,C));return Xa;case"script":var Ml=ie.tagScope&1,qu=C.async;if(typeof C.src!="string"||!C.src||!qu||typeof qu=="function"||typeof qu=="symbol"||C.onLoad||C.onError||ie.insertionMode===Vi||Ml||C.itemProp!=null)var Al=Ac(c,C);else{var yc=C.src;if(C.type==="module")var $u=A.moduleScriptResources,bc=D.preloads.moduleScripts;else $u=A.scriptResources,bc=D.preloads.scripts;var fu=$u.hasOwnProperty(yc)?$u[yc]:void 0;if(fu!==Jt){$u[yc]=Jt;var du=C;if(fu){fu.length===2&&(du=bn({},C),Ms(du,fu));var Lh=bc.get(yc);Lh&&(Lh.length=0)}var rf=[];D.scripts.add(rf),Ac(rf,du)}ke&&c.push(Qn),Al=null}return Al;case"style":var _f=ie.tagScope&1;if(on.call(C,"children")){var eh=C.children,th=Array.isArray(eh)?2>eh.length?eh[0]:null:eh;(typeof th=="function"||typeof th=="symbol"||Array.isArray(th))&&console.error("React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.",typeof th=="function"?"a Function":typeof th=="symbol"?"a Sybmol":"an Array")}var xc=C.precedence,Ya=C.href,ta=C.nonce;if(ie.insertionMode===Vi||_f||C.itemProp!=null||typeof xc!="string"||typeof Ya!="string"||Ya===""){c.push(mn("style"));var Mr=null,gu=null,Of;for(Of in C)if(on.call(C,Of)){var ld=C[Of];if(ld!=null)switch(Of){case"children":Mr=ld;break;case"dangerouslySetInnerHTML":gu=ld;break;default:Pt(c,Of,ld)}}c.push(Ln);var of=Array.isArray(Mr)?2>Mr.length?Mr[0]:null:Mr;typeof of!="function"&&typeof of!="symbol"&&of!==null&&of!==void 0&&c.push(E(pt(of))),pn(c,gu,Mr),c.push(Gn("style"));var Qg=null}else{Ya.includes(" ")&&console.error('React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is "%s".',Ya);var Ih=D.styles.get(xc),jg=A.styleResources.hasOwnProperty(Ya)?A.styleResources[Ya]:void 0;if(jg!==Jt){A.styleResources[Ya]=Jt,jg&&console.error('React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.',Ya),Ih||(Ih={precedence:E(me(xc)),rules:[],hrefs:[],sheets:new Map},D.styles.set(xc,Ih));var Ff=D.nonce.style;if(Ff&&Ff!==ta)console.error('React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include rules if the nonce matches the style nonce "%s" that was included with this render.',xc,ta,Ff);else{!Ff&&ta&&console.error('React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include a nonce attributes if you also provide the same style nonce value as a render option.',xc,ta),Ih.hrefs.push(E(me(Ya)));var cd=Ih.rules,ud=null,G0=null,qg;for(qg in C)if(on.call(C,qg)){var Bm=C[qg];if(Bm!=null)switch(qg){case"children":ud=Bm;break;case"dangerouslySetInnerHTML":G0=Bm}}var Yd=Array.isArray(ud)?2>ud.length?ud[0]:null:ud;typeof Yd!="function"&&typeof Yd!="symbol"&&Yd!==null&&Yd!==void 0&&cd.push(E(pt(Yd))),pn(cd,G0,ud)}}Ih&&Q&&Q.styles.add(Ih),ke&&c.push(Qn),Qg=void 0}return Qg;case"meta":var uR=ie.tagScope&1,hR=ie.tagScope&4;if(ie.insertionMode===Vi||uR||C.itemProp!=null)var U0=gt(c,C,"meta");else ke&&c.push(Qn),U0=hR?null:typeof C.charSet=="string"?gt(D.charsetChunks,C,"meta"):C.name==="viewport"?gt(D.viewportChunks,C,"meta"):gt(D.hoistableChunks,C,"meta");return U0;case"listing":case"pre":c.push(mn(f));var Zd=null,Kd=null,Jd;for(Jd in C)if(on.call(C,Jd)){var $g=C[Jd];if($g!=null)switch(Jd){case"children":Zd=$g;break;case"dangerouslySetInnerHTML":Kd=$g;break;default:Pt(c,Jd,$g)}}if(c.push(Ln),Kd!=null){if(Zd!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof Kd!="object"||!("__html"in Kd))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");var sf=Kd.__html;sf!=null&&(typeof sf=="string"&&0<sf.length&&sf[0]===`
|
|
201
|
-
`?c.push(Kc,E(sf)):(J(sf),c.push(E(""+sf))))}return typeof Zd=="string"&&Zd[0]===`
|
|
202
|
-
`&&c.push(Kc),Zd;case"img":var fR=ie.tagScope&3,Ss=C.src,jo=C.srcSet;if(!(C.loading==="lazy"||!Ss&&!jo||typeof Ss!="string"&&Ss!=null||typeof jo!="string"&&jo!=null||C.fetchPriority==="low"||fR)&&(typeof Ss!="string"||Ss[4]!==":"||Ss[0]!=="d"&&Ss[0]!=="D"||Ss[1]!=="a"&&Ss[1]!=="A"||Ss[2]!=="t"&&Ss[2]!=="T"||Ss[3]!=="a"&&Ss[3]!=="A")&&(typeof jo!="string"||jo[4]!==":"||jo[0]!=="d"&&jo[0]!=="D"||jo[1]!=="a"&&jo[1]!=="A"||jo[2]!=="t"&&jo[2]!=="T"||jo[3]!=="a"&&jo[3]!=="A")){Q!==null&&ie.tagScope&64&&(Q.suspenseyImages=!0);var X0=typeof C.sizes=="string"?C.sizes:void 0,hd=jo?jo+`
|
|
203
|
-
`+(X0||""):Ss,Nm=D.preloads.images,Lf=Nm.get(hd);if(Lf)(C.fetchPriority==="high"||10>D.highImagePreloads.size)&&(Nm.delete(hd),D.highImagePreloads.add(Lf));else if(!A.imageResources.hasOwnProperty(hd)){A.imageResources[hd]=hi;var zm=C.crossOrigin,Y0=typeof zm=="string"?zm==="use-credentials"?zm:"":void 0,If=D.headers,Hm;If&&0<If.remainingCapacity&&typeof C.srcSet!="string"&&(C.fetchPriority==="high"||500>If.highImagePreloads.length)&&(Hm=As(Ss,"image",{imageSrcSet:C.srcSet,imageSizes:C.sizes,crossOrigin:Y0,integrity:C.integrity,nonce:C.nonce,type:C.type,fetchPriority:C.fetchPriority,referrerPolicy:C.refererPolicy}),0<=(If.remainingCapacity-=Hm.length+2))?(D.resets.image[hd]=hi,If.highImagePreloads&&(If.highImagePreloads+=", "),If.highImagePreloads+=Hm):(Lf=[],xi(Lf,{rel:"preload",as:"image",href:jo?void 0:Ss,imageSrcSet:jo,imageSizes:X0,crossOrigin:Y0,integrity:C.integrity,type:C.type,fetchPriority:C.fetchPriority,referrerPolicy:C.referrerPolicy}),C.fetchPriority==="high"||10>D.highImagePreloads.size?D.highImagePreloads.add(Lf):(D.bulkPreloads.add(Lf),Nm.set(hd,Lf)))}}return gt(c,C,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return gt(c,C,f);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(ie.insertionMode<Wi){var Wm=V||D.preamble;if(Wm.headChunks)throw Error("The `<head>` tag may only be rendered once.");V!==null&&c.push(sc),Wm.headChunks=[];var Z0=Gt(Wm.headChunks,C,"head")}else Z0=Bi(c,C,"head");return Z0;case"body":if(ie.insertionMode<Wi){var Vm=V||D.preamble;if(Vm.bodyChunks)throw Error("The `<body>` tag may only be rendered once.");V!==null&&c.push(Hu),Vm.bodyChunks=[];var K0=Gt(Vm.bodyChunks,C,"body")}else K0=Bi(c,C,"body");return K0;case"html":if(ie.insertionMode===ul){var Gm=V||D.preamble;if(Gm.htmlChunks)throw Error("The `<html>` tag may only be rendered once.");V!==null&&c.push(Wu),Gm.htmlChunks=[jn];var J0=Gt(Gm.htmlChunks,C,"html")}else J0=Bi(c,C,"html");return J0;default:if(f.indexOf("-")!==-1){c.push(mn(f));var Um=null,Q0=null,fd;for(fd in C)if(on.call(C,fd)){var pu=C[fd];if(pu!=null){var j0=fd;switch(fd){case"children":Um=pu;break;case"dangerouslySetInnerHTML":Q0=pu;break;case"style":qe(c,pu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":j0="class";default:if(Y(fd)&&typeof pu!="function"&&typeof pu!="symbol"&&pu!==!1){if(pu===!0)pu="";else if(typeof pu=="object")continue;c.push(Un,E(j0),zr,E(me(pu)),_t)}}}}return c.push(Ln),pn(c,Q0,Um),Um}}return Bi(c,C,f)}function Gn(c){var f=Jc.get(c);return f===void 0&&(f=T("</"+c+">"),Jc.set(c,f)),f}function Tu(c,f){c=c.preamble,c.htmlChunks===null&&f.htmlChunks&&(c.htmlChunks=f.htmlChunks),c.headChunks===null&&f.headChunks&&(c.headChunks=f.headChunks),c.bodyChunks===null&&f.bodyChunks&&(c.bodyChunks=f.bodyChunks)}function Eu(c,f){f=f.bootstrapChunks;for(var C=0;C<f.length-1;C++)m(c,f[C]);return C<f.length?(C=f[C],f.length=0,b(c,C)):!0}function es(c,f,C){if(m(c,Ys),C===null)throw Error("An ID must have been assigned before we can complete the boundary.");return m(c,f.boundaryPrefix),m(c,E(C.toString(16))),b(c,jr)}function Ru(c,f,C,A){switch(C.insertionMode){case ul:case Vs:case tc:case Wi:return m(c,Eh),m(c,f.segmentPrefix),m(c,E(A.toString(16))),b(c,Co);case Vi:return m(c,Hr),m(c,f.segmentPrefix),m(c,E(A.toString(16))),b(c,Js);case Nr:return m(c,qr),m(c,f.segmentPrefix),m(c,E(A.toString(16))),b(c,Xu);case gs:return m(c,ml),m(c,f.segmentPrefix),m(c,E(A.toString(16))),b(c,p);case nc:return m(c,R),m(c,f.segmentPrefix),m(c,E(A.toString(16))),b(c,F);case ps:return m(c,X),m(c,f.segmentPrefix),m(c,E(A.toString(16))),b(c,K);case Xc:return m(c,ne),m(c,f.segmentPrefix),m(c,E(A.toString(16))),b(c,de);default:throw Error("Unknown insertion mode. This is a bug in React.")}}function Il(c,f){switch(f.insertionMode){case ul:case Vs:case tc:case Wi:return b(c,pl);case Vi:return b(c,_a);case Nr:return b(c,Rh);case gs:return b(c,y);case nc:return b(c,N);case ps:return b(c,fe);case Xc:return b(c,Ce);default:throw Error("Unknown insertion mode. This is a bug in React.")}}function sa(c){return JSON.stringify(c).replace(eo,function(f){switch(f){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Ps(c){return JSON.stringify(c).replace(Yi,function(f){switch(f){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function aa(c){var f=c.rules,C=c.hrefs;0<f.length&&C.length===0&&console.error("React expected to have at least one href for an a hoistable style but found none. This is a bug in React.");var A=0;if(C.length){for(m(this,Ot.startInlineStyle),m(this,So),m(this,c.precedence),m(this,Zi);A<C.length-1;A++)m(this,C[A]),m(this,kn);for(m(this,C[A]),m(this,Fa),A=0;A<f.length;A++)m(this,f[A]);yl=b(this,vl),dr=!0,f.length=0,C.length=0}}function Dl(c){return c.state!==Wo?dr=!0:!1}function _n(c,f,C){return dr=!1,yl=!0,Ot=C,f.styles.forEach(aa,c),Ot=null,f.stylesheets.forEach(Dl),dr&&(C.stylesToHoist=!0),yl}function Cn(c){for(var f=0;f<c.length;f++)m(this,c[f]);c.length=0}function _c(c){xi(Ki,c.props);for(var f=0;f<Ki.length;f++)m(this,Ki[f]);Ki.length=0,c.state=Wo}function la(c){var f=0<c.sheets.size;c.sheets.forEach(_c,this),c.sheets.clear();var C=c.rules,A=c.hrefs;if(!f||A.length){if(m(this,Ot.startInlineStyle),m(this,La),m(this,c.precedence),c=0,A.length){for(m(this,Yu);c<A.length-1;c++)m(this,A[c]),m(this,kn);m(this,A[c])}for(m(this,bl),c=0;c<C.length;c++)m(this,C[c]);m(this,To),C.length=0,A.length=0}}function dh(c){if(c.state===Qs){c.state=nu;var f=c.props;for(xi(Ki,{rel:"preload",as:"style",href:c.props.href,crossOrigin:f.crossOrigin,fetchPriority:f.fetchPriority,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy}),c=0;c<Ki.length;c++)m(this,Ki[c]);Ki.length=0}}function ku(c){c.sheets.forEach(dh,this),c.sheets.clear()}function Yr(c,f){(f.instructions&Kt)===Fn&&(f.instructions|=Kt,c.push($c,E(me("_"+f.idPrefix+"R_")),_t))}function Mo(c,f){m(c,Ia);var C=Ia;f.stylesheets.forEach(function(A){if(A.state!==Wo)if(A.state===Da)m(c,C),A=A.props.href,W(A,"href"),m(c,E(Ps(""+A))),m(c,xl),C=eu;else{m(c,C);var D=A.props["data-precedence"],V=A.props,Q=ee(""+A.props.href);m(c,E(Ps(Q))),W(D,"precedence"),D=""+D,m(c,tu),m(c,E(Ps(D)));for(var ie in V)if(on.call(V,ie)&&(D=V[ie],D!=null))switch(ie){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:gh(c,ie,D)}m(c,xl),C=eu,A.state=Da}}),m(c,xl)}function gh(c,f,C){var A=f.toLowerCase();switch(typeof C){case"function":case"symbol":return}switch(f){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":A="class",W(C,A),f=""+C;break;case"hidden":if(C===!1)return;f="";break;case"src":case"href":C=ee(C),W(C,A),f=""+C;break;default:if(2<f.length&&(f[0]==="o"||f[0]==="O")&&(f[1]==="n"||f[1]==="N")||!Y(f))return;W(C,A),f=""+C}m(c,tu),m(c,E(Ps(A))),m(c,tu),m(c,E(Ps(f)))}function ca(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function Hn(c,f,C,A){(c.scriptResources.hasOwnProperty(C)||c.moduleScriptResources.hasOwnProperty(C))&&console.error('Internal React Error: React expected bootstrap script or module with src "%s" to not have been preloaded already. please file an issue',C),c.scriptResources[C]=Jt,c.moduleScriptResources[C]=Jt,c=[],xi(c,A),f.bootstrapScripts.add(c)}function Ms(c,f){c.crossOrigin==null&&(c.crossOrigin=f[0]),c.integrity==null&&(c.integrity=f[1])}function As(c,f,C){c=ua(c),f=vr(f,"as"),f="<"+c+'>; rel=preload; as="'+f+'"';for(var A in C)on.call(C,A)&&(c=C[A],typeof c=="string"&&(f+="; "+A.toLowerCase()+'="'+vr(c,A)+'"'));return f}function ua(c){return W(c,"href"),(""+c).replace(Ba,wi)}function wi(c){switch(c){case"<":return"%3C";case">":return"%3E";case`
|
|
204
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function vr(c,f){return L(c)&&(console.error("The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.",f,I(c)),H(c)),(""+c).replace(kh,cn)}function cn(c){switch(c){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
205
|
-
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function Bl(c){this.styles.add(c)}function Or(c){this.stylesheets.add(c)}function Ut(c,f){f.styles.forEach(Bl,c),f.stylesheets.forEach(Or,c),f.suspenseyImages&&(c.suspenseyImages=!0)}function ph(c){return 0<c.stylesheets.size||c.suspenseyImages}function It(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===Ph?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case cs:return"Fragment";case ql:return"Profiler";case jl:return"StrictMode";case Ns:return"Suspense";case ya:return"SuspenseList";case pi:return"Activity"}if(typeof c=="object")switch(typeof c.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),c.$$typeof){case Ql:return"Portal";case En:return c.displayName||"Context";case ur:return(c._context.displayName||"Context")+".Consumer";case Yt:var f=c.render;return c=c.displayName,c||(c=f.displayName||f.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case ba:return f=c.displayName||null,f!==null?f:It(c.type)||"Memo";case zs:f=c._payload,c=c._init;try{return It(c(f))}catch{}}return null}function Nl(c,f){if(c!==f){c.context._currentValue=c.parentValue,c=c.parent;var C=f.parent;if(c===null){if(C!==null)throw Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(C===null)throw Error("The stacks must reach the root at the same time. This is a bug in React.");Nl(c,C)}f.context._currentValue=f.value}}function zl(c){c.context._currentValue=c.parentValue,c=c.parent,c!==null&&zl(c)}function Hl(c){var f=c.parent;f!==null&&Hl(f),c.context._currentValue=c.value}function Ao(c,f){if(c.context._currentValue=c.parentValue,c=c.parent,c===null)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");c.depth===f.depth?Nl(c,f):Ao(c,f)}function rn(c,f){var C=f.parent;if(C===null)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");c.depth===C.depth?Nl(c,C):rn(c,C),f.context._currentValue=f.value}function Xt(c){var f=ys;f!==c&&(f===null?Hl(c):c===null?zl(f):f.depth===c.depth?Nl(f,c):f.depth>c.depth?Ao(f,c):rn(f,c),ys=c)}function fo(c){if(c!==null&&typeof c!="function"){var f=String(c);Ku.has(f)||(Ku.add(f),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",c))}}function Ci(c,f){c=(c=c.constructor)&&It(c)||"ReactClass";var C=c+"."+f;iu[C]||(console.error(`Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
206
|
-
|
|
207
|
-
Please check the code for the %s component.`,f,c),iu[C]=!0)}function ha(c,f,C){var A=c.id;c=c.overflow;var D=32-Cl(A)-1;A&=~(1<<D),C+=1;var V=32-Cl(f)+D;if(30<V){var Q=D-D%5;return V=(A&(1<<Q)-1).toString(32),A>>=Q,D-=Q,{id:1<<32-Cl(f)+D|C<<D|A,overflow:V+c}}return{id:1<<V|C<<D|A,overflow:c}}function Oc(c){return c>>>=0,c===0?32:31-(kf(c)/Pf|0)|0}function Ni(){}function mh(c,f,C){switch(C=c[C],C===void 0?c.push(f):C!==f&&(f.then(Ni,Ni),f=C),f.status){case"fulfilled":return f.value;case"rejected":throw f.reason;default:switch(typeof f.status=="string"?f.then(Ni,Ni):(c=f,c.status="pending",c.then(function(A){if(f.status==="pending"){var D=f;D.status="fulfilled",D.value=A}},function(A){if(f.status==="pending"){var D=f;D.status="rejected",D.reason=A}})),f.status){case"fulfilled":return f.value;case"rejected":throw f.reason}throw _h=f,Vo}}function Pu(){if(_h===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var c=_h;return _h=null,c}function Fc(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}function Sn(){if(vi===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
208
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
209
|
-
2. You might be breaking the Rules of Hooks
|
|
210
|
-
3. You might have more than one copy of React in the same app
|
|
211
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Eo&&console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"),vi}function Lc(){if(0<fc)throw Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function ja(){return nn===null?no===null?(xr=!1,no=nn=Lc()):(xr=!0,nn=no):nn.next===null?(xr=!1,nn=nn.next=Lc()):(xr=!0,nn=nn.next),nn}function Fr(){var c=Sl;return Sl=null,c}function fa(){Eo=!1,qs=Ji=bs=vi=null,xs=!1,no=null,fc=0,nn=za=null}function vh(c){return Eo&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),c._currentValue}function yh(c,f){return typeof f=="function"?f(c):f}function qa(c,f,C){if(c!==yh&&(Ha="useReducer"),vi=Sn(),nn=ja(),xr){if(C=nn.queue,f=C.dispatch,za!==null){var A=za.get(C);if(A!==void 0){za.delete(C),C=nn.memoizedState;do{var D=A.action;Eo=!0,C=c(C,D),Eo=!1,A=A.next}while(A!==null);return nn.memoizedState=C,[C,f]}}return[nn.memoizedState,f]}return Eo=!0,c=c===yh?typeof f=="function"?f():f:C!==void 0?C(f):f,Eo=!1,nn.memoizedState=c,c=nn.queue={last:null,dispatch:null},c=c.dispatch=_o.bind(null,vi,c),[nn.memoizedState,c]}function $a(c,f){if(vi=Sn(),nn=ja(),f=f===void 0?null:f,nn!==null){var C=nn.memoizedState;if(C!==null&&f!==null){e:{var A=C[1];if(A===null)console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ha),A=!1;else{f.length!==A.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
212
|
-
|
|
213
|
-
Previous: %s
|
|
214
|
-
Incoming: %s`,Ha,"["+f.join(", ")+"]","["+A.join(", ")+"]");for(var D=0;D<A.length&&D<f.length;D++)if(!Mf(f[D],A[D])){A=!1;break e}A=!0}}if(A)return C[0]}}return Eo=!0,c=c(),Eo=!1,nn.memoizedState=[c,f],c}function _o(c,f,C){if(25<=fc)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(c===vi)if(xs=!0,c={action:C,next:null},za===null&&(za=new Map),C=za.get(f),C===void 0)za.set(f,c);else{for(f=C;f.next!==null;)f=f.next;f.next=c}}function Oo(){throw Error("A function wrapped in useEffectEvent can't be called during rendering.")}function Ic(){throw Error("startTransition cannot be called during server rendering.")}function Wl(){throw Error("Cannot update optimistic state while rendering.")}function Vl(c,f,C){Sn();var A=hc++,D=Ji;if(typeof c.$$FORM_ACTION=="function"){var V=null,Q=qs;D=D.formState;var ie=c.$$IS_SIGNATURE_EQUAL;if(D!==null&&typeof ie=="function"){var ke=D[1];ie.call(c,D[2],D[3])&&(V=C!==void 0?"p"+C:"k"+l(JSON.stringify([Q,null,A]),0),ke===V&&(lu=A,f=D[0]))}var ce=c.bind(null,f);return c=function(Be){ce(Be)},typeof ce.$$FORM_ACTION=="function"&&(c.$$FORM_ACTION=function(Be){Be=ce.$$FORM_ACTION(Be),C!==void 0&&(W(C,"target"),C+="",Be.action=C);var He=Be.data;return He&&(V===null&&(V=C!==void 0?"p"+C:"k"+l(JSON.stringify([Q,null,A]),0)),He.append("$ACTION_KEY",V)),Be}),[f,c,!1]}var ye=c.bind(null,f);return[f,function(Be){ye(Be)},!1]}function ri(c){var f=Oh;return Oh+=1,Sl===null&&(Sl=[]),mh(Sl,c,f)}function el(){throw Error("Cache cannot be refreshed during server rendering.")}function Gl(){}function Dc(){if(_===0){B=console.log,U=console.info,te=console.warn,se=console.error,Fe=console.group,ve=console.groupCollapsed,Me=console.groupEnd;var c={configurable:!0,enumerable:!0,value:Gl,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}_++}function Fo(){if(_--,_===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:bn({},c,{value:B}),info:bn({},c,{value:U}),warn:bn({},c,{value:te}),error:bn({},c,{value:se}),group:bn({},c,{value:Fe}),groupCollapsed:bn({},c,{value:ve}),groupEnd:bn({},c,{value:Me})})}0>_&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ul(c){var f=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,c=c.stack,Error.prepareStackTrace=f,c.startsWith(`Error: react-stack-top-frame
|
|
215
|
-
`)&&(c=c.slice(29)),f=c.indexOf(`
|
|
216
|
-
`),f!==-1&&(c=c.slice(f+1)),f=c.indexOf("react_stack_bottom_frame"),f!==-1&&(f=c.lastIndexOf(`
|
|
217
|
-
`,f)),f!==-1)c=c.slice(0,f);else return"";return c}function sr(c){if(Ge===void 0)try{throw Error()}catch(C){var f=C.stack.trim().match(/\n( *(at )?)/);Ge=f&&f[1]||"",Ke=-1<C.stack.indexOf(`
|
|
218
|
-
at`)?" (<anonymous>)":-1<C.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
219
|
-
`+Ge+c+Ke}function go(c,f){if(!c||Xe)return"";var C=De.get(c);if(C!==void 0)return C;Xe=!0,C=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var A=null;A=At.H,At.H=null,Dc();try{var D={DetermineComponentFrameRoot:function(){try{if(f){var He=function(){throw Error()};if(Object.defineProperty(He.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(He,[])}catch(Ie){var ze=Ie}Reflect.construct(c,[],He)}else{try{He.call()}catch(Ie){ze=Ie}c.call(He.prototype)}}else{try{throw Error()}catch(Ie){ze=Ie}(He=c())&&typeof He.catch=="function"&&He.catch(function(){})}}catch(Ie){if(Ie&&ze&&typeof Ie.stack=="string")return[Ie.stack,ze.stack]}return[null,null]}};D.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var V=Object.getOwnPropertyDescriptor(D.DetermineComponentFrameRoot,"name");V&&V.configurable&&Object.defineProperty(D.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var Q=D.DetermineComponentFrameRoot(),ie=Q[0],ke=Q[1];if(ie&&ke){var ce=ie.split(`
|
|
220
|
-
`),ye=ke.split(`
|
|
221
|
-
`);for(Q=V=0;V<ce.length&&!ce[V].includes("DetermineComponentFrameRoot");)V++;for(;Q<ye.length&&!ye[Q].includes("DetermineComponentFrameRoot");)Q++;if(V===ce.length||Q===ye.length)for(V=ce.length-1,Q=ye.length-1;1<=V&&0<=Q&&ce[V]!==ye[Q];)Q--;for(;1<=V&&0<=Q;V--,Q--)if(ce[V]!==ye[Q]){if(V!==1||Q!==1)do if(V--,Q--,0>Q||ce[V]!==ye[Q]){var Be=`
|
|
222
|
-
`+ce[V].replace(" at new "," at ");return c.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",c.displayName)),typeof c=="function"&&De.set(c,Be),Be}while(1<=V&&0<=Q);break}}}finally{Xe=!1,At.H=A,Fo(),Error.prepareStackTrace=C}return ce=(ce=c?c.displayName||c.name:"")?sr(ce):"",typeof c=="function"&&De.set(c,ce),ce}function Mu(c){if(typeof c=="string")return sr(c);if(typeof c=="function")return c.prototype&&c.prototype.isReactComponent?go(c,!0):go(c,!1);if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Yt:return go(c.render,!1);case ba:return go(c.type,!1);case zs:var f=c,C=f._payload;f=f._init;try{c=f(C)}catch{return sr("Lazy")}return Mu(c)}if(typeof c.name=="string"){e:{if(C=c.name,f=c.env,c=c.debugLocation,c!=null){c=Ul(c);var A=c.lastIndexOf(`
|
|
223
|
-
`);if(c=A===-1?c:c.slice(A+1),c.indexOf(C)!==-1){C=`
|
|
224
|
-
`+c;break e}}C=sr(C+(f?" ["+f+"]":""))}return C}}switch(c){case ya:return sr("SuspenseList");case Ns:return sr("Suspense")}return""}function Xl(){var c=Go();1e3<c-$t&&(At.recentlyCreatedOwnerStacks=0,$t=c)}function ar(c,f){return(500<f.byteSize||ph(f.contentState))&&f.contentPreamble===null}function Yl(c){if(typeof c=="object"&&c!==null&&typeof c.environmentName=="string"){var f=c.environmentName;c=[c].slice(0),typeof c[0]=="string"?c.splice(0,1,"%c%s%c "+c[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+f+" ",""):c.splice(0,0,"%c%s%c","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+f+" ",""),c.unshift(console),f=to.apply(console.error,c),f()}else console.error(c);return null}function _s(c,f,C,A,D,V,Q,ie,ke,ce,ye){var Be=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=c,this.renderState=f,this.rootFormatContext=C,this.progressiveChunkSize=A===void 0?12800:A,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=Be,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=D===void 0?Yl:D,this.onPostpone=ce===void 0?Ni:ce,this.onAllReady=V===void 0?Ni:V,this.onShellReady=Q===void 0?Ni:Q,this.onShellError=ie===void 0?Ni:ie,this.onFatalError=ke===void 0?Ni:ke,this.formState=ye===void 0?null:ye,this.didWarnForKey=null}function tl(c,f,C,A,D,V,Q,ie,ke,ce,ye,Be){return Xl(),f=new _s(f,C,A,D,V,Q,ie,ke,ce,ye,Be),C=ns(f,0,null,A,!1,!1),C.parentFlushed=!0,c=po(f,null,c,-1,null,C,null,null,f.abortableTasks,null,A,null,au,null,null,Wr,null),rs(c),f.pingedTasks.push(c),f}function lr(c,f,C,A,D,V,Q,ie,ke,ce,ye){return c=tl(c,f,C,A,D,V,Q,ie,ke,ce,ye,void 0),c.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},c}function ci(c,f,C,A,D,V,Q,ie,ke){return Xl(),C=new _s(f.resumableState,C,f.rootFormatContext,f.progressiveChunkSize,A,D,V,Q,ie,ke,null),C.nextSegmentId=f.nextSegmentId,typeof f.replaySlots=="number"?(A=ns(C,0,null,f.rootFormatContext,!1,!1),A.parentFlushed=!0,c=po(C,null,c,-1,null,A,null,null,C.abortableTasks,null,f.rootFormatContext,null,au,null,null,Wr,null),rs(c),C.pingedTasks.push(c),C):(c=_u(C,null,{nodes:f.replayNodes,slots:f.replaySlots,pendingTasks:0},c,-1,null,null,C.abortableTasks,null,f.rootFormatContext,null,au,null,null,Wr,null),rs(c),C.pingedTasks.push(c),C)}function yn(c,f,C,A,D,V,Q,ie,ke){return c=ci(c,f,C,A,D,V,Q,ie,ke),c.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},c}function Au(c,f){c.pingedTasks.push(f),c.pingedTasks.length===1&&(c.flushScheduled=c.destination!==null,c.trackedPostpones!==null||c.status===10?wa(function(){return Bs(c)}):u(function(){return Bs(c)}))}function ts(c,f,C,A,D){return C={status:sn,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:f,completedSegments:[],byteSize:0,fallbackAbortableTasks:C,errorDigest:null,contentState:ca(),fallbackState:ca(),contentPreamble:A,fallbackPreamble:D,trackedContentKeyPath:null,trackedFallbackNode:null,errorMessage:null,errorStack:null,errorComponentStack:null},f!==null&&(f.pendingTasks++,A=f.boundaries,A!==null&&(c.allPendingTasks++,C.pendingTasks++,A.push(C)),c=f.inheritedHoistables,c!==null&&Ut(C.contentState,c)),C}function po(c,f,C,A,D,V,Q,ie,ke,ce,ye,Be,He,ze,Ie,ut,fn){c.allPendingTasks++,D===null?c.pendingRootTasks++:D.pendingTasks++,ze!==null&&ze.pendingTasks++;var st={replay:null,node:C,childIndex:A,ping:function(){return Au(c,st)},blockedBoundary:D,blockedSegment:V,blockedPreamble:Q,hoistableState:ie,abortSet:ke,keyPath:ce,formatContext:ye,context:Be,treeContext:He,row:ze,componentStack:Ie,thenableState:f};return st.debugTask=fn,ke.add(st),st}function _u(c,f,C,A,D,V,Q,ie,ke,ce,ye,Be,He,ze,Ie,ut){c.allPendingTasks++,V===null?c.pendingRootTasks++:V.pendingTasks++,He!==null&&He.pendingTasks++,C.pendingTasks++;var fn={replay:C,node:A,childIndex:D,ping:function(){return Au(c,fn)},blockedBoundary:V,blockedSegment:null,blockedPreamble:null,hoistableState:Q,abortSet:ie,keyPath:ke,formatContext:ce,context:ye,treeContext:Be,row:He,componentStack:ze,thenableState:f};return fn.debugTask=ut,ie.add(fn),fn}function ns(c,f,C,A,D,V){return{status:sn,parentFlushed:!1,id:-1,index:f,chunks:[],children:[],preambleChildren:[],parentFormatContext:A,boundary:C,lastPushedText:D,textEmbedded:V}}function Lo(){if(d===null||d.componentStack===null)return"";var c=d.componentStack;try{var f="";if(typeof c.type=="string")f+=sr(c.type);else if(typeof c.type=="function"){if(!c.owner){var C=f,A=c.type,D=A?A.displayName||A.name:"",V=D?sr(D):"";f=C+V}}else c.owner||(f+=Mu(c.type));for(;c;)C=null,c.debugStack!=null?C=Ul(c.debugStack):(V=c,V.stack!=null&&(C=typeof V.stack!="string"?V.stack=Ul(V.stack):V.stack)),(c=c.owner)&&C&&(f+=`
|
|
225
|
-
`+C);var Q=f}catch(ie){Q=`
|
|
226
|
-
Error generating stack: `+ie.message+`
|
|
227
|
-
`+ie.stack}return Q}function nl(c,f){if(f!=null)for(var C=f.length-1;0<=C;C--){var A=f[C];if(typeof A.name=="string"||typeof A.time=="number")break;if(A.awaited!=null){var D=A.debugStack==null?A.awaited:A;if(D.debugStack!==void 0){c.componentStack={parent:c.componentStack,type:A,owner:D.owner,stack:D.debugStack},c.debugTask=D.debugTask;break}}}}function is(c,f){if(f!=null)for(var C=0;C<f.length;C++){var A=f[C];typeof A.name=="string"&&A.debugStack!==void 0&&(c.componentStack={parent:c.componentStack,type:A,owner:A.owner,stack:A.debugStack},c.debugTask=A.debugTask)}}function rs(c){var f=c.node;if(typeof f=="object"&&f!==null)switch(f.$$typeof){case Wc:var C=f.type,A=f._owner,D=f._debugStack;is(c,f._debugInfo),c.debugTask=f._debugTask,c.componentStack={parent:c.componentStack,type:C,owner:A,stack:D};break;case zs:is(c,f._debugInfo);break;default:typeof f.then=="function"&&is(c,f._debugInfo)}}function il(c){return c===null?null:{parent:c.parent,type:"Suspense Fallback",owner:c.owner,stack:c.stack}}function wt(c){var f={};return c&&Object.defineProperty(f,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var C="",A=c;do C+=Mu(A.type),A=A.parent;while(A);var D=C}catch(V){D=`
|
|
228
|
-
Error generating stack: `+V.message+`
|
|
229
|
-
`+V.stack}return Object.defineProperty(f,"componentStack",{value:D}),D}}),f}function mo(c,f,C,A,D){c.errorDigest=f,C instanceof Error?(f=String(C.message),C=String(C.stack)):(f=typeof C=="object"&&C!==null?a(C):String(C),C=null),D=D?`Switched to client rendering because the server rendering aborted due to:
|
|
230
|
-
|
|
231
|
-
`:`Switched to client rendering because the server rendering errored:
|
|
232
|
-
|
|
233
|
-
`,c.errorMessage=D+f,c.errorStack=C!==null?D+C:null,c.errorComponentStack=A.componentStack}function Zn(c,f,C,A){if(c=c.onError,f=A?A.run(c.bind(null,f,C)):c(f,C),f!=null&&typeof f!="string")console.error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "%s" instead',typeof f);else return f}function Io(c,f,C,A){C=c.onShellError;var D=c.onFatalError;A?(A.run(C.bind(null,f)),A.run(D.bind(null,f))):(C(f),D(f)),c.destination!==null?(c.status=Qi,M(c.destination,f)):(c.status=13,c.fatalError=f)}function oi(c,f){Os(c,f.next,f.hoistables)}function Os(c,f,C){for(;f!==null;){C!==null&&(Ut(f.hoistables,C),f.inheritedHoistables=C);var A=f.boundaries;if(A!==null){f.boundaries=null;for(var D=0;D<A.length;D++){var V=A[D];C!==null&&Ut(V.contentState,C),Ds(c,V,null,null)}}if(f.pendingTasks--,0<f.pendingTasks)break;C=f.hoistables,f=f.next}}function da(c,f){var C=f.boundaries;if(C!==null&&f.pendingTasks===C.length){for(var A=!0,D=0;D<C.length;D++){var V=C[D];if(V.pendingTasks!==1||V.parentFlushed||ar(c,V)){A=!1;break}}A&&Os(c,f,f.hoistables)}}function Do(c){var f={pendingTasks:1,boundaries:null,hoistables:ca(),inheritedHoistables:null,together:!1,next:null};return c!==null&&0<c.pendingTasks&&(f.pendingTasks++,f.boundaries=[],c.next=f),f}function os(c,f,C,A,D){var V=f.keyPath,Q=f.treeContext,ie=f.row,ke=f.componentStack,ce=f.debugTask;is(f,f.node.props.children._debugInfo),f.keyPath=C,C=A.length;var ye=null;if(f.replay!==null){var Be=f.replay.slots;if(Be!==null&&typeof Be=="object")for(var He=0;He<C;He++){var ze=D!=="backwards"&&D!=="unstable_legacy-backwards"?He:C-1-He,Ie=A[ze];f.row=ye=Do(ye),f.treeContext=ha(Q,C,ze);var ut=Be[ze];typeof ut=="number"?(ga(c,f,ut,Ie,ze),delete Be[ze]):ui(c,f,Ie,ze),--ye.pendingTasks===0&&oi(c,ye)}else for(Be=0;Be<C;Be++)He=D!=="backwards"&&D!=="unstable_legacy-backwards"?Be:C-1-Be,ze=A[He],vo(c,f,ze),f.row=ye=Do(ye),f.treeContext=ha(Q,C,He),ui(c,f,ze,He),--ye.pendingTasks===0&&oi(c,ye)}else if(D!=="backwards"&&D!=="unstable_legacy-backwards")for(D=0;D<C;D++)Be=A[D],vo(c,f,Be),f.row=ye=Do(ye),f.treeContext=ha(Q,C,D),ui(c,f,Be,D),--ye.pendingTasks===0&&oi(c,ye);else{for(D=f.blockedSegment,Be=D.children.length,He=D.chunks.length,ze=C-1;0<=ze;ze--){Ie=A[ze],f.row=ye=Do(ye),f.treeContext=ha(Q,C,ze),ut=ns(c,He,null,f.formatContext,ze===0?D.lastPushedText:!0,!0),D.children.splice(Be,0,ut),f.blockedSegment=ut,vo(c,f,Ie);try{ui(c,f,Ie,ze),ut.lastPushedText&&ut.textEmbedded&&ut.chunks.push(Qn),ut.status=an,yo(c,f.blockedBoundary,ut),--ye.pendingTasks===0&&oi(c,ye)}catch(fn){throw ut.status=c.status===12?Bn:Ht,fn}}f.blockedSegment=D,D.lastPushedText=!1}ie!==null&&ye!==null&&0<ye.pendingTasks&&(ie.pendingTasks++,ye.next=ie),f.treeContext=Q,f.row=ie,f.keyPath=V,f.componentStack=ke,f.debugTask=ce}function Kn(c,f,C,A,D,V){var Q=f.thenableState;for(f.thenableState=null,vi={},bs=f,Ji=c,qs=C,Eo=!1,hc=qn=0,lu=-1,Oh=0,Sl=Q,c=vn(A,D,V);xs;)xs=!1,hc=qn=0,lu=-1,Oh=0,fc+=1,nn=null,c=A(D,V);return fa(),c}function ss(c,f,C,A,D,V,Q){var ie=!1;if(V!==0&&c.formState!==null){var ke=f.blockedSegment;if(ke!==null){ie=!0,ke=ke.chunks;for(var ce=0;ce<V;ce++)ce===Q?ke.push(Ma):ke.push(Ui)}}V=f.keyPath,f.keyPath=C,D?(C=f.treeContext,f.treeContext=ha(C,1,0),ui(c,f,A,-1),f.treeContext=C):ie?ui(c,f,A,-1):cr(c,f,A,-1),f.keyPath=V}function as(c,f,C,A,D,V){if(typeof A=="function")if(A.prototype&&A.prototype.isReactComponent){var Q=D;if("ref"in D){Q={};for(var ie in D)ie!=="ref"&&(Q[ie]=D[ie])}var ke=A.defaultProps;if(ke){Q===D&&(Q=bn({},Q,D));for(var ce in ke)Q[ce]===void 0&&(Q[ce]=ke[ce])}var ye=Q,Be=Wr,He=A.contextType;if("contextType"in A&&He!==null&&(He===void 0||He.$$typeof!==En)&&!$h.has(A)){$h.add(A);var ze=He===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof He!="object"?" However, it is set to a "+typeof He+".":He.$$typeof===ur?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(He).join(", ")+"}.";console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",It(A)||"Component",ze)}typeof He=="object"&&He!==null&&(Be=He._currentValue);var Ie=new A(ye,Be);if(typeof A.getDerivedStateFromProps=="function"&&(Ie.state===null||Ie.state===void 0)){var ut=It(A)||"Component";ou.has(ut)||(ou.add(ut),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",ut,Ie.state===null?"null":"undefined",ut))}if(typeof A.getDerivedStateFromProps=="function"||typeof Ie.getSnapshotBeforeUpdate=="function"){var fn=null,st=null,Lt=null;if(typeof Ie.componentWillMount=="function"&&Ie.componentWillMount.__suppressDeprecationWarning!==!0?fn="componentWillMount":typeof Ie.UNSAFE_componentWillMount=="function"&&(fn="UNSAFE_componentWillMount"),typeof Ie.componentWillReceiveProps=="function"&&Ie.componentWillReceiveProps.__suppressDeprecationWarning!==!0?st="componentWillReceiveProps":typeof Ie.UNSAFE_componentWillReceiveProps=="function"&&(st="UNSAFE_componentWillReceiveProps"),typeof Ie.componentWillUpdate=="function"&&Ie.componentWillUpdate.__suppressDeprecationWarning!==!0?Lt="componentWillUpdate":typeof Ie.UNSAFE_componentWillUpdate=="function"&&(Lt="UNSAFE_componentWillUpdate"),fn!==null||st!==null||Lt!==null){var Wn=It(A)||"Component",$n=typeof A.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Mh.has(Wn)||(Mh.add(Wn),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
234
|
-
|
|
235
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
236
|
-
|
|
237
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
238
|
-
https://react.dev/link/unsafe-component-lifecycles`,Wn,$n,fn!==null?`
|
|
239
|
-
`+fn:"",st!==null?`
|
|
240
|
-
`+st:"",Lt!==null?`
|
|
241
|
-
`+Lt:""))}}var jt=It(A)||"Component";Ie.render||(A.prototype&&typeof A.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",jt):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",jt)),!Ie.getInitialState||Ie.getInitialState.isReactClassApproved||Ie.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",jt),Ie.getDefaultProps&&!Ie.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",jt),Ie.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",jt),A.childContextTypes&&!su.has(A)&&(su.add(A),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",jt)),A.contextTypes&&!Ah.has(A)&&(Ah.add(A),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",jt)),typeof Ie.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",jt),A.prototype&&A.prototype.isPureReactComponent&&typeof Ie.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",It(A)||"A pure component"),typeof Ie.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",jt),typeof Ie.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",jt),typeof Ie.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",jt),typeof Ie.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",jt);var ot=Ie.props!==ye;Ie.props!==void 0&&ot&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",jt),Ie.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",jt,jt),typeof Ie.getSnapshotBeforeUpdate!="function"||typeof Ie.componentDidUpdate=="function"||Na.has(A)||(Na.add(A),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",It(A))),typeof Ie.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",jt),typeof Ie.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",jt),typeof A.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",jt);var ei=Ie.state;ei&&(typeof ei!="object"||No(ei))&&console.error("%s.state: must be set to an object or null",jt),typeof Ie.getChildContext=="function"&&typeof A.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",jt);var ji=Ie.state!==void 0?Ie.state:null;Ie.updater=ef,Ie.props=ye,Ie.state=ji;var dn={queue:[],replace:!1};Ie._reactInternals=dn;var Mn=A.contextType;if(Ie.context=typeof Mn=="object"&&Mn!==null?Mn._currentValue:Wr,Ie.state===ye){var Sr=It(A)||"Component";Zu.has(Sr)||(Zu.add(Sr),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",Sr))}var Ai=A.getDerivedStateFromProps;if(typeof Ai=="function"){var di=Ai(ye,ji);if(di===void 0){var An=It(A)||"Component";wl.has(An)||(wl.add(An),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",An))}var ai=di==null?ji:bn({},ji,di);Ie.state=ai}if(typeof A.getDerivedStateFromProps!="function"&&typeof Ie.getSnapshotBeforeUpdate!="function"&&(typeof Ie.UNSAFE_componentWillMount=="function"||typeof Ie.componentWillMount=="function")){var Tr=Ie.state;if(typeof Ie.componentWillMount=="function"){if(Ie.componentWillMount.__suppressDeprecationWarning!==!0){var Vr=It(A)||"Unknown";ru[Vr]||(console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
242
|
-
|
|
243
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
244
|
-
|
|
245
|
-
Please update the following components: %s`,Vr),ru[Vr]=!0)}Ie.componentWillMount()}if(typeof Ie.UNSAFE_componentWillMount=="function"&&Ie.UNSAFE_componentWillMount(),Tr!==Ie.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",It(A)||"Component"),ef.enqueueReplaceState(Ie,Ie.state,null)),dn.queue!==null&&0<dn.queue.length){var gi=dn.queue,Nn=dn.replace;if(dn.queue=null,dn.replace=!1,Nn&&gi.length===1)Ie.state=gi[0];else{for(var qi=Nn?gi[0]:Ie.state,Er=!0,$i=Nn?1:0;$i<gi.length;$i++){var ws=gi[$i],Rr=typeof ws=="function"?ws.call(Ie,qi,ye,void 0):ws;Rr!=null&&(Er?(Er=!1,qi=bn({},qi,Rr)):bn(qi,Rr))}Ie.state=qi}}else dn.queue=null}var ti=Qt(Ie);if(c.status===12)throw null;Ie.props!==ye&&(Cr||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",It(A)||"a component"),Cr=!0);var io=f.keyPath;f.keyPath=C,cr(c,f,ti,-1),f.keyPath=io}else{if(A.prototype&&typeof A.prototype.render=="function"){var bi=It(A)||"Unknown";Mi[bi]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",bi,bi),Mi[bi]=!0)}var Ju=Kn(c,f,C,A,D,void 0);if(c.status===12)throw null;var Zo=qn!==0,Vn=hc,ro=lu;if(A.contextTypes){var er=It(A)||"Unknown";Pn[er]||(Pn[er]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",er))}if(A&&A.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
246
|
-
%s.childContextTypes = ...`,A.displayName||A.name||"Component"),typeof A.getDerivedStateFromProps=="function"){var gc=It(A)||"Unknown";Tl[gc]||(console.error("%s: Function components do not support getDerivedStateFromProps.",gc),Tl[gc]=!0)}if(typeof A.contextType=="object"&&A.contextType!==null){var El=It(A)||"Unknown";wr[El]||(console.error("%s: Function components do not support contextType.",El),wr[El]=!0)}ss(c,f,C,Ju,Zo,Vn,ro)}else if(typeof A=="string"){var Ro=f.blockedSegment;if(Ro===null){var Rl=D.children,kr=f.formatContext,pc=f.keyPath;f.formatContext=We(kr,A,D),f.keyPath=C,ui(c,f,Rl,-1),f.formatContext=kr,f.keyPath=pc}else{var Qu=fh(Ro.chunks,A,D,c.resumableState,c.renderState,f.blockedPreamble,f.hoistableState,f.formatContext,Ro.lastPushedText);Ro.lastPushedText=!1;var oo=f.formatContext,mc=f.keyPath;if(f.keyPath=C,(f.formatContext=We(oo,A,D)).insertionMode===tc){var tr=ns(c,0,null,f.formatContext,!1,!1);Ro.preambleChildren.push(tr),f.blockedSegment=tr;try{tr.status=6,ui(c,f,Qu,-1),tr.lastPushedText&&tr.textEmbedded&&tr.chunks.push(Qn),tr.status=an,yo(c,f.blockedBoundary,tr)}finally{f.blockedSegment=Ro}}else ui(c,f,Qu,-1);f.formatContext=oo,f.keyPath=mc;e:{var kl=Ro.chunks,Wa=c.resumableState;switch(A){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(oo.insertionMode<=Vs){Wa.hasBody=!0;break e}break;case"html":if(oo.insertionMode===ul){Wa.hasHtml=!0;break e}break;case"head":if(oo.insertionMode<=Vs)break e}kl.push(Gn(A))}Ro.lastPushedText=!1}}else{switch(A){case jh:case jl:case ql:case cs:var $s=f.keyPath;f.keyPath=C,cr(c,f,D.children,-1),f.keyPath=$s;return;case pi:var so=f.blockedSegment;if(so===null){if(D.mode!=="hidden"){var ao=f.keyPath;f.keyPath=C,ui(c,f,D.children,-1),f.keyPath=ao}}else if(D.mode!=="hidden"){so.chunks.push(Uu),so.lastPushedText=!1;var Ko=f.keyPath;f.keyPath=C,ui(c,f,D.children,-1),f.keyPath=Ko,so.chunks.push(jc),so.lastPushedText=!1}return;case ya:e:{var Pr=D.children,_i=D.revealOrder;if(_i==="forwards"||_i==="backwards"||_i==="unstable_legacy-backwards"){if(No(Pr)){os(c,f,C,Pr,_i);break e}var ea=t(Pr);if(ea){var Jo=ea.call(Pr);if(Jo){pa(f,Pr,-1,Jo,ea);var Va=Jo.next();if(!Va.done){var Cs=[];do Cs.push(Va.value),Va=Jo.next();while(!Va.done);os(c,f,C,Pr,_i)}break e}}}if(_i==="together"){var Fh=f.keyPath,pr=f.row,ko=f.row=Do(null);ko.boundaries=[],ko.together=!0,f.keyPath=C,cr(c,f,Pr,-1),--ko.pendingTasks===0&&oi(c,ko),f.keyPath=Fh,f.row=pr,pr!==null&&0<ko.pendingTasks&&(pr.pendingTasks++,ko.next=pr)}else{var vc=f.keyPath;f.keyPath=C,cr(c,f,Pr,-1),f.keyPath=vc}}return;case xh:case Du:throw Error("ReactDOMServer does not yet support scope components.");case Ns:e:if(f.replay!==null){var cu=f.keyPath,uu=f.formatContext,ad=f.row;f.keyPath=C,f.formatContext=Ve(c.resumableState,uu),f.row=null;var Ga=D.children;try{ui(c,f,Ga,-1)}finally{f.keyPath=cu,f.formatContext=uu,f.row=ad}}else{var Pl=f.keyPath,Ua=f.formatContext,hu=f.row,Af=f.blockedBoundary,tf=f.blockedPreamble,mr=f.hoistableState,Qo=f.blockedSegment,Xa=D.fallback,ju=D.children,lo=new Set,ni=f.formatContext.insertionMode<Wi?ts(c,f.row,lo,he(),he()):ts(c,f.row,lo,null,null);c.trackedPostpones!==null&&(ni.trackedContentKeyPath=C);var zn=ns(c,Qo.chunks.length,ni,f.formatContext,!1,!1);Qo.children.push(zn),Qo.lastPushedText=!1;var wn=ns(c,0,null,f.formatContext,!1,!1);if(wn.parentFlushed=!0,c.trackedPostpones!==null){var nf=f.componentStack,Ml=[C[0],"Suspense Fallback",C[2]],qu=[Ml[1],Ml[2],[],null];c.trackedPostpones.workingMap.set(Ml,qu),ni.trackedFallbackNode=qu,f.blockedSegment=zn,f.blockedPreamble=ni.fallbackPreamble,f.keyPath=Ml,f.formatContext=_e(c.resumableState,Ua),f.componentStack=il(nf),zn.status=6;try{ui(c,f,Xa,-1),zn.lastPushedText&&zn.textEmbedded&&zn.chunks.push(Qn),zn.status=an,yo(c,Af,zn)}catch(cd){throw zn.status=c.status===12?Bn:Ht,cd}finally{f.blockedSegment=Qo,f.blockedPreamble=tf,f.keyPath=Pl,f.formatContext=Ua}var Al=po(c,null,ju,-1,ni,wn,ni.contentPreamble,ni.contentState,f.abortSet,C,Ve(c.resumableState,f.formatContext),f.context,f.treeContext,null,nf,Wr,f.debugTask);rs(Al),c.pingedTasks.push(Al)}else{f.blockedBoundary=ni,f.blockedPreamble=ni.contentPreamble,f.hoistableState=ni.contentState,f.blockedSegment=wn,f.keyPath=C,f.formatContext=Ve(c.resumableState,Ua),f.row=null,wn.status=6;try{if(ui(c,f,ju,-1),wn.lastPushedText&&wn.textEmbedded&&wn.chunks.push(Qn),wn.status=an,yo(c,ni,wn),al(ni,wn),ni.pendingTasks===0&&ni.status===sn){if(ni.status=an,!ar(c,ni)){hu!==null&&--hu.pendingTasks===0&&oi(c,hu),c.pendingRootTasks===0&&f.blockedPreamble&&va(c);break e}}else hu!==null&&hu.together&&da(c,hu)}catch(cd){if(ni.status=$e,c.status===12){wn.status=Bn;var yc=c.fatalError}else wn.status=Ht,yc=cd;var $u=wt(f.componentStack),bc=Zn(c,yc,$u,f.debugTask);mo(ni,bc,yc,$u,!1),rl(c,ni)}finally{f.blockedBoundary=Af,f.blockedPreamble=tf,f.hoistableState=mr,f.blockedSegment=Qo,f.keyPath=Pl,f.formatContext=Ua,f.row=hu}var fu=po(c,null,Xa,-1,Af,zn,ni.fallbackPreamble,ni.fallbackState,lo,[C[0],"Suspense Fallback",C[2]],_e(c.resumableState,f.formatContext),f.context,f.treeContext,f.row,il(f.componentStack),Wr,f.debugTask);rs(fu),c.pingedTasks.push(fu)}}return}if(typeof A=="object"&&A!==null)switch(A.$$typeof){case Yt:if("ref"in D){var du={};for(var Lh in D)Lh!=="ref"&&(du[Lh]=D[Lh])}else du=D;var rf=Kn(c,f,C,A.render,du,V);ss(c,f,C,rf,qn!==0,hc,lu);return;case ba:as(c,f,C,A.type,D,V);return;case En:var _f=D.value,eh=D.children,th=f.context,xc=f.keyPath,Ya=A._currentValue;A._currentValue=_f,A._currentRenderer!==void 0&&A._currentRenderer!==null&&A._currentRenderer!==js&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),A._currentRenderer=js;var ta=ys,Mr={parent:ta,depth:ta===null?0:ta.depth+1,context:A,parentValue:Ya,value:_f};ys=Mr,f.context=Mr,f.keyPath=C,cr(c,f,eh,-1);var gu=ys;if(gu===null)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");gu.context!==A&&console.error("The parent context is not the expected context. This is probably a bug in React."),gu.context._currentValue=gu.parentValue,A._currentRenderer!==void 0&&A._currentRenderer!==null&&A._currentRenderer!==js&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),A._currentRenderer=js;var Of=ys=gu.parent;f.context=Of,f.keyPath=xc,th!==f.context&&console.error("Popping the context provider did not return back to the original snapshot. This is a bug in React.");return;case ur:var ld=A._context,of=D.children;typeof of!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var Qg=of(ld._currentValue),Ih=f.keyPath;f.keyPath=C,cr(c,f,Qg,-1),f.keyPath=Ih;return;case zs:var jg=Pi(A);if(c.status===12)throw null;as(c,f,C,jg,D,V);return}var Ff="";throw(A===void 0||typeof A=="object"&&A!==null&&Object.keys(A).length===0)&&(Ff+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+((A==null?A:typeof A)+"."+Ff))}}function ga(c,f,C,A,D){var V=f.replay,Q=f.blockedBoundary,ie=ns(c,0,null,f.formatContext,!1,!1);ie.id=C,ie.parentFlushed=!0;try{f.replay=null,f.blockedSegment=ie,ui(c,f,A,D),ie.status=an,yo(c,Q,ie),Q===null?c.completedRootSegment=ie:(al(Q,ie),Q.parentFlushed&&c.partialBoundaries.push(Q))}finally{f.replay=V,f.blockedSegment=null}}function Fs(c,f,C,A,D,V,Q,ie,ke,ce){V=ce.nodes;for(var ye=0;ye<V.length;ye++){var Be=V[ye];if(D===Be[1]){if(Be.length===4){if(A!==null&&A!==Be[0])throw Error("Expected the resume to render <"+Be[0]+"> in this slot but instead it rendered <"+A+">. The tree doesn't match so React will fallback to client rendering.");var He=Be[2];A=Be[3],D=f.node,f.replay={nodes:He,slots:A,pendingTasks:1};try{if(as(c,f,C,Q,ie,ke),f.replay.pendingTasks===1&&0<f.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");f.replay.pendingTasks--}catch(ot){if(typeof ot=="object"&&ot!==null&&(ot===Vo||typeof ot.then=="function"))throw f.node===D?f.replay=ce:V.splice(ye,1),ot;f.replay.pendingTasks--,Q=wt(f.componentStack),ie=c,c=f.blockedBoundary,C=ot,ke=A,A=Zn(ie,C,Q,f.debugTask),Ls(ie,c,He,ke,C,A,Q,!1)}f.replay=ce}else{if(Q!==Ns)throw Error("Expected the resume to render <Suspense> in this slot but instead it rendered <"+(It(Q)||"Unknown")+">. The tree doesn't match so React will fallback to client rendering.");e:{ce=void 0,A=Be[5],Q=Be[2],ke=Be[3],D=Be[4]===null?[]:Be[4][2],Be=Be[4]===null?null:Be[4][3];var ze=f.keyPath,Ie=f.formatContext,ut=f.row,fn=f.replay,st=f.blockedBoundary,Lt=f.hoistableState,Wn=ie.children,$n=ie.fallback,jt=new Set;ie=f.formatContext.insertionMode<Wi?ts(c,f.row,jt,he(),he()):ts(c,f.row,jt,null,null),ie.parentFlushed=!0,ie.rootSegmentID=A,f.blockedBoundary=ie,f.hoistableState=ie.contentState,f.keyPath=C,f.formatContext=Ve(c.resumableState,Ie),f.row=null,f.replay={nodes:Q,slots:ke,pendingTasks:1};try{if(ui(c,f,Wn,-1),f.replay.pendingTasks===1&&0<f.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");if(f.replay.pendingTasks--,ie.pendingTasks===0&&ie.status===sn){ie.status=an,c.completedBoundaries.push(ie);break e}}catch(ot){ie.status=$e,He=wt(f.componentStack),ce=Zn(c,ot,He,f.debugTask),mo(ie,ce,ot,He,!1),f.replay.pendingTasks--,c.clientRenderedBoundaries.push(ie)}finally{f.blockedBoundary=st,f.hoistableState=Lt,f.replay=fn,f.keyPath=ze,f.formatContext=Ie,f.row=ut}ie=_u(c,null,{nodes:D,slots:Be,pendingTasks:0},$n,-1,st,ie.fallbackState,jt,[C[0],"Suspense Fallback",C[2]],_e(c.resumableState,f.formatContext),f.context,f.treeContext,f.row,il(f.componentStack),Wr,f.debugTask),rs(ie),c.pingedTasks.push(ie)}}V.splice(ye,1);break}}}function pa(c,f,C,A,D){A===f?(C!==-1||c.componentStack===null||typeof c.componentStack.type!="function"||Object.prototype.toString.call(c.componentStack.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(A)!=="[object Generator]")&&(Uo||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Uo=!0):f.entries!==D||Xo||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Xo=!0)}function cr(c,f,C,A){f.replay!==null&&typeof f.replay.slots=="number"?ga(c,f,f.replay.slots,C,A):(f.node=C,f.childIndex=A,C=f.componentStack,A=f.debugTask,rs(f),ma(c,f),f.componentStack=C,f.debugTask=A)}function ma(c,f){var C=f.node,A=f.childIndex;if(C!==null){if(typeof C=="object"){switch(C.$$typeof){case Wc:var D=C.type,V=C.key;C=C.props;var Q=C.ref;Q=Q!==void 0?Q:null;var ie=f.debugTask,ke=It(D);V=V??(A===-1?0:A);var ce=[f.keyPath,ke,V];f.replay!==null?ie?ie.run(Fs.bind(null,c,f,ce,ke,V,A,D,C,Q,f.replay)):Fs(c,f,ce,ke,V,A,D,C,Q,f.replay):ie?ie.run(as.bind(null,c,f,ce,D,C,Q)):as(c,f,ce,D,C,Q);return;case Ql:throw Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case zs:if(D=Pi(C),c.status===12)throw null;cr(c,f,D,A);return}if(No(C)){Ou(c,f,C,A);return}if((V=t(C))&&(D=V.call(C))){if(pa(f,C,A,D,V),C=D.next(),!C.done){V=[];do V.push(C.value),C=D.next();while(!C.done);Ou(c,f,V,A)}return}if(typeof C.then=="function")return f.thenableState=null,cr(c,f,ri(C),A);if(C.$$typeof===En)return cr(c,f,C._currentValue,A);throw c=Object.prototype.toString.call(C),Error("Objects are not valid as a React child (found: "+(c==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":c)+"). If you meant to render a collection of children, use an array instead.")}typeof C=="string"?(f=f.blockedSegment,f!==null&&(f.lastPushedText=Oe(f.chunks,C,c.renderState,f.lastPushedText))):typeof C=="number"||typeof C=="bigint"?(f=f.blockedSegment,f!==null&&(f.lastPushedText=Oe(f.chunks,""+C,c.renderState,f.lastPushedText))):(typeof C=="function"&&(c=C.displayName||C.name||"Component",console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.",c,c)),typeof C=="symbol"&&console.error(`Symbols are not valid as a React child.
|
|
247
|
-
%s`,String(C)))}}function vo(c,f,C){if(C!==null&&typeof C=="object"&&(C.$$typeof===Wc||C.$$typeof===Ql)&&C._store&&(!C._store.validated&&C.key==null||C._store.validated===2)){if(typeof C._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");C._store.validated=1;var A=c.didWarnForKey;if(A==null&&(A=c.didWarnForKey=new WeakSet),c=f.componentStack,c!==null&&!A.has(c)){A.add(c);var D=It(C.type);A=C._owner;var V=c.owner;if(c="",V&&typeof V.type<"u"){var Q=It(V.type);Q&&(c=`
|
|
248
|
-
|
|
249
|
-
Check the render method of \``+Q+"`.")}c||D&&(c=`
|
|
250
|
-
|
|
251
|
-
Check the top-level render call using <`+D+">."),D="",A!=null&&V!==A&&(V=null,typeof A.type<"u"?V=It(A.type):typeof A.name=="string"&&(V=A.name),V&&(D=" It was passed a child from "+V+".")),A=f.componentStack,f.componentStack={parent:f.componentStack,type:C.type,owner:C._owner,stack:C._debugStack},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',c,D),f.componentStack=A}}}function Ou(c,f,C,A){var D=f.keyPath,V=f.componentStack,Q=f.debugTask;if(is(f,f.node._debugInfo),A!==-1&&(f.keyPath=[f.keyPath,"Fragment",A],f.replay!==null)){for(var ie=f.replay,ke=ie.nodes,ce=0;ce<ke.length;ce++){var ye=ke[ce];if(ye[1]===A){A=ye[2],ye=ye[3],f.replay={nodes:A,slots:ye,pendingTasks:1};try{if(Ou(c,f,C,-1),f.replay.pendingTasks===1&&0<f.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");f.replay.pendingTasks--}catch(Ie){if(typeof Ie=="object"&&Ie!==null&&(Ie===Vo||typeof Ie.then=="function"))throw Ie;f.replay.pendingTasks--;var Be=wt(f.componentStack);C=f.blockedBoundary;var He=Ie,ze=ye;ye=Zn(c,He,Be,f.debugTask),Ls(c,C,A,ze,He,ye,Be,!1)}f.replay=ie,ke.splice(ce,1);break}}f.keyPath=D,f.componentStack=V,f.debugTask=Q;return}if(ie=f.treeContext,ke=C.length,f.replay!==null&&(ce=f.replay.slots,ce!==null&&typeof ce=="object")){for(A=0;A<ke;A++)ye=C[A],f.treeContext=ha(ie,ke,A),He=ce[A],typeof He=="number"?(ga(c,f,He,ye,A),delete ce[A]):ui(c,f,ye,A);f.treeContext=ie,f.keyPath=D,f.componentStack=V,f.debugTask=Q;return}for(ce=0;ce<ke;ce++)A=C[ce],vo(c,f,A),f.treeContext=ha(ie,ke,ce),ui(c,f,A,ce);f.treeContext=ie,f.keyPath=D,f.componentStack=V,f.debugTask=Q}function Fu(c,f,C){if(C.status=Tt,C.rootSegmentID=c.nextSegmentId++,c=C.trackedContentKeyPath,c===null)throw Error("It should not be possible to postpone at the root. This is a bug in React.");var A=C.trackedFallbackNode,D=[],V=f.workingMap.get(c);return V===void 0?(C=[c[1],c[2],D,null,A,C.rootSegmentID],f.workingMap.set(c,C),Br(C,c[0],f),C):(V[4]=A,V[5]=C.rootSegmentID,V)}function Lu(c,f,C,A){A.status=Tt;var D=C.keyPath,V=C.blockedBoundary;if(V===null)A.id=c.nextSegmentId++,f.rootSlots=A.id,c.completedRootSegment!==null&&(c.completedRootSegment.status=Tt);else{if(V!==null&&V.status===sn){var Q=Fu(c,f,V);if(V.trackedContentKeyPath===D&&C.childIndex===-1){A.id===-1&&(A.id=A.parentFlushed?V.rootSegmentID:c.nextSegmentId++),Q[3]=A.id;return}}if(A.id===-1&&(A.id=A.parentFlushed&&V!==null?V.rootSegmentID:c.nextSegmentId++),C.childIndex===-1)D===null?f.rootSlots=A.id:(C=f.workingMap.get(D),C===void 0?(C=[D[1],D[2],[],A.id],Br(C,D[0],f)):C[3]=A.id);else{if(D===null){if(c=f.rootSlots,c===null)c=f.rootSlots={};else if(typeof c=="number")throw Error("It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.")}else if(V=f.workingMap,Q=V.get(D),Q===void 0)c={},Q=[D[1],D[2],[],c],V.set(D,Q),Br(Q,D[0],f);else if(c=Q[3],c===null)c=Q[3]={};else if(typeof c=="number")throw Error("It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.");c[C.childIndex]=A.id}}}function rl(c,f){c=c.trackedPostpones,c!==null&&(f=f.trackedContentKeyPath,f!==null&&(f=c.workingMap.get(f),f!==void 0&&(f.length=4,f[2]=[],f[3]=null)))}function ol(c,f,C){return _u(c,C,f.replay,f.node,f.childIndex,f.blockedBoundary,f.hoistableState,f.abortSet,f.keyPath,f.formatContext,f.context,f.treeContext,f.row,f.componentStack,Wr,f.debugTask)}function sl(c,f,C){var A=f.blockedSegment,D=ns(c,A.chunks.length,null,f.formatContext,A.lastPushedText,!0);return A.children.push(D),A.lastPushedText=!1,po(c,C,f.node,f.childIndex,f.blockedBoundary,D,f.blockedPreamble,f.hoistableState,f.abortSet,f.keyPath,f.formatContext,f.context,f.treeContext,f.row,f.componentStack,Wr,f.debugTask)}function ui(c,f,C,A){var D=f.formatContext,V=f.context,Q=f.keyPath,ie=f.treeContext,ke=f.componentStack,ce=f.debugTask,ye=f.blockedSegment;if(ye===null){ye=f.replay;try{return cr(c,f,C,A)}catch(ze){if(fa(),C=ze===Vo?Pu():ze,c.status!==12&&typeof C=="object"&&C!==null){if(typeof C.then=="function"){A=ze===Vo?Fr():null,c=ol(c,f,A).ping,C.then(c,c),f.formatContext=D,f.context=V,f.keyPath=Q,f.treeContext=ie,f.componentStack=ke,f.replay=ye,f.debugTask=ce,Xt(V);return}if(C.message==="Maximum call stack size exceeded"){C=ze===Vo?Fr():null,C=ol(c,f,C),c.pingedTasks.push(C),f.formatContext=D,f.context=V,f.keyPath=Q,f.treeContext=ie,f.componentStack=ke,f.replay=ye,f.debugTask=ce,Xt(V);return}}}}else{var Be=ye.children.length,He=ye.chunks.length;try{return cr(c,f,C,A)}catch(ze){if(fa(),ye.children.length=Be,ye.chunks.length=He,C=ze===Vo?Pu():ze,c.status!==12&&typeof C=="object"&&C!==null){if(typeof C.then=="function"){ye=C,C=ze===Vo?Fr():null,c=sl(c,f,C).ping,ye.then(c,c),f.formatContext=D,f.context=V,f.keyPath=Q,f.treeContext=ie,f.componentStack=ke,f.debugTask=ce,Xt(V);return}if(C.message==="Maximum call stack size exceeded"){ye=ze===Vo?Fr():null,ye=sl(c,f,ye),c.pingedTasks.push(ye),f.formatContext=D,f.context=V,f.keyPath=Q,f.treeContext=ie,f.componentStack=ke,f.debugTask=ce,Xt(V);return}}}}throw f.formatContext=D,f.context=V,f.keyPath=Q,f.treeContext=ie,Xt(V),C}function bh(c){var f=c.blockedBoundary,C=c.blockedSegment;C!==null&&(C.status=Bn,Ds(this,f,c.row,C))}function Ls(c,f,C,A,D,V,Q,ie){for(var ke=0;ke<C.length;ke++){var ce=C[ke];if(ce.length===4)Ls(c,f,ce[2],ce[3],D,V,Q,ie);else{var ye=c;ce=ce[5];var Be=D,He=V,ze=Q,Ie=ie,ut=ts(ye,null,new Set,null,null);ut.parentFlushed=!0,ut.rootSegmentID=ce,ut.status=$e,mo(ut,He,Be,ze,Ie),ut.parentFlushed&&ye.clientRenderedBoundaries.push(ut)}}if(C.length=0,A!==null){if(f===null)throw Error("We should not have any resumable nodes in the shell. This is a bug in React.");if(f.status!==$e&&(f.status=$e,mo(f,V,D,Q,ie),f.parentFlushed&&c.clientRenderedBoundaries.push(f)),typeof A=="object")for(var fn in A)delete A[fn]}}function Zl(c,f,C){var A=c.blockedBoundary,D=c.blockedSegment;if(D!==null){if(D.status===6)return;D.status=Bn}var V=wt(c.componentStack),Q=c.node;if(Q!==null&&typeof Q=="object"&&nl(c,Q._debugInfo),A===null){if(f.status!==13&&f.status!==Qi){if(A=c.replay,A===null){f.trackedPostpones!==null&&D!==null?(A=f.trackedPostpones,Zn(f,C,V,c.debugTask),Lu(f,A,c,D),Ds(f,null,c.row,D)):(Zn(f,C,V,c.debugTask),Io(f,C,V,c.debugTask));return}A.pendingTasks--,A.pendingTasks===0&&0<A.nodes.length&&(D=Zn(f,C,V,null),Ls(f,null,A.nodes,A.slots,C,D,V,!0)),f.pendingRootTasks--,f.pendingRootTasks===0&&ls(f)}}else{if(Q=f.trackedPostpones,A.status!==$e){if(Q!==null&&D!==null)return Zn(f,C,V,c.debugTask),Lu(f,Q,c,D),A.fallbackAbortableTasks.forEach(function(ie){return Zl(ie,f,C)}),A.fallbackAbortableTasks.clear(),Ds(f,A,c.row,D);A.status=$e,D=Zn(f,C,V,c.debugTask),A.status=$e,mo(A,D,C,V,!0),rl(f,A),A.parentFlushed&&f.clientRenderedBoundaries.push(A)}A.pendingTasks--,V=A.row,V!==null&&--V.pendingTasks===0&&oi(f,V),A.fallbackAbortableTasks.forEach(function(ie){return Zl(ie,f,C)}),A.fallbackAbortableTasks.clear()}c=c.row,c!==null&&--c.pendingTasks===0&&oi(f,c),f.allPendingTasks--,f.allPendingTasks===0&&Is(f)}function Bc(c,f){try{var C=c.renderState,A=C.onHeaders;if(A){var D=C.headers;if(D){C.headers=null;var V=D.preconnects;if(D.fontPreloads&&(V&&(V+=", "),V+=D.fontPreloads),D.highImagePreloads&&(V&&(V+=", "),V+=D.highImagePreloads),!f){var Q=C.styles.values(),ie=Q.next();e:for(;0<D.remainingCapacity&&!ie.done;ie=Q.next())for(var ke=ie.value.sheets.values(),ce=ke.next();0<D.remainingCapacity&&!ce.done;ce=ke.next()){var ye=ce.value,Be=ye.props,He=Be.href,ze=ye.props,Ie=As(ze.href,"style",{crossOrigin:ze.crossOrigin,integrity:ze.integrity,nonce:ze.nonce,type:ze.type,fetchPriority:ze.fetchPriority,referrerPolicy:ze.referrerPolicy,media:ze.media});if(0<=(D.remainingCapacity-=Ie.length+2))C.resets.style[He]=hi,V&&(V+=", "),V+=Ie,C.resets.style[He]=typeof Be.crossOrigin=="string"||typeof Be.integrity=="string"?[Be.crossOrigin,Be.integrity]:hi;else break e}}A(V?{Link:V}:{})}}}catch(ut){Zn(c,ut,{},null)}}function ls(c){c.trackedPostpones===null&&Bc(c,!0),c.trackedPostpones===null&&va(c),c.onShellError=Ni,c=c.onShellReady,c()}function Is(c){Bc(c,c.trackedPostpones===null?!0:c.completedRootSegment===null||c.completedRootSegment.status!==Tt),va(c),c=c.onAllReady,c()}function al(c,f){if(f.chunks.length===0&&f.children.length===1&&f.children[0].boundary===null&&f.children[0].id===-1){var C=f.children[0];C.id=f.id,C.parentFlushed=!0,C.status!==an&&C.status!==Bn&&C.status!==Ht||al(c,C)}else c.completedSegments.push(f)}function yo(c,f,C){if(P!==null){C=C.chunks;for(var A=0,D=0;D<C.length;D++)A+=C[D].byteLength;f===null?c.byteSize+=A:f.byteSize+=A}}function Ds(c,f,C,A){if(C!==null&&(--C.pendingTasks===0?oi(c,C):C.together&&da(c,C)),c.allPendingTasks--,f===null){if(A!==null&&A.parentFlushed){if(c.completedRootSegment!==null)throw Error("There can only be one root segment. This is a bug in React.");c.completedRootSegment=A}c.pendingRootTasks--,c.pendingRootTasks===0&&ls(c)}else if(f.pendingTasks--,f.status!==$e)if(f.pendingTasks===0){if(f.status===sn&&(f.status=an),A!==null&&A.parentFlushed&&(A.status===an||A.status===Bn)&&al(f,A),f.parentFlushed&&c.completedBoundaries.push(f),f.status===an)C=f.row,C!==null&&Ut(C.hoistables,f.contentState),ar(c,f)||(f.fallbackAbortableTasks.forEach(bh,c),f.fallbackAbortableTasks.clear(),C!==null&&--C.pendingTasks===0&&oi(c,C)),c.pendingRootTasks===0&&c.trackedPostpones===null&&f.contentPreamble!==null&&va(c);else if(f.status===Tt&&(f=f.row,f!==null)){if(c.trackedPostpones!==null){C=c.trackedPostpones;var D=f.next;if(D!==null&&(A=D.boundaries,A!==null))for(D.boundaries=null,D=0;D<A.length;D++){var V=A[D];Fu(c,C,V),Ds(c,V,null,null)}}--f.pendingTasks===0&&oi(c,f)}}else A===null||!A.parentFlushed||A.status!==an&&A.status!==Bn||(al(f,A),f.completedSegments.length===1&&f.parentFlushed&&c.partialBoundaries.push(f)),f=f.row,f!==null&&f.together&&da(c,f);c.allPendingTasks===0&&Is(c)}function Bs(c){if(c.status!==Qi&&c.status!==13){var f=ys,C=At.H;At.H=dc;var A=At.A;At.A=S;var D=ln;ln=c;var V=At.getCurrentStack;At.getCurrentStack=Lo;var Q=h;h=c.resumableState;try{var ie=c.pingedTasks,ke;for(ke=0;ke<ie.length;ke++){var ce=c,ye=ie[ke],Be=ye.blockedSegment;if(Be===null){var He=void 0,ze=ce;if(ce=ye,ce.replay.pendingTasks!==0){Xt(ce.context),He=d,d=ce;try{if(typeof ce.replay.slots=="number"?ga(ze,ce,ce.replay.slots,ce.node,ce.childIndex):ma(ze,ce),ce.replay.pendingTasks===1&&0<ce.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");ce.replay.pendingTasks--,ce.abortSet.delete(ce),Ds(ze,ce.blockedBoundary,ce.row,null)}catch(Nn){fa();var Ie=Nn===Vo?Pu():Nn;if(typeof Ie=="object"&&Ie!==null&&typeof Ie.then=="function"){var ut=ce.ping;Ie.then(ut,ut),ce.thenableState=Nn===Vo?Fr():null}else{ce.replay.pendingTasks--,ce.abortSet.delete(ce);var fn=wt(ce.componentStack),st=void 0,Lt=ze,Wn=ce.blockedBoundary,$n=ze.status===12?ze.fatalError:Ie,jt=fn,ot=ce.replay.nodes,ei=ce.replay.slots;st=Zn(Lt,$n,jt,ce.debugTask),Ls(Lt,Wn,ot,ei,$n,st,jt,!1),ze.pendingRootTasks--,ze.pendingRootTasks===0&&ls(ze),ze.allPendingTasks--,ze.allPendingTasks===0&&Is(ze)}}finally{d=He}}}else if(ze=He=void 0,st=ye,Lt=Be,Lt.status===sn){Lt.status=6,Xt(st.context),ze=d,d=st;var ji=Lt.children.length,dn=Lt.chunks.length;try{ma(ce,st),Lt.lastPushedText&&Lt.textEmbedded&&Lt.chunks.push(Qn),st.abortSet.delete(st),Lt.status=an,yo(ce,st.blockedBoundary,Lt),Ds(ce,st.blockedBoundary,st.row,Lt)}catch(Nn){fa(),Lt.children.length=ji,Lt.chunks.length=dn;var Mn=Nn===Vo?Pu():ce.status===12?ce.fatalError:Nn;if(ce.status===12&&ce.trackedPostpones!==null){var Sr=ce.trackedPostpones,Ai=wt(st.componentStack);st.abortSet.delete(st),Zn(ce,Mn,Ai,st.debugTask),Lu(ce,Sr,st,Lt),Ds(ce,st.blockedBoundary,st.row,Lt)}else if(typeof Mn=="object"&&Mn!==null&&typeof Mn.then=="function"){Lt.status=sn,st.thenableState=Nn===Vo?Fr():null;var di=st.ping;Mn.then(di,di)}else{var An=wt(st.componentStack);st.abortSet.delete(st),Lt.status=Ht;var ai=st.blockedBoundary,Tr=st.row,Vr=st.debugTask;if(Tr!==null&&--Tr.pendingTasks===0&&oi(ce,Tr),ce.allPendingTasks--,He=Zn(ce,Mn,An,Vr),ai===null)Io(ce,Mn,An,Vr);else if(ai.pendingTasks--,ai.status!==$e){ai.status=$e,mo(ai,He,Mn,An,!1),rl(ce,ai);var gi=ai.row;gi!==null&&--gi.pendingTasks===0&&oi(ce,gi),ai.parentFlushed&&ce.clientRenderedBoundaries.push(ai),ce.pendingRootTasks===0&&ce.trackedPostpones===null&&ai.contentPreamble!==null&&va(ce)}ce.allPendingTasks===0&&Is(ce)}}finally{d=ze}}}ie.splice(0,ke),c.destination!==null&&Lr(c,c.destination)}catch(Nn){ie={},Zn(c,Nn,ie,null),Io(c,Nn,ie,null)}finally{h=Q,At.H=C,At.A=A,At.getCurrentStack=V,C===dc&&Xt(f),ln=D}}}function Iu(c,f,C){f.preambleChildren.length&&C.push(f.preambleChildren);for(var A=!1,D=0;D<f.children.length;D++)A=Qh(c,f.children[D],C)||A;return A}function Qh(c,f,C){var A=f.boundary;if(A===null)return Iu(c,f,C);var D=A.contentPreamble,V=A.fallbackPreamble;if(D===null||V===null)return!1;switch(A.status){case an:if(Tu(c.renderState,D),c.byteSize+=A.byteSize,f=A.completedSegments[0],!f)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");return Iu(c,f,C);case Tt:if(c.trackedPostpones!==null)return!0;case $e:if(f.status===an)return Tu(c.renderState,V),Iu(c,f,C);default:return!0}}function va(c){if(c.completedRootSegment&&c.completedPreambleSegments===null){var f=[],C=c.byteSize,A=Qh(c,c.completedRootSegment,f),D=c.renderState.preamble;A===!1||D.headChunks&&D.bodyChunks?c.completedPreambleSegments=f:c.byteSize=C}}function Jn(c,f,C,A){switch(C.parentFlushed=!0,C.status){case sn:C.id=c.nextSegmentId++;case Tt:return A=C.id,C.lastPushedText=!1,C.textEmbedded=!1,c=c.renderState,m(f,lc),m(f,c.placeholderPrefix),c=E(A.toString(16)),m(f,c),b(f,Qc);case an:C.status=hn;var D=!0,V=C.chunks,Q=0;C=C.children;for(var ie=0;ie<C.length;ie++){for(D=C[ie];Q<D.index;Q++)m(f,V[Q]);D=Bo(c,f,D,A)}for(;Q<V.length-1;Q++)m(f,V[Q]);return Q<V.length&&(D=b(f,V[Q])),D;case Bn:return!0;default:throw Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Bo(c,f,C,A){var D=C.boundary;if(D===null)return Jn(c,f,C,A);if(D.parentFlushed=!0,D.status===$e){var V=D.row;V!==null&&--V.pendingTasks===0&&oi(c,V),V=D.errorDigest;var Q=D.errorMessage,ie=D.errorStack;D=D.errorComponentStack,b(f,Sh),m(f,cc),V&&(m(f,gl),m(f,E(me(V))),m(f,wo)),Q&&(m(f,Zs),m(f,E(me(Q))),m(f,wo)),ie&&(m(f,uc),m(f,E(me(ie))),m(f,wo)),D&&(m(f,Ks),m(f,E(me(D))),m(f,wo)),b(f,Th),Jn(c,f,C,A)}else if(D.status!==an)D.status===sn&&(D.rootSegmentID=c.nextSegmentId++),0<D.completedSegments.length&&c.partialBoundaries.push(D),es(f,c.renderState,D.rootSegmentID),A&&Ut(A,D.fallbackState),Jn(c,f,C,A);else if(!yi&&ar(c,D)&&(Yo+D.byteSize>c.progressiveChunkSize||ph(D.contentState)))D.rootSegmentID=c.nextSegmentId++,c.completedBoundaries.push(D),es(f,c.renderState,D.rootSegmentID),Jn(c,f,C,A);else{if(Yo+=D.byteSize,A&&Ut(A,D.contentState),C=D.row,C!==null&&ar(c,D)&&--C.pendingTasks===0&&oi(c,C),b(f,qc),C=D.completedSegments,C.length!==1)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");Bo(c,f,C[0],A)}return b(f,Aa)}function Kl(c,f,C,A){return Ru(f,c.renderState,C.parentFormatContext,C.id),Bo(c,f,C,A),Il(f,C.parentFormatContext)}function Jl(c,f,C){Yo=C.byteSize;for(var A=C.completedSegments,D=0;D<A.length;D++)Nc(c,f,C,A[D]);A.length=0,A=C.row,A!==null&&ar(c,C)&&--A.pendingTasks===0&&oi(c,A),_n(f,C.contentState,c.renderState),A=c.resumableState,c=c.renderState,D=C.rootSegmentID,C=C.contentState;var V=c.stylesToHoist;return c.stylesToHoist=!1,m(f,c.startInlineScript),m(f,Ln),V?((A.instructions&tn)===Fn&&(A.instructions|=tn,m(f,Xi)),(A.instructions&zi)===Fn&&(A.instructions|=zi,m(f,vt)),(A.instructions&Vt)===Fn?(A.instructions|=Vt,m(f,In)):m(f,xn)):((A.instructions&zi)===Fn&&(A.instructions|=zi,m(f,vt)),m(f,Bt)),A=E(D.toString(16)),m(f,c.boundaryPrefix),m(f,A),m(f,Ri),m(f,c.segmentPrefix),m(f,A),V?(m(f,br),Mo(f,C)):m(f,$r),C=b(f,yt),Eu(f,c)&&C}function Nc(c,f,C,A){if(A.status===hn)return!0;var D=C.contentState,V=A.id;if(V===-1){if((A.id=C.rootSegmentID)===-1)throw Error("A root segment ID must have been assigned by now. This is a bug in React.");return Kl(c,f,A,D)}return V===C.rootSegmentID?Kl(c,f,A,D):(Kl(c,f,A,D),C=c.resumableState,c=c.renderState,m(f,c.startInlineScript),m(f,Ln),(C.instructions&Zt)===Fn?(C.instructions|=Zt,m(f,Pe)):m(f,Ze),m(f,c.segmentPrefix),V=E(V.toString(16)),m(f,V),m(f,Ye),m(f,c.placeholderPrefix),m(f,V),f=b(f,Dt),f)}function Lr(c,f){Ti=new Uint8Array(2048),mi=0;try{if(!(0<c.pendingRootTasks)){var C,A=c.completedRootSegment;if(A!==null){if(A.status===Tt)return;var D=c.completedPreambleSegments;if(D===null)return;Yo=c.byteSize;var V=c.resumableState,Q=c.renderState,ie=Q.preamble,ke=ie.htmlChunks,ce=ie.headChunks,ye;if(ke){for(ye=0;ye<ke.length;ye++)m(f,ke[ye]);if(ce)for(ye=0;ye<ce.length;ye++)m(f,ce[ye]);else m(f,mn("head")),m(f,Ln)}else if(ce)for(ye=0;ye<ce.length;ye++)m(f,ce[ye]);var Be=Q.charsetChunks;for(ye=0;ye<Be.length;ye++)m(f,Be[ye]);Be.length=0,Q.preconnects.forEach(Cn,f),Q.preconnects.clear();var He=Q.viewportChunks;for(ye=0;ye<He.length;ye++)m(f,He[ye]);He.length=0,Q.fontPreloads.forEach(Cn,f),Q.fontPreloads.clear(),Q.highImagePreloads.forEach(Cn,f),Q.highImagePreloads.clear(),Ot=Q,Q.styles.forEach(la,f),Ot=null;var ze=Q.importMapChunks;for(ye=0;ye<ze.length;ye++)m(f,ze[ye]);ze.length=0,Q.bootstrapScripts.forEach(Cn,f),Q.scripts.forEach(Cn,f),Q.scripts.clear(),Q.bulkPreloads.forEach(Cn,f),Q.bulkPreloads.clear(),ke||ce||(V.instructions|=Kt);var Ie=Q.hoistableChunks;for(ye=0;ye<Ie.length;ye++)m(f,Ie[ye]);for(V=Ie.length=0;V<D.length;V++){var ut=D[V];for(Q=0;Q<ut.length;Q++)Bo(c,f,ut[Q],null)}var fn=c.renderState.preamble,st=fn.headChunks;(fn.htmlChunks||st)&&m(f,Gn("head"));var Lt=fn.bodyChunks;if(Lt)for(D=0;D<Lt.length;D++)m(f,Lt[D]);Bo(c,f,A,null),c.completedRootSegment=null;var Wn=c.renderState;if(c.allPendingTasks!==0||c.clientRenderedBoundaries.length!==0||c.completedBoundaries.length!==0||c.trackedPostpones!==null&&(c.trackedPostpones.rootNodes.length!==0||c.trackedPostpones.rootSlots!==null)){var $n=c.resumableState;if(($n.instructions&xt)===Fn){if($n.instructions|=xt,m(f,Wn.startInlineScript),($n.instructions&Kt)===Fn){$n.instructions|=Kt;var jt="_"+$n.idPrefix+"R_";m(f,$c),m(f,E(me(jt))),m(f,_t)}m(f,Ln),m(f,ac),b(f,fs)}}Eu(f,Wn)}var ot=c.renderState;A=0;var ei=ot.viewportChunks;for(A=0;A<ei.length;A++)m(f,ei[A]);ei.length=0,ot.preconnects.forEach(Cn,f),ot.preconnects.clear(),ot.fontPreloads.forEach(Cn,f),ot.fontPreloads.clear(),ot.highImagePreloads.forEach(Cn,f),ot.highImagePreloads.clear(),ot.styles.forEach(ku,f),ot.scripts.forEach(Cn,f),ot.scripts.clear(),ot.bulkPreloads.forEach(Cn,f),ot.bulkPreloads.clear();var ji=ot.hoistableChunks;for(A=0;A<ji.length;A++)m(f,ji[A]);ji.length=0;var dn=c.clientRenderedBoundaries;for(C=0;C<dn.length;C++){var Mn=dn[C];ot=f;var Sr=c.resumableState,Ai=c.renderState,di=Mn.rootSegmentID,An=Mn.errorDigest,ai=Mn.errorMessage,Tr=Mn.errorStack,Vr=Mn.errorComponentStack;m(ot,Ai.startInlineScript),m(ot,Ln),(Sr.instructions&tn)===Fn?(Sr.instructions|=tn,m(ot,Xn)):m(ot,fr),m(ot,Ai.boundaryPrefix),m(ot,E(di.toString(16))),m(ot,vs),(An||ai||Tr||Vr)&&(m(ot,Dn),m(ot,E(sa(An||"")))),(ai||Tr||Vr)&&(m(ot,Dn),m(ot,E(sa(ai||"")))),(Tr||Vr)&&(m(ot,Dn),m(ot,E(sa(Tr||"")))),Vr&&(m(ot,Dn),m(ot,E(sa(Vr))));var gi=b(ot,Oa);if(!gi){c.destination=null,C++,dn.splice(0,C);return}}dn.splice(0,C);var Nn=c.completedBoundaries;for(C=0;C<Nn.length;C++)if(!Jl(c,f,Nn[C])){c.destination=null,C++,Nn.splice(0,C);return}Nn.splice(0,C),w(f),Ti=new Uint8Array(2048),mi=0,yi=!0;var qi=c.partialBoundaries;for(C=0;C<qi.length;C++){e:{dn=c,Mn=f;var Er=qi[C];Yo=Er.byteSize;var $i=Er.completedSegments;for(gi=0;gi<$i.length;gi++)if(!Nc(dn,Mn,Er,$i[gi])){gi++,$i.splice(0,gi);var ws=!1;break e}$i.splice(0,gi);var Rr=Er.row;Rr!==null&&Rr.together&&Er.pendingTasks===1&&(Rr.pendingTasks===1?Os(dn,Rr,Rr.hoistables):Rr.pendingTasks--),ws=_n(Mn,Er.contentState,dn.renderState)}if(!ws){c.destination=null,C++,qi.splice(0,C);return}}qi.splice(0,C),yi=!1;var ti=c.completedBoundaries;for(C=0;C<ti.length;C++)if(!Jl(c,f,ti[C])){c.destination=null,C++,ti.splice(0,C);return}ti.splice(0,C)}}finally{yi=!1,c.allPendingTasks===0&&c.clientRenderedBoundaries.length===0&&c.completedBoundaries.length===0?(c.flushScheduled=!1,C=c.resumableState,C.hasBody&&m(f,Gn("body")),C.hasHtml&&m(f,Gn("html")),w(f),c.abortableTasks.size!==0&&console.error("There was still abortable task at the root when we closed. This is a bug in React."),c.status=Qi,f.close(),c.destination=null):w(f)}}function Ir(c){c.flushScheduled=c.destination!==null,wa(function(){return Bs(c)}),u(function(){c.status===10&&(c.status=11),c.trackedPostpones===null&&Bc(c,c.pendingRootTasks===0)})}function yr(c){c.flushScheduled===!1&&c.pingedTasks.length===0&&c.destination!==null&&(c.flushScheduled=!0,u(function(){var f=c.destination;f?Lr(c,f):c.flushScheduled=!1}))}function Dr(c,f){if(c.status===13)c.status=Qi,M(f,c.fatalError);else if(c.status!==Qi&&c.destination===null){c.destination=f;try{Lr(c,f)}catch(C){f={},Zn(c,C,f,null),Io(c,C,f,null)}}}function un(c,f){(c.status===11||c.status===10)&&(c.status=12);try{var C=c.abortableTasks;if(0<C.size){var A=f===void 0?Error("The render was aborted by the server without a reason."):typeof f=="object"&&f!==null&&typeof f.then=="function"?Error("The render was aborted by the server with a promise."):f;c.fatalError=A,C.forEach(function(D){var V=d,Q=At.getCurrentStack;d=D,At.getCurrentStack=Lo;try{Zl(D,c,A)}finally{d=V,At.getCurrentStack=Q}}),C.clear()}c.destination!==null&&Lr(c,c.destination)}catch(D){f={},Zn(c,D,f,null),Io(c,D,f,null)}}function Br(c,f,C){if(f===null)C.rootNodes.push(c);else{var A=C.workingMap,D=A.get(f);D===void 0&&(D=[f[1],f[2],[],null],A.set(f,D),Br(D,f[0],C)),D[2].push(c)}}function Tn(c){var f=c.trackedPostpones;if(f===null||f.rootNodes.length===0&&f.rootSlots===null)return c.trackedPostpones=null;if(c.completedRootSegment===null||c.completedRootSegment.status!==Tt&&c.completedPreambleSegments!==null){var C=c.nextSegmentId,A=f.rootSlots,D=c.resumableState;D.bootstrapScriptContent=void 0,D.bootstrapScripts=void 0,D.bootstrapModules=void 0}else{C=0,A=-1,D=c.resumableState;var V=c.renderState;D.nextFormID=0,D.hasBody=!1,D.hasHtml=!1,D.unknownResources={font:V.resets.font},D.dnsResources=V.resets.dns,D.connectResources=V.resets.connect,D.imageResources=V.resets.image,D.styleResources=V.resets.style,D.scriptResources={},D.moduleUnknownResources={},D.moduleScriptResources={},D.instructions=Fn}return{nextSegmentId:C,rootFormatContext:c.rootFormatContext,progressiveChunkSize:c.progressiveChunkSize,resumableState:c.resumableState,replayNodes:f.rootNodes,replaySlots:A}}function bo(){var c=zc.version;if(c!=="19.2.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
252
|
-
- react: `+(c+`
|
|
253
|
-
- react-dom: 19.2.0
|
|
254
|
-
Learn more: https://react.dev/warnings/version-mismatch`))}var zc=ge,Hc=rd,Wc=Symbol.for("react.transitional.element"),Ql=Symbol.for("react.portal"),cs=Symbol.for("react.fragment"),jl=Symbol.for("react.strict_mode"),ql=Symbol.for("react.profiler"),ur=Symbol.for("react.consumer"),En=Symbol.for("react.context"),Yt=Symbol.for("react.forward_ref"),Ns=Symbol.for("react.suspense"),ya=Symbol.for("react.suspense_list"),ba=Symbol.for("react.memo"),zs=Symbol.for("react.lazy"),Du=Symbol.for("react.scope"),pi=Symbol.for("react.activity"),jh=Symbol.for("react.legacy_hidden"),xo=Symbol.for("react.memo_cache_sentinel"),xh=Symbol.for("react.view_transition"),Bu=Symbol.iterator,No=Array.isArray,$l=new WeakMap,Si=new WeakMap,us=Symbol.for("react.client.reference"),wh=new MessageChannel,xa=[];wh.port1.onmessage=function(){var c=xa.shift();c&&c()};var Vc=Promise,wa=typeof queueMicrotask=="function"?queueMicrotask:function(c){Vc.resolve(null).then(c).catch(g)},Ti=null,mi=0,Hs=new TextEncoder,bn=Object.assign,on=Object.prototype.hasOwnProperty,Ca=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ll={},Gc={},cl=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Nu=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),qh={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},On={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},hs={},Ch=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),v=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),x=!1,k={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},O={},z=/^on./,Z=/^on[^A-Z]/,j=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Se=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),oe=/^(?:webkit|moz|o)[A-Z]/,xe=/^-ms-/,Le=/-(.)/g,Ae=/;\s*$/,Ue={},rt={},Mt=!1,mt=!1,at=/["'&<>]/,bt=/([A-Z])/g,dt=/^ms-/,Rn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,At=zc.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,zt=Hc.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qt=Object.freeze({pending:!1,data:null,method:null,action:null}),Ct=zt.d;zt.d={f:Ct.f,r:Ct.r,D:function(c){var f=ln||null;if(f){var C=f.resumableState,A=f.renderState;if(typeof c=="string"&&c){if(!C.dnsResources.hasOwnProperty(c)){C.dnsResources[c]=Jt,C=A.headers;var D,V;(V=C&&0<C.remainingCapacity)&&(V=(D="<"+ua(c)+">; rel=dns-prefetch",0<=(C.remainingCapacity-=D.length+2))),V?(A.resets.dns[c]=Jt,C.preconnects&&(C.preconnects+=", "),C.preconnects+=D):(D=[],xi(D,{href:c,rel:"dns-prefetch"}),A.preconnects.add(D))}yr(f)}}else Ct.D(c)},C:function(c,f){var C=ln||null;if(C){var A=C.resumableState,D=C.renderState;if(typeof c=="string"&&c){var V=f==="use-credentials"?"credentials":typeof f=="string"?"anonymous":"default";if(!A.connectResources[V].hasOwnProperty(c)){A.connectResources[V][c]=Jt,A=D.headers;var Q,ie;if(ie=A&&0<A.remainingCapacity){if(ie="<"+ua(c)+">; rel=preconnect",typeof f=="string"){var ke=vr(f,"crossOrigin");ie+='; crossorigin="'+ke+'"'}ie=(Q=ie,0<=(A.remainingCapacity-=Q.length+2))}ie?(D.resets.connect[V][c]=Jt,A.preconnects&&(A.preconnects+=", "),A.preconnects+=Q):(V=[],xi(V,{rel:"preconnect",href:c,crossOrigin:f}),D.preconnects.add(V))}yr(C)}}else Ct.C(c,f)},L:function(c,f,C){var A=ln||null;if(A){var D=A.resumableState,V=A.renderState;if(f&&c){switch(f){case"image":if(C)var Q=C.imageSrcSet,ie=C.imageSizes,ke=C.fetchPriority;var ce=Q?Q+`
|
|
255
|
-
`+(ie||""):c;if(D.imageResources.hasOwnProperty(ce))return;D.imageResources[ce]=hi,D=V.headers;var ye;D&&0<D.remainingCapacity&&typeof Q!="string"&&ke==="high"&&(ye=As(c,f,C),0<=(D.remainingCapacity-=ye.length+2))?(V.resets.image[ce]=hi,D.highImagePreloads&&(D.highImagePreloads+=", "),D.highImagePreloads+=ye):(D=[],xi(D,bn({rel:"preload",href:Q?void 0:c,as:f},C)),ke==="high"?V.highImagePreloads.add(D):(V.bulkPreloads.add(D),V.preloads.images.set(ce,D)));break;case"style":if(D.styleResources.hasOwnProperty(c))return;Q=[],xi(Q,bn({rel:"preload",href:c,as:f},C)),D.styleResources[c]=!C||typeof C.crossOrigin!="string"&&typeof C.integrity!="string"?hi:[C.crossOrigin,C.integrity],V.preloads.stylesheets.set(c,Q),V.bulkPreloads.add(Q);break;case"script":if(D.scriptResources.hasOwnProperty(c))return;Q=[],V.preloads.scripts.set(c,Q),V.bulkPreloads.add(Q),xi(Q,bn({rel:"preload",href:c,as:f},C)),D.scriptResources[c]=!C||typeof C.crossOrigin!="string"&&typeof C.integrity!="string"?hi:[C.crossOrigin,C.integrity];break;default:if(D.unknownResources.hasOwnProperty(f)){if(Q=D.unknownResources[f],Q.hasOwnProperty(c))return}else Q={},D.unknownResources[f]=Q;if(Q[c]=hi,(D=V.headers)&&0<D.remainingCapacity&&f==="font"&&(ce=As(c,f,C),0<=(D.remainingCapacity-=ce.length+2)))V.resets.font[c]=hi,D.fontPreloads&&(D.fontPreloads+=", "),D.fontPreloads+=ce;else switch(D=[],c=bn({rel:"preload",href:c,as:f},C),xi(D,c),f){case"font":V.fontPreloads.add(D);break;default:V.bulkPreloads.add(D)}}yr(A)}}else Ct.L(c,f,C)},m:function(c,f){var C=ln||null;if(C){var A=C.resumableState,D=C.renderState;if(c){var V=f&&typeof f.as=="string"?f.as:"script";switch(V){case"script":if(A.moduleScriptResources.hasOwnProperty(c))return;V=[],A.moduleScriptResources[c]=!f||typeof f.crossOrigin!="string"&&typeof f.integrity!="string"?hi:[f.crossOrigin,f.integrity],D.preloads.moduleScripts.set(c,V);break;default:if(A.moduleUnknownResources.hasOwnProperty(V)){var Q=A.unknownResources[V];if(Q.hasOwnProperty(c))return}else Q={},A.moduleUnknownResources[V]=Q;V=[],Q[c]=hi}xi(V,bn({rel:"modulepreload",href:c},f)),D.bulkPreloads.add(V),yr(C)}}else Ct.m(c,f)},X:function(c,f){var C=ln||null;if(C){var A=C.resumableState,D=C.renderState;if(c){var V=A.scriptResources.hasOwnProperty(c)?A.scriptResources[c]:void 0;V!==Jt&&(A.scriptResources[c]=Jt,f=bn({src:c,async:!0},f),V&&(V.length===2&&Ms(f,V),c=D.preloads.scripts.get(c))&&(c.length=0),c=[],D.scripts.add(c),Ac(c,f),yr(C))}}else Ct.X(c,f)},S:function(c,f,C){var A=ln||null;if(A){var D=A.resumableState,V=A.renderState;if(c){f=f||"default";var Q=V.styles.get(f),ie=D.styleResources.hasOwnProperty(c)?D.styleResources[c]:void 0;ie!==Jt&&(D.styleResources[c]=Jt,Q||(Q={precedence:E(me(f)),rules:[],hrefs:[],sheets:new Map},V.styles.set(f,Q)),f={state:Qs,props:bn({rel:"stylesheet",href:c,"data-precedence":f},C)},ie&&(ie.length===2&&Ms(f.props,ie),(V=V.preloads.stylesheets.get(c))&&0<V.length?V.length=0:f.state=nu),Q.sheets.set(c,f),yr(A))}}else Ct.S(c,f,C)},M:function(c,f){var C=ln||null;if(C){var A=C.resumableState,D=C.renderState;if(c){var V=A.moduleScriptResources.hasOwnProperty(c)?A.moduleScriptResources[c]:void 0;V!==Jt&&(A.moduleScriptResources[c]=Jt,f=bn({src:c,type:"module",async:!0},f),V&&(V.length===2&&Ms(f,V),c=D.preloads.moduleScripts.get(c))&&(c.length=0),c=[],D.scripts.add(c),Ac(c,f),yr(C))}}else Ct.M(c,f)}};var Fn=0,Zt=1,zi=2,tn=4,Vt=8,Kt=32,xt=64,Jt=null,hi=[];Object.freeze(hi);var Ot=null;T('"></template>');var Ws=T("<script"),fs=T("<\/script>"),Hi=T('<script src="'),Zr=T('<script type="module" src="'),Kr=T(' nonce="'),Jr=T(' integrity="'),zo=T(' crossorigin="'),ds=T(' async=""><\/script>'),si=T("<style"),Sa=/(<\/|<)(s)(cript)/gi,Ta=T('<script type="importmap">'),ec=T("<\/script>"),Uc={},ul=0,Vs=1,Wi=2,tc=3,Vi=4,Nr=5,gs=6,nc=7,ps=8,Xc=9,Qn=T("<!-- -->"),ic=new Map,Gs=T(' style="'),hl=T(":"),Ea=T(";"),Un=T(" "),zr=T('="'),_t=T('"'),ms=T('=""'),fl=T(me("javascript:throw new Error('React form unexpectedly submitted.')")),Us=T('<input type="hidden"'),Ln=T(">"),hr=T("/>"),Xs=!1,Ra=!1,Qr=!1,Ei=!1,dl=!1,Gi=!1,zu=!1,ka=!1,rc=!1,Yc=!1,Zc=!1,Ho=T(' selected=""'),Pa=T(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`),Ma=T("<!--F!-->"),Ui=T("<!--F-->"),oc=/(<\/|<)(s)(tyle)/gi,sc=T("<!--head-->"),Hu=T("<!--body-->"),Wu=T("<!--html-->"),Kc=T(`
|
|
256
|
-
`),Vu=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Gu=new Map,jn=T("<!DOCTYPE html>"),Jc=new Map,ac=T("requestAnimationFrame(function(){$RT=performance.now()});"),lc=T('<template id="'),Qc=T('"></template>'),Uu=T("<!--&-->"),jc=T("<!--/&-->"),qc=T("<!--$-->"),Ys=T('<!--$?--><template id="'),jr=T('"></template>'),Sh=T("<!--$!-->"),Aa=T("<!--/$-->"),cc=T("<template"),wo=T('"'),gl=T(' data-dgst="'),Zs=T(' data-msg="'),uc=T(' data-stck="'),Ks=T(' data-cstck="'),Th=T("></template>"),Eh=T('<div hidden id="'),Co=T('">'),pl=T("</div>"),Hr=T('<svg aria-hidden="true" style="display:none" id="'),Js=T('">'),_a=T("</svg>"),qr=T('<math aria-hidden="true" style="display:none" id="'),Xu=T('">'),Rh=T("</math>"),ml=T('<table hidden id="'),p=T('">'),y=T("</table>"),R=T('<table hidden><tbody id="'),F=T('">'),N=T("</tbody></table>"),X=T('<table hidden><tr id="'),K=T('">'),fe=T("</tr></table>"),ne=T('<table hidden><colgroup id="'),de=T('">'),Ce=T("</colgroup></table>"),Pe=T('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Ze=T('$RS("'),Ye=T('","'),Dt=T('")<\/script>');T('<template data-rsi="" data-sid="'),T('" data-pid="');var vt=T(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
257
|
-
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`);E(`$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),
|
|
258
|
-
H=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(B){var z=
|
|
259
|
-
document.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=
|
|
260
|
-
performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);`);var Bt=T('$RC("'),In=T(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
261
|
-
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
262
|
-
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),xn=T('$RR("'),Ri=T('","'),br=T('",'),$r=T('"'),yt=T(")<\/script>");T('<template data-rci="" data-bid="'),T('<template data-rri="" data-bid="'),T('" data-sid="'),T('" data-sty="');var Xi=T('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'),Xn=T('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),fr=T('$RX("'),vs=T('"'),Dn=T(","),Oa=T(")<\/script>");T('<template data-rxi="" data-bid="'),T('" data-dgst="'),T('" data-msg="'),T('" data-stck="'),T('" data-cstck="');var eo=/[<\u2028\u2029]/g,Yi=/[&><\u2028\u2029]/g,So=T(' media="not all" data-precedence="'),Zi=T('" data-href="'),Fa=T('">'),vl=T("</style>"),dr=!1,yl=!0,Ki=[],La=T(' data-precedence="'),Yu=T('" data-href="'),kn=T(" "),bl=T('">'),To=T("</style>");T('<link rel="expect" href="#'),T('" blocking="render"/>');var $c=T(' id="'),Ia=T("["),eu=T(",["),tu=T(","),xl=T("]"),Qs=0,nu=1,Wo=2,Da=3,Ba=/[<>\r\n]/g,kh=/["';,\r\n]/g,to=Function.prototype.bind,Ph=Symbol.for("react.client.reference"),Wr={};Object.freeze(Wr);var js={},ys=null,iu={},ru={},ou=new Set,Na=new Set,Mh=new Set,Zu=new Set,wl=new Set,Ah=new Set,su=new Set,$h=new Set,Ku=new Set,ef={enqueueSetState:function(c,f,C){var A=c._reactInternals;A.queue===null?Ci(c,"setState"):(A.queue.push(f),C!=null&&fo(C))},enqueueReplaceState:function(c,f,C){c=c._reactInternals,c.replace=!0,c.queue=[f],C!=null&&fo(C)},enqueueForceUpdate:function(c,f){c._reactInternals.queue===null?Ci(c,"forceUpdate"):f!=null&&fo(f)}},au={id:1,overflow:""},Cl=Math.clz32?Math.clz32:Oc,kf=Math.log,Pf=Math.LN2,Vo=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),_h=null,Mf=typeof Object.is=="function"?Object.is:Fc,vi=null,bs=null,Ji=null,qs=null,no=null,nn=null,xr=!1,xs=!1,qn=0,hc=0,lu=-1,Oh=0,Sl=null,za=null,fc=0,Eo=!1,Ha,dc={readContext:vh,use:function(c){if(c!==null&&typeof c=="object"){if(typeof c.then=="function")return ri(c);if(c.$$typeof===En)return vh(c)}throw Error("An unsupported type was passed to use(): "+String(c))},useContext:function(c){return Ha="useContext",Sn(),c._currentValue},useMemo:$a,useReducer:qa,useRef:function(c){vi=Sn(),nn=ja();var f=nn.memoizedState;return f===null?(c={current:c},Object.seal(c),nn.memoizedState=c):f},useState:function(c){return Ha="useState",qa(yh,c)},useInsertionEffect:Ni,useLayoutEffect:Ni,useCallback:function(c,f){return $a(function(){return c},f)},useImperativeHandle:Ni,useEffect:Ni,useDebugValue:Ni,useDeferredValue:function(c,f){return Sn(),f!==void 0?f:c},useTransition:function(){return Sn(),[!1,Ic]},useId:function(){var c=bs.treeContext,f=c.overflow;c=c.id,c=(c&~(1<<32-Cl(c)-1)).toString(32)+f;var C=h;if(C===null)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");return f=qn++,c="_"+C.idPrefix+"R_"+c,0<f&&(c+="H"+f.toString(32)),c+"_"},useSyncExternalStore:function(c,f,C){if(C===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return C()},useOptimistic:function(c){return Sn(),[c,Wl]},useActionState:Vl,useFormState:Vl,useHostTransitionStatus:function(){return Sn(),qt},useMemoCache:function(c){for(var f=Array(c),C=0;C<c;C++)f[C]=xo;return f},useCacheRefresh:function(){return el},useEffectEvent:function(){return Oo}},h=null,d=null,S={getCacheForType:function(){throw Error("Not implemented.")},cacheSignal:function(){throw Error("Not implemented.")},getOwner:function(){return d===null?null:d.componentStack}},_=0,B,U,te,se,Fe,ve,Me;Gl.__reactDisabledLog=!0;var Ge,Ke,Xe=!1,De=new(typeof WeakMap=="function"?WeakMap:Map),Ft={react_stack_bottom_frame:function(c,f,C){return c(f,C)}},vn=Ft.react_stack_bottom_frame.bind(Ft),ht={react_stack_bottom_frame:function(c){return c.render()}},Qt=ht.react_stack_bottom_frame.bind(ht),ki={react_stack_bottom_frame:function(c){var f=c._init;return f(c._payload)}},Pi=ki.react_stack_bottom_frame.bind(ki),$t=0;if(typeof performance=="object"&&typeof performance.now=="function")var fi=performance,Go=function(){return fi.now()};else{var gr=Date;Go=function(){return gr.now()}}var $e=4,sn=0,an=1,hn=2,Bn=3,Ht=4,Tt=5,Qi=14,ln=null,Mi={},Pn={},wr={},Tl={},Cr=!1,Uo=!1,Xo=!1,Yo=0,yi=!1;bo(),bo(),zf.prerender=function(c,f){return new Promise(function(C,A){var D=f?f.onHeaders:void 0,V;D&&(V=function(ye){D(new Headers(ye))});var Q=Te(f?f.identifierPrefix:void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.bootstrapScriptContent:void 0,f?f.bootstrapScripts:void 0,f?f.bootstrapModules:void 0),ie=lr(c,Q,le(Q,void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.importMap:void 0,V,f?f.maxHeadersLength:void 0),Ne(f?f.namespaceURI:void 0),f?f.progressiveChunkSize:void 0,f?f.onError:void 0,function(){var ye=new ReadableStream({type:"bytes",pull:function(Be){Dr(ie,Be)},cancel:function(Be){ie.destination=null,un(ie,Be)}},{highWaterMark:0});ye={postponed:Tn(ie),prelude:ye},C(ye)},void 0,void 0,A,f?f.onPostpone:void 0);if(f&&f.signal){var ke=f.signal;if(ke.aborted)un(ie,ke.reason);else{var ce=function(){un(ie,ke.reason),ke.removeEventListener("abort",ce)};ke.addEventListener("abort",ce)}}Ir(ie)})},zf.renderToReadableStream=function(c,f){return new Promise(function(C,A){var D,V,Q=new Promise(function(ze,Ie){V=ze,D=Ie}),ie=f?f.onHeaders:void 0,ke;ie&&(ke=function(ze){ie(new Headers(ze))});var ce=Te(f?f.identifierPrefix:void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.bootstrapScriptContent:void 0,f?f.bootstrapScripts:void 0,f?f.bootstrapModules:void 0),ye=tl(c,ce,le(ce,f?f.nonce:void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.importMap:void 0,ke,f?f.maxHeadersLength:void 0),Ne(f?f.namespaceURI:void 0),f?f.progressiveChunkSize:void 0,f?f.onError:void 0,V,function(){var ze=new ReadableStream({type:"bytes",pull:function(Ie){Dr(ye,Ie)},cancel:function(Ie){ye.destination=null,un(ye,Ie)}},{highWaterMark:0});ze.allReady=Q,C(ze)},function(ze){Q.catch(function(){}),A(ze)},D,f?f.onPostpone:void 0,f?f.formState:void 0);if(f&&f.signal){var Be=f.signal;if(Be.aborted)un(ye,Be.reason);else{var He=function(){un(ye,Be.reason),Be.removeEventListener("abort",He)};Be.addEventListener("abort",He)}}Ir(ye)})},zf.resume=function(c,f,C){return new Promise(function(A,D){var V,Q,ie=new Promise(function(Be,He){Q=Be,V=He}),ke=ci(c,f,le(f.resumableState,C?C.nonce:void 0,void 0,void 0,void 0,void 0),C?C.onError:void 0,Q,function(){var Be=new ReadableStream({type:"bytes",pull:function(He){Dr(ke,He)},cancel:function(He){ke.destination=null,un(ke,He)}},{highWaterMark:0});Be.allReady=ie,A(Be)},function(Be){ie.catch(function(){}),D(Be)},V,C?C.onPostpone:void 0);if(C&&C.signal){var ce=C.signal;if(ce.aborted)un(ke,ce.reason);else{var ye=function(){un(ke,ce.reason),ce.removeEventListener("abort",ye)};ce.addEventListener("abort",ye)}}Ir(ke)})},zf.resumeAndPrerender=function(c,f,C){return new Promise(function(A,D){var V=yn(c,f,le(f.resumableState,void 0,void 0,void 0,void 0,void 0),C?C.onError:void 0,function(){var ke=new ReadableStream({type:"bytes",pull:function(ce){Dr(V,ce)},cancel:function(ce){V.destination=null,un(V,ce)}},{highWaterMark:0});ke={postponed:Tn(V),prelude:ke},A(ke)},void 0,void 0,D,C?C.onPostpone:void 0);if(C&&C.signal){var Q=C.signal;if(Q.aborted)un(V,Q.reason);else{var ie=function(){un(V,Q.reason),Q.removeEventListener("abort",ie)};Q.addEventListener("abort",ie)}}Ir(V)})},zf.version="19.2.0"})()),zf}var Yw;function nI(){if(Yw)return Bf;Yw=1;var n,e;return process.env.NODE_ENV==="production"?(n=qL(),e=$L()):(n=eI(),e=tI()),Bf.version=n.version,Bf.renderToString=n.renderToString,Bf.renderToStaticMarkup=n.renderToStaticMarkup,Bf.renderToReadableStream=e.renderToReadableStream,Bf.resume=e.resume,Bf}var Sv=nI();/**
|
|
263
|
-
* @license Highcharts JS v12.4.0 (2025-09-04)
|
|
264
|
-
* @module highcharts/highcharts
|
|
265
|
-
*
|
|
266
|
-
* (c) 2009-2025 Highsoft AS
|
|
267
|
-
*
|
|
268
|
-
* License: www.highcharts.com/license
|
|
269
|
-
*/var nb;(function(n){n.SVG_NS="http://www.w3.org/2000/svg",n.product="Highcharts",n.version="12.4.0",n.win=typeof window<"u"?window:{},n.doc=n.win.document,n.svg=!!n.doc?.createElementNS?.(n.SVG_NS,"svg")?.createSVGRect,n.pageLang=n.doc?.documentElement?.closest("[lang]")?.lang,n.userAgent=n.win.navigator?.userAgent||"",n.isChrome=n.win.chrome,n.isFirefox=n.userAgent.indexOf("Firefox")!==-1,n.isMS=/(edge|msie|trident)/i.test(n.userAgent)&&!n.win.opera,n.isSafari=!n.isChrome&&n.userAgent.indexOf("Safari")!==-1,n.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(n.userAgent),n.isWebKit=n.userAgent.indexOf("AppleWebKit")!==-1,n.deg2rad=Math.PI*2/360,n.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],n.noop=function(){},n.supportsPassiveEvents=(function(){let e=!1;if(!n.isMS){const t=Object.defineProperty({},"passive",{get:function(){e=!0}});n.win.addEventListener&&n.win.removeEventListener&&(n.win.addEventListener("testPassive",n.noop,t),n.win.removeEventListener("testPassive",n.noop,t))}return e})(),n.charts=[],n.composed=[],n.dateFormats={},n.seriesTypes={},n.symbolSizes={},n.chartCount=0})(nb||(nb={}));const St=nb,{charts:iI,doc:um,win:id}=St;function Bg(n,e,t,i){const r=e?"Highcharts error":"Highcharts warning";n===32&&(n=`${r}: Deprecated member`);const o=P0(n);let s=o?`${r} #${n}: www.highcharts.com/errors/${n}/`:n.toString();const a=function(){if(e)throw new Error(s);id.console&&Bg.messages.indexOf(s)===-1&&console.warn(s)};if(typeof i<"u"){let l="";o&&(s+="?"),sd(i,function(u,g){l+=`
|
|
270
|
-
- ${g}: ${u}`,o&&(s+=encodeURI(g)+"="+encodeURI(u))}),s+=l}wE(St,"displayError",{chart:t,code:n,message:s,params:i},a),Bg.messages.push(s)}(function(n){n.messages=[]})(Bg||(Bg={}));function rI(n,...e){let t,i=[n,...e],r={};const o=function(a,l){return typeof a!="object"&&(a={}),sd(l,function(u,g){g==="__proto__"||g==="constructor"||(Xd(u,!0)&&!pE(u)&&!k0(u)?a[g]=o(a[g]||{},u):a[g]=l[g])}),a};n===!0&&(r=i[1],i=Array.prototype.slice.call(i,2));const s=i.length;for(t=0;t<s;t++)r=o(r,i[t]);return r}function oI(n,e,t){return n>e?n<t?n:t:e}function sI(n,e=0,t){const i=e%2/2,r=t?-1:1;return(Math.round(n*r-i)+i)*r}function aI(n,e,t,i){const r={};function o(s,a,l,u){const g=t?a:s;sd(s,function(m,b){if(!u&&i&&i.indexOf(b)>-1&&a[b]){m=vE(m),l[b]=[];for(let w=0;w<Math.max(m.length,a[b].length);w++)a[b][w]&&(m[w]===void 0?l[b][w]=a[b][w]:(l[b][w]={},o(m[w],a[b][w],l[b][w],u+1)))}else Xd(m,!0)&&!m.nodeType?(l[b]=Am(m)?[]:{},o(m,a[b]||{},l[b],u+1),Object.keys(l[b]).length===0&&!(b==="colorAxis"&&u===0)&&delete l[b]):(s[b]!==a[b]||b in s&&!(b in a))&&b!=="__proto__"&&b!=="constructor"&&(l[b]=g[b])})}return o(n,e,r,0),r}function gE(n,e){return parseInt(n,e||10)}function Ng(n){return typeof n=="string"}function Am(n){const e=Object.prototype.toString.call(n);return e==="[object Array]"||e==="[object Array Iterator]"}function Xd(n,e){return!!n&&typeof n=="object"&&(!e||!Am(n))}function k0(n){return Xd(n)&&typeof n.nodeType=="number"}function pE(n){const e=n?.constructor;return!!(Xd(n,!0)&&!k0(n)&&e?.name&&e.name!=="Object")}function P0(n){return typeof n=="number"&&!isNaN(n)&&n<1/0&&n>-1/0}function lI(n,e){let t=n.length;for(;t--;)if(n[t]===e){n.splice(t,1);break}}function cI(n,e){const t=n.options.index,i=e.length;let r;for(r=n.options.isInternal?i:0;r<i+1;r++)if(!e[r]||P0(t)&&t<Zg(e[r].options.index,e[r]._i)||e[r].options.isInternal){e.splice(r,0,n);break}return r}function uI(n,e){return n.indexOf(e)<0&&!!n.push(e)}function Bd(n){return typeof n<"u"&&n!==null}function mE(n,e,t){const i=Ng(e)&&!Bd(t);let r;const o=(s,a)=>{Bd(s)?n.setAttribute(a,s):i?(r=n.getAttribute(a),!r&&a==="class"&&(r=n.getAttribute(a+"Name"))):n.removeAttribute(a)};return Ng(e)?o(t,e):sd(e,o),r}function vE(n){return Am(n)?n:[n]}function hI(n,e,t){return e>0?setTimeout(n,e,t):(n.call(0,t),-1)}function fI(n){Bd(n)&&clearTimeout(n)}function Nd(n,e){let t;n||(n={});for(t in e)n[t]=e[t];return n}function Zg(){const n=arguments,e=n.length;for(let t=0;t<e;t++){const i=n[t];if(typeof i<"u"&&i!==null)return i}}function ib(n,e){Nd(n.style,e)}function dI(n,e,t,i,r){const o=um.createElement(n);return e&&Nd(o,e),r&&ib(o,{padding:"0",border:"none",margin:"0"}),t&&ib(o,t),i&&i.appendChild(o),o}function gI(n,e){const t=(function(){});return t.prototype=new n,Nd(t.prototype,e),t}function pI(n,e,t){return new Array((e||2)+1-String(n).replace("-","").length).join(t||"0")+n}function mI(n,e,t){return/%$/.test(n)?e*parseFloat(n)/100+(t||0):parseFloat(n)}function vI(n,...e){let t,i;do{t=n;for(i of e)n=n.replace(i[0],i[1])}while(n!==t);return n}function yI(n,e,t){const i=n[e];n[e]=function(){const r=arguments,o=this;return t.apply(this,[function(){return i.apply(o,arguments.length?arguments:r)}].concat([].slice.call(arguments)))}}function yE(n){return Math.pow(10,Math.floor(Math.log(n)/Math.LN10))}function bI(n,e,t,i,r){let o,s=n;t=Zg(t,yE(n));const a=n/t;for(e||(e=r?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],i===!1&&(t===1?e=e.filter(function(l){return l%1===0}):t<=.1&&(e=[1/t]))),o=0;o<e.length&&(s=e[o],!(r&&s*t>=n||!r&&a<=(e[o]+(e[o+1]||e[o]))/2));o++);return s=bE(s*t,-Math.round(Math.log(.001)/Math.LN10)),s}function xI(n,e){const t=n.length;let i,r;for(r=0;r<t;r++)n[r].safeI=r;for(n.sort(function(o,s){return i=e(o,s),i===0?o.safeI-s.safeI:i}),r=0;r<t;r++)delete n[r].safeI}function wI(n){let e=n.length,t=n[0];for(;e--;)n[e]<t&&(t=n[e]);return t}function CI(n){let e=n.length,t=n[0];for(;e--;)n[e]>t&&(t=n[e]);return t}function SI(n,e,t){sd(n,function(i,r){i!==e&&i?.destroy&&i.destroy(),(i?.destroy||!t)&&delete n[r]})}function TI(n){n?.parentElement?.removeChild(n)}function bE(n,e){return n>1e14?n:parseFloat(n.toPrecision(e||14))}const EI={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:24*36e5,week:168*36e5,month:672*36e5,year:364*24*36e5};Math.easeInOutSine=function(n){return-.5*(Math.cos(Math.PI*n)-1)};const RI=(n="")=>({center:.5,right:1,middle:.5,bottom:1})[n]||0;function kI(n,e){const t=!e;let i,r,o,s;return n.forEach(a=>{if(a.length>1)for(r=a.length-1,s=r;s>0;s--)o=a[s]-a[s-1],o<0&&!t?(e?.(),e=void 0):o&&(typeof i>"u"||o<i)&&(i=o)}),i}function PI(n,e){const t=n.split(".");for(;t.length&&Bd(e);){const i=t.shift();if(typeof i>"u"||i==="__proto__")return;if(i==="this"){let o;return Xd(e)&&(o=e["@this"]),o??e}const r=e[i.replace(/[\\'"]/g,"")];if(!Bd(r)||typeof r=="function"||typeof r.nodeType=="number"||r===id)return;e=r}return e}function bg(n,e,t){let i;if(e==="width"){let o=Math.min(n.offsetWidth,n.scrollWidth);const s=n.getBoundingClientRect?.().width;return s<o&&s>=o-1&&(o=Math.floor(s)),Math.max(0,o-(bg(n,"padding-left",!0)||0)-(bg(n,"padding-right",!0)||0))}if(e==="height")return Math.max(0,Math.min(n.offsetHeight,n.scrollHeight)-(bg(n,"padding-top",!0)||0)-(bg(n,"padding-bottom",!0)||0));const r=id.getComputedStyle(n,void 0);return r&&(i=r.getPropertyValue(e),Zg(t,e!=="opacity")&&(i=gE(i))),i}const MI=Array.prototype.find?function(n,e){return n.find(e)}:function(n,e){let t;const i=n.length;for(t=0;t<i;t++)if(e(n[t],t))return n[t]};function AI(n){const e=um.documentElement,t=n.parentElement||n.parentNode?n.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:t.top+(id.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(id.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}}function sd(n,e,t){for(const i in n)Object.hasOwnProperty.call(n,i)&&e.call(t||n[i],n[i],i,n)}function _I(n,e,t,i={}){const r=typeof n=="function"&&n.prototype||n;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});const o=r.hcEvents;St.Point&&n instanceof St.Point&&n.series&&n.series.chart&&(n.series.chart.runTrackerClick=!0);const s=n.addEventListener;s&&s.call(n,e,t,St.supportsPassiveEvents?{passive:i.passive===void 0?e.indexOf("touch")!==-1:i.passive,capture:!1}:!1),o[e]||(o[e]=[]);const a={fn:t,order:typeof i.order=="number"?i.order:1/0};return o[e].push(a),o[e].sort((l,u)=>l.order-u.order),function(){xE(n,e,t)}}function xE(n,e,t){function i(s,a){const l=n.removeEventListener;l&&l.call(n,s,a,!1)}function r(s){let a,l;n.nodeName&&(e?(a={},a[e]=!0):a=s,sd(a,function(u,g){if(s[g])for(l=s[g].length;l--;)i(g,s[g][l].fn)}))}const o=typeof n=="function"&&n.prototype||n;if(Object.hasOwnProperty.call(o,"hcEvents")){const s=o.hcEvents;if(e){const a=s[e]||[];t?(s[e]=a.filter(function(l){return t!==l.fn}),i(e,t)):(r(s),s[e]=[])}else r(s),delete o.hcEvents}}function wE(n,e,t,i){if(t=t||{},um?.createEvent&&(n.dispatchEvent||n.fireEvent&&n!==St)){const r=um.createEvent("Events");r.initEvent(e,!0,!0),t=Nd(r,t),n.dispatchEvent?n.dispatchEvent(t):n.fireEvent(e,t)}else if(n.hcEvents){t.target||Nd(t,{preventDefault:function(){t.defaultPrevented=!0},target:n,type:e});const r=[];let o=n,s=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(r.length&&(s=!0),r.unshift.apply(r,o.hcEvents[e])),o=Object.getPrototypeOf(o);s&&r.sort((a,l)=>a.order-l.order),r.forEach(a=>{a.fn.call(n,t)===!1&&t.preventDefault()})}i&&!t.defaultPrevented&&i.call(n,t)}let rb;const OI=(function(){const n=Math.random().toString(36).substring(2,9)+"-";let e=0;return function(){return"highcharts-"+(rb?"":n)+e++}})();function FI(n){return rb=Zg(n,rb)}function LI(n){return typeof n=="function"}function II(n){return Ng(n)?n.substring(0,1).toUpperCase()+n.substring(1):String(n)}id.jQuery&&(id.jQuery.fn.highcharts=function(){const n=[].slice.call(arguments);if(this[0])return n[0]?(new St[Ng(n[0])?n.shift():"Chart"](this[0],n[0],n[1]),this):iI[mE(this[0],"data-highcharts-chart")]});const DI={addEvent:_I,arrayMax:CI,arrayMin:wI,attr:mE,clamp:oI,clearTimeout:fI,correctFloat:bE,createElement:dI,crisp:sI,css:ib,defined:Bd,destroyObjectProperties:SI,diffObjects:aI,discardElement:TI,erase:lI,error:Bg,extend:Nd,extendClass:gI,find:MI,fireEvent:wE,getAlignFactor:RI,getClosestDistance:kI,getMagnitude:yE,getNestedProperty:PI,getStyle:bg,insertItem:cI,isArray:Am,isClass:pE,isDOMElement:k0,isFunction:LI,isNumber:P0,isObject:Xd,isString:Ng,merge:rI,normalizeTickInterval:bI,objectEach:sd,offset:AI,pad:pI,pick:Zg,pInt:gE,pushUnique:uI,relativeLength:mI,removeEvent:xE,replaceNested:vI,splat:vE,stableSort:xI,syncTimeout:hI,timeUnits:EI,ucfirst:II,uniqueKey:OI,useSerialIds:FI,wrap:yI},lt=DI,BI={alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},NI=BI,zI={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]},HI=zI,{pageLang:WI,win:hm}=St,{defined:Zw,error:Kw,extend:Tv,isNumber:Jw,isObject:Ev,isString:ng,merge:VI,objectEach:GI,pad:lf,splat:UI,timeUnits:Rv,ucfirst:XI}=lt,YI=St.isSafari&&hm.Intl&&!hm.Intl.DateTimeFormat.prototype.formatRange,ZI=n=>n.main===void 0;class KI{constructor(e,t){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=hm.Date,this.update(e),this.lang=t}update(e={}){this.dTLCache={},this.options=e=VI(!0,this.options,e);const{timezoneOffset:t,useUTC:i,locale:r}=e;this.Date=e.Date||hm.Date||Date;let o=e.timezone;Zw(i)&&(o=i?"UTC":void 0),t&&t%60===0&&(o="Etc/GMT"+(t>0?"+":"")+t/60),this.variableTimezone=o!=="UTC"&&o?.indexOf("Etc/GMT")!==0,this.timezone=o,this.lang&&r&&(this.lang.locale=r),["months","shortMonths","weekdays","shortWeekdays"].forEach(s=>{const a=/months/i.test(s),l=/short/.test(s),u={timeZone:"UTC"};u[a?"month":"weekday"]=l?"short":"long",this[s]=(a?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(g=>this.dateFormat(u,(a?31:1)*24*36e5*g))})}toParts(e){const[t,i,r,o,s,a,l]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},e,"es").split(/(?:, | |\/|:)/g);return[o,+r-1,i,s,a,l,Math.floor(Number(e)||0)%1e3,"DLMXJVS".indexOf(t)].map(Number)}dateTimeFormat(e,t,i=this.options.locale||WI){const r=JSON.stringify(e)+i;ng(e)&&(e=this.str2dtf(e));let o=this.dTLCache[r];if(!o){e.timeZone??(e.timeZone=this.timezone);try{o=new Intl.DateTimeFormat(i,e)}catch(s){/Invalid time zone/i.test(s.message)?(Kw(34),e.timeZone="UTC",o=new Intl.DateTimeFormat(i,e)):Kw(s.message,!1)}}return this.dTLCache[r]=o,o?.format(t)||""}str2dtf(e,t={}){const i={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(i).forEach(r=>{e.indexOf(r)!==-1&&Tv(t,i[r])}),t}makeTime(e,t,i=1,r=0,o,s,a){let l=this.Date.UTC(e,t,i,r,o||0,s||0,a||0);if(this.timezone!=="UTC"){const u=this.getTimezoneOffset(l);if(l+=u,[2,3,8,9,10,11].indexOf(t)!==-1&&(r<5||r>20)){const g=this.getTimezoneOffset(l);u!==g?l+=g-u:u-36e5===this.getTimezoneOffset(l-36e5)&&!YI&&(l-=36e5)}}return l}parse(e){if(!ng(e))return e??void 0;e=e.replace(/\//g,"-").replace(/(GMT|UTC)/,"");const t=e.indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(e),i=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(e);!t&&!i&&(e+="Z");const r=Date.parse(e);if(Jw(r))return r+(!t||i?this.getTimezoneOffset(r):0)}getTimezoneOffset(e){if(this.timezone!=="UTC"){const[t,i,r,o,s=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},e,"en").split(/(GMT|:)/).map(Number),a=-(r+s/60)*60*6e4;if(Jw(a))return a}return 0}dateFormat(e,t,i){const r=this.lang;if(!Zw(t)||isNaN(t))return r?.invalidDate||"";if(e=e??"%Y-%m-%d %H:%M:%S",ng(e)){const o=/%\[([a-zA-Z]+)\]/g;let s;for(;s=o.exec(e);)e=e.replace(s[0],this.dateTimeFormat(s[1],t,r?.locale))}if(ng(e)&&e.indexOf("%")!==-1){const o=this,[s,a,l,u,g,m,b,w]=this.toParts(t),E=r?.weekdays||this.weekdays,T=r?.shortWeekdays||this.shortWeekdays,P=r?.months||this.months,M=r?.shortMonths||this.shortMonths,I=Tv({a:T?T[w]:E[w].substr(0,3),A:E[w],d:lf(l),e:lf(l,2," "),w,v:r?.weekFrom??"",b:M[a],B:P[a],m:lf(a+1),o:a+1,y:s.toString().substr(2,2),Y:s,H:lf(u),k:u,I:lf(u%12||12),l:u%12||12,M:lf(g),p:u<12?"AM":"PM",P:u<12?"am":"pm",S:lf(m),L:lf(b,3)},St.dateFormats);GI(I,function(L,H){if(ng(e))for(;e.indexOf("%"+H)!==-1;)e=e.replace("%"+H,typeof L=="function"?L.call(o,t):L)})}else if(Ev(e)){const o=(this.getTimezoneOffset(t)||0)/36e5,s=this.timezone||"Etc/GMT"+(o>=0?"+":"")+o,{prefix:a="",suffix:l=""}=e;e=a+this.dateTimeFormat(Tv({timeZone:s},e),t)+l}return i?XI(e):e}resolveDTLFormat(e){return Ev(e,!0)?Ev(e,!0)&&ZI(e)?{main:e}:e:(e=UI(e),{main:e[0],from:e[1],to:e[2]})}getDateFormat(e,t,i,r){const o=this.dateFormat("%m-%d %H:%M:%S.%L",t),s="01-01 00:00:00.000",a={millisecond:15,second:12,minute:9,hour:6,day:3};let l="millisecond",u=l;for(l in Rv){if(e&&e===Rv.week&&+this.dateFormat("%w",t)===i&&o.substr(6)===s.substr(6)){l="week";break}if(e&&Rv[l]>e){l=u;break}if(a[l]&&o.substr(a[l])!==s.substr(a[l]))break;l!=="week"&&(u=l)}return this.resolveDTLFormat(r[l]).main}}const JI=KI,{defined:Qw,extend:QI,timeUnits:Ar}=lt;class jI extends JI{getTimeTicks(e,t,i,r){const o=this,s=[],a={},{count:l=1,unitRange:u}=e;let[g,m,b,w,E,T]=o.toParts(t),P=(t||0)%1e3,M;if(r??(r=1),Qw(t)){if(P=u>=Ar.second?0:l*Math.floor(P/l),u>=Ar.second&&(T=u>=Ar.minute?0:l*Math.floor(T/l)),u>=Ar.minute&&(E=u>=Ar.hour?0:l*Math.floor(E/l)),u>=Ar.hour&&(w=u>=Ar.day?0:l*Math.floor(w/l)),u>=Ar.day&&(b=u>=Ar.month?1:Math.max(1,l*Math.floor(b/l))),u>=Ar.month&&(m=u>=Ar.year?0:l*Math.floor(m/l)),u>=Ar.year&&(g-=g%l),u===Ar.week){l&&(t=o.makeTime(g,m,b,w,E,T,P));const H=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},t,"es"),W="DLMXJVS".indexOf(H);b+=-W+r+(W<r?-7:0)}t=o.makeTime(g,m,b,w,E,T,P),o.variableTimezone&&Qw(i)&&(M=i-t>4*Ar.month||o.getTimezoneOffset(t)!==o.getTimezoneOffset(i));let I=t,L=1;for(;I<i;)s.push(I),u===Ar.year?I=o.makeTime(g+L*l,0):u===Ar.month?I=o.makeTime(g,m+L*l):M&&(u===Ar.day||u===Ar.week)?I=o.makeTime(g,m,b+L*l*(u===Ar.day?1:7)):M&&u===Ar.hour&&l>1?I=o.makeTime(g,m,b,w+L*l):I+=u*l,L++;s.push(I),u<=Ar.hour&&s.length<1e4&&s.forEach(H=>{H%18e5===0&&o.dateFormat("%H%M%S%L",H)==="000000000"&&(a[H]="day")})}return s.info=QI(e,{higherRanks:a,totalRange:u*l}),s}}const M0=jI,{isTouchDevice:qI}=St,{fireEvent:$I,merge:eD}=lt,Wh={colors:HI.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:NI,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{color:"#333333",fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:n=>Math.sqrt(1-Math.pow(n-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,position:{x:0,y:3},shared:!1,snap:qI?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}},ob=new M0(Wh.time,Wh.lang);function tD(){return Wh}function nD(n){return $I(St,"setOptions",{options:n}),eD(!0,Wh,n),n.time&&ob.update(Wh.time),n.lang&&"locale"in n.lang&&ob.update({locale:n.lang.locale}),n.lang?.chartTitle&&(Wh.title={...Wh.title,text:n.lang.chartTitle}),Wh}const iD={defaultOptions:Wh,defaultTime:ob,getOptions:tD,setOptions:nD},Pc=iD,{win:rD}=St,{isNumber:ig,isString:oD,merge:sD,pInt:ia,defined:jw}=lt,qw=(n,e,t)=>`color-mix(in srgb,${n},${e} ${t*100}%)`,kv=n=>oD(n)&&!!n&&n!=="none";class Es{static parse(e){return e?new Es(e):Es.None}constructor(e){this.rgba=[NaN,NaN,NaN,NaN],this.input=e;const t=St.Color;if(t&&t!==Es)return new t(e);let i,r,o,s;if(typeof e=="object"&&typeof e.stops<"u")this.stops=e.stops.map(a=>new Es(a[1]));else if(typeof e=="string")for(this.input=e=Es.names[e.toLowerCase()]||e,o=Es.parsers.length;o--&&!r;)s=Es.parsers[o],i=s.regex.exec(e),i&&(r=s.parse(i));r&&(this.rgba=r)}get(e){const t=this.input,i=this.rgba;if(this.output)return this.output;if(typeof t=="object"&&typeof this.stops<"u"){const r=sD(t);return r.stops=[].slice.call(r.stops),this.stops.forEach((o,s)=>{r.stops[s]=[r.stops[s][0],o.get(e)]}),r}return i&&ig(i[0])?e==="rgb"||!e&&i[3]===1?"rgb("+i[0]+","+i[1]+","+i[2]+")":e==="a"?`${i[3]}`:"rgba("+i.join(",")+")":t}brighten(e){const t=this.rgba;if(this.stops)this.stops.forEach(function(i){i.brighten(e)});else if(ig(e)&&e!==0)if(ig(t[0]))for(let i=0;i<3;i++)t[i]+=ia(e*255),t[i]<0&&(t[i]=0),t[i]>255&&(t[i]=255);else Es.useColorMix&&kv(this.input)&&(this.output=qw(this.input,e>0?"white":"black",Math.abs(e)));return this}setOpacity(e){return this.rgba[3]=e,this}tweenTo(e,t){const i=this.rgba,r=e.rgba;if(!ig(i[0])||!ig(r[0]))return Es.useColorMix&&kv(this.input)&&kv(e.input)&&t<.99?qw(this.input,e.input,t):e.input||"none";const o=r[3]!==1||i[3]!==1,s=(l,u)=>l+(i[u]-l)*(1-t),a=r.slice(0,3).map(s).map(Math.round);return o&&a.push(s(r[3],3)),(o?"rgba(":"rgb(")+a.join(",")+")"}}Es.names={white:"#ffffff",black:"#000000"};Es.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(n){return[ia(n[1]),ia(n[2]),ia(n[3]),parseFloat(n[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(n){return[ia(n[1]),ia(n[2]),ia(n[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(n){return[ia(n[1]+n[1],16),ia(n[2]+n[2],16),ia(n[3]+n[3],16),jw(n[4])?ia(n[4]+n[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(n){return[ia(n[1],16),ia(n[2],16),ia(n[3],16),jw(n[4])?ia(n[4],16)/255:1]}}];Es.useColorMix=rD.CSS?.supports("color","color-mix(in srgb,red,blue 9%)");Es.None=new Es("");const Jh=Es,{parse:$w}=Jh,{win:aD}=St,{isNumber:Pv,objectEach:lD}=lt;class Hh{constructor(e,t,i){this.pos=NaN,this.options=t,this.elem=e,this.prop=i}dSetter(){const e=this.paths,t=e?.[0],i=e?.[1],r=this.now||0;let o=[];if(r===1||!t||!i)o=this.toD||[];else if(t.length===i.length&&r<1)for(let s=0;s<i.length;s++){const a=t[s],l=i[s],u=[];for(let g=0;g<l.length;g++){const m=a[g],b=l[g];Pv(m)&&Pv(b)&&!(l[0]==="A"&&(g===4||g===5))?u[g]=m+r*(b-m):u[g]=b}o.push(u)}else o=i;this.elem.attr("d",o,void 0,!0)}update(){const e=this.elem,t=this.prop,i=this.now,r=this.options.step;this[t+"Setter"]?this[t+"Setter"]():e.attr?e.element&&e.attr(t,i,null,!0):e.style[t]=i+this.unit,r&&r.call(e,i,this)}run(e,t,i){const r=this,o=r.options,s=function(u){return s.stopped?!1:r.step(u)},a=aD.requestAnimationFrame||function(u){setTimeout(u,13)},l=function(){for(let u=0;u<Hh.timers.length;u++)Hh.timers[u]()||Hh.timers.splice(u--,1);Hh.timers.length&&a(l)};e===t&&!this.elem["forceAnimate:"+this.prop]?(delete o.curAnim[this.prop],o.complete&&Object.keys(o.curAnim).length===0&&o.complete.call(this.elem)):(this.startTime=+new Date,this.start=e,this.end=t,this.unit=i,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&Hh.timers.push(s)===1&&a(l))}step(e){const t=+new Date,i=this.options,r=this.elem,o=i.complete,s=i.duration,a=i.curAnim;let l,u;return r.attr&&!r.element?l=!1:e||t>=s+this.startTime?(this.now=this.end,this.pos=1,this.update(),a[this.prop]=!0,u=!0,lD(a,function(g){g!==!0&&(u=!1)}),u&&o&&o.call(r),l=!1):(this.pos=i.easing((t-this.startTime)/s),this.now=this.start+(this.end-this.start)*this.pos,this.update(),l=!0),l}initPath(e,t,i){const r=e.startX,o=e.endX,s=i.slice(),a=e.isArea,l=a?2:1,u=t&&i.length>t.length&&i.hasStackedCliffs;let g,m,b,w,E=t?.slice();if(!E||u)return[s,s];function T(M,I){for(;M.length<m;){const L=M[0],H=I[m-M.length];if(H&&L[0]==="M"&&(H[0]==="C"?M[0]=["C",L[1],L[2],L[1],L[2],L[1],L[2]]:M[0]=["L",L[1],L[2]]),M.unshift(L),a){const W=M.pop();M.push(M[M.length-1],W)}}}function P(M){for(;M.length<m;){const I=M[Math.floor(M.length/l)-1].slice();if(I[0]==="C"&&(I[1]=I[5],I[2]=I[6]),!a)M.push(I);else{const L=M[Math.floor(M.length/l)].slice();M.splice(M.length/2,0,I,L)}}}if(r&&o&&o.length){for(b=0;b<r.length;b++)if(r[b]===o[0]){g=b;break}else if(r[0]===o[o.length-r.length+b]){g=b,w=!0;break}else if(r[r.length-1]===o[o.length-r.length+b]){g=r.length-b;break}typeof g>"u"&&(E=[])}return E.length&&Pv(g)&&(m=s.length+g*l,w?(T(E,s),P(s)):(T(s,E),P(E))),[E,s]}fillSetter(){Hh.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,$w(this.start).tweenTo($w(this.end),this.pos),void 0,!0)}}Hh.timers=[];const qf=Hh,{defined:cD,getStyle:uD,isArray:hD,isNumber:fD,isObject:A0,merge:CE,objectEach:dD,pick:gD}=lt;function pD(n,e){e.renderer.globalAnimation=gD(n,e.options.chart.animation,!0)}function sb(n){return A0(n)?CE({duration:500,defer:0},n):{duration:n?500:0,defer:0}}function mD(n,e,t){const i=sb(e),r=t?[t]:n.series;let o=0,s=0;return r.forEach(l=>{const u=sb(l.options.animation);o=A0(e)&&cD(e.defer)?i.defer:Math.max(o,u.duration+u.defer),s=Math.min(i.duration,u.duration)}),n.renderer.forExport&&(o=0),{defer:Math.max(0,o-s),duration:Math.min(o,s)}}function vD(n,e,t){let i,r="",o,s,a;A0(t)||(a=arguments,t={duration:a[2],easing:a[3],complete:a[4]}),fD(t.duration)||(t.duration=400),t.easing=typeof t.easing=="function"?t.easing:Math[t.easing]||Math.easeInOutSine,t.curAnim=CE(e),dD(e,function(l,u){SE(n,u),s=new qf(n,t,u),o=void 0,u==="d"&&hD(e.d)?(s.paths=s.initPath(n,n.pathArray,e.d),s.toD=e.d,i=0,o=1):n.attr?i=n.attr(u):(i=parseFloat(uD(n,u))||0,u!=="opacity"&&(r="px")),o||(o=l),typeof o=="string"&&o.match("px")&&(o=o.replace(/px/g,"")),s.run(i,o,r)})}function SE(n,e){let t=qf.timers.length;for(;t--;)qf.timers[t].elem===n&&(!e||e===qf.timers[t].prop)&&(qf.timers[t].stopped=!0)}const yD={animate:vD,animObject:sb,getDeferredAnimation:mD,setAnimation:pD,stop:SE},$o=yD,{SVG_NS:eC,win:bD}=St,{attr:xD,createElement:wD,css:CD,error:tC,isFunction:SD,isString:nC,objectEach:iC,splat:TD}=lt,{trustedTypes:Mv}=bD,fm=Mv&&SD(Mv.createPolicy)&&Mv.createPolicy("highcharts",{createHTML:n=>n}),ED=fm?fm.createHTML(""):"";class ra{static filterUserAttributes(e){return iC(e,(t,i)=>{let r=!0;ra.allowedAttributes.indexOf(i)===-1&&(r=!1),["background","dynsrc","href","lowsrc","src"].indexOf(i)!==-1&&(r=nC(t)&&ra.allowedReferences.some(o=>t.indexOf(o)===0)),r||(tC(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete e[i]),nC(t)&&e[i]&&(e[i]=t.replace(/</g,"<"))}),e}static parseStyle(e){return e.split(";").reduce((t,i)=>{const r=i.split(":").map(s=>s.trim()),o=r.shift();return o&&r.length&&(t[o.replace(/-([a-z])/g,s=>s[1].toUpperCase())]=r.join(":")),t},{})}static setElementHTML(e,t){e.innerHTML=ra.emptyHTML,t&&new ra(t).addToDOM(e)}constructor(e){this.nodes=typeof e=="string"?this.parseMarkup(e):e}addToDOM(e){function t(i,r){let o;return TD(i).forEach(function(s){const a=s.tagName,l=s.textContent?St.doc.createTextNode(s.textContent):void 0,u=ra.bypassHTMLFiltering;let g;if(a)if(a==="#text")g=l;else if(ra.allowedTags.indexOf(a)!==-1||u){const m=a==="svg"?eC:r.namespaceURI||eC,b=St.doc.createElementNS(m,a),w=s.attributes||{};iC(s,function(E,T){T!=="tagName"&&T!=="attributes"&&T!=="children"&&T!=="style"&&T!=="textContent"&&(w[T]=E)}),xD(b,u?w:ra.filterUserAttributes(w)),s.style&&CD(b,s.style),l&&b.appendChild(l),t(s.children||[],b),g=b}else tC(33,!1,void 0,{"Invalid tagName in config":a});g&&r.appendChild(g),o=g}),o}return t(this.nodes,e)}parseMarkup(e){const t=[];e=e.trim().replace(/ style=(["'])/g," data-style=$1");let i;try{i=new DOMParser().parseFromString(fm?fm.createHTML(e):e,"text/html")}catch{}if(!i){const o=wD("div");o.innerHTML=e,i={body:o}}const r=(o,s)=>{const a=o.nodeName.toLowerCase(),l={tagName:a};a==="#text"&&(l.textContent=o.textContent||"");const u=o.attributes;if(u){const g={};[].forEach.call(u,m=>{m.name==="data-style"?l.style=ra.parseStyle(m.value):g[m.name]=m.value}),l.attributes=g}if(o.childNodes.length){const g=[];[].forEach.call(o.childNodes,m=>{r(m,g)}),g.length&&(l.children=g)}s.push(l)};return[].forEach.call(i.body.childNodes,o=>r(o,t)),t}}ra.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","disabled","dx","dy","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","result","role","rowspan","scope","slope","src","startOffset","stdDeviation","stroke-linecap","stroke-width","stroke","style","summary","tabindex","tableValues","target","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"];ra.allowedReferences=["https://","http://","mailto:","/","../","./","#"];ra.allowedTags=["#text","a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"];ra.emptyHTML=ED;ra.bypassHTMLFiltering=!1;const wu=ra,{defaultOptions:TE,defaultTime:EE}=Pc,{pageLang:RD}=St,{extend:kD,getNestedProperty:PD,isArray:MD,isNumber:rC,isObject:AD,isString:_D,pick:OD,ucfirst:FD}=lt,Jp={add:(n,e)=>n+e,divide:(n,e)=>e!==0?n/e:"",eq:(n,e)=>n==e,each:function(n){const e=arguments[arguments.length-1];return MD(n)?n.map((t,i)=>dm(e.body,kD(AD(t)?t:{"@this":t},{"@index":i,"@first":i===0,"@last":i===n.length-1}))).join(""):!1},ge:(n,e)=>n>=e,gt:(n,e)=>n>e,if:n=>!!n,le:(n,e)=>n<=e,lt:(n,e)=>n<e,multiply:(n,e)=>n*e,ne:(n,e)=>n!=e,subtract:(n,e)=>n-e,ucfirst:FD,unless:n=>!n},oC={},sC=n=>/^["'].+["']$/.test(n);function LD(n,e,t){return EE.dateFormat(n,e,t)}function dm(n="",e,t){const i=/\{([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'’= #\(\)]+)\}/g,r=/\(([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/g,o=[],s=/f$/,a=/\.(\d)/,l=t?.options?.lang||TE.lang,u=t?.time||EE,g=t?.numberFormatter||RE.bind(t),m=(P="")=>{let M;return P==="true"?!0:P==="false"?!1:(M=Number(P)).toString()===P?M:sC(P)?P.slice(1,-1):PD(P,e)};let b,w,E=0,T;for(;(b=i.exec(n))!==null;){const P=b,M=r.exec(b[1]);M&&(b=M,T=!0),w?.isBlock||(w={ctx:e,expression:b[1],find:b[0],isBlock:b[1].charAt(0)==="#",start:b.index,startInner:b.index+b[0].length,length:b[0].length});const I=(w.isBlock?P:b)[1].split(" ")[0].replace("#","");Jp[I]&&(w.isBlock&&I===w.fn&&E++,w.fn||(w.fn=I));const L=b[1]==="else";if(w.isBlock&&w.fn&&(b[1]===`/${w.fn}`||L))if(E)L||E--;else{const H=w.startInner,W=n.substr(H,b.index-H);w.body===void 0?(w.body=W,w.startInner=b.index+b[0].length):w.elseBody=W,w.find+=W+b[0],L||(o.push(w),w=void 0)}else w.isBlock||o.push(w);if(M&&!w?.isBlock)break}return o.forEach(P=>{const{body:M,elseBody:I,expression:L,fn:H}=P;let W,G;if(H){const J=[P],Y=[],$=L.length;let re=0,be;for(G=0;G<=$;G++){const we=L.charAt(G);!be&&(we==='"'||we==="'")?be=we:be===we&&(be=""),!be&&(we===" "||G===$)&&(Y.push(L.substr(re,G-re)),re=G+1)}for(G=Jp[H].length;G--;)J.unshift(m(Y[G+1]));W=Jp[H].apply(e,J),P.isBlock&&typeof W=="boolean"&&(W=dm(W?M:I,e,t))}else{const J=sC(L)?[L]:L.split(":");W=m(J.shift()||"");const Y=W%1!==0;if(typeof W=="number"&&(J.length||Y)){const $=J.join(":");if(s.test($)||Y){const re=parseInt(($.match(a)||["","-1"])[1],10);W!==null&&(W=g(W,re,l.decimalPoint,$.indexOf(",")>-1?l.thousandsSep:""))}else W=u.dateFormat($,W)}r.lastIndex=0,r.test(P.find)&&_D(W)&&(W=`"${W}"`)}n=n.replace(P.find,OD(W,""))}),T?dm(n,e,t):n}function RE(n,e,t,i){n=+n||0,e=+e;let r,o,[s,a]=n.toString().split("e").map(Number);const l=this?.options?.lang||TE.lang,u=(n.toString().split(".")[1]||"").split("e")[0].length,g=e,m={};t??(t=l.decimalPoint),i??(i=l.thousandsSep),e===-1?e=Math.min(u,20):rC(e)?e&&a<0&&(o=e+a,o>=0?(s=+s.toExponential(o).split("e")[0],e=o):(s=Math.floor(s),e<20?n=+(s*Math.pow(10,a)).toFixed(e):n=0,a=0)):e=2,a&&(e??(e=2),n=s),rC(e)&&e>=0&&(m.minimumFractionDigits=e,m.maximumFractionDigits=e),i===""&&(m.useGrouping=!1);const b=i||t,w=b?"en":this?.locale||l.locale||RD,E=JSON.stringify(m)+w;return r=(oC[E]??(oC[E]=new Intl.NumberFormat(w,m))).format(n),b&&(r=r.replace(/([,\.])/g,"_$1").replace(/_\,/g,i??",").replace("_.",t??".")),(!e&&+r==0||a<0&&!g)&&(r="0"),a&&+r!=0&&(r+="e"+(a<0?"":"+")+a),r}const ID={dateFormat:LD,format:dm,helpers:Jp,numberFormat:RE},Mc=ID;var ab;(function(n){n.rendererTypes={};let e;function t(r=e){return n.rendererTypes[r]||n.rendererTypes[e]}n.getRendererType=t;function i(r,o,s){n.rendererTypes[r]=o,(!e||s)&&(e=r,St.Renderer=o)}n.registerRendererType=i})(ab||(ab={}));const Kg=ab,{clamp:DD,pick:BD,pushUnique:ND,stableSort:Av}=lt;var lb;(function(n){function e(t,i,r){const o=t,s=o.reducedLen||i,a=(W,G)=>(G.rank||0)-(W.rank||0),l=(W,G)=>W.target-G.target,u=[],g=t.length,m=[],b=u.push;let w,E,T,P=!0,M,I,L=0,H;for(w=g;w--;)L+=t[w].size;if(L>s){for(Av(t,a),H=t[0].rank===t[t.length-1].rank,T=H?g/2:-1,E=H?T:g-1;T&&L>s;)w=Math.floor(E),M=t[w],ND(m,w)&&(L-=M.size),E+=T,H&&E>=t.length&&(T/=2,E=T);m.sort((W,G)=>G-W).forEach(W=>b.apply(u,t.splice(W,1)))}for(Av(t,l),t=t.map(W=>({size:W.size,targets:[W.target],align:BD(W.align,.5)}));P;){for(w=t.length;w--;)M=t[w],I=(Math.min.apply(0,M.targets)+Math.max.apply(0,M.targets))/2,M.pos=DD(I-M.size*M.align,0,i-M.size);for(w=t.length,P=!1;w--;)w>0&&t[w-1].pos+t[w-1].size>t[w].pos&&(t[w-1].size+=t[w].size,t[w-1].targets=t[w-1].targets.concat(t[w].targets),t[w-1].align=.5,t[w-1].pos+t[w-1].size>i&&(t[w-1].pos=i-t[w-1].size),t.splice(w,1),P=!0)}return b.apply(o,u),w=0,t.some(W=>{let G=0;return(W.targets||[]).some(()=>(o[w].pos=W.pos+G,typeof r<"u"&&Math.abs(o[w].pos-o[w].target)>r?(o.slice(0,w+1).forEach(J=>delete J.pos),o.reducedLen=(o.reducedLen||i)-i*.1,o.reducedLen>i*.1&&e(o,i,r),!0):(G+=o[w].size,w++,!1)))}),Av(o,l),o}n.distribute=e})(lb||(lb={}));const _m=lb,{animate:zD,animObject:HD,stop:aC}=$o,{deg2rad:lC,doc:pd,svg:WD,SVG_NS:hp,win:VD,isFirefox:GD}=St,{addEvent:UD,attr:_v,createElement:XD,crisp:fp,css:cC,defined:nh,erase:YD,extend:rg,fireEvent:Ov,getAlignFactor:Fv,isArray:uC,isFunction:hC,isNumber:ZD,isObject:KD,isString:fC,merge:Lv,objectEach:md,pick:Bh,pInt:dp,pushUnique:JD,replaceNested:QD,syncTimeout:jD,uniqueKey:dC}=lt;class ho{_defaultGetter(e){let t=Bh(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0);return/^-?[\d\.]+$/.test(t)&&(t=parseFloat(t)),t}_defaultSetter(e,t,i){i.setAttribute(t,e)}add(e){const t=this.renderer,i=this.element;let r;return e&&(this.parentGroup=e),typeof this.textStr<"u"&&this.element.nodeName==="text"&&t.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(r=this.zIndexSetter()),r||(e?e.element:t.box).appendChild(i),this.onAdd&&this.onAdd(),this}addClass(e,t){const i=t?"":this.attr("class")||"";return e=(e||"").split(/ /g).reduce(function(r,o){return i.indexOf(o)===-1&&r.push(o),r},i?[i]:[]).join(" "),e!==i&&this.attr("class",e),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(e,t,i,r=!0){const o=this.renderer,s=o.alignedObjects,a=!!e;e?(this.alignOptions=e,this.alignByTranslate=t,this.alignTo=i):(e=this.alignOptions||{},t=this.alignByTranslate,i=this.alignTo);const l=!i||fC(i)?i||"renderer":void 0;l&&(a&&JD(s,this),i=void 0);const u=Bh(i,o[l],o),g=(u.x||0)+(e.x||0)+((u.width||0)-(e.width||0))*Fv(e.align),m=(u.y||0)+(e.y||0)+((u.height||0)-(e.height||0))*Fv(e.verticalAlign),b={"text-align":e?.align};return b[t?"translateX":"x"]=Math.round(g),b[t?"translateY":"y"]=Math.round(m),r&&(this[this.placed?"animate":"attr"](b),this.placed=!0),this.alignAttr=b,this}alignSetter(e){const t={left:"start",center:"middle",right:"end"};t[e]&&(this.alignValue=e,this.element.setAttribute("text-anchor",t[e]))}animate(e,t,i){const r=HD(Bh(t,this.renderer.globalAnimation,!0)),o=r.defer;return pd.hidden&&(r.duration=0),r.duration!==0?(i&&(r.complete=i),jD(()=>{this.element&&zD(this,e,r)},o)):(this.attr(e,void 0,i||r.complete),md(e,function(s,a){r.step&&r.step.call(this,s,{prop:a,pos:1,elem:this})},this)),this}applyTextOutline(e){const t=this.element;e.indexOf("contrast")!==-1&&(e=e.replace(/contrast/g,this.renderer.getContrast(t.style.fill)));const r=e.indexOf(" "),o=e.substring(r+1);let s=e.substring(0,r);if(s&&s!=="none"&&St.svg){this.fakeTS=!0,s=s.replace(/(^[\d\.]+)(.*?)$/g,function(m,b,w){return 2*Number(b)+w}),this.removeTextOutline();const a=pd.createElementNS(hp,"tspan");_v(a,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":s,"stroke-linejoin":"round"});const l=t.querySelector("textPath")||t;[].forEach.call(l.childNodes,m=>{const b=m.cloneNode(!0);b.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(w=>b.removeAttribute(w)),a.appendChild(b)});let u=0;[].forEach.call(l.querySelectorAll("text tspan"),m=>{u+=Number(m.getAttribute("dy"))});const g=pd.createElementNS(hp,"tspan");g.textContent="",_v(g,{x:Number(t.getAttribute("x")),dy:-u}),a.appendChild(g),l.insertBefore(a,l.firstChild)}}attr(e,t,i,r){const{element:o}=this,s=ho.symbolCustomAttribs;let a,l,u=this,g,m;return typeof e=="string"&&typeof t<"u"&&(a=e,e={},e[a]=t),typeof e=="string"?u=(this[e+"Getter"]||this._defaultGetter).call(this,e,o):(md(e,function(w,E){g=!1,r||aC(this,E),this.symbolName&&s.indexOf(E)!==-1&&(l||(this.symbolAttr(e),l=!0),g=!0),this.rotation&&(E==="x"||E==="y")&&(this.doTransform=!0),g||(m=this[E+"Setter"]||this._defaultSetter,m.call(this,w,E,o))},this),this.afterSetters()),i&&i.call(this),u}clip(e){if(e&&!e.clipPath){const t=dC()+"-",i=this.renderer.createElement("clipPath").attr({id:t}).add(this.renderer.defs);rg(e,{clipPath:i,id:t,count:0}),e.add(i)}return this.attr("clip-path",e?`url(${this.renderer.url}#${e.id})`:"none")}crisp(e,t){t=Math.round(t||e.strokeWidth||0);const i=e.x||this.x||0,r=e.y||this.y||0,o=(e.width||this.width||0)+i,s=(e.height||this.height||0)+r,a=fp(i,t),l=fp(r,t),u=fp(o,t),g=fp(s,t);return rg(e,{x:a,y:l,width:u-a,height:g-l}),nh(e.strokeWidth)&&(e.strokeWidth=t),e}complexColor(e,t,i){const r=this.renderer;let o,s,a,l,u,g,m,b,w,E,T=[],P;Ov(this.renderer,"complexColor",{args:arguments},function(){if(e.radialGradient?s="radialGradient":e.linearGradient&&(s="linearGradient"),s){if(a=e[s],u=r.gradients,g=e.stops,w=i.radialReference,uC(a)&&(e[s]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),s==="radialGradient"&&w&&!nh(a.gradientUnits)&&(l=a,a=Lv(a,r.getRadialAttr(w,l),{gradientUnits:"userSpaceOnUse"})),md(a,function(M,I){I!=="id"&&T.push(I,M)}),md(g,function(M){T.push(M)}),T=T.join(","),u[T])E=u[T].attr("id");else{a.id=E=dC();const M=u[T]=r.createElement(s).attr(a).add(r.defs);M.radAttr=l,M.stops=[],g.forEach(function(I){I[1].indexOf("rgba")===0?(o=Jh.parse(I[1]),m=o.get("rgb"),b=o.get("a")):(m=I[1],b=1);const L=r.createElement("stop").attr({offset:I[0],"stop-color":m,"stop-opacity":b}).add(M);M.stops.push(L)})}P="url("+r.url+"#"+E+")",i.setAttribute(t,P),i.gradient=T,e.toString=function(){return P}}})}css(e){const t=this.styles,i={},r=this.element;let o,s=!t;if(t&&md(e,function(a,l){t&&t[l]!==a&&(i[l]=a,s=!0)}),s){t&&(e=rg(t,i)),e.width===null||e.width==="auto"?delete this.textWidth:r.nodeName.toLowerCase()==="text"&&e.width&&(o=this.textWidth=dp(e.width)),rg(this.styles,e),o&&!WD&&this.renderer.forExport&&delete e.width;const a=GD&&e.fontSize||null;a&&(ZD(a)||/^\d+$/.test(a))&&(e.fontSize+="px");const l=Lv(e);r.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(u=>l&&delete l[u]),l.color&&(l.fill=l.color,delete l.color)),cC(r,l)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),e.textOutline&&this.applyTextOutline(e.textOutline)),this}dashstyleSetter(e){let t,i=this["stroke-width"];if(i==="inherit"&&(i=1),e){e=e.toLowerCase();const r=e.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=r.length;t--;)r[t]=""+dp(r[t])*Bh(i,NaN);e=r.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",e)}}destroy(){const e=this,t=e.element||{},i=e.renderer,r=t.ownerSVGElement;let o=t.nodeName==="SPAN"&&e.parentGroup||void 0,s,a;if(t.onclick=t.onmouseout=t.onmouseover=t.onmousemove=t.point=null,aC(e),e.clipPath&&r){const l=e.clipPath;[].forEach.call(r.querySelectorAll("[clip-path],[CLIP-PATH]"),function(u){u.getAttribute("clip-path").indexOf(l.element.id)>-1&&u.removeAttribute("clip-path")}),e.clipPath=l.destroy()}if(e.stops){for(a=0;a<e.stops.length;a++)e.stops[a].destroy();e.stops.length=0,e.stops=void 0}for(e.safeRemoveChild(t);o?.div&&o.div.childNodes.length===0;)s=o.parentGroup,e.safeRemoveChild(o.div),delete o.div,o=s;e.alignOptions&&YD(i.alignedObjects,e),md(e,(l,u)=>{(e[u]?.parentGroup===e||["connector","foreignObject"].indexOf(u)!==-1)&&e[u]?.destroy?.(),delete e[u]})}dSetter(e,t,i){uC(e)&&(typeof e[0]=="string"&&(e=this.renderer.pathToSegments(e)),this.pathArray=e,e=e.reduce((r,o,s)=>o?.join?(s?r+" ":"")+o.join(" "):(o||"").toString(),"")),/(NaN| {2}|^$)/.test(e)&&(e="M 0 0"),this[t]!==e&&(i.setAttribute(t,e),this[t]=e)}fillSetter(e,t,i){typeof e=="string"?i.setAttribute(t,e):e&&this.complexColor(e,t,i)}hrefSetter(e,t,i){i.setAttributeNS("http://www.w3.org/1999/xlink",t,e)}getBBox(e,t){const i=this,{alignValue:r,element:o,renderer:s,styles:a,textStr:l}=i,{cache:u,cacheKeys:g}=s,m=o.namespaceURI===i.SVG_NS,b=Bh(t,i.rotation,0),w=s.styledMode?o&&ho.prototype.getStyle.call(o,"font-size"):a.fontSize;let E,T,P,M;if(nh(l)&&(M=l.toString(),M.indexOf("<")===-1&&(M=M.replace(/\d/g,"0")),M+=["",s.rootFontSize,w,b,i.textWidth,r,a.lineClamp,a.textOverflow,a.fontWeight].join(",")),M&&!e&&(E=u[M]),!E||E.polygon){if(m||s.forExport){try{P=this.fakeTS&&function(L){const H=o.querySelector(".highcharts-text-outline");H&&cC(H,{display:L})},hC(P)&&P("none"),E=o.getBBox?rg({},o.getBBox()):{width:o.offsetWidth,height:o.offsetHeight,x:0,y:0},hC(P)&&P("")}catch{}(!E||E.width<0)&&(E={x:0,y:0,width:0,height:0})}else E=i.htmlGetBBox();T=E.height,m&&(E.height=T={"11px,17":14,"13px,20":16}[`${w||""},${Math.round(T)}`]||T),b&&(E=this.getRotatedBox(E,b));const I={bBox:E};Ov(this,"afterGetBBox",I),E=I.bBox}if(M&&(l===""||E.height>0)){for(;g.length>250;)delete u[g.shift()];u[M]||g.push(M),u[M]=E}return E}getRotatedBox(e,t){const{x:i,y:r,width:o,height:s}=e,{alignValue:a,translateY:l,rotationOriginX:u=0,rotationOriginY:g=0}=this,m=Fv(a),b=Number(this.element.getAttribute("y")||0)-(l?0:r),w=t*lC,E=(t-90)*lC,T=Math.cos(w),P=Math.sin(w),M=o*T,I=o*P,L=Math.cos(E),H=Math.sin(E),[[W,G],[J,Y]]=[u,g].map(We=>[We-We*T,We*P]),$=i+m*(o-M)+W+Y,re=r+b-m*I-G+J,be=$+b*L,we=be+M,Ee=we-s*L,pe=Ee-M,me=re+b*H,ee=me+I,q=ee-s*H,le=q-I,Te=Math.min(be,we,Ee,pe),he=Math.min(me,ee,q,le),ue=Math.max(be,we,Ee,pe)-Te,Ne=Math.max(me,ee,q,le)-he;return{x:Te,y:he,width:ue,height:Ne,polygon:[[be,me],[we,ee],[Ee,q],[pe,le]]}}getStyle(e){return VD.getComputedStyle(this.element||this,"").getPropertyValue(e)}hasClass(e){return(""+this.attr("class")).split(" ").indexOf(e)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(e,t){this.onEvents={},this.opacity=1,this.SVG_NS=hp,this.element=t==="span"||t==="body"?XD(t):pd.createElementNS(this.SVG_NS,t),this.renderer=e,this.styles={},Ov(this,"afterInit")}on(e,t){const{onEvents:i}=this;return i[e]&&i[e](),i[e]=UD(this.element,e,t),this}opacitySetter(e,t,i){const r=Number(Number(e).toFixed(3));this.opacity=r,i.setAttribute(t,r)}reAlign(){this.alignOptions?.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(e){return this.attr("class",(""+this.attr("class")).replace(fC(e)?new RegExp(`(^| )${e}( |$)`):e," ").replace(/ +/g," ").trim())}removeTextOutline(){const e=this.element.querySelector("tspan.highcharts-text-outline");e&&this.safeRemoveChild(e)}safeRemoveChild(e){const t=e.parentNode;t&&t.removeChild(e)}setRadialReference(e){const t=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=e,t?.radAttr&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this}shadow(e){const{renderer:t}=this,i=Lv(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},KD(e)?e:{}),r=t.shadowDefinition(i);return this.attr({filter:e?`url(${t.url}#${r})`:"none"})}show(e=!0){return this.attr({visibility:e?"inherit":"visible"})}"stroke-widthSetter"(e,t,i){this[t]=e,i.setAttribute(t,e)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;const e=this.getStyle("stroke-width");let t=0,i;return/px$/.test(e)?t=dp(e):e!==""&&(i=pd.createElementNS(hp,"rect"),_v(i,{width:e,"stroke-width":0}),this.element.parentNode.appendChild(i),t=i.getBBox().width,i.parentNode.removeChild(i)),t}symbolAttr(e){const t=this;ho.symbolCustomAttribs.forEach(function(i){t[i]=Bh(e[i],t[i])}),t.attr({d:t.renderer.symbols[t.symbolName](t.x,t.y,t.width,t.height,t)})}textSetter(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(e){const t=this.element,i=t.getElementsByTagName("title")[0]||pd.createElementNS(this.SVG_NS,"title");t.insertBefore?t.insertBefore(i,t.firstChild):t.appendChild(i),i.textContent=QD(Bh(e,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){const e=this.element;return e.parentNode.appendChild(e),this}translate(e,t){return this.attr({translateX:e,translateY:t})}updateTransform(e="transform"){const{element:t,foreignObject:i,matrix:r,padding:o,rotation:s=0,rotationOriginX:a,rotationOriginY:l,scaleX:u,scaleY:g,text:m,translateX:b=0,translateY:w=0}=this,E=["translate("+b+","+w+")"];nh(r)&&E.push("matrix("+r.join(",")+")"),s&&(E.push("rotate("+s+" "+(a??t.getAttribute("x")??this.x??0)+" "+(l??t.getAttribute("y")??this.y??0)+")"),m?.element.tagName==="SPAN"&&!m?.foreignObject&&m.attr({rotation:s,rotationOriginX:(a||0)-o,rotationOriginY:(l||0)-o})),(nh(u)||nh(g))&&E.push("scale("+Bh(u,1)+" "+Bh(g,1)+")"),E.length&&!(m||this).textPath&&(i?.element||t).setAttribute(e,E.join(" "))}visibilitySetter(e,t,i){e==="inherit"?i.removeAttribute(t):this[t]!==e&&i.setAttribute(t,e),this[t]=e}xGetter(e){return this.element.nodeName==="circle"&&(e==="x"?e="cx":e==="y"&&(e="cy")),this._defaultGetter(e)}zIndexSetter(e,t){const i=this.renderer,r=this.parentGroup,o=r||i,s=o.element||i.box,a=this.element,l=s===i.box;let u,g,m,b=!1,w,E=this.added,T;if(nh(e)?(a.setAttribute("data-z-index",e),e=+e,this[t]===e&&(E=!1)):nh(this[t])&&a.removeAttribute("data-z-index"),this[t]=e,E){for(e=this.zIndex,e&&r&&(r.handleZ=!0),u=s.childNodes,T=u.length-1;T>=0&&!b;T--)g=u[T],m=g.getAttribute("data-z-index"),w=!nh(m),g!==a&&(e<0&&w&&!l&&!T?(s.insertBefore(a,u[T]),b=!0):(dp(m)<=e||w&&(!nh(e)||e>=0))&&(s.insertBefore(a,u[T+1]),b=!0));b||(s.insertBefore(a,u[l?3:0]),b=!0)}return b}}ho.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"];ho.prototype.strokeSetter=ho.prototype.fillSetter;ho.prototype.yGetter=ho.prototype.xGetter;ho.prototype.matrixSetter=ho.prototype.rotationOriginXSetter=ho.prototype.rotationOriginYSetter=ho.prototype.rotationSetter=ho.prototype.scaleXSetter=ho.prototype.scaleYSetter=ho.prototype.translateXSetter=ho.prototype.translateYSetter=ho.prototype.verticalAlignSetter=function(n,e){this[e]=n,this.doTransform=!0};const uh=ho,{defined:gC,extend:qD,getAlignFactor:pC,isNumber:og,merge:$D,pick:gp,removeEvent:mC}=lt;class td extends uh{constructor(e,t,i,r,o,s,a,l,u,g){super(e,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=t,this.x=i,this.y=r,this.anchorX=s,this.anchorY=a,this.baseline=u,this.className=g,this.addClass(g==="button"?"highcharts-no-tooltip":"highcharts-label"),g&&this.addClass("highcharts-"+g),this.text=e.text(void 0,0,0,l).attr({zIndex:1});let m;typeof o=="string"&&(m=/^url\((.*?)\)$/.test(o),(m||this.renderer.symbols[o])&&(this.symbolKey=o)),this.bBox=td.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=e.styledMode||m,this.deferredAttr={},this.alignFactor=0}alignSetter(e){const t=pC(e);this.textAlign=e,t!==this.alignFactor&&(this.alignFactor=t,this.bBox&&og(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(e,t){this.anchorX=e,this.boxAttr(t,Math.round(e)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(e,t){this.anchorY=e,this.boxAttr(t,e-this.ySetting)}boxAttr(e,t){this.box?this.box.attr(e,t):this.deferredAttr[e]=t}css(e){if(e){const t={};e=$D(e),td.textProps.forEach(i=>{typeof e[i]<"u"&&(t[i]=e[i],delete e[i])}),this.text.css(t),"fontSize"in t||"fontWeight"in t?this.updateTextPadding():("width"in t||"textOverflow"in t)&&this.updateBoxSize()}return uh.prototype.css.call(this,e)}destroy(){mC(this.element,"mouseenter"),mC(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),uh.prototype.destroy.call(this)}fillSetter(e,t){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(t,e)}getBBox(e,t){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();const{padding:i,height:r=0,translateX:o=0,translateY:s=0,width:a=0}=this,l=gp(this.paddingLeft,i),u=t??(this.rotation||0);let g={width:a,height:r,x:o+this.bBox.x-l,y:s+this.bBox.y-i+this.baselineOffset};return u&&(g=this.getRotatedBox(g,u)),g}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(e){this.heightSetting=e,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:gp(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&gC(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(e,t){og(e)?e!==this[t]&&(this[t]=e,this.updateTextPadding()):this[t]=void 0}rSetter(e,t){this.boxAttr(t,e)}strokeSetter(e,t){this.stroke=e,this.boxAttr(t,e)}"stroke-widthSetter"(e,t){e&&(this.needsBox=!0),this["stroke-width"]=e,this.boxAttr(t,e)}"text-alignSetter"(e){this.textAlign=this["text-align"]=e,this.updateTextPadding()}textSetter(e){typeof e<"u"&&this.text.attr({text:e}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){const e=this.text,t={},i=this.padding,r=this.bBox=(!og(this.widthSetting)||!og(this.heightSetting)||this.textAlign)&&gC(e.textStr)?e.getBBox(void 0,0):td.emptyBBox;let o;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||r.height||0)+2*i;const s=this.renderer.fontMetrics(e);if(this.baselineOffset=i+Math.min((this.text.firstLineMetrics||s).b,r.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-s.h)/2),this.needsBox&&!e.textPath){if(!this.box){const a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();a.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)}o=this.getCrispAdjust(),t.x=o,t.y=(this.baseline?-this.baselineOffset:0)+o,t.width=Math.round(this.width),t.height=Math.round(this.height),this.box.attr(qD(t,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){const e=this.text,t=e.styles.textAlign||this.textAlign;if(!e.textPath){this.updateBoxSize();const i=this.baseline?0:this.baselineOffset,r=(this.paddingLeft??this.padding)+pC(t)*(this.widthSetting??this.bBox.width);(r!==e.x||i!==e.y)&&(e.attr({align:t,x:r}),typeof i<"u"&&e.attr("y",i)),e.x=r,e.y=i}}widthSetter(e){this.widthSetting=og(e)?e:void 0,this.doUpdate=!0}getPaddedWidth(){const e=this.padding,t=gp(this.paddingLeft,e),i=gp(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+t+i}xSetter(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.anchorX&&(this["forceAnimate:anchorX"]=!0),this.xSetting=Math.round(e),this.attr("translateX",this.xSetting)}ySetter(e){this.anchorY&&(this["forceAnimate:anchorY"]=!0),this.ySetting=this.y=Math.round(e),this.attr("translateY",this.ySetting)}}td.emptyBBox={width:0,height:0,x:0,y:0};td.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];const e3=td,{defined:vC,isNumber:t3,pick:sg}=lt;function kE(n,e,t,i,r){const o=[];if(r){let s=r.start||0,a=r.end||0;const l=sg(r.r,t),u=sg(r.r,i||t),g=2e-4/(r.borderRadius?1:Math.max(l,1)),m=Math.abs(a-s-2*Math.PI)<g;m&&(s=Math.PI/2,a=Math.PI*2.5-g);const b=r.innerR,w=sg(r.open,m),E=Math.cos(s),T=Math.sin(s),P=Math.cos(a),M=Math.sin(a),I=sg(r.longArc,a-s-Math.PI<g?0:1);let L=["A",l,u,0,I,sg(r.clockwise,1),n+l*P,e+u*M];L.params={start:s,end:a,cx:n,cy:e},o.push(["M",n+l*E,e+u*T],L),vC(b)&&(L=["A",b,b,0,I,vC(r.clockwise)?1-r.clockwise:0,n+b*E,e+b*T],L.params={start:a,end:s,cx:n,cy:e},o.push(w?["M",n+b*P,e+b*M]:["L",n+b*P,e+b*M],L)),w||o.push(["Z"])}return o}function n3(n,e,t,i,r){const a=Math.min(r?.r||0,t,i),l=a+6,u=r?.anchorX,g=r?.anchorY||0,m=_0(n,e,t,i,{r:a});if(!t3(u)||u<t&&u>0&&g<i&&g>0)return m;if(n+u>t-l)if(g>e+l&&g<e+i-l)m.splice(3,1,["L",n+t,g-6],["L",n+t+6,g],["L",n+t,g+6],["L",n+t,e+i-a]);else if(u<t){const b=g<e+l,w=b?e:e+i,E=b?2:5;m.splice(E,0,["L",u,g],["L",n+t-a,w])}else m.splice(3,1,["L",n+t,i/2],["L",u,g],["L",n+t,i/2],["L",n+t,e+i-a]);else if(n+u<l)if(g>e+l&&g<e+i-l)m.splice(7,1,["L",n,g+6],["L",n-6,g],["L",n,g-6],["L",n,e+a]);else if(u>0){const b=g<e+l,w=b?e:e+i,E=b?1:6;m.splice(E,0,["L",u,g],["L",n+a,w])}else m.splice(7,1,["L",n,i/2],["L",u,g],["L",n,i/2],["L",n,e+a]);else g>i&&u<t-l?m.splice(5,1,["L",u+6,e+i],["L",u,e+i+6],["L",u-6,e+i],["L",n+a,e+i]):g<0&&u>l&&m.splice(1,1,["L",u-6,e],["L",u,e-6],["L",u+6,e],["L",t-a,e]);return m}function i3(n,e,t,i){return kE(n+t/2,e+i/2,t/2,i/2,{start:Math.PI*.5,end:Math.PI*2.5,open:!1})}function r3(n,e,t,i){return[["M",n+t/2,e],["L",n+t,e+i/2],["L",n+t/2,e+i],["L",n,e+i/2],["Z"]]}function yC(n,e,t,i,r){return r?.r?_0(n,e,t,i,r):[["M",n,e],["L",n+t,e],["L",n+t,e+i],["L",n,e+i],["Z"]]}function _0(n,e,t,i,r){const o=r?.r||0;return[["M",n+o,e],["L",n+t-o,e],["A",o,o,0,0,1,n+t,e+o],["L",n+t,e+i-o],["A",o,o,0,0,1,n+t-o,e+i],["L",n+o,e+i],["A",o,o,0,0,1,n,e+i-o],["L",n,e+o],["A",o,o,0,0,1,n+o,e],["Z"]]}function o3(n,e,t,i){return[["M",n+t/2,e],["L",n+t,e+i],["L",n,e+i],["Z"]]}function s3(n,e,t,i){return[["M",n,e],["L",n+t,e],["L",n+t/2,e+i],["Z"]]}const a3={arc:kE,callout:n3,circle:i3,diamond:r3,rect:yC,roundedRect:_0,square:yC,triangle:o3,"triangle-down":s3},PE=a3,{doc:Iv,SVG_NS:l3,win:bC}=St,{attr:Dv,extend:c3,fireEvent:u3,isString:h3,objectEach:f3,pick:d3}=lt,Bv=(n,e)=>n.substring(0,e)+"…";class g3{constructor(e){const t=e.styles;this.renderer=e.renderer,this.svgElement=e,this.width=e.textWidth,this.textLineHeight=t?.lineHeight,this.textOutline=t?.textOutline,this.ellipsis=t?.textOverflow==="ellipsis",this.lineClamp=t?.lineClamp,this.noWrap=t?.whiteSpace==="nowrap"}buildSVG(){const e=this.svgElement,t=e.element,i=e.renderer,r=d3(e.textStr,"").toString(),o=r.indexOf("<")!==-1,s=t.childNodes,a=!e.added&&i.box,l=/<br.*?>/g,u=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,e.getStyle("font-size"),e.styles.lineClamp,this.width].join(",");if(u!==e.textCache){e.textCache=u,delete e.actualWidth;for(let g=s.length;g--;)t.removeChild(s[g]);if(!o&&!this.ellipsis&&!this.width&&!e.textPath&&(r.indexOf(" ")===-1||this.noWrap&&!l.test(r)))t.appendChild(Iv.createTextNode(this.unescapeEntities(r)));else if(r!==""){a&&a.appendChild(t);const g=new wu(r);this.modifyTree(g.nodes),g.addToDOM(t),this.modifyDOM(),this.ellipsis&&(t.textContent||"").indexOf("…")!==-1&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),a&&a.removeChild(t)}h3(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}}modifyDOM(){const e=this.svgElement,t=Dv(e.element,"x");e.firstLineMetrics=void 0;let i;for(;(i=e.element.firstChild)&&/^[\s\u200B]*$/.test(i.textContent||" ");)e.element.removeChild(i);[].forEach.call(e.element.querySelectorAll("tspan.highcharts-br"),(a,l)=>{a.nextSibling&&a.previousSibling&&(l===0&&a.previousSibling.nodeType===1&&(e.firstLineMetrics=e.renderer.fontMetrics(a.previousSibling)),Dv(a,{dy:this.getLineHeight(a.nextSibling),x:t}))});const r=this.width||0;if(!r)return;const o=(a,l)=>{const u=a.textContent||"",g=u.replace(/([^\^])-/g,"$1- ").split(" "),m=!this.noWrap&&(g.length>1||e.element.childNodes.length>1),b=this.getLineHeight(l),w=Math.max(0,r-.8*b);let E=0,T=e.actualWidth;if(m){const P=[],M=[];for(;l.firstChild&&l.firstChild!==a;)M.push(l.firstChild),l.removeChild(l.firstChild);for(;g.length;)if(g.length&&!this.noWrap&&E>0&&(P.push(a.textContent||""),a.textContent=g.join(" ").replace(/- /g,"-")),this.truncate(a,void 0,g,E===0&&T||0,r,w,(I,L)=>g.slice(0,L).join(" ").replace(/- /g,"-")),T=e.actualWidth,E++,this.lineClamp&&E>=this.lineClamp){g.length&&(this.truncate(a,a.textContent||"",void 0,0,r,w,Bv),a.textContent=a.textContent?.replace("…","")+"…");break}M.forEach(I=>{l.insertBefore(I,a)}),P.forEach(I=>{l.insertBefore(Iv.createTextNode(I),a);const L=Iv.createElementNS(l3,"tspan");L.textContent="",Dv(L,{dy:b,x:t}),l.insertBefore(L,a)})}else this.ellipsis&&u&&this.truncate(a,u,void 0,0,r,w,Bv)},s=(a=>{[].slice.call(a.childNodes).forEach(u=>{u.nodeType===bC.Node.TEXT_NODE?o(u,a):(u.className.baseVal.indexOf("highcharts-br")!==-1&&(e.actualWidth=0),s(u))})});s(e.element)}getLineHeight(e){const t=e.nodeType===bC.Node.TEXT_NODE?e.parentElement:e;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t||this.svgElement.element).h}modifyTree(e){const t=(i,r)=>{const{attributes:o={},children:s,style:a={},tagName:l}=i,u=this.renderer.styledMode;if(l==="b"||l==="strong"?u?o.class="highcharts-strong":a.fontWeight="bold":(l==="i"||l==="em")&&(u?o.class="highcharts-emphasized":a.fontStyle="italic"),a?.color&&(a.fill=a.color),l==="br"){o.class="highcharts-br",i.textContent="";const g=e[r+1];g?.textContent&&(g.textContent=g.textContent.replace(/^ +/gm,""))}else l==="a"&&s&&s.some(g=>g.tagName==="#text")&&(i.children=[{children:s,tagName:"tspan"}]);l!=="#text"&&l!=="a"&&(i.tagName="tspan"),c3(i,{attributes:o,style:a}),s&&s.filter(g=>g.tagName!=="#text").forEach(t)};e.forEach(t),u3(this.svgElement,"afterModifyTree",{nodes:e})}truncate(e,t,i,r,o,s,a){const l=this.svgElement,{rotation:u}=l,g=[];let m=i&&!r?1:0,b=(t||i||"").length,w=b,E,T;i||(o=s);const P=function(M,I){const L=I||M,H=e.parentNode;if(H&&typeof g[L]>"u"&&H.getSubStringLength)try{g[L]=r+H.getSubStringLength(0,i?L+1:L)}catch{}return g[L]};if(l.rotation=0,T=P(e.textContent.length),r+T>o){for(;m<=b;)w=Math.ceil((m+b)/2),i&&(E=a(i,w)),T=P(w,E&&E.length-1),m===b?m=b+1:T>o?b=w-1:m=w;b===0?e.textContent="":t&&b===t.length-1||(e.textContent=E||a(t||i,w)),this.ellipsis&&T>o&&this.truncate(e,e.textContent||"",void 0,0,o,s,Bv)}i&&i.splice(0,w),l.actualWidth=T,l.rotation=u}unescapeEntities(e,t){return f3(this.renderer.escapes,function(i,r){(!t||t.indexOf(i)===-1)&&(e=e.toString().replace(new RegExp(i,"g"),r))}),e}}const p3=g3,{defaultOptions:m3}=Pc,{charts:v3,deg2rad:xC,doc:vd,isFirefox:wC,isMS:CC,isWebKit:y3,noop:b3,SVG_NS:x3,symbolSizes:Nv,win:zv}=St,{addEvent:pp,attr:mp,createElement:w3,crisp:SC,css:vp,defined:Hf,destroyObjectProperties:C3,extend:Yf,isArray:S3,isNumber:Wf,isObject:ag,isString:T3,merge:Hv,pick:Wv,pInt:E3,replaceNested:R3,uniqueKey:k3}=lt;let Vv;class O0{constructor(e,t,i,r,o,s,a){this.x=0,this.y=0;const l=this,u=l.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),g=u.element;a||u.css(this.getStyle(r||{})),e.appendChild(g),mp(e,"dir","ltr"),e.innerHTML.indexOf("xmlns")===-1&&mp(g,"xmlns",this.SVG_NS),this.box=g,this.boxWrapper=u,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(vd.createTextNode("Created with Highcharts 12.4.0")),this.defs=this.createElement("defs").add(),this.allowHTML=s,this.forExport=o,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=u.getStyle("font-size"),l.setSize(t,i,!1);let b,w;wC&&e.getBoundingClientRect&&(b=function(){vp(e,{left:0,top:0}),w=e.getBoundingClientRect(),vp(e,{left:Math.ceil(w.left)-w.left+"px",top:Math.ceil(w.top)-w.top+"px"})},b(),l.unSubPixelFix=pp(zv,"resize",b))}definition(e){return new wu([e]).addToDOM(this.defs.element)}getReferenceURL(){if((wC||y3)&&vd.getElementsByTagName("base").length){if(!Hf(Vv)){const e=k3(),i=new wu([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${e})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(vd.body);vp(i,{position:"fixed",top:0,left:0,zIndex:9e5}),Vv=vd.elementFromPoint(6,6)?.id==="hitme",vd.body.removeChild(i)}if(Vv)return R3(zv.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(e){return this.style=Yf({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},e),this.style}setStyle(e){this.boxWrapper.css(this.getStyle(e))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){const e=this,t=e.defs;return e.box=null,e.boxWrapper=e.boxWrapper.destroy(),C3(e.gradients||{}),e.gradients=null,e.defs=t.destroy(),e.unSubPixelFix&&e.unSubPixelFix(),e.alignedObjects=null,null}createElement(e){return new this.Element(this,e)}getRadialAttr(e,t){return{cx:e[0]-e[2]/2+(t.cx||0)*e[2],cy:e[1]-e[2]/2+(t.cy||0)*e[2],r:(t.r||0)*e[2]}}shadowDefinition(e){const t=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(e).map(r=>`${r}-${e[r]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i=Hv({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},e);return this.defs.element.querySelector(`#${t}`)||this.definition({tagName:"filter",attributes:{id:t,filterUnits:i.filterUnits},children:this.getShadowFilterContent(i)}),t}getShadowFilterContent(e){return[{tagName:"feDropShadow",attributes:{dx:e.offsetX,dy:e.offsetY,"flood-color":e.color,"flood-opacity":Math.min(e.opacity*5,1),stdDeviation:e.width/2}}]}buildText(e){new p3(e).buildSVG()}getContrast(e){if(e==="transparent")return"#000000";const t=Jh.parse(e).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(Wf(t[0])||!Jh.useColorMix){const r=t.map(s=>{const a=s/255;return a<=.04?a/12.92:Math.pow((a+.055)/1.055,2.4)}),o=.2126*r[0]+.7152*r[1]+.0722*r[2];return 1.05/(o+.05)>(o+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+e+" srgb"+i+i+i+")"}button(e,t,i,r,o={},s,a,l,u,g){const m=this.label(e,t,i,u,void 0,void 0,g,void 0,"button"),b=this.styledMode,w=arguments;let E=0;o=Hv(m3.global.buttonTheme,o),b&&(delete o.fill,delete o.stroke,delete o["stroke-width"]);const T=o.states||{},P=o.style||{};delete o.states,delete o.style;const M=[wu.filterUserAttributes(o)],I=[P];return b||["hover","select","disabled"].forEach((L,H)=>{M.push(Hv(M[0],wu.filterUserAttributes(w[H+5]||T[L]||{}))),I.push(M[H+1].style),delete M[H+1].style}),pp(m.element,CC?"mouseover":"mouseenter",function(){E!==3&&m.setState(1)}),pp(m.element,CC?"mouseout":"mouseleave",function(){E!==3&&m.setState(E)}),m.setState=(L=0)=>{if(L!==1&&(m.state=E=L),m.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][L]),!b){m.attr(M[L]);const H=I[L];ag(H)&&m.css(H)}},m.attr(M[0]),b||(m.css(Yf({cursor:"default"},P)),g&&m.text.css({pointerEvents:"none"})),m.on("touchstart",L=>L.stopPropagation()).on("click",function(L){E!==3&&r?.call(m,L)})}crispLine(e,t){const[i,r]=e;return Hf(i[1])&&i[1]===r[1]&&(i[1]=r[1]=SC(i[1],t)),Hf(i[2])&&i[2]===r[2]&&(i[2]=r[2]=SC(i[2],t)),e}path(e){const t=this.styledMode?{}:{fill:"none"};return S3(e)?t.d=e:ag(e)&&Yf(t,e),this.createElement("path").attr(t)}circle(e,t,i){const r=ag(e)?e:typeof e>"u"?{}:{x:e,y:t,r:i},o=this.createElement("circle");return o.xSetter=o.ySetter=function(s,a,l){l.setAttribute("c"+a,s)},o.attr(r)}arc(e,t,i,r,o,s){let a;ag(e)?(a=e,t=a.y,i=a.r,r=a.innerR,o=a.start,s=a.end,e=a.x):a={innerR:r,start:o,end:s};const l=this.symbol("arc",e,t,i,i,a);return l.r=i,l}rect(e,t,i,r,o,s){const a=ag(e)?e:typeof e>"u"?{}:{x:e,y:t,r:o,width:Math.max(i||0,0),height:Math.max(r||0,0)},l=this.createElement("rect");return this.styledMode||(typeof s<"u"&&(a["stroke-width"]=s,Yf(a,l.crisp(a))),a.fill="none"),l.rSetter=function(u,g,m){l.r=u,mp(m,{rx:u,ry:u})},l.rGetter=function(){return l.r||0},l.attr(a)}roundedRect(e){return this.symbol("roundedRect").attr(e)}setSize(e,t,i){const r=this;r.width=e,r.height=t,r.boxWrapper.animate({width:e,height:t},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:Wv(i,!0)?void 0:0}),r.alignElements()}g(e){const t=this.createElement("g");return e?t.attr({class:"highcharts-"+e}):t}image(e,t,i,r,o,s){const a={preserveAspectRatio:"none"};Wf(t)&&(a.x=t),Wf(i)&&(a.y=i),Wf(r)&&(a.width=r),Wf(o)&&(a.height=o);const l=this.createElement("image").attr(a),u=function(g){l.attr({href:e}),s.call(l,g)};if(s){l.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});const g=new zv.Image;pp(g,"load",u),g.src=e,g.complete&&u({})}else l.attr({href:e});return l}symbol(e,t,i,r,o,s){const a=this,l=/^url\((.*?)\)$/,u=l.test(e),g=!u&&(this.symbols[e]?e:"circle"),m=g&&this.symbols[g];let b,w,E,T;if(m)typeof t=="number"&&(w=m.call(this.symbols,t||0,i||0,r||0,o||0,s)),b=this.path(w),a.styledMode||b.attr("fill","none"),Yf(b,{symbolName:g||void 0,x:t,y:i,width:r,height:o}),s&&Yf(b,s);else if(u){E=e.match(l)[1];const P=b=this.image(E);P.imgwidth=Wv(s?.width,Nv[E]?.width),P.imgheight=Wv(s?.height,Nv[E]?.height),T=M=>M.attr({width:M.width,height:M.height}),["width","height"].forEach(M=>{P[`${M}Setter`]=function(I,L){this[L]=I;const{alignByTranslate:H,element:W,width:G,height:J,imgwidth:Y,imgheight:$}=this,re=L==="width"?Y:$;let be=1;s&&s.backgroundSize==="within"&&G&&J&&Y&&$?(be=Math.min(G/Y,J/$),mp(W,{width:Math.round(Y*be),height:Math.round($*be)})):W&&re&&W.setAttribute(L,re),!H&&Y&&$&&this.translate(((G||0)-Y*be)/2,((J||0)-$*be)/2)}}),Hf(t)&&P.attr({x:t,y:i}),P.isImg=!0,P.symbolUrl=e,Hf(P.imgwidth)&&Hf(P.imgheight)?T(P):(P.attr({width:0,height:0}),w3("img",{onload:function(){const M=v3[a.chartIndex];this.width===0&&(vp(this,{position:"absolute",top:"-999em"}),vd.body.appendChild(this)),Nv[E]={width:this.width,height:this.height},P.imgwidth=this.width,P.imgheight=this.height,P.element&&T(P),this.parentNode&&this.parentNode.removeChild(this),a.imgCount--,!a.imgCount&&M&&!M.hasLoaded&&M.onload()},src:E}),this.imgCount++)}return b}clipRect(e,t,i,r){return this.rect(e,t,i,r,0)}text(e,t,i,r){const o=this,s={};if(r&&(o.allowHTML||!o.forExport))return o.html(e,t,i);s.x=Math.round(t||0),i&&(s.y=Math.round(i)),Hf(e)&&(s.text=e);const a=o.createElement("text").attr(s);return(!r||o.forExport&&!o.allowHTML)&&(a.xSetter=function(l,u,g){const m=g.getElementsByTagName("tspan"),b=g.getAttribute(u);for(let w=0,E;w<m.length;w++)E=m[w],E.getAttribute(u)===b&&E.setAttribute(u,l);g.setAttribute(u,l)}),a}fontMetrics(e){const t=Wf(e)?e:E3(uh.prototype.getStyle.call(e,"font-size")||0),i=t<24?t+3:Math.round(t*1.2),r=Math.round(i*.8);return{h:i,b:r,f:t}}rotCorr(e,t,i){let r=e;return t&&i&&(r=Math.max(r*Math.cos(t*xC),4)),{x:-e/3*Math.sin(t*xC),y:r}}pathToSegments(e){const t=[],i=[],r={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let o=0;o<e.length;o++)T3(i[0])&&Wf(e[o])&&i.length===r[i[0].toUpperCase()]&&e.splice(o,0,i[0].replace("M","L").replace("m","l")),typeof e[o]=="string"&&(i.length&&t.push(i.slice(0)),i.length=0),i.push(e[o]);return t.push(i.slice(0)),t}label(e,t,i,r,o,s,a,l,u){return new e3(this,e,t,i,r,o,s,a,l,u)}alignElements(){this.alignedObjects.forEach(e=>e.align())}}Yf(O0.prototype,{Element:uh,SVG_NS:x3,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:PE,draw:b3});Kg.registerRendererType("svg",O0,!0);const ME=O0,{composed:P3,isFirefox:M3}=St,{attr:A3,css:cf,createElement:_3,defined:TC,extend:O3,getAlignFactor:F3,isNumber:yp,pInt:L3,pushUnique:I3}=lt;function AE(n,e,t){const i=this.div?.style;uh.prototype[`${e}Setter`].call(this,n,e,t),i&&(t.style[e]=i[e]=n)}const D3=(n,e)=>{if(!n.div){const t=A3(n.element,"class"),i=n.css,r=_3("div",t?{className:t}:void 0,{position:"absolute",left:`${n.translateX||0}px`,top:`${n.translateY||0}px`,...n.styles,display:n.display,opacity:n.opacity,visibility:n.visibility},n.parentGroup?.div||e);n.classSetter=(o,s,a)=>{a.setAttribute("class",o),r.className=o},n.translateXSetter=n.translateYSetter=(o,s)=>{n[s]=o,r.style[s==="translateX"?"left":"top"]=`${o}px`,n.doTransform=!0},n.scaleXSetter=n.scaleYSetter=(o,s)=>{n[s]=o,n.doTransform=!0},n.opacitySetter=n.visibilitySetter=AE,n.css=o=>(i.call(n,o),o.cursor&&(r.style.cursor=o.cursor),o.pointerEvents&&(r.style.pointerEvents=o.pointerEvents),n),n.on=function(){return uh.prototype.on.apply({element:r,onEvents:n.onEvents},arguments),n},n.div=r}return n.div};let _E=class cb extends uh{static compose(e){I3(P3,this.compose)&&(e.prototype.html=function(t,i,r){return new cb(this,"span").attr({text:t,x:Math.round(i),y:Math.round(r)})})}constructor(e,t){super(e,t),cb.useForeignObject?this.foreignObject=e.createElement("foreignObject").attr({zIndex:2}):this.css({position:"absolute",...e.styledMode?{}:{fontFamily:e.style.fontFamily,fontSize:e.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(e,t,i){this.xCorr=-e*i,this.yCorr=-t}css(e){const{element:t}=this,i=t.tagName==="SPAN"&&e&&"width"in e,r=i&&e.width;let o;return i&&(delete e.width,this.textWidth=L3(r)||void 0,o=!0),e?.textOverflow==="ellipsis"&&(e.overflow="hidden",e.whiteSpace="nowrap"),e?.lineClamp&&(e.display="-webkit-box",e.WebkitLineClamp=e.lineClamp,e.WebkitBoxOrient="vertical",e.overflow="hidden"),yp(Number(e?.fontSize))&&(e.fontSize+="px"),O3(this.styles,e),cf(t,e),o&&this.updateTransform(),this}htmlGetBBox(){const{element:e}=this;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}updateTransform(){if(!this.added){this.alignOnAdd=!0;return}const{element:e,foreignObject:t,oldTextWidth:i,renderer:r,rotation:o,rotationOriginX:s,rotationOriginY:a,scaleX:l,scaleY:u,styles:{display:g="inline-block",whiteSpace:m},textAlign:b="left",textWidth:w,translateX:E=0,translateY:T=0,x:P=0,y:M=0}=this,I=()=>this.textPxLength?this.textPxLength:(cf(e,{width:"",whiteSpace:m||"nowrap"}),e.offsetWidth);if(t||cf(e,{marginLeft:`${E}px`,marginTop:`${T}px`}),e.tagName==="SPAN"){const L=[o,b,e.innerHTML,w,this.textAlign].join(","),H=this.parentGroup?.padding*-1||0;let W;if(w!==i){const be=I(),we=w||0,Ee=!r.styledMode&&e.style.textOverflow===""&&e.style.webkitLineClamp;if((we>i||be>we||Ee)&&(/[\-\s\u00AD]/.test(e.textContent||e.innerText)||e.style.textOverflow==="ellipsis")){const pe=o||l||be>we||Ee;cf(e,{width:pe&&yp(w)?w+"px":"auto",display:g,whiteSpace:m||"normal"}),this.oldTextWidth=w}}t&&(cf(e,{display:"inline-block",verticalAlign:"top"}),t.attr({width:r.width,height:r.height})),L!==this.cTT&&(W=r.fontMetrics(e).b,TC(o)&&!t&&(o!==(this.oldRotation||0)||b!==this.oldAlign)&&cf(e,{transform:`rotate(${o}deg)`,transformOrigin:`${H}% ${H}px`}),this.getSpanCorrection(!TC(o)&&!this.textWidth&&this.textPxLength||e.offsetWidth,W,F3(b)));const{xCorr:G=0,yCorr:J=0}=this,Y=(s??P)-G-P-H,$=(a??M)-J-M-H,re={left:`${P+G}px`,top:`${M+J}px`,textAlign:b,transformOrigin:`${Y}px ${$}px`};(l||u)&&(re.transform=`scale(${l??1},${u??1})`),t?(super.updateTransform(),yp(P)&&yp(M)?(t.attr({x:P+G,y:M+J,width:e.offsetWidth+3,height:e.offsetHeight,"transform-origin":e.getAttribute("transform-origin")||"0 0"}),cf(e,{display:g,textAlign:b})):M3&&t.attr({width:0,height:0})):cf(e,re),this.cTT=L,this.oldRotation=o,this.oldAlign=b}}add(e){const{foreignObject:t,renderer:i}=this,r=i.box.parentNode,o=[];if(t)t.add(e),super.add(i.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(t));else{let s;if(this.parentGroup=e,e&&(s=e.div,!s)){let a=e;for(;a;)o.push(a),a=a.parentGroup;for(const l of o.reverse())s=D3(l,r)}(s||r).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,wu.setElementHTML(this.element,e??""),this.textStr=e,this.doTransform=!0)}alignSetter(e){this.alignValue=this.textAlign=e,this.doTransform=!0}xSetter(e,t){this[t]=e,this.doTransform=!0}};const Kf=_E.prototype;Kf.visibilitySetter=Kf.opacitySetter=AE;Kf.ySetter=Kf.rotationSetter=Kf.rotationOriginXSetter=Kf.rotationOriginYSetter=Kf.xSetter;const OE=_E;var ub;(function(n){n.xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",range:!1},day:{main:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},n.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){const{numberFormatter:e}=this.axis.chart;return e(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0}})(ub||(ub={}));const B3=ub,{addEvent:N3,isFunction:z3,objectEach:H3,removeEvent:W3}=lt;var hb;(function(n){function e(t,i){t.eventOptions=t.eventOptions||{},H3(i.events,function(r,o){t.eventOptions[o]!==r&&(t.eventOptions[o]&&(W3(t,o,t.eventOptions[o]),delete t.eventOptions[o]),z3(r)&&(t.eventOptions[o]=r,N3(t,o,r,{order:0})))})}n.registerEventOptions=e})(hb||(hb={}));const Om=hb,{deg2rad:Gv}=St,{clamp:V3,correctFloat:bp,defined:Uv,destroyObjectProperties:G3,extend:EC,fireEvent:lg,getAlignFactor:U3,isNumber:xp,merge:X3,objectEach:Y3,pick:ih}=lt;class Z3{constructor(e,t,i,r,o){this.isNew=!0,this.isNewLabel=!0,this.axis=e,this.pos=t,this.type=i||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,lg(this,"init"),!i&&!r&&this.addLabel()}addLabel(){const e=this,t=e.axis,i=t.options,r=t.chart,o=t.categories,s=t.logarithmic,a=t.names,l=e.pos,u=ih(e.options?.labels,i.labels),g=t.tickPositions,m=l===g[0],b=l===g[g.length-1],w=(!u.step||u.step===1)&&t.tickInterval===1,E=g.info;let T=e.label,P,M,I,L=this.parameters.category||(o?ih(o[l],a[l],l):l);s&&xp(L)&&(L=bp(s.lin2log(L))),t.dateTime&&(E?(M=r.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid?.enabled&&E.higherRanks[l]||E.unitName]),P=M.main):xp(L)&&(P=t.dateTime.getXDateFormat(L,i.dateTimeLabelFormats||{}))),e.isFirst=m,e.isLast=b;const H={axis:t,chart:r,dateTimeLabelFormat:P,isFirst:m,isLast:b,pos:l,tick:e,tickPositionInfo:E,value:L};lg(this,"labelFormat",H);const W=Y=>u.formatter?u.formatter.call(Y,Y):u.format?(Y.text=t.defaultLabelFormatter.call(Y),Mc.format(u.format,Y,r)):t.defaultLabelFormatter.call(Y),G=W.call(H,H),J=M?.list;J?e.shortenLabel=function(){for(I=0;I<J.length;I++)if(EC(H,{dateTimeLabelFormat:J[I]}),T.attr({text:W.call(H,H)}),T.getBBox().width<t.getSlotWidth(e)-2*(u.padding||0))return;T.attr({text:""})}:e.shortenLabel=void 0,w&&t._addedPlotLB&&e.moveLabel(G,u),!Uv(T)&&!e.movedLabel?(e.label=T=e.createLabel(G,u),e.rotation=0):T&&T.textStr!==G&&!w&&(T.textWidth&&!u.style.width&&!T.styles.width&&T.css({width:null}),T.attr({text:G}),T.textPxLength=T.getBBox().width)}createLabel(e,t,i){const r=this.axis,{renderer:o,styledMode:s}=r.chart,a=t.style.whiteSpace,l=Uv(e)&&t.enabled?o.text(e,i?.x,i?.y,t.useHTML).add(r.labelGroup):void 0;return l&&(s||l.css(X3(t.style)),l.textPxLength=l.getBBox().width,!s&&a&&l.css({whiteSpace:a})),l}destroy(){G3(this,this.axis)}getPosition(e,t,i,r){const o=this.axis,s=o.chart,a=r&&s.oldChartHeight||s.chartHeight,l={x:e?bp(o.translate(t+i,void 0,void 0,r)+o.transB):o.left+o.offset+(o.opposite?(r&&s.oldChartWidth||s.chartWidth)-o.right-o.left:0),y:e?a-o.bottom+o.offset-(o.opposite?o.height:0):bp(a-o.translate(t+i,void 0,void 0,r)-o.transB)};return l.y=V3(l.y,-1e9,1e9),lg(this,"afterGetPosition",{pos:l}),l}getLabelPosition(e,t,i,r,o,s,a,l){const u=this.axis,g=u.transA,m=u.isLinked&&u.linkedParent?u.linkedParent.reversed:u.reversed,b=u.staggerLines,w=u.tickRotCorr||{x:0,y:0},E=!r&&!u.reserveSpaceDefault?-u.labelOffset*(u.labelAlign==="center"?.5:1):0,T=o.distance,P={};let M,I;return u.side===0?M=i.rotation?-T:-i.getBBox().height:u.side===2?M=w.y+T:M=Math.cos(i.rotation*Gv)*(w.y-i.getBBox(!1,0).height/2),Uv(o.y)&&(M=u.side===0&&u.horiz?o.y+M:o.y),e=e+ih(o.x,[0,1,0,-1][u.side]*T)+E+w.x-(s&&r?s*g*(m?-1:1):0),t=t+M-(s&&!r?s*g*(m?1:-1):0),b&&(I=a/(l||1)%b,u.opposite&&(I=b-I-1),t+=I*(u.labelOffset/b)),P.x=e,P.y=Math.round(t),lg(this,"afterGetLabelPosition",{pos:P,tickmarkOffset:s,index:a}),P}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(e,t,i,r,o=!1,s){return s.crispLine([["M",e,t],["L",e+(o?0:-i),t+(o?i:0)]],r)}handleOverflow(e){const t=this,i=this.axis,r=i.options.labels,o=e.x,s=i.chart.chartWidth,a=i.chart.spacing,l=ih(i.labelLeft,Math.min(i.pos,a[3])),u=ih(i.labelRight,Math.max(i.isRadial?0:i.pos+i.len,s-a[1])),g=this.label,m=this.rotation,b=U3(i.labelAlign||g.attr("align")),w=g.getBBox().width,E=i.getSlotWidth(t),T=b,P={};let M=E,I=1,L,H,W;!m&&r.overflow==="justify"?(L=o-b*w,H=o+(1-b)*w,L<l?M=e.x+M*(1-b)-l:H>u&&(M=u-e.x+M*b,I=-1),M=Math.min(E,M),M<E&&i.labelAlign==="center"&&(e.x+=I*(E-M-T*(E-Math.min(w,M)))),(w>M||i.autoRotation&&g?.styles?.width)&&(W=M)):m<0&&o-b*w<l?W=Math.round(o/Math.cos(m*Gv)-l):m>0&&o+b*w>u&&(W=Math.round((s-o)/Math.cos(m*Gv))),W&&g&&(t.shortenLabel?t.shortenLabel():g.css(EC(P,{width:Math.floor(W)+"px",lineClamp:i.isRadial?0:1})))}moveLabel(e,t){const i=this,r=i.label,o=i.axis;let s=!1,a;r&&r.textStr===e?(i.movedLabel=r,s=!0,delete i.label):Y3(o.ticks,function(l){!s&&!l.isNew&&l!==i&&l.label&&l.label.textStr===e&&(i.movedLabel=l.label,s=!0,l.labelPos=i.movedLabel.xy,delete l.label)}),!s&&(i.labelPos||r)&&(a=i.labelPos||r.xy,i.movedLabel=i.createLabel(e,t,a),i.movedLabel&&i.movedLabel.attr({opacity:0}))}render(e,t,i){const r=this,o=r.axis,s=o.horiz,a=r.pos,l=ih(r.tickmarkOffset,o.tickmarkOffset),u=r.getPosition(s,a,l,t),g=u.x,m=u.y,b=o.pos,w=b+o.len,E=s?g:m,T=ih(i,r.label?.newOpacity,1);!o.chart.polar&&(bp(E)<b||E>w)&&(i=0),i??(i=1),this.isActive=!0,this.renderGridLine(t,i),this.renderMark(u,i),this.renderLabel(u,t,T,e),r.isNew=!1,lg(this,"afterRender")}renderGridLine(e,t){const i=this,r=i.axis,o=r.options,s={},a=i.pos,l=i.type,u=ih(i.tickmarkOffset,r.tickmarkOffset),g=r.chart.renderer;let m=i.gridLine,b,w=o.gridLineWidth,E=o.gridLineColor,T=o.gridLineDashStyle;i.type==="minor"&&(w=o.minorGridLineWidth,E=o.minorGridLineColor,T=o.minorGridLineDashStyle),m||(r.chart.styledMode||(s.stroke=E,s["stroke-width"]=w||0,s.dashstyle=T),l||(s.zIndex=1),e&&(t=0),i.gridLine=m=g.path().attr(s).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(r.gridGroup)),m&&(b=r.getPlotLinePath({value:a+u,lineWidth:m.strokeWidth(),force:"pass",old:e,acrossPanes:!1}),b&&m[e||i.isNew?"attr":"animate"]({d:b,opacity:t}))}renderMark(e,t){const i=this,r=i.axis,o=r.options,s=r.chart.renderer,a=i.type,l=r.tickSize(a?a+"Tick":"tick"),u=e.x,g=e.y,m=ih(o[a!=="minor"?"tickWidth":"minorTickWidth"],!a&&r.isXAxis?1:0),b=o[a!=="minor"?"tickColor":"minorTickColor"];let w=i.mark;const E=!w;l&&(r.opposite&&(l[0]=-l[0]),w||(i.mark=w=s.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(r.axisGroup),r.chart.styledMode||w.attr({stroke:b,"stroke-width":m})),w[E?"attr":"animate"]({d:i.getMarkPath(u,g,l[0],w.strokeWidth(),r.horiz,s),opacity:t}))}renderLabel(e,t,i,r){const o=this,s=o.axis,a=s.horiz,l=s.options,u=o.label,g=l.labels,m=g.step,b=ih(o.tickmarkOffset,s.tickmarkOffset),w=e.x,E=e.y;let T=!0;u&&xp(w)&&(u.xy=e=o.getLabelPosition(w,E,u,a,g,b,r,m),o.isFirst&&!o.isLast&&!l.showFirstLabel||o.isLast&&!o.isFirst&&!l.showLastLabel?T=!1:a&&!g.step&&!g.rotation&&!t&&i!==0&&o.handleOverflow(e),m&&r%m&&(T=!1),T&&xp(e.y)?(e.opacity=i,u[o.isNewLabel?"attr":"animate"](e).show(!0),o.isNewLabel=!1):(u.hide(),o.isNewLabel=!0))}replaceMovedLabel(){const e=this,t=e.label,i=e.axis;t&&!e.isNew&&(t.animate({opacity:0},void 0,t.destroy),delete e.label),i.isDirty=!0,e.label=e.movedLabel,delete e.movedLabel}}const Ad=Z3,{animObject:K3}=$o,{xAxis:RC,yAxis:J3}=B3,{defaultOptions:fb}=Pc,{registerEventOptions:Q3}=Om,{deg2rad:j3}=St,{arrayMax:kC,arrayMin:q3,clamp:Xv,correctFloat:_l,defined:ii,destroyObjectProperties:$3,erase:PC,error:Yv,extend:Qp,fireEvent:Oi,getClosestDistance:MC,insertItem:eB,isArray:AC,isNumber:ft,isString:_C,merge:jp,normalizeTickInterval:tB,objectEach:wp,pick:Wt,relativeLength:Cp,removeEvent:nB,splat:iB,syncTimeout:rB}=lt,OC=(n,e)=>tB(e,void 0,void 0,Wt(n.options.allowDecimals,e<.5||n.tickAmount!==void 0),!!n.tickAmount);Qp(fb,{xAxis:RC,yAxis:jp(RC,J3)});class Fm{constructor(e,t,i){this.init(e,t,i)}init(e,t,i=this.coll){const r=i==="xAxis",o=this,s=o.isZAxis||(e.inverted?!r:r);o.chart=e,o.horiz=s,o.isXAxis=r,o.coll=i,Oi(this,"init",{userOptions:t}),o.opposite=Wt(t.opposite,o.opposite),o.side=Wt(t.side,o.side,s?o.opposite?0:2:o.opposite?1:3),o.setOptions(t);const a=o.options,l=a.labels;o.type??(o.type=a.type||"linear"),o.uniqueNames??(o.uniqueNames=a.uniqueNames??!0),Oi(o,"afterSetType"),o.userOptions=t,o.minPixelPadding=0,o.reversed=Wt(a.reversed,o.reversed),o.visible=a.visible,o.zoomEnabled=a.zoomEnabled,o.hasNames=this.type==="category"||a.categories===!0,o.categories=AC(a.categories)&&a.categories||(o.hasNames?[]:void 0),o.names||(o.names=[],o.names.keys={}),o.plotLinesAndBandsGroups={},o.positiveValuesOnly=!!o.logarithmic,o.isLinked=ii(a.linkedTo),o.ticks={},o.labelEdge=[],o.minorTicks={},o.plotLinesAndBands=[],o.alternateBands={},o.len??(o.len=0),o.minRange=o.userMinRange=a.minRange||a.maxZoom,o.range=a.range,o.offset=a.offset||0,o.max=void 0,o.min=void 0;const u=Wt(a.crosshair,iB(e.options.tooltip.crosshairs)[r?0:1]);o.crosshair=u===!0?{}:u,e.axes.indexOf(o)===-1&&(r?e.axes.splice(e.xAxis.length,0,o):e.axes.push(o),eB(this,e[this.coll])),e.orderItems(o.coll),o.series=o.series||[],e.inverted&&!o.isZAxis&&r&&!ii(o.reversed)&&(o.reversed=!0),o.labelRotation=ft(l.rotation)?l.rotation:void 0,Q3(o,a),Oi(this,"afterInit")}setOptions(e){const t=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=jp(t,this.coll==="yAxis"?{title:{text:this.chart.options.lang.yAxisTitle}}:{},fb[this.coll],e),Oi(this,"afterSetOptions",{userOptions:e})}defaultLabelFormatter(){const e=this.axis,t=this.chart,{numberFormatter:i}=t,r=ft(this.value)?this.value:NaN,o=e.chart.time,s=e.categories,a=this.dateTimeLabelFormat,l=fb.lang,u=l.numericSymbols,g=l.numericSymbolMagnitude||1e3,m=e.logarithmic?Math.abs(r):e.tickInterval;let b=u?.length,w,E;if(s)E=`${this.value}`;else if(a)E=o.dateFormat(a,r,!0);else if(b&&u&&m>=1e3)for(;b--&&typeof E>"u";)w=Math.pow(g,b+1),m>=w&&r*10%w===0&&u[b]!==null&&r!==0&&(E=i(r/w,-1)+u[b]);return typeof E>"u"&&(Math.abs(r)>=1e4?E=i(r,-1):E=i(r,-1,void 0,"")),E}getSeriesExtremes(){const e=this;let t;Oi(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=void 0,e.softThreshold=!e.isXAxis,e.series.forEach(i=>{if(i.reserveSpace()){const r=i.options;let o,s=r.threshold,a,l;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&(s||0)<=0&&(s=void 0),e.isXAxis)o=i.getColumn("x"),o.length&&(o=e.logarithmic?o.filter(u=>u>0):o,t=i.getXExtremes(o),a=t.min,l=t.max,!ft(a)&&!(a instanceof Date)&&(o=o.filter(ft),t=i.getXExtremes(o),a=t.min,l=t.max),o.length&&(e.dataMin=Math.min(Wt(e.dataMin,a),a),e.dataMax=Math.max(Wt(e.dataMax,l),l)));else{const u=i.applyExtremes();ft(u.dataMin)&&(a=u.dataMin,e.dataMin=Math.min(Wt(e.dataMin,a),a)),ft(u.dataMax)&&(l=u.dataMax,e.dataMax=Math.max(Wt(e.dataMax,l),l)),ii(s)&&(e.threshold=s),(!r.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),Oi(this,"afterGetSeriesExtremes")}translate(e,t,i,r,o,s){const a=this.linkedParent||this,l=r&&a.old?a.old.min:a.min;if(!ft(l))return NaN;const u=a.minPixelPadding,g=(a.isOrdinal||a.brokenAxis?.hasBreaks||a.logarithmic&&o)&&!!a.lin2val;let m=1,b=0,w=r&&a.old?a.old.transA:a.transA,E=0;return w||(w=a.transA),i&&(m*=-1,b=a.len),a.reversed&&(m*=-1,b-=m*(a.sector||a.len)),t?(e=e*m+b,e-=u,E=e/w+l,g&&(E=a.lin2val(E))):(g&&(e=a.val2lin(e)),E=m*(e-l)*w+b+m*u+(ft(s)?w*s:0),a.isRadial||(E=_l(E))),E}toPixels(e,t){return this.translate(this.chart?.time.parse(e)??NaN,!1,!this.horiz,void 0,!0)+(t?0:this.pos)}toValue(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(e){const t=this,i=t.chart,r=t.left,o=t.top,s=e.old,a=e.value,l=e.lineWidth,u=s&&i.oldChartHeight||i.chartHeight,g=s&&i.oldChartWidth||i.chartWidth,m=t.transB;let b=e.translatedValue,w=e.force,E,T,P,M,I;function L(W,G,J){return w!=="pass"&&(W<G||W>J)&&(w?W=Xv(W,G,J):I=!0),W}const H={value:a,lineWidth:l,old:s,force:w,acrossPanes:e.acrossPanes,translatedValue:b};return Oi(this,"getPlotLinePath",H,function(W){b=Wt(b,t.translate(a,void 0,void 0,s)),b=Xv(b,-1e9,1e9),E=P=b+m,T=M=u-b-m,ft(b)?t.horiz?(T=o,M=u-t.bottom+(t.options.isInternal?0:i.scrollablePixelsY||0),E=P=L(E,r,r+t.width)):(E=r,P=g-t.right+(i.scrollablePixelsX||0),T=M=L(T,o,o+t.height)):(I=!0,w=!1),W.path=I&&!w?void 0:i.renderer.crispLine([["M",E,T],["L",P,M]],l||1)}),H.path}getLinearTickPositions(e,t,i){const r=_l(Math.floor(t/e)*e),o=_l(Math.ceil(i/e)*e),s=[];let a,l,u;if(_l(r+e)===r&&(u=20),this.single)return[t];for(a=r;a<=o&&(s.push(a),a=_l(a+e,u),a!==l);)l=a;return s}getMinorTickInterval(){const{minorTicks:e,minorTickInterval:t}=this.options;if(e===!0)return Wt(t,"auto");if(e!==!1)return t}getMinorTickPositions(){const e=this,t=e.options,i=e.tickPositions,r=e.minorTickInterval,o=e.pointRangePadding||0,s=(e.min||0)-o,a=(e.max||0)+o,l=e.brokenAxis?.hasBreaks?e.brokenAxis.unitLength:a-s;let u=[],g;if(l&&l/r<e.len/3){const m=e.logarithmic;if(m)this.paddedTicks.forEach(function(b,w,E){w&&u.push.apply(u,m.getLogTickPositions(r,E[w-1],E[w],!0))});else if(e.dateTime&&this.getMinorTickInterval()==="auto")u=u.concat(e.getTimeTicks(e.dateTime.normalizeTimeTickInterval(r),s,a,t.startOfWeek));else for(g=s+(i[0]-s)%r;g<=a&&g!==u[0];g+=r)u.push(g)}return u.length!==0&&e.trimTicks(u),u}adjustForMinRange(){const e=this,t=e.options,i=e.logarithmic,r=e.chart.time;let{max:o,min:s,minRange:a}=e,l,u,g,m,b;e.isXAxis&&typeof a>"u"&&!i&&(ii(t.min)||ii(t.max)||ii(t.floor)||ii(t.ceiling)?a=null:(g=MC(e.series.map(w=>{const E=w.getColumn("x");return w.xIncrement?E.slice(0,2):E}))||0,a=Math.min(g*5,e.dataMax-e.dataMin))),ft(o)&&ft(s)&&ft(a)&&o-s<a&&(u=e.dataMax-e.dataMin>=a,l=(a-o+s)/2,m=[s-l,r.parse(t.min)??s-l],u&&(m[2]=i?i.log2lin(e.dataMin):e.dataMin),s=kC(m),b=[s+a,r.parse(t.max)??s+a],u&&(b[2]=i?i.log2lin(e.dataMax):e.dataMax),o=q3(b),o-s<a&&(m[0]=o-a,m[1]=r.parse(t.min)??o-a,s=kC(m))),e.minRange=a,e.min=s,e.max=o}getClosest(){let e,t;if(this.categories)t=1;else{const i=[];this.series.forEach(function(r){const o=r.closestPointRange,s=r.getColumn("x");s.length===1?i.push(s[0]):r.sorted&&ii(o)&&r.reserveSpace()&&(t=ii(t)?Math.min(t,o):o)}),i.length&&(i.sort((r,o)=>r-o),e=MC([i]))}return e&&t?Math.min(e,t):e||t}nameToX(e){const t=AC(this.options.categories),i=t?this.categories:this.names;let r=e.options.x,o;return e.series.requireSorting=!1,ii(r)||(r=this.uniqueNames&&i?t?i.indexOf(e.name):Wt(i.keys[e.name],-1):e.series.autoIncrement()),r===-1?!t&&i&&(o=i.length):ft(r)&&(o=r),typeof o<"u"?(this.names[o]=e.name,this.names.keys[e.name]=o):e.x&&(o=e.x),o}updateNames(){const e=this,t=this.names;t.length>0&&(Object.keys(t.keys).forEach(function(r){delete t.keys[r]}),t.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(r=>{r.xIncrement=null,(!r.points||r.isDirtyData)&&(e.max=Math.max(e.max||0,r.dataTable.rowCount-1),r.processData(),r.generatePoints());const o=r.getColumn("x").slice();r.data.forEach((s,a)=>{let l=o[a];s?.options&&typeof s.name<"u"&&(l=e.nameToX(s),typeof l<"u"&&l!==s.x&&(o[a]=s.x=l))}),r.dataTable.setColumn("x",o)}))}setAxisTranslation(){const e=this,t=e.max-e.min,i=e.linkedParent,r=!!e.categories,o=e.isXAxis;let s=e.axisPointRange||0,a,l=0,u=0,g,m=e.transA;(o||r||s)&&(a=e.getClosest(),i?(l=i.minPointOffset,u=i.pointRangePadding):e.series.forEach(function(b){const w=r?1:o?Wt(b.options.pointRange,a,0):e.axisPointRange||0,E=b.options.pointPlacement;if(s=Math.max(s,w),!e.single||r){const T=b.is("xrange")?!o:o;l=Math.max(l,T&&_C(E)?0:w/2),u=Math.max(u,T&&E==="on"?0:w)}}),g=e.ordinal?.slope&&a?e.ordinal.slope/a:1,e.minPointOffset=l=l*g,e.pointRangePadding=u=u*g,e.pointRange=Math.min(s,e.single&&r?1:t),o&&(e.closestPointRange=a)),e.translationSlope=e.transA=m=e.staticScale||e.len/(t+u||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=m*l,Oi(this,"afterSetAxisTranslation")}minFromRange(){const{max:e,min:t}=this;return ft(e)&&ft(t)&&e-t||void 0}setTickInterval(e){const t=this,{categories:i,chart:r,dataMax:o,dataMin:s,dateTime:a,isXAxis:l,logarithmic:u,options:g,softThreshold:m}=t,b=r.time,w=ft(t.threshold)?t.threshold:void 0,E=t.minRange||0,{ceiling:T,floor:P,linkedTo:M,softMax:I,softMin:L}=g,H=ft(M)&&r[t.coll]?.[M],W=g.tickPixelInterval;let G=g.maxPadding,J=g.minPadding,Y=0,$,re=ft(g.tickInterval)&&g.tickInterval>=0?g.tickInterval:void 0,be,we,Ee,pe;if(!a&&!i&&!H&&this.getTickAmount(),Ee=Wt(t.userMin,b.parse(g.min)),pe=Wt(t.userMax,b.parse(g.max)),H?(t.linkedParent=H,$=H.getExtremes(),t.min=Wt($.min,$.dataMin),t.max=Wt($.max,$.dataMax),this.type!==H.type&&Yv(11,!0,r)):(m&&ii(w)&&ft(o)&&ft(s)&&(s>=w?(be=w,J=0):o<=w&&(we=w,G=0)),t.min=Wt(Ee,be,s),t.max=Wt(pe,we,o)),ft(t.max)&&ft(t.min)&&(u&&(t.positiveValuesOnly&&!e&&Math.min(t.min,Wt(s,t.min))<=0&&Yv(10,!0,r),t.min=_l(u.log2lin(t.min),16),t.max=_l(u.log2lin(t.max),16)),t.range&&ft(s)&&(t.userMin=t.min=Ee=Math.max(s,t.minFromRange()||0),t.userMax=pe=t.max,t.range=void 0)),Oi(t,"foundExtremes"),t.adjustForMinRange(),ft(t.min)&&ft(t.max)){if(!ft(t.userMin)&&ft(L)&&L<t.min&&(t.min=Ee=L),!ft(t.userMax)&&ft(I)&&I>t.max&&(t.max=pe=I),!i&&!t.axisPointRange&&!t.stacking?.usePercentage&&!H&&(Y=t.max-t.min,Y&&(!ii(Ee)&&J&&(t.min-=Y*J),!ii(pe)&&G&&(t.max+=Y*G))),!ft(t.userMin)&&ft(P)&&(t.min=Math.max(t.min,P)),!ft(t.userMax)&&ft(T)&&(t.max=Math.min(t.max,T)),m&&ft(s)&&ft(o)){const ee=w||0;!ii(Ee)&&t.min<ee&&s>=ee?t.min=g.minRange?Math.min(ee,t.max-E):ee:!ii(pe)&&t.max>ee&&o<=ee&&(t.max=g.minRange?Math.max(ee,t.min+E):ee)}!r.polar&&t.min>t.max&&(ii(g.min)?t.max=t.min:ii(g.max)&&(t.min=t.max)),Y=t.max-t.min}if(t.min===t.max||!ft(t.min)||!ft(t.max)?t.tickInterval=1:H&&!re&&W===H.options.tickPixelInterval?t.tickInterval=re=H.tickInterval:t.tickInterval=Wt(re,this.tickAmount?Y/Math.max(this.tickAmount-1,1):void 0,i?1:Y*W/Math.max(t.len,W)),l&&!e){const ee=t.min!==t.old?.min||t.max!==t.old?.max;t.series.forEach(function(q){q.forceCrop=q.forceCropping?.(),q.processData(ee)}),Oi(this,"postProcessData",{hasExtremesChanged:ee})}t.setAxisTranslation(),Oi(this,"initialAxisTranslation"),t.pointRange&&!re&&(t.tickInterval=Math.max(t.pointRange,t.tickInterval));const me=Wt(g.minTickInterval,a&&!t.series.some(ee=>!ee.sorted)?t.closestPointRange:0);!re&&me&&t.tickInterval<me&&(t.tickInterval=me),!a&&!u&&!re&&(t.tickInterval=OC(t,t.tickInterval)),this.tickAmount||(t.tickInterval=t.unsquish()),this.setTickPositions()}setTickPositions(){const e=this,t=this.options,i=t.tickPositions,r=t.tickPositioner,o=this.getMinorTickInterval(),s=!this.isPanning,a=s&&t.startOnTick,l=s&&t.endOnTick;let u=[],g;if(this.tickmarkOffset=this.categories&&t.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.single=this.min===this.max&&ii(this.min)&&!this.tickAmount&&(this.min%1===0||t.allowDecimals!==!1),i)u=i.slice();else if(ft(this.min)&&ft(this.max)){if(!e.ordinal?.positions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))u=[this.min,this.max],Yv(19,!1,this.chart);else if(e.dateTime)u=e.getTimeTicks(e.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,e.ordinal?.positions,this.closestPointRange,!0);else if(e.logarithmic)u=e.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{const m=this.tickInterval;let b=m;for(;b<=m*2&&(u=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&u.length>this.tickAmount);)this.tickInterval=OC(this,b*=1.1)}u.length>this.len&&(u=[u[0],u[u.length-1]],u[0]===u[1]&&(u.length=1)),r&&(this.tickPositions=u,g=r.apply(e,[this.min,this.max]),g&&(u=g))}this.tickPositions=u,this.minorTickInterval=o==="auto"&&this.tickInterval?this.tickInterval/t.minorTicksPerMajor:o,this.paddedTicks=u.slice(0),this.trimTicks(u,a,l),!this.isLinked&&ft(this.min)&&ft(this.max)&&(this.single&&u.length<2&&!this.categories&&!this.series.some(m=>m.is("heatmap")&&m.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),!i&&!g&&this.adjustTickAmount()),Oi(this,"afterSetTickPositions")}trimTicks(e,t,i){const r=e[0],o=e[e.length-1],s=!this.isOrdinal&&this.minPointOffset||0;if(Oi(this,"trimTicks"),!this.isLinked||!this.grid){if(t&&r!==-1/0)this.min=r;else for(;this.min-s>e[0];)e.shift();if(i)this.max=o;else for(;this.max+s<e[e.length-1];)e.pop();e.length===0&&ii(r)&&!this.options.tickPositions&&e.push((o+r)/2)}}alignToOthers(){const e=this,t=e.chart,i=[this],r=e.options,o=t.options.chart,s=this.coll==="yAxis"&&o.alignThresholds,a=[];let l;if(e.thresholdAlignment=void 0,(o.alignTicks!==!1&&r.alignTicks||s)&&r.startOnTick!==!1&&r.endOnTick!==!1&&!e.logarithmic){const u=m=>{const{horiz:b,options:w}=m;return[b?w.left:w.top,w.width,w.height,w.pane].join(",")},g=u(this);t[this.coll].forEach(function(m){const{series:b}=m;b.length&&b.some(w=>w.visible)&&m!==e&&u(m)===g&&(l=!0,i.push(m))})}if(l&&s){i.forEach(g=>{const m=g.getThresholdAlignment(e);ft(m)&&a.push(m)});const u=a.length>1?a.reduce((g,m)=>g+=m,0)/a.length:void 0;i.forEach(g=>{g.thresholdAlignment=u})}return l}getThresholdAlignment(e){if((!ft(this.dataMin)||this!==e&&this.series.some(t=>t.isDirty||t.isDirtyData))&&this.getSeriesExtremes(),ft(this.threshold)){let t=Xv((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(t=1-t),t}}getTickAmount(){const e=this,t=this.options,i=t.tickPixelInterval;let r=t.tickAmount;!ii(t.tickInterval)&&!r&&this.len<i&&!this.isRadial&&!e.logarithmic&&t.startOnTick&&t.endOnTick&&(r=2),!r&&this.alignToOthers()&&(r=Math.ceil(this.len/i)+1),r<4&&(this.finalTickAmt=r,r=5),this.tickAmount=r}adjustTickAmount(){const e=this,{finalTickAmt:t,max:i,min:r,options:o,tickPositions:s,tickAmount:a,thresholdAlignment:l}=e,u=s?.length,g=Wt(e.threshold,e.softThreshold?0:null);let m,b,w=e.tickInterval,E;const T=()=>s.push(_l(s[s.length-1]+w)),P=()=>s.unshift(_l(s[0]-w));if(ft(l)&&(E=l<.5?Math.ceil(l*(a-1)):Math.floor(l*(a-1)),o.reversed&&(E=a-1-E)),e.hasData()&&ft(r)&&ft(i)){const M=()=>{e.transA*=(u-1)/(a-1),e.min=o.startOnTick?s[0]:Math.min(r,s[0]),e.max=o.endOnTick?s[s.length-1]:Math.max(i,s[s.length-1])};if(ft(E)&&ft(e.threshold)){for(;s[E]!==g||s.length!==a||s[0]>r||s[s.length-1]<i;){for(s.length=0,s.push(e.threshold);s.length<a;)s[E]===void 0||s[E]>e.threshold?P():T();if(w>e.tickInterval*8)break;w*=2}M()}else if(u<a){for(;s.length<a;)s.length%2||r===g?T():P();M()}if(ii(t)){for(b=m=s.length;b--;)(t===3&&b%2===1||t<=2&&b>0&&b<m-1)&&s.splice(b,1);e.finalTickAmt=void 0}}}setScale(){const e=this,{coll:t,stacking:i}=e;let r=!1,o=!1;e.series.forEach(a=>{r=r||a.isDirtyData||a.isDirty,o=o||a.xAxis?.isDirty||!1}),e.setAxisSize();const s=e.len!==e.old?.len;s||r||o||e.isLinked||e.forceRedraw||e.userMin!==e.old?.userMin||e.userMax!==e.old?.userMax||e.alignToOthers()?(i&&t==="yAxis"&&i.buildStacks(),e.forceRedraw=!1,e.userMinRange||(e.minRange=void 0),e.getSeriesExtremes(),e.setTickInterval(),i&&t==="xAxis"&&i.buildStacks(),e.isDirty||(e.isDirty=s||e.min!==e.old?.min||e.max!==e.old?.max)):i&&i.cleanStacks(),r&&delete e.allExtremes,Oi(this,"afterSetScale")}setExtremes(e,t,i=!0,r,o){const s=this.chart;this.series.forEach(a=>{delete a.kdTree}),e=s.time.parse(e),t=s.time.parse(t),o=Qp(o,{min:e,max:t}),Oi(this,"setExtremes",o,a=>{this.userMin=a.min,this.userMax=a.max,this.eventArgs=a,i&&s.redraw(r)})}setAxisSize(){const e=this.chart,t=this.options,i=t.offsets||[0,0,0,0],r=this.horiz,o=this.width=Math.round(Cp(Wt(t.width,e.plotWidth-i[3]+i[1]),e.plotWidth)),s=this.height=Math.round(Cp(Wt(t.height,e.plotHeight-i[0]+i[2]),e.plotHeight)),a=this.top=Math.round(Cp(Wt(t.top,e.plotTop+i[0]),e.plotHeight,e.plotTop)),l=this.left=Math.round(Cp(Wt(t.left,e.plotLeft+i[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-s-a,this.right=e.chartWidth-o-l,this.len=Math.max(r?o:s,0),this.pos=r?l:a}getExtremes(){const e=this,t=e.logarithmic;return{min:t?_l(t.lin2log(e.min)):e.min,max:t?_l(t.lin2log(e.max)):e.max,dataMin:e.dataMin,dataMax:e.dataMax,userMin:e.userMin,userMax:e.userMax}}getThreshold(e){const t=this,i=t.logarithmic,r=i?i.lin2log(t.min):t.min,o=i?i.lin2log(t.max):t.max;return e===null||e===-1/0?e=r:e===1/0?e=o:r>e?e=r:o<e&&(e=o),t.translate(e,0,1,0,1)}autoLabelAlign(e){const t=(Wt(e,0)-this.side*90+720)%360,i={align:"center"};return Oi(this,"autoLabelAlign",i,function(r){t>15&&t<165?r.align="right":t>195&&t<345&&(r.align="left")}),i.align}tickSize(e){const t=this.options,i=Wt(t[e==="tick"?"tickWidth":"minorTickWidth"],e==="tick"&&this.isXAxis&&!this.categories?1:0);let r=t[e==="tick"?"tickLength":"minorTickLength"],o;i&&r&&(t[e+"Position"]==="inside"&&(r=-r),o=[r,i]);const s={tickSize:o};return Oi(this,"afterTickSize",s),s.tickSize}labelMetrics(){const e=this.chart.renderer,t=this.ticks,i=t[Object.keys(t)[0]]||{};return this.chart.renderer.fontMetrics(i.label||i.movedLabel||e.box)}unsquish(){const e=this.options.labels,t=e.padding||0,i=this.horiz,r=this.tickInterval,o=this.len/(((this.categories?1:0)+this.max-this.min)/r),s=e.rotation,a=_l(this.labelMetrics().h*.8),l=Math.max(this.max-this.min,0),u=function(E){let T=(E+2*t)/(o||1);return T=T>1?Math.ceil(T):1,T*r>l&&E!==1/0&&o!==1/0&&l&&(T=Math.ceil(l/r)),_l(T*r)};let g=r,m,b=Number.MAX_VALUE,w;if(i){if(e.staggerLines||(ft(s)?w=[s]:o<e.autoRotationLimit&&(w=e.autoRotation)),w){let E,T;for(const P of w)(P===s||P&&P>=-90&&P<=90)&&(E=u(Math.abs(a/Math.sin(j3*P))),T=E+Math.abs(P/360),T<b&&(b=T,m=P,g=E))}}else g=u(a*.75);return this.autoRotation=w,this.labelRotation=Wt(m,ft(s)?s:0),e.step?r:g}getSlotWidth(e){const t=this.chart,i=this.horiz,r=this.options.labels,o=Math.max(this.tickPositions.length-(this.categories?0:1),1),s=t.margin[3];if(e&&ft(e.slotWidth))return e.slotWidth;if(i&&r.step<2&&!this.isRadial)return r.rotation?0:(this.staggerLines||1)*this.len/o;if(!i){const a=r.style.width;if(a!==void 0)return parseInt(String(a),10);if(!this.opposite&&s)return s-t.spacing[3]}return t.chartWidth*.33}renderUnsquish(){const e=this.chart,t=e.renderer,i=this.tickPositions,r=this.ticks,o=this.options.labels,s=o.style,a=this.horiz,l=this.getSlotWidth(),u=Math.max(1,Math.round(l-(a?2*(o.padding||0):o.distance||0))),g={},m=this.labelMetrics(),b=s.lineClamp;let w,E=b??(Math.floor(this.len/(i.length*m.h))||1),T=0;_C(o.rotation)||(g.rotation=o.rotation||0),i.forEach(function(P){const M=r[P];M.movedLabel&&M.replaceMovedLabel();const I=M.label?.textPxLength||0;I>T&&(T=I)}),this.maxLabelLength=T,this.autoRotation?T>u&&T>m.h?g.rotation=this.labelRotation:this.labelRotation=0:l&&(w=u),g.rotation&&(w=T>e.chartHeight*.5?e.chartHeight*.33:T,b||(E=1)),this.labelAlign=o.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(g.align=this.labelAlign),i.forEach(function(P){const M=r[P],I=M?.label,L=s.width,H={};I&&(I.attr(g),M.shortenLabel?M.shortenLabel():w&&!L&&s.whiteSpace!=="nowrap"&&(w<(I.textPxLength||0)||I.element.tagName==="SPAN")?I.css(Qp(H,{width:`${w}px`,lineClamp:E})):I.styles.width&&!H.width&&!L&&I.css({width:"auto"}),M.rotation=g.rotation)},this),this.tickRotCorr=t.rotCorr(m.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&ii(this.min)&&ii(this.max)}addTitle(e){const t=this,i=t.chart.renderer,r=t.horiz,o=t.opposite,s=t.options,a=s.title,l=t.chart.styledMode;let u;t.axisTitle||(u=a.textAlign,u||(u=(r?{low:"left",middle:"center",high:"right"}:{low:o?"right":"left",middle:"center",high:o?"left":"right"})[a.align]),t.axisTitle=i.text(a.text||"",0,0,a.useHTML).attr({zIndex:7,rotation:a.rotation||0,align:u}).addClass("highcharts-axis-title"),l||t.axisTitle.css(jp(a.style)),t.axisTitle.add(t.axisGroup),t.axisTitle.isNew=!0),!l&&!a.style.width&&!t.isRadial&&t.axisTitle.css({width:t.len+"px"}),t.axisTitle[e?"show":"hide"](e)}generateTick(e){const t=this,i=t.ticks;i[e]?i[e].addLabel():i[e]=new Ad(t,e)}createGroups(){const{axisParent:e,chart:t,coll:i,options:r}=this,o=t.renderer,s=(a,l,u)=>o.g(a).attr({zIndex:u}).addClass(`highcharts-${i.toLowerCase()}${l} `+(this.isRadial?`highcharts-radial-axis${l} `:"")+(r.className||"")).add(e);this.axisGroup||(this.gridGroup=s("grid","-grid",r.gridZIndex),this.axisGroup=s("axis","",r.zIndex),this.labelGroup=s("axis-labels","-labels",r.labels.zIndex))}getOffset(){const e=this,{chart:t,horiz:i,options:r,side:o,ticks:s,tickPositions:a,coll:l}=e,u=t.inverted&&!e.isZAxis?[1,0,3,2][o]:o,g=e.hasData(),m=r.title,b=r.labels,w=ft(r.crossing),E=t.axisOffset,T=t.clipOffset,P=[-1,1,1,-1][o];let M,I=0,L,H=0,W=0,G,J;if(e.showAxis=M=g||r.showEmpty,e.staggerLines=e.horiz&&b.staggerLines||void 0,e.createGroups(),g||e.isLinked?(a.forEach(function(Y){e.generateTick(Y)}),e.renderUnsquish(),e.reserveSpaceDefault=o===0||o===2||{1:"left",3:"right"}[o]===e.labelAlign,Wt(b.reserveSpace,w?!1:null,e.labelAlign==="center"?!0:null,e.reserveSpaceDefault)&&a.forEach(function(Y){W=Math.max(s[Y].getLabelSize(),W)}),e.staggerLines&&(W*=e.staggerLines),e.labelOffset=W*(e.opposite?-1:1)):wp(s,function(Y,$){Y.destroy(),delete s[$]}),m?.text&&m.enabled!==!1&&(e.addTitle(M),M&&!w&&m.reserveSpace!==!1&&(e.titleOffset=I=e.axisTitle.getBBox()[i?"height":"width"],L=m.offset,H=ii(L)?0:Wt(m.margin,i?5:10))),e.renderLine(),e.offset=P*Wt(r.offset,E[o]?E[o]+(r.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},o===0?J=-e.labelMetrics().h:o===2?J=e.tickRotCorr.y:J=0,G=Math.abs(W)+H,W&&(G-=J,G+=P*(i?Wt(b.y,e.tickRotCorr.y+P*b.distance):Wt(b.x,P*b.distance))),e.axisTitleMargin=Wt(L,G),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(s,a)),l!=="colorAxis"&&T){const Y=this.tickSize("tick");E[o]=Math.max(E[o],(e.axisTitleMargin||0)+I+P*e.offset,G,a?.length&&Y?Y[0]+P*e.offset:0);const $=!e.axisLine||r.offset?0:e.axisLine.strokeWidth()/2;T[u]=Math.max(T[u],$)}Oi(this,"afterGetOffset")}getLinePath(e){const t=this.chart,i=this.opposite,r=this.offset,o=this.horiz,s=this.left+(i?this.width:0)+r,a=t.chartHeight-this.bottom-(i?this.height:0)+r;return i&&(e*=-1),t.renderer.crispLine([["M",o?this.left:s,o?a:this.top],["L",o?t.chartWidth-this.right:s,o?a:t.chartHeight-this.bottom]],e)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(e){const t=this.horiz,i=this.left,r=this.top,o=this.len,s=this.options.title,a=t?i:r,l=this.opposite,u=this.offset,g=s.x,m=s.y,b=this.chart.renderer.fontMetrics(e),w=e?Math.max(e.getBBox(!1,0).height-b.h-1,0):0,E={low:a+(t?0:o),middle:a+o/2,high:a+(t?o:0)}[s.align],T=(t?r+this.height:i)+(t?1:-1)*(l?-1:1)*(this.axisTitleMargin||0)+[-w,w,b.f,-w][this.side],P={x:t?E+g:T+(l?this.width:0)+u+g,y:t?T+m-(l?this.height:0)+u:E+m};return Oi(this,"afterGetTitlePosition",{titlePosition:P}),P}renderMinorTick(e,t){const i=this,r=i.minorTicks;r[e]||(r[e]=new Ad(i,e,"minor")),t&&r[e].isNew&&r[e].render(null,!0),r[e].render(null,!1,1)}renderTick(e,t,i){const r=this,o=r.isLinked,s=r.ticks;(!o||e>=r.min&&e<=r.max||r.grid?.isColumn)&&(s[e]||(s[e]=new Ad(r,e)),i&&s[e].isNew&&s[e].render(t,!0,-1),s[e].render(t))}render(){const e=this,t=e.chart,i=e.logarithmic,r=t.renderer,o=e.options,s=e.isLinked,a=e.tickPositions,l=e.axisTitle,u=e.ticks,g=e.minorTicks,m=e.alternateBands,b=o.stackLabels,w=o.alternateGridColor,E=o.crossing,T=e.tickmarkOffset,P=e.axisLine,M=e.showAxis,I=K3(r.globalAnimation);let L,H;if(e.labelEdge.length=0,e.overlap=!1,[u,g,m].forEach(function(W){wp(W,function(G){G.isActive=!1})}),ft(E)){const W=this.isXAxis?t.yAxis[0]:t.xAxis[0],G=[1,-1,-1,1][this.side];if(W){let J=W.toPixels(E,!0);e.horiz&&(J=W.len-J),e.offset=G*J}}if(e.hasData()||s){const W=e.chart.hasRendered&&e.old&&ft(e.old.min);e.minorTickInterval&&!e.categories&&e.getMinorTickPositions().forEach(function(G){e.renderMinorTick(G,W)}),a.length&&(a.forEach(function(G,J){e.renderTick(G,J,W)}),T&&(e.min===0||e.single)&&(u[-1]||(u[-1]=new Ad(e,-1,null,!0)),u[-1].render(-1))),w&&a.forEach(function(G,J){H=typeof a[J+1]<"u"?a[J+1]+T:e.max-T,J%2===0&&G<e.max&&H<=e.max+(t.polar?-T:T)&&(m[G]||(m[G]=new St.PlotLineOrBand(e,{})),L=G+T,m[G].options={from:i?i.lin2log(L):L,to:i?i.lin2log(H):H,color:w,className:"highcharts-alternate-grid"},m[G].render(),m[G].isActive=!0)}),e._addedPlotLB||(e._addedPlotLB=!0,(o.plotLines||[]).concat(o.plotBands||[]).forEach(function(G){e.addPlotBandOrLine(G)}))}[u,g,m].forEach(function(W){const G=[],J=I.duration,Y=function(){let $=G.length;for(;$--;)W[G[$]]&&!W[G[$]].isActive&&(W[G[$]].destroy(),delete W[G[$]])};wp(W,function($,re){$.isActive||($.render(re,!1,0),$.isActive=!1,G.push(re))}),rB(Y,W===m||!t.hasRendered||!J?0:J)}),P&&(P[P.isPlaced?"animate":"attr"]({d:this.getLinePath(P.strokeWidth())}),P.isPlaced=!0,P[M?"show":"hide"](M)),l&&M&&(l[l.isNew?"attr":"animate"](e.getTitlePosition(l)),l.isNew=!1),b?.enabled&&e.stacking&&e.stacking.renderStackTotals(),e.old={len:e.len,max:e.max,min:e.min,transA:e.transA,userMax:e.userMax,userMin:e.userMin},e.isDirty=!1,Oi(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})}getKeepProps(){return this.keepProps||Fm.keepProps}destroy(e){const t=this,i=t.plotLinesAndBands,r=this.eventOptions;if(Oi(this,"destroy",{keepEvents:e}),e||nB(t),[t.ticks,t.minorTicks,t.alternateBands].forEach(function(o){$3(o)}),i){let o=i.length;for(;o--;)i[o].destroy()}["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(o){t[o]&&(t[o]=t[o].destroy())});for(const o in t.plotLinesAndBandsGroups)t.plotLinesAndBandsGroups[o]=t.plotLinesAndBandsGroups[o].destroy();wp(t,function(o,s){t.getKeepProps().indexOf(s)===-1&&delete t[s]}),this.eventOptions=r}drawCrosshair(e,t){const i=this.crosshair,r=i?.snap??!0,o=this.chart;let s,a,l,u=this.cross,g;if(Oi(this,"drawCrosshair",{e,point:t}),e||(e=this.cross?.e),!i||(ii(t)||!r)===!1)this.hideCrosshair();else{if(r?ii(t)&&(a=Wt(this.coll!=="colorAxis"?t.crosshairPos:null,this.isXAxis?t.plotX:this.len-t.plotY)):a=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),ii(a)&&(g={value:t&&(this.isXAxis?t.x:Wt(t.stackY,t.y)),translatedValue:a},o.polar&&Qp(g,{isCrosshair:!0,chartX:e?.chartX,chartY:e?.chartY,point:t}),s=this.getPlotLinePath(g)||null),!ii(s)){this.hideCrosshair();return}l=this.categories&&!this.isRadial,u||(this.cross=u=o.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(l?"category ":"thin ")+(i.className||"")).attr({zIndex:Wt(i.zIndex,2)}).add(),o.styledMode||(u.attr({stroke:i.color||(l?Jh.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":Wt(i.width,1)}).css({"pointer-events":"none"}),i.dashStyle&&u.attr({dashstyle:i.dashStyle}))),u.show().attr({d:s}),l&&!i.width&&u.attr({"stroke-width":this.transA}),this.cross.e=e}Oi(this,"afterDrawCrosshair",{e,point:t})}hideCrosshair(){this.cross&&this.cross.hide(),Oi(this,"afterHideCrosshair")}update(e,t){const i=this.chart;e=jp(this.userOptions,e),this.destroy(!0),this.init(i,e),i.isDirtyBox=!0,Wt(t,!0)&&i.redraw()}remove(e){const t=this.chart,i=this.coll,r=this.series;let o=r.length;for(;o--;)r[o]&&r[o].remove(!1);PC(t.axes,this),PC(t[i]||[],this),t.orderItems(i),this.destroy(),t.isDirtyBox=!0,Wt(e,!0)&&t.redraw()}setTitle(e,t){this.update({title:e},t)}setCategories(e,t){this.update({categories:e},t)}}Fm.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"];const db=Fm,{addEvent:oB,getMagnitude:sB,normalizeTickInterval:aB,timeUnits:Sp}=lt;var gb;(function(n){function e(o){if(!o.keepProps.includes("dateTime")){o.keepProps.push("dateTime");const s=o.prototype;s.getTimeTicks=t,oB(o,"afterSetType",i)}return o}n.compose=e;function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function i(){if(this.type!=="datetime"){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new r(this))}class r{constructor(s){this.axis=s}normalizeTimeTickInterval(s,a){const l=a||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];let u=l[l.length-1],g=Sp[u[0]],m=u[1],b;for(b=0;b<l.length;b++)if(u=l[b],g=Sp[u[0]],m=u[1],l[b+1]){const E=(g*m[m.length-1]+Sp[l[b+1][0]])/2;if(s<=E)break}g===Sp.year&&s<5*g&&(m=[1,2,5]);const w=aB(s/g,m,u[0]==="year"?Math.max(sB(s/g),1):1);return{unitRange:g,count:w,unitName:u[0]}}getXDateFormat(s,a){const{axis:l}=this,u=l.chart.time;return l.closestPointRange?u.getDateFormat(l.closestPointRange,s,l.options.startOfWeek,a)||u.resolveDTLFormat(a.year).main:u.resolveDTLFormat(a.day).main}}n.Additions=r})(gb||(gb={}));const lB=gb,{addEvent:FC,normalizeTickInterval:cB,pick:uB}=lt;var pb;(function(n){function e(o){return o.keepProps.includes("logarithmic")||(o.keepProps.push("logarithmic"),FC(o,"afterSetType",t),FC(o,"afterInit",i)),o}n.compose=e;function t(){this.type!=="logarithmic"?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new r(this))}function i(){const o=this,s=o.logarithmic;s&&(o.lin2val=function(a){return s.lin2log(a)},o.val2lin=function(a){return s.log2lin(a)})}class r{constructor(s){this.axis=s}getLogTickPositions(s,a,l,u){const g=this,m=g.axis,b=m.len,w=m.options;let E=[];if(u||(g.minorAutoInterval=void 0),s>=.5)s=Math.round(s),E=m.getLinearTickPositions(s,a,l);else if(s>=.08){const T=Math.floor(a);let P,M,I,L,H,W,G;for(s>.3?P=[1,2,4]:s>.15?P=[1,2,4,6,8]:P=[1,2,3,4,5,6,7,8,9],M=T;M<l+1&&!G;M++)for(L=P.length,I=0;I<L&&!G;I++)H=g.log2lin(g.lin2log(M)*P[I]),H>a&&(!u||W<=l)&&typeof W<"u"&&E.push(W),W>l&&(G=!0),W=H}else{const T=g.lin2log(a),P=g.lin2log(l),M=u?m.getMinorTickInterval():w.tickInterval,I=M==="auto"?null:M,L=w.tickPixelInterval/(u?5:1),H=u?b/m.tickPositions.length:b;s=uB(I,g.minorAutoInterval,(P-T)*L/(H||1)),s=cB(s),E=m.getLinearTickPositions(s,T,P).map(g.log2lin),u||(g.minorAutoInterval=s/5)}return u||(m.tickInterval=s),E}lin2log(s){return Math.pow(10,s)}log2lin(s){return Math.log(s)/Math.LN10}}n.Additions=r})(pb||(pb={}));const hB=pb,{erase:fB,extend:dB,isNumber:LC}=lt;var mb;(function(n){let e;function t(g){return this.addPlotBandOrLine(g,"plotBands")}function i(g,m){const b=this.userOptions;let w=new e(this,g);if(this.visible&&(w=w.render()),w){if(this._addedPlotLB||(this._addedPlotLB=!0,(b.plotLines||[]).concat(b.plotBands||[]).forEach(E=>{this.addPlotBandOrLine(E)})),m){const E=b[m]||[];E.push(g),b[m]=E}this.plotLinesAndBands.push(w)}return w}function r(g){return this.addPlotBandOrLine(g,"plotLines")}function o(g,m){const b=m.prototype;return b.addPlotBand||(e=g,dB(b,{addPlotBand:t,addPlotLine:r,addPlotBandOrLine:i,getPlotBandPath:s,removePlotBand:a,removePlotLine:u,removePlotBandOrLine:l})),m}n.compose=o;function s(g,m,b){b=b||this.options;const w=this.getPlotLinePath({value:m,force:!0,acrossPanes:b.acrossPanes}),E=[],T=this.horiz,P=!LC(this.min)||!LC(this.max)||g<this.min&&m<this.min||g>this.max&&m>this.max,M=this.getPlotLinePath({value:g,force:!0,acrossPanes:b.acrossPanes});let I,L=1,H;if(M&&w)for(P&&(H=M.toString()===w.toString(),L=0),I=0;I<M.length;I+=2){const W=M[I],G=M[I+1],J=w[I],Y=w[I+1];(W[0]==="M"||W[0]==="L")&&(G[0]==="M"||G[0]==="L")&&(J[0]==="M"||J[0]==="L")&&(Y[0]==="M"||Y[0]==="L")&&(T&&J[1]===W[1]?(J[1]+=L,Y[1]+=L):!T&&J[2]===W[2]&&(J[2]+=L,Y[2]+=L),E.push(["M",W[1],W[2]],["L",G[1],G[2]],["L",Y[1],Y[2]],["L",J[1],J[2]],["Z"])),E.isFlat=H}return E}function a(g){this.removePlotBandOrLine(g)}function l(g){const m=this.plotLinesAndBands,b=this.options,w=this.userOptions;if(m){let E=m.length;for(;E--;)m[E].id===g&&m[E].destroy();[b.plotLines||[],w.plotLines||[],b.plotBands||[],w.plotBands||[]].forEach(function(T){for(E=T.length;E--;)T[E]?.id===g&&fB(T,T[E])})}}function u(g){this.removePlotBandOrLine(g)}})(mb||(mb={}));const gB=mb,{addEvent:pB,arrayMax:IC,arrayMin:DC,defined:rh,destroyObjectProperties:mB,erase:vB,fireEvent:yB,merge:BC,objectEach:bB,pick:xB}=lt;class F0{static compose(e,t){return pB(e,"afterInit",function(){this.labelCollectors.push(()=>{const i=[];for(const r of this.axes)for(const{label:o,options:s}of r.plotLinesAndBands)o&&!s?.label?.allowOverlap&&i.push(o);return i})}),gB.compose(F0,t)}constructor(e,t){this.axis=e,this.options=t,this.id=t.id}render(){yB(this,"render");const{axis:e,options:t}=this,{horiz:i,logarithmic:r}=e,{color:o,events:s,zIndex:a=0}=t,{renderer:l,time:u}=e.chart,g={},m=u.parse(t.to),b=u.parse(t.from),w=u.parse(t.value),E=t.borderWidth;let T=t.label,{label:P,svgElem:M}=this,I=[],L;const H=rh(b)&&rh(m),W=rh(w),G=!M,J={class:"highcharts-plot-"+(H?"band ":"line ")+(t.className||"")};let Y=H?"bands":"lines";if(e.chart.styledMode||(W?(J.stroke=o||"#999999",J["stroke-width"]=xB(t.width,1),t.dashStyle&&(J.dashstyle=t.dashStyle)):H&&(J.fill=o||"#e6e9ff",E&&(J.stroke=t.borderColor,J["stroke-width"]=E))),g.zIndex=a,Y+="-"+a,L=e.plotLinesAndBandsGroups[Y],L||(e.plotLinesAndBandsGroups[Y]=L=l.g("plot-"+Y).attr(g).add()),M||(this.svgElem=M=l.path().attr(J).add(L)),rh(w))I=e.getPlotLinePath({value:r?.log2lin(w)??w,lineWidth:M.strokeWidth(),acrossPanes:t.acrossPanes});else if(rh(b)&&rh(m))I=e.getPlotBandPath(r?.log2lin(b)??b,r?.log2lin(m)??m,t);else return;return!this.eventsAdded&&s&&(bB(s,($,re)=>{M?.on(re,be=>{s[re].apply(this,[be])})}),this.eventsAdded=!0),(G||!M.d)&&I?.length?M.attr({d:I}):M&&(I?(M.show(),M.animate({d:I})):M.d&&(M.hide(),P&&(this.label=P=P.destroy()))),T&&(rh(T.text)||rh(T.formatter))&&I?.length&&e.width>0&&e.height>0&&!I.isFlat?(T=BC({align:i&&H?"center":void 0,x:i?!H&&4:10,verticalAlign:!i&&H?"middle":void 0,y:i?H?16:10:H?6:-4,rotation:i&&!H?90:0,...H?{inside:!0}:{}},T),this.renderLabel(T,I,H,a)):P&&P.hide(),this}renderLabel(e,t,i,r){const o=this,s=o.axis,a=s.chart.renderer,l=e.inside;let u=o.label;u||(o.label=u=a.text(this.getLabelText(e),0,0,e.useHTML).attr({align:e.textAlign||e.align,rotation:e.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(e.className||""),zIndex:r}),s.chart.styledMode||u.css(BC({color:s.chart.options.title?.style?.color,fontSize:"0.8em",textOverflow:i&&!l?"":"ellipsis"},e.style)),u.add());const g=t.xBounds||[t[0][1],t[1][1],i?t[2][1]:t[0][1]],m=t.yBounds||[t[0][2],t[1][2],i?t[2][2]:t[0][2]],b=DC(g),w=DC(m),E=IC(g)-b;u.align(e,!1,{x:b,y:w,width:E,height:IC(m)-w}),u.alignAttr.y-=a.fontMetrics(u).b,(!u.alignValue||u.alignValue==="left"||rh(l))&&u.css({width:(e.style?.width||(!i||!l?u.rotation===90?s.height-(u.alignAttr.y-s.top):(e.clip?s.width:s.chart.chartWidth)-(u.alignAttr.x-s.left):E))+"px"}),u.show(!0)}getLabelText(e){return rh(e.formatter)?e.formatter.call(this):e.text}destroy(){vB(this.axis.plotLinesAndBands,this),delete this.axis,mB(this)}}const FE=F0,{animObject:wB}=$o,{format:NC}=Mc,{composed:CB,dateFormats:SB,doc:zC,isSafari:TB}=St,{distribute:EB}=_m,{addEvent:RB,clamp:yd,css:HC,discardElement:kB,extend:PB,fireEvent:Zv,getAlignFactor:WC,isArray:MB,isNumber:AB,isObject:_B,isString:Kv,merge:OB,pick:bd,pushUnique:FB,splat:Jv,syncTimeout:LB}=lt;let vb=class{constructor(e,t,i){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=e,this.init(e,t),this.pointer=i}bodyFormatter(e){return e.map(t=>{const i=t.series.tooltipOptions,r=t.formatPrefix||"point";return(i[r+"Formatter"]||t.tooltipFormatter).call(t,i[r+"Format"]||"")})}cleanSplit(e){this.chart.series.forEach(function(t){const i=t?.tt;i&&(!i.isActive||e?t.tt=i.destroy():i.isActive=!1)})}defaultFormatter(e){const t=this.points||Jv(this);let i;return i=[e.headerFooterFormatter(t[0])],i=i.concat(e.bodyFormatter(t)),i.push(e.headerFooterFormatter(t[0],!0)),i}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),kB(this.container)),lt.clearTimeout(this.hideTimer)}getAnchor(e,t){const{chart:i,pointer:r}=this,o=i.inverted,s=i.plotTop,a=i.plotLeft;let l;if(e=Jv(e),e[0].series?.yAxis&&!e[0].series.yAxis.options.reversedStacks&&(e=e.slice().reverse()),this.followPointer&&t)typeof t.chartX>"u"&&(t=r.normalize(t)),l=[t.chartX-a,t.chartY-s];else if(e[0].tooltipPos)l=e[0].tooltipPos;else{let g=0,m=0;e.forEach(function(b){const w=b.pos(!0);w&&(g+=w[0],m+=w[1])}),g/=e.length,m/=e.length,this.shared&&e.length>1&&t&&(o?g=t.chartX:m=t.chartY),l=[g-a,m-s]}const u={point:e[0],ret:l};return Zv(this,"getAnchor",u),u.ret.map(Math.round)}getClassName(e,t,i){const r=this.options,o=e.series,s=o.options;return[r.className,"highcharts-label",i&&"highcharts-tooltip-header",t?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+bd(e.colorIndex,o.colorIndex),s?.className].filter(Kv).join(" ")}getLabel({anchorX:e,anchorY:t}={anchorX:0,anchorY:0}){const i=this,r=this.chart.styledMode,o=this.options,s=this.split&&this.allowShared;let a=this.container,l=this.chart.renderer;if(this.label){const u=!this.label.hasClass("highcharts-label");(!s&&u||s&&!u)&&this.destroy()}if(!this.label){if(this.outside){const u=this.chart,g=u.options.chart.style,m=Kg.getRendererType();this.container=a=St.doc.createElement("div"),a.className="highcharts-tooltip-container "+(u.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||[].join(" ")),HC(a,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(g?.zIndex||0)+3)}),this.renderer=l=new m(a,0,0,g,void 0,void 0,l.styledMode)}if(s?this.label=l.g("tooltip"):(this.label=l.label("",e,t,o.shape||"callout",void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),r||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth||0}).css(o.style).css({pointerEvents:o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),i.outside){const u=this.label;[u.xSetter,u.ySetter].forEach((g,m)=>{u[m?"ySetter":"xSetter"]=b=>{g.call(u,i.distance),u[m?"y":"x"]=b,a&&(a.style[m?"top":"left"]=`${b}px`)}})}this.label.attr({zIndex:8}).shadow(o.shadow??!o.fixed).add()}return a&&!a.parentElement&&St.doc.body.appendChild(a),this.label}getPlayingField(){const{body:e,documentElement:t}=zC,{chart:i,distance:r,outside:o}=this;return{width:o?Math.max(e.scrollWidth,t.scrollWidth,e.offsetWidth,t.offsetWidth,t.clientWidth)-2*r-2:i.chartWidth,height:o?Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,t.clientHeight):i.chartHeight}}getPosition(e,t,i){const{distance:r,chart:o,outside:s,pointer:a}=this,{inverted:l,plotLeft:u,plotTop:g,polar:m}=o,{plotX:b=0,plotY:w=0}=i,E={},T=l&&i.h||0,{height:P,width:M}=this.getPlayingField(),I=a.getChartPosition(),L=me=>me*I.scaleX,H=me=>me*I.scaleY,W=me=>{const ee=me==="x";return[me,ee?M:P,ee?e:t].concat(s?[ee?L(e):H(t),ee?I.left-r+L(b+u):I.top-r+H(w+g),0,ee?M:P]:[ee?e:t,ee?b+u:w+g,ee?u:g,ee?u+o.plotWidth:g+o.plotHeight])};let G=W("y"),J=W("x"),Y,$=!!i.negative;!m&&o.hoverSeries?.yAxis?.reversed&&($=!$);const re=!this.followPointer&&bd(i.ttBelow,m?!1:!l===$),be=function(me,ee,q,le,Te,he,ue){const Ne=s?me==="y"?H(r):L(r):r,We=(q-le)/2,Qe=le<Te-r,_e=Te+r+le<ee,Ve=Te-Ne-q+We,Oe=Te+Ne-We;if(re&&_e)E[me]=Oe;else if(!re&&Qe)E[me]=Ve;else if(Qe)E[me]=Math.min(ue-le,Ve-T<0?Ve:Ve-T);else if(_e)E[me]=Math.max(he,Oe+T+q>ee?Oe:Oe+T);else return E[me]=0,!1},we=function(me,ee,q,le,Te){if(Te<r||Te>ee-r)return!1;Te<q/2?E[me]=1:Te>ee-le/2?E[me]=ee-le-2:E[me]=Te-q/2},Ee=function(me){[G,J]=[J,G],Y=me},pe=()=>{be.apply(0,G)!==!1?we.apply(0,J)===!1&&!Y&&(Ee(!0),pe()):Y?E.x=E.y=0:(Ee(!0),pe())};return(l&&!m||this.len>1)&&Ee(),pe(),E}getFixedPosition(e,t,i){const r=i.series,{chart:o,options:s,split:a}=this,l=s.position,u=l.relativeTo,g=s.shared||r?.yAxis?.isRadial&&(u==="pane"||!u),m=g?"plotBox":u,b=m==="chart"?o.renderer:o[m]||o.getClipBox(r,!0);return{x:b.x+(b.width-e)*WC(l.align)+l.x,y:b.y+(b.height-t)*WC(l.verticalAlign)+(!a&&l.y||0)}}hide(e){const t=this;lt.clearTimeout(this.hideTimer),e=bd(e,this.options.hideDelay),this.isHidden||(this.hideTimer=LB(function(){const i=t.getLabel();t.getLabel().animate({opacity:0},{duration:e&&150,complete:()=>{i.hide(),t.container&&t.container.remove()}}),t.isHidden=!0},e))}init(e,t){this.chart=e,this.options=t,this.crosshairs=[],this.isHidden=!0,this.split=t.split&&!e.inverted&&!e.polar,this.shared=t.shared||this.split,this.outside=bd(t.outside,!!(e.scrollablePixelsX||e.scrollablePixelsY))}shouldStickOnContact(e){return!!(!this.followPointer&&this.options.stickOnContact&&(!e||this.pointer.inClass(e.target,"highcharts-tooltip")))}move(e,t,i,r){const{followPointer:o,options:s}=this,a=wB(!o&&!this.isHidden&&!s.fixed&&s.animation),l=o||(this.len||0)>1,u={x:e,y:t};l?u.anchorX=u.anchorY=NaN:(u.anchorX=i,u.anchorY=r),a.step=()=>this.drawTracker(),this.getLabel().animate(u,a)}refresh(e,t){const i=this,{chart:r,options:o,pointer:s,shared:a}=this,l=Jv(e),u=l[0],g=o.format,m=o.formatter||i.defaultFormatter,b=r.styledMode;let w=i.allowShared;if(!o.enabled||!u.series)return;lt.clearTimeout(this.hideTimer),i.allowShared=!(!MB(e)&&e.series&&e.series.noSharedTooltip),w=w&&!i.allowShared,i.followPointer=!i.split&&u.series.tooltipOptions.followPointer;const E=i.getAnchor(e,t),T=E[0],P=E[1];a&&i.allowShared&&(s.applyInactiveState(l),l.forEach(L=>L.setState("hover")),u.points=l),this.len=l.length;const M=Kv(g)?NC(g,u,r):m.call(u,i);u.points=void 0;const I=u.series;if(this.distance=bd(I.tooltipOptions.distance,16),M===!1)this.hide();else{if(i.split&&i.allowShared)this.renderSplit(M,l);else{let L=T,H=P;if(t&&s.isDirectTouch&&(L=t.chartX-r.plotLeft,H=t.chartY-r.plotTop),r.polar||I.options.clip===!1||l.some(W=>s.isDirectTouch||W.series.shouldShowTooltip(L,H))){const W=i.getLabel(w&&i.tt||{});(!o.style.width||b)&&W.css({width:(this.outside?this.getPlayingField():r.spacingBox).width+"px"}),W.attr({class:i.getClassName(u),text:M&&M.join?M.join(""):M}),this.outside&&W.attr({x:yd(W.x||0,0,this.getPlayingField().width-(W.width||0)-1)}),b||W.attr({stroke:o.borderColor||u.color||I.color||"#666666"}),i.updatePosition({plotX:T,plotY:P,negative:u.negative,ttBelow:u.ttBelow,series:I,h:E[2]||0})}else{i.hide();return}}i.isHidden&&i.label&&i.label.attr({opacity:1}).show(),i.isHidden=!1}Zv(this,"refresh")}renderSplit(e,t){const i=this,{chart:r,chart:{chartWidth:o,chartHeight:s,plotHeight:a,plotLeft:l,plotTop:u,scrollablePixelsY:g=0,scrollablePixelsX:m,styledMode:b},distance:w,options:E,options:{fixed:T,position:P,positioner:M},pointer:I}=i,{scrollLeft:L=0,scrollTop:H=0}=r.scrollablePlotArea?.scrollingContainer||{},W=i.outside&&typeof m!="number"?zC.documentElement.getBoundingClientRect():{left:L,right:L+o},G=i.getLabel(),J=this.renderer||r.renderer,Y=!!r.xAxis[0]?.opposite,{left:$,top:re}=I.getChartPosition(),be=M||T;let we=u+H,Ee=0,pe=a-g;function me(We){const{isHeader:Qe,plotX:_e=0,plotY:Ve=0,series:Oe}=We;let qe,je;if(Qe)qe=Math.max(l+_e,l),je=u+a/2;else{const{xAxis:it,yAxis:ct}=Oe;qe=it.pos+yd(_e,-w,it.len+w),Oe.shouldShowTooltip(0,ct.pos-u+Ve,{ignoreX:!0})&&(je=ct.pos+Ve)}return qe=yd(qe,W.left-w,W.right+w),{anchorX:qe,anchorY:je}}const ee=function(We,Qe,_e,Ve=[0,0],Oe=!0){let qe,je;if(_e.isHeader)je=Y?0:pe,qe=yd(Ve[0]-We/2,W.left,W.right-We-(i.outside?$:0));else if(T&&_e){const it=i.getFixedPosition(We,Qe,_e);qe=it.x,je=it.y-we}else je=Ve[1]-we,qe=Oe?Ve[0]-We-w:Ve[0]+w,qe=yd(qe,Oe?qe:W.left,W.right);return{x:qe,y:je}};function q(We,Qe,_e){let Ve=We;const{isHeader:Oe,series:qe}=Qe,je=qe.tooltipOptions||E;if(!Ve){const it={padding:je.padding,r:je.borderRadius};b||(it.fill=je.backgroundColor,it["stroke-width"]=je.borderWidth??(T&&!Oe?0:1)),Ve=J.label("",0,0,je[Oe?"headerShape":"shape"]||(T&&!Oe?"rect":"callout"),void 0,void 0,je.useHTML).addClass(i.getClassName(Qe,!0,Oe)).attr(it).add(G)}return Ve.isActive=!0,Ve.attr({text:_e}),b||Ve.css(je.style).attr({stroke:je.borderColor||Qe.color||qe.color||"#333333"}),Ve}Kv(e)&&(e=[!1,e]);let le=e.slice(0,t.length+1).reduce(function(We,Qe,_e){if(Qe!==!1&&Qe!==""){const Ve=t[_e-1]||{isHeader:!0,plotX:t[0].plotX,plotY:a,series:{}},Oe=Ve.isHeader,qe=Oe?i:Ve.series,je=qe.tt=q(qe.tt,Ve,Qe.toString()),it=je.getBBox(),ct=it.width+je.strokeWidth();Oe&&(Ee=it.height,pe+=Ee,Y&&(we-=Ee));const{anchorX:li,anchorY:tt}=me(Ve);if(typeof tt=="number"){const Nt=it.height+1,Pt=(M||ee).call(i,ct,Nt,Ve,[li,tt]);We.push({align:be?0:void 0,anchorX:li,anchorY:tt,boxWidth:ct,point:Ve,rank:bd(Pt.rank,Oe?1:0),size:Nt,target:Pt.y,tt:je,x:Pt.x})}else je.isActive=!1}return We},[]);!be&&le.some(We=>{const{outside:Qe}=i,_e=(Qe?$:0)+We.anchorX;return _e<W.left&&_e+We.boxWidth<W.right?!0:_e<$-W.left+We.boxWidth&&W.right-_e>_e})&&(le=le.map(We=>{const{x:Qe,y:_e}=ee.call(this,We.boxWidth,We.size,We.point,[We.anchorX,We.anchorY],!1);return PB(We,{target:_e,x:Qe})})),i.cleanSplit(),EB(le,pe);const Te={left:$,right:$};le.forEach(function(We){const{x:Qe,boxWidth:_e,isHeader:Ve}=We;Ve||(i.outside&&$+Qe<Te.left&&(Te.left=$+Qe),!Ve&&i.outside&&Te.left+_e>Te.right&&(Te.right=$+Qe))}),le.forEach(function(We){const{x:Qe,anchorX:_e,anchorY:Ve,pos:Oe,point:{isHeader:qe}}=We,je={visibility:typeof Oe>"u"?"hidden":"inherit",x:Qe,y:(Oe||0)+we+(T&&P.y||0),anchorX:_e,anchorY:Ve};if(i.outside&&Qe<_e){const it=$-Te.left;it>0&&(qe||(je.x=Qe+it,je.anchorX=_e+it),qe&&(je.x=(Te.right-Te.left)/2,je.anchorX=_e+it))}We.tt.attr(je)});const{container:he,outside:ue,renderer:Ne}=i;if(ue&&he&&Ne){const{width:We,height:Qe,x:_e,y:Ve}=G.getBBox();Ne.setSize(We+_e,Qe+Ve,!1),he.style.left=Te.left+"px",he.style.top=re+"px"}TB&&G.attr({opacity:G.opacity===1?.999:1})}drawTracker(){const e=this;if(!this.shouldStickOnContact()){e.tracker&&(e.tracker=e.tracker.destroy());return}const t=e.chart,i=e.label,r=e.shared?t.hoverPoints:t.hoverPoint;if(!i||!r)return;const o={x:0,y:0,width:0,height:0},s=this.getAnchor(r),a=i.getBBox();s[0]+=t.plotLeft-(i.translateX||0),s[1]+=t.plotTop-(i.translateY||0),o.x=Math.min(0,s[0]),o.y=Math.min(0,s[1]),o.width=s[0]<0?Math.max(Math.abs(s[0]),a.width-s[0]):Math.max(Math.abs(s[0]),a.width),o.height=s[1]<0?Math.max(Math.abs(s[1]),a.height-Math.abs(s[1])):Math.max(Math.abs(s[1]),a.height),e.tracker?e.tracker.attr(o):(e.tracker=i.renderer.rect(o).addClass("highcharts-tracker").add(i),t.styledMode||e.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(e){return e.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}headerFooterFormatter(e,t){const i=e.series,r=i.tooltipOptions,o=i.xAxis,s=o?.dateTime,a={isFooter:t,point:e};let l=r.xDateFormat||"",u=r[t?"footerFormat":"headerFormat"];return Zv(this,"headerFormatter",a,function(g){if(s&&!l&&AB(e.key)&&(l=s.getXDateFormat(e.key,r.dateTimeLabelFormats)),s&&l){if(_B(l)){const m=l;SB[0]=b=>i.chart.time.dateFormat(m,b),l="%0"}(e.tooltipDateKeys||["key"]).forEach(m=>{u=u.replace(new RegExp("point\\."+m+"([ \\)}])"),`(point.${m}:${l})$1`)})}i.chart.styledMode&&(u=this.styledModeFormat(u)),g.text=NC(u,e,this.chart)}),a.text||""}update(e){this.destroy(),this.init(this.chart,OB(!0,this.options,e))}updatePosition(e){const{chart:t,container:i,distance:r,options:o,pointer:s,renderer:a}=this,l=this.getLabel(),{height:u=0,width:g=0}=l,{fixed:m,positioner:b}=o,{left:w,top:E,scaleX:T,scaleY:P}=s.getChartPosition(),M=(b||m&&this.getFixedPosition||this.getPosition).call(this,g,u,e),I=St.doc;let L=(e.plotX||0)+t.plotLeft,H=(e.plotY||0)+t.plotTop,W;if(a&&i){if(b||m){const{scrollLeft:G=0,scrollTop:J=0}=t.scrollablePlotArea?.scrollingContainer||{};M.x+=G+w-r,M.y+=J+E-r}W=(o.borderWidth||0)+2*r+2,a.setSize(yd(g+W,0,I.documentElement.clientWidth)-1,u+W,!1),(T!==1||P!==1)&&(HC(i,{transform:`scale(${T}, ${P})`}),L*=T,H*=P),L+=w-M.x,H+=E-M.y}this.move(Math.round(M.x),Math.round(M.y||0),L,H)}};(function(n){function e(t){FB(CB,"Core.Tooltip")&&RB(t,"afterInit",function(){const i=this.chart;i.options.tooltip&&(i.tooltip=new n(i,i.options.tooltip,this))})}n.compose=e})(vb||(vb={}));const LE=vb,{animObject:IB}=$o,{defaultOptions:DB}=Pc,{format:BB}=Mc,{addEvent:NB,crisp:zB,erase:HB,extend:Tp,fireEvent:Qv,getNestedProperty:WB,isArray:VB,isFunction:GB,isNumber:uf,isObject:Ep,merge:VC,pick:hf,syncTimeout:UB,removeEvent:GC,uniqueKey:XB}=lt;class Rg{animateBeforeDestroy(){const e=this,t={x:e.startXPos,opacity:0},i=e.getGraphicalProps();i.singular.forEach(function(r){const o=r==="dataLabel";e[r]=e[r].animate(o?{x:e[r].startXPos,y:e[r].startYPos,opacity:0}:t)}),i.plural.forEach(function(r){e[r].forEach(function(o){o.element&&o.animate(Tp({x:e.startXPos},o.startYPos?{x:o.startXPos,y:o.startYPos}:{}))})})}applyOptions(e,t){const i=this,r=i.series,o=r.options.pointValKey||r.pointValKey;return e=Rg.prototype.optionsToObject.call(this,e),Tp(i,e),i.options=i.options?Tp(i.options,e):e,e.group&&delete i.group,e.dataLabels&&delete i.dataLabels,o&&(i.y=Rg.prototype.getNestedProperty.call(i,o)),i.selected&&(i.state="select"),"name"in i&&typeof t>"u"&&r.xAxis&&r.xAxis.hasNames&&(i.x=r.xAxis.nameToX(i)),typeof i.x>"u"&&r?i.x=t??r.autoIncrement():uf(e.x)&&r.options.relativeXValue?i.x=r.autoIncrement(e.x):typeof i.x=="string"&&(t??(t=r.chart.time.parse(i.x)),uf(t)&&(i.x=t)),i.isNull=this.isValid&&!this.isValid(),i.formatPrefix=i.isNull?"null":"point",i}destroy(){if(!this.destroyed){const e=this,t=e.series,i=t.chart,r=t.options.dataSorting,o=i.hoverPoints,s=e.series.chart.renderer.globalAnimation,a=IB(s),l=()=>{(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(GC(e),e.destroyElements());for(const u in e)delete e[u]};e.legendItem&&i.legend.destroyItem(e),o&&(e.setState(),HB(o,e),o.length||(i.hoverPoints=null)),e===i.hoverPoint&&e.onMouseOut(),r?.enabled?(this.animateBeforeDestroy(),UB(l,a.duration)):l(),i.pointCount--}this.destroyed=!0}destroyElements(e){const t=this,i=t.getGraphicalProps(e);i.singular.forEach(function(r){t[r]=t[r].destroy()}),i.plural.forEach(function(r){t[r].forEach(function(o){o?.element&&o.destroy()}),delete t[r]})}firePointEvent(e,t,i){const r=this,o=this.series,s=o.options;r.manageEvent(e),e==="click"&&s.allowPointSelect&&(i=function(a){!r.destroyed&&r.select&&r.select(null,a.ctrlKey||a.metaKey||a.shiftKey)}),Qv(r,e,t,i)}getClassName(){const e=this;return"highcharts-point"+(e.selected?" highcharts-point-select":"")+(e.negative?" highcharts-negative":"")+(e.isNull?" highcharts-null-point":"")+(typeof e.colorIndex<"u"?" highcharts-color-"+e.colorIndex:"")+(e.options.className?" "+e.options.className:"")+(e.zone?.className?" "+e.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(e){const t=this,i=[],r={singular:[],plural:[]};let o,s;for(e=e||{graphic:1,dataLabel:1},e.graphic&&i.push("graphic","connector"),e.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper"),s=i.length;s--;)o=i[s],t[o]&&r.singular.push(o);return["graphic","dataLabel"].forEach(function(a){const l=a+"s";e[a]&&t[l]&&r.plural.push(l)}),r}getNestedProperty(e){if(e)return e.indexOf("custom.")===0?WB(e,this.options):this[e]}getZone(){const e=this.series,t=e.zones,i=e.zoneAxis||"y";let r,o=0;for(r=t[o];this[i]>=r.value;)r=t[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),r?.color&&!this.options.color?this.color=r.color:this.color=this.nonZonedColor,r}hasNewShapeType(){const e=this;return(e.graphic&&(e.graphic.symbolName||e.graphic.element.nodeName))!==this.shapeType}constructor(e,t,i){this.formatPrefix="point",this.visible=!0,this.point=this,this.series=e,this.applyOptions(t,i),this.id??(this.id=XB()),this.resolveColor(),this.dataLabelOnNull??(this.dataLabelOnNull=e.options.nullInteraction),e.chart.pointCount++,Qv(this,"afterInit")}isValid(){return(uf(this.x)||this.x instanceof Date)&&uf(this.y)}optionsToObject(e){const t=this.series,i=t.options.keys,r=i||t.pointArrayMap||["y"],o=r.length;let s={},a,l=0,u=0;if(uf(e)||e===null)s[r[0]]=e;else if(VB(e))for(!i&&e.length>o&&(a=typeof e[0],a==="string"?t.xAxis?.dateTime?s.x=t.chart.time.parse(e[0]):s.name=e[0]:a==="number"&&(s.x=e[0]),l++);u<o;)(!i||typeof e[l]<"u")&&(r[u].indexOf(".")>0?Rg.prototype.setNestedProperty(s,e[l],r[u]):s[r[u]]=e[l]),l++,u++;else typeof e=="object"&&(s=e,e.dataLabels&&(t.hasDataLabels=()=>!0),e.marker&&(t._hasPointMarkers=!0));return s}pos(e,t=this.plotY){if(!this.destroyed){const{plotX:i,series:r}=this,{chart:o,xAxis:s,yAxis:a}=r;let l=0,u=0;if(uf(i)&&uf(t))return e&&(l=s?s.pos:o.plotLeft,u=a?a.pos:o.plotTop),o.inverted&&s&&a?[a.len-t+u,s.len-i+l]:[i+l,t+u]}}resolveColor(){const e=this.series,t=e.chart.options.chart,i=e.chart.styledMode;let r,o,s=t.colorCount,a;delete this.nonZonedColor,e.options.colorByPoint?(i||(o=e.options.colors||e.chart.options.colors,r=o[e.colorCounter],s=o.length),a=e.colorCounter,e.colorCounter++,e.colorCounter===s&&(e.colorCounter=0)):(i||(r=e.color),a=e.colorIndex),this.colorIndex=hf(this.options.colorIndex,a),this.color=hf(this.options.color,r)}setNestedProperty(e,t,i){return i.split(".").reduce(function(o,s,a,l){const u=l.length-1===a;return o[s]=u?t:Ep(o[s],!0)?o[s]:{},o[s]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){const{chart:t,pointArrayMap:i=["y"],tooltipOptions:r}=this.series,{valueDecimals:o="",valuePrefix:s="",valueSuffix:a=""}=r;return t.styledMode&&(e=t.tooltip?.styledModeFormat(e)||e),i.forEach(l=>{l="{point."+l,(s||a)&&(e=e.replace(RegExp(l+"}","g"),s+l+"}"+a)),e=e.replace(RegExp(l+"}","g"),l+":,."+o+"f}")}),BB(e,this,t)}update(e,t,i,r){const o=this,s=o.series,a=o.graphic,l=s.chart,u=s.options;let g;t=hf(t,!0);function m(){o.applyOptions(e);const b=a&&o.hasMockGraphic,w=o.y===null?!b:b;a&&w&&(o.graphic=a.destroy(),delete o.hasMockGraphic),Ep(e,!0)&&(a?.element&&e&&e.marker&&typeof e.marker.symbol<"u"&&(o.graphic=a.destroy()),e?.dataLabels&&o.dataLabel&&(o.dataLabel=o.dataLabel.destroy())),g=o.index;const E={};for(const T of s.dataColumnKeys())E[T]=o[T];s.dataTable.setRow(E,g),u.data[g]=Ep(u.data[g],!0)||Ep(e,!0)?o.options:hf(e,u.data[g]),s.isDirty=s.isDirtyData=!0,!s.fixedBox&&s.hasCartesianSeries&&(l.isDirtyBox=!0),u.legendType==="point"&&(l.isDirtyLegend=!0),t&&l.redraw(i)}r===!1?m():o.firePointEvent("update",{options:e},m)}remove(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}select(e,t){const i=this,r=i.series,o=r.chart;e=hf(e,!i.selected),this.selectedStaging=e,i.firePointEvent(e?"select":"unselect",{accumulate:t},function(){i.selected=i.options.selected=e,r.options.data[r.data.indexOf(i)]=i.options,i.setState(e&&"select"),t||o.getSelectedPoints().forEach(function(s){const a=s.series;s.selected&&s!==i&&(s.selected=s.options.selected=!1,a.options.data[a.data.indexOf(s)]=s.options,s.setState(o.hoverPoints&&a.options.inactiveOtherPoints?"inactive":""),s.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(e){const t=this,i=t.series,{inverted:r,pointer:o}=i.chart;o&&(e=e?o.normalize(e):o.getChartCoordinatesFromPoint(t,r),o.runPointActions(e,t))}onMouseOut(){const e=this,t=e.series.chart;e.firePointEvent("mouseOut"),e.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(i){i.setState()}),t.hoverPoints=t.hoverPoint=null}manageEvent(e){const t=this,i=VC(t.series.options.point,t.options),r=i.events?.[e];GB(r)&&(!t.hcEvents?.[e]||t.hcEvents?.[e]?.map(o=>o.fn).indexOf(r)===-1)?(t.importedUserEvent?.(),t.importedUserEvent=NB(t,e,r),t.hcEvents&&(t.hcEvents[e].userEvent=!0)):t.importedUserEvent&&!r&&t.hcEvents?.[e]&&t.hcEvents?.[e].userEvent&&(GC(t,e),delete t.hcEvents[e],Object.keys(t.hcEvents)||delete t.importedUserEvent)}setState(e,t){const i=this,r=i.series,o=i.state,s=r.options.states[e||"normal"]||{},a=DB.plotOptions[r.type].marker&&r.options.marker,l=a&&a.enabled===!1,u=a?.states?.[e||"normal"]||{},g=u.enabled===!1,m=i.marker||{},b=r.chart,w=a&&r.markerAttribs;let E=r.halo,T,P,M,I=r.stateMarkerGraphic,L;if(e=e||"",e===i.state&&!t||i.selected&&e!=="select"||s.enabled===!1||e&&(g||l&&u.enabled===!1)||e&&m.states&&m.states[e]&&m.states[e].enabled===!1)return;if(i.state=e,w&&(T=r.markerAttribs(i,e)),i.graphic&&!i.hasMockGraphic){if(o&&i.graphic.removeClass("highcharts-point-"+o),e&&i.graphic.addClass("highcharts-point-"+e),!b.styledMode){P=r.pointAttribs(i,e),M=hf(b.options.chart.animation,s.animation);const J=P.opacity;r.options.inactiveOtherPoints&&uf(J)&&(i.dataLabels||[]).forEach(function(Y){Y&&!Y.hasClass("highcharts-data-label-hidden")&&(Y.animate({opacity:J},M),Y.connector&&Y.connector.animate({opacity:J},M))}),i.graphic.animate(P,M)}T&&i.graphic.animate(T,hf(b.options.chart.animation,u.animation,a.animation)),I&&I.hide()}else e&&u&&(L=m.symbol||r.symbol,I&&I.currentSymbol!==L&&(I=I.destroy()),T&&(I?I[t?"animate":"attr"]({x:T.x,y:T.y}):L&&(r.stateMarkerGraphic=I=b.renderer.symbol(L,T.x,T.y,T.width,T.height,VC(a,u)).add(r.markerGroup),I.currentSymbol=L)),!b.styledMode&&I&&i.state!=="inactive"&&I.attr(r.pointAttribs(i,e))),I&&(I[e&&i.isInside?"show":"hide"](),I.element.point=i,I.addClass(i.getClassName(),!0));const H=s.halo,W=i.graphic||I,G=W?.visibility||"inherit";H?.size&&W&&G!=="hidden"&&!i.isCluster?(E||(r.halo=E=b.renderer.path().add(W.parentGroup)),E.show()[t?"animate":"attr"]({d:i.haloPath(H.size)}),E.attr({class:"highcharts-halo highcharts-color-"+hf(i.colorIndex,r.colorIndex)+(i.className?" "+i.className:""),visibility:G,zIndex:-1}),E.point=i,b.styledMode||E.attr(Tp({fill:i.color||r.color,"fill-opacity":H.opacity},wu.filterUserAttributes(H.attributes||{})))):E?.point?.haloPath&&!E.point.destroyed&&E.animate({d:E.point.haloPath(0)},null,E.hide),Qv(i,"afterSetState",{state:e})}haloPath(e){const t=this.pos();return t?this.series.chart.renderer.symbols.circle(zB(t[0],1)-e,t[1]-e,e*2,e*2):[]}}const Tf=Rg,{parse:YB}=Jh,{charts:jv,composed:ZB,isTouchDevice:KB}=St,{addEvent:Sc,attr:JB,css:qv,extend:$v,find:UC,fireEvent:ff,isNumber:Rp,isObject:kp,objectEach:QB,offset:jB,pick:oh,pushUnique:qB,splat:XC}=lt;class uo{applyInactiveState(e=[]){const t=[];e.forEach(i=>{const r=i.series;t.push(r),r.linkedParent&&t.push(r.linkedParent),r.linkedSeries&&t.push.apply(t,r.linkedSeries),r.navigatorSeries&&t.push(r.navigatorSeries),r.boosted&&r.markerGroup&&t.push.apply(t,this.chart.series.filter(o=>o.markerGroup===r.markerGroup))});for(const i of this.chart.series){const r=i.options;r.states?.inactive?.enabled!==!1&&(t.indexOf(i)===-1?i.setState("inactive",!0):r.inactiveOtherPoints&&i.setAllPointsToState("inactive"))}}destroy(){const e=this;this.eventsToUnbind.forEach(t=>t()),this.eventsToUnbind=[],St.chartCount||(uo.unbindDocumentMouseUp.forEach(t=>t.unbind()),uo.unbindDocumentMouseUp.length=0,uo.unbindDocumentTouchEnd&&(uo.unbindDocumentTouchEnd=uo.unbindDocumentTouchEnd())),clearInterval(e.tooltipTimeout),QB(e,function(t,i){e[i]=void 0})}getSelectionMarkerAttrs(e,t){const i={args:{chartX:e,chartY:t},attrs:{},shapeType:"rect"};return ff(this,"getSelectionMarkerAttrs",i,r=>{const{chart:o,zoomHor:s,zoomVert:a}=this,{mouseDownX:l=0,mouseDownY:u=0}=o,g=r.attrs;let m;g.x=o.plotLeft,g.y=o.plotTop,g.width=s?1:o.plotWidth,g.height=a?1:o.plotHeight,s&&(m=e-l,g.width=Math.max(1,Math.abs(m)),g.x=(m>0?0:m)+l),a&&(m=t-u,g.height=Math.max(1,Math.abs(m)),g.y=(m>0?0:m)+u)}),i}drag(e){const{chart:t}=this,{mouseDownX:i=0,mouseDownY:r=0}=t,{panning:o,panKey:s,selectionMarkerFill:a}=t.options.chart,l=t.plotLeft,u=t.plotTop,g=t.plotWidth,m=t.plotHeight,b=kp(o)?o.enabled:o,w=s&&e[`${s}Key`];let E=e.chartX,T=e.chartY,P,M=this.selectionMarker;if(!(M&&M.touch)&&(E<l?E=l:E>l+g&&(E=l+g),T<u?T=u:T>u+m&&(T=u+m),this.hasDragged=Math.sqrt(Math.pow(i-E,2)+Math.pow(r-T,2)),this.hasDragged>10)){P=t.isInsidePlot(i-l,r-u,{visiblePlotOnly:!0});const{shapeType:I,attrs:L}=this.getSelectionMarkerAttrs(E,T);this.hasZoom&&P&&!w&&(M||(this.selectionMarker=M=t.renderer[I](),M.attr({class:"highcharts-selection-marker",zIndex:7}).add(),t.styledMode||M.attr({fill:a||YB("#334eff").setOpacity(.25).get()}))),M&&M.attr(L),P&&!M&&b&&t.pan(e,o)}}dragStart(e){const t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=e.chartX,t.mouseDownY=e.chartY}getSelectionBox(e){const t={args:{marker:e},result:e.getBBox()};return ff(this,"getSelectionBox",t),t.result}drop(e){const{chart:t,selectionMarker:i}=this;let r;for(const o of t.axes)o.isPanning&&(o.isPanning=!1,(o.options.startOnTick||o.options.endOnTick||o.series.some(s=>s.boosted))&&(o.forceRedraw=!0,o.setExtremes(o.userMin,o.userMax,!1),r=!0));if(r&&t.redraw(),i&&e){if(this.hasDragged){const o=this.getSelectionBox(i);t.transform({axes:t.axes.filter(s=>s.zoomEnabled&&(s.coll==="xAxis"&&this.zoomX||s.coll==="yAxis"&&this.zoomY)),selection:{originalEvent:e,xAxis:[],yAxis:[],...o},from:o})}Rp(t.index)&&(this.selectionMarker=i.destroy())}t&&Rp(t.index)&&(qv(t.container,{cursor:t._cursor}),t.cancelClick=this.hasDragged>10,t.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)}findNearestKDPoint(e,t,i){let r;function o(s,a){const l=s.distX-a.distX,u=s.dist-a.dist,g=a.series.group?.zIndex-s.series.group?.zIndex;let m;return l!==0&&t?m=l:u!==0?m=u:g!==0?m=g:m=s.series.index>a.series.index?-1:1,m}return e.forEach(function(s){const a=s.noSharedTooltip&&t,l=!a&&s.options.findNearestPointBy.indexOf("y")<0,u=s.searchPoint(i,l);kp(u,!0)&&u.series&&(!kp(r,!0)||o(r,u)>0)&&(r=u)}),r}getChartCoordinatesFromPoint(e,t){const{xAxis:i,yAxis:r}=e.series,o=e.shapeArgs;if(i&&r){let s=e.clientX??e.plotX??0,a=e.plotY||0;return e.isNode&&o&&Rp(o.x)&&Rp(o.y)&&(s=o.x,a=o.y),t?{chartX:r.len+r.pos-a,chartY:i.len+i.pos-s}:{chartX:s+i.pos,chartY:a+r.pos}}if(o?.x&&o.y)return{chartX:o.x,chartY:o.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;const{container:e}=this.chart,t=jB(e);this.chartPosition={left:t.left,top:t.top,scaleX:1,scaleY:1};const{offsetHeight:i,offsetWidth:r}=e;return r>2&&i>2&&(this.chartPosition.scaleX=t.width/r,this.chartPosition.scaleY=t.height/i),this.chartPosition}getCoordinates(e){const t={xAxis:[],yAxis:[]};for(const i of this.chart.axes)t[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(e[i.horiz?"chartX":"chartY"])});return t}getHoverData(e,t,i,r,o,s){const a=[],l=!!(r&&e),u=function(T){return T.visible&&!(!o&&T.directTouch)&&oh(T.options.enableMouseTracking,!0)};let g=t,m,b={chartX:s?s.chartX:void 0,chartY:s?s.chartY:void 0,shared:o};ff(this,"beforeGetHoverData",b),m=g&&!g.stickyTracking?[g]:i.filter(T=>T.stickyTracking&&(b.filter||u)(T));const E=l||!s?e:this.findNearestKDPoint(m,o,s);return g=E?.series,E&&(o&&!g.noSharedTooltip?(m=i.filter(function(T){return b.filter?b.filter(T):u(T)&&!T.noSharedTooltip}),m.forEach(function(T){const P=T.options?.nullInteraction;let M=UC(T.points,function(I){return I.x===E.x&&(!I.isNull||!!P)});kp(M)&&(T.boosted&&T.boost&&(M=T.boost.getPoint(M)),a.push(M))})):a.push(E)),b={hoverPoint:E},ff(this,"afterGetHoverData",b),{hoverPoint:b.hoverPoint,hoverSeries:g,hoverPoints:a}}getPointFromEvent(e){let t=e.target,i;for(;t&&!i;)i=t.point,t=t.parentNode;return i}onTrackerMouseOut(e){const t=this.chart,i=e.relatedTarget,r=t.hoverSeries;this.isDirectTouch=!1,r&&i&&!r.stickyTracking&&!this.inClass(i,"highcharts-tooltip")&&(!this.inClass(i,"highcharts-series-"+r.index)||!this.inClass(i,"highcharts-tracker"))&&r.onMouseOut()}inClass(e,t){let i=e,r;for(;i;){if(r=JB(i,"class"),r){if(r.indexOf(t)!==-1)return!0;if(r.indexOf("highcharts-container")!==-1)return!1}i=i.parentElement}}constructor(e,t){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=t,this.chart=e,this.runChartClick=!!t.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),ff(this,"afterInit")}normalize(e,t){const i=e.touches,r=i?i.length?i.item(0):oh(i.changedTouches,e.changedTouches)[0]:e;t||(t=this.getChartPosition());let o=r.pageX-t.left,s=r.pageY-t.top;return o/=t.scaleX,s/=t.scaleY,$v(e,{chartX:Math.round(o),chartY:Math.round(s)})}onContainerClick(e){const t=this.chart,i=t.hoverPoint,r=this.normalize(e),o=t.plotLeft,s=t.plotTop;t.cancelClick||(i&&this.inClass(r.target,"highcharts-tracker")?(ff(i.series,"click",$v(r,{point:i})),t.hoverPoint&&i.firePointEvent("click",r)):($v(r,this.getCoordinates(r)),t.isInsidePlot(r.chartX-o,r.chartY-s,{visiblePlotOnly:!0})&&ff(t,"click",r)))}onContainerMouseDown(e){const t=((e.buttons||e.button)&1)===1;e=this.normalize(e),St.isFirefox&&e.button!==0&&this.onContainerMouseMove(e),(typeof e.button>"u"||t)&&(this.zoomOption(e),t&&e.preventDefault?.(),this.dragStart(e))}onContainerMouseLeave(e){const{pointer:t}=jv[oh(uo.hoverChartIndex,-1)]||{};e=this.normalize(e),this.onContainerMouseMove(e),t&&!this.inClass(e.relatedTarget,"highcharts-tooltip")&&(t.reset(),t.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(e){const t=this.chart,i=t.tooltip,r=this.normalize(e);this.setHoverChartIndex(e),(t.mouseIsDown==="mousedown"||this.touchSelect(r))&&this.drag(r),!t.exporting?.openMenu&&(this.inClass(r.target,"highcharts-tracker")||t.isInsidePlot(r.chartX-t.plotLeft,r.chartY-t.plotTop,{visiblePlotOnly:!0}))&&!i?.shouldStickOnContact(r)&&(this.inClass(r.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(r))}onDocumentTouchEnd(e){this.onDocumentMouseUp(e)}onContainerTouchMove(e){this.touchSelect(e)?this.onContainerMouseMove(e):this.touch(e)}onContainerTouchStart(e){this.touchSelect(e)?this.onContainerMouseDown(e):(this.zoomOption(e),this.touch(e,!0))}onDocumentMouseMove(e){const t=this.chart,i=t.tooltip,r=this.chartPosition,o=this.normalize(e,r);r&&!t.isInsidePlot(o.chartX-t.plotLeft,o.chartY-t.plotTop,{visiblePlotOnly:!0})&&!i?.shouldStickOnContact(o)&&(o.target===t.container.ownerDocument||!this.inClass(o.target,"highcharts-tracker"))&&this.reset()}onDocumentMouseUp(e){e?.touches&&this.hasPinchMoved&&e?.preventDefault?.(),jv[oh(uo.hoverChartIndex,-1)]?.pointer?.drop(e)}pinch(e){const t=this,{chart:i,hasZoom:r,lastTouches:o}=t,s=[].map.call(e.touches||[],m=>t.normalize(m)),a=s.length,l=a===1&&(t.inClass(e.target,"highcharts-tracker")&&i.runTrackerClick||t.runChartClick),u=i.tooltip,g=a===1&&oh(u?.options.followTouchMove,!0);a>1?t.initiated=!0:g&&(t.initiated=!1),r&&t.initiated&&!l&&e.cancelable!==!1&&e.preventDefault(),e.type==="touchstart"?(t.pinchDown=s,t.res=!0,i.mouseDownX=e.chartX):g?this.runPointActions(t.normalize(e)):o&&(ff(i,"touchpan",{originalEvent:e,touches:s},()=>{const m=b=>{const w=b[0],E=b[1]||w;return{x:w.chartX,y:w.chartY,width:E.chartX-w.chartX,height:E.chartY-w.chartY}};i.transform({axes:i.axes.filter(b=>b.zoomEnabled&&(this.zoomHor&&b.horiz||this.zoomVert&&!b.horiz)),to:m(s),from:m(o),trigger:e.type})}),t.res&&(t.res=!1,this.reset(!1,0))),t.lastTouches=s}reset(e,t){const i=this,r=i.chart,o=r.hoverSeries,s=r.hoverPoint,a=r.hoverPoints,l=r.tooltip,u=l?.shared?a:s;e&&u&&XC(u).forEach(function(g){g.series.isCartesian&&typeof g.plotX>"u"&&(e=!1)}),e?l&&u&&XC(u).length&&(l.refresh(u),l.shared&&a?a.forEach(function(g){g.setState(g.state,!0),g.series.isCartesian&&(g.series.xAxis.crosshair&&g.series.xAxis.drawCrosshair(null,g),g.series.yAxis.crosshair&&g.series.yAxis.drawCrosshair(null,g))}):s&&(s.setState(s.state,!0),r.axes.forEach(function(g){g.crosshair&&s.series[g.coll]===g&&g.drawCrosshair(null,s)}))):(s&&s.onMouseOut(),a&&a.forEach(function(g){g.setState()}),o&&o.onMouseOut(),l&&l.hide(t),i.unDocMouseMove&&(i.unDocMouseMove=i.unDocMouseMove()),r.axes.forEach(function(g){g.hideCrosshair()}),r.hoverPoints=r.hoverPoint=void 0)}runPointActions(e,t,i){const r=this,o=r.chart,s=o.series,a=o.tooltip?.options.enabled?o.tooltip:void 0,l=a?a.shared:!1;let u=t||o.hoverPoint,g=u?.series||o.hoverSeries;const m=(!e||e.type!=="touchmove")&&(!!t||g?.directTouch&&r.isDirectTouch),b=this.getHoverData(u,g,s,m,l,e);u=b.hoverPoint,g=b.hoverSeries;const w=b.hoverPoints,E=g?.tooltipOptions.followPointer&&!g.tooltipOptions.split,T=l&&g&&!g.noSharedTooltip;if(u&&(i||u!==o.hoverPoint||a?.isHidden)){if((o.hoverPoints||[]).forEach(function(P){w.indexOf(P)===-1&&P.setState()}),o.hoverSeries!==g&&g.onMouseOver(),r.applyInactiveState(w),(w||[]).forEach(function(P){P.setState("hover")}),o.hoverPoint&&o.hoverPoint.firePointEvent("mouseOut"),!u.series)return;o.hoverPoints=w,o.hoverPoint=u,u.firePointEvent("mouseOver",void 0,()=>{a&&u&&a.refresh(T?w:u,e)})}else if(E&&a&&!a.isHidden){const P=a.getAnchor([{}],e);o.isInsidePlot(P[0],P[1],{visiblePlotOnly:!0})&&a.updatePosition({plotX:P[0],plotY:P[1]})}r.unDocMouseMove||(r.unDocMouseMove=Sc(o.container.ownerDocument,"mousemove",P=>jv[uo.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(P)),r.eventsToUnbind.push(r.unDocMouseMove)),o.axes.forEach(function(M){const I=M.crosshair?.snap??!0;let L;I&&(L=o.hoverPoint,(!L||L.series[M.coll]!==M)&&(L=UC(w,H=>H.series?.[M.coll]===M))),L||!I?M.drawCrosshair(e,L):M.hideCrosshair()})}setDOMEvents(){const e=this.chart.container,t=e.ownerDocument;e.onmousedown=this.onContainerMouseDown.bind(this),e.onmousemove=this.onContainerMouseMove.bind(this),e.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(Sc(e,"mouseenter",this.onContainerMouseEnter.bind(this)),Sc(e,"mouseleave",this.onContainerMouseLeave.bind(this))),uo.unbindDocumentMouseUp.some(r=>r.doc===t)||uo.unbindDocumentMouseUp.push({doc:t,unbind:Sc(t,"mouseup",this.onDocumentMouseUp.bind(this))});let i=this.chart.renderTo.parentElement;for(;i&&i.tagName!=="BODY";)this.eventsToUnbind.push(Sc(i,"scroll",()=>{delete this.chartPosition})),i=i.parentElement;this.eventsToUnbind.push(Sc(e,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),Sc(e,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),uo.unbindDocumentTouchEnd||(uo.unbindDocumentTouchEnd=Sc(t,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),Sc(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!KB)return;const e=this,t=e.pointerCaptureEventsToUnbind,i=e.chart,r=i.container,o=oh(i.options.tooltip?.followTouchMove,!0),s=o&&i.series.some(a=>a.options.findNearestPointBy.indexOf("y")>-1);!e.hasPointerCapture&&s?(t.push(Sc(r,"pointerdown",a=>{a.target?.hasPointerCapture(a.pointerId)&&a.target?.releasePointerCapture(a.pointerId)}),Sc(r,"pointermove",a=>{i.pointer?.getPointFromEvent(a)?.onMouseOver(a)})),i.styledMode||qv(r,{"touch-action":"none"}),r.className+=" highcharts-no-touch-action",e.hasPointerCapture=!0):e.hasPointerCapture&&!s&&(t.forEach(a=>a()),t.length=0,i.styledMode||qv(r,{"touch-action":oh(i.options.chart.style?.["touch-action"],"manipulation")}),r.className=r.className.replace(" highcharts-no-touch-action",""),e.hasPointerCapture=!1)}setHoverChartIndex(e){const t=this.chart,i=St.charts[oh(uo.hoverChartIndex,-1)];if(i&&i!==t){const r={relatedTarget:t.container};e&&!e?.relatedTarget&&Object.assign({},e,r),i.pointer?.onContainerMouseLeave(e||r)}i?.mouseIsDown||(uo.hoverChartIndex=t.index)}touch(e,t){const{chart:i,pinchDown:r=[]}=this;let o,s;this.setHoverChartIndex(),e=this.normalize(e),e.touches.length===1?(s=i.isInsidePlot(e.chartX-i.plotLeft,e.chartY-i.plotTop,{visiblePlotOnly:!0}),s&&!i.exporting?.openMenu?(t&&this.runPointActions(e),e.type==="touchmove"&&(this.hasPinchMoved=o=r[0]?Math.pow(r[0].chartX-e.chartX,2)+Math.pow(r[0].chartY-e.chartY,2)>=16:!1),oh(o,!0)&&this.pinch(e)):t&&this.reset()):e.touches.length===2&&this.pinch(e)}touchSelect(e){return!!(this.chart.zooming.singleTouch&&e.touches&&e.touches.length===1)}zoomOption(e){const t=this.chart,i=t.inverted;let r=t.zooming.type||"",o,s;/touch/.test(e.type)&&(r=oh(t.zooming.pinchType,r)),this.zoomX=o=/x/.test(r),this.zoomY=s=/y/.test(r),this.zoomHor=o&&!i||s&&i,this.zoomVert=s&&!i||o&&i,this.hasZoom=o||s}}uo.unbindDocumentMouseUp=[];(function(n){function e(t){qB(ZB,"Core.Pointer")&&Sc(t,"beforeRender",function(){this.pointer=new n(this,this.options)})}n.compose=e})(uo||(uo={}));const IE=uo;var yb;(function(n){function e(i,r,o){return Array.isArray(i)?(i.length=r,i):i[o?"subarray":"slice"](0,r)}n.setLength=e;function t(i,r,o,s,a=[]){if(Array.isArray(i))return Array.isArray(a)||(a=Array.from(a)),{removed:i.splice(r,o,...a),array:i};const l=Object.getPrototypeOf(i).constructor,u=i[s?"subarray":"slice"](r,r+o),g=i.length-o+a.length,m=new l(g);return m.set(i.subarray(0,r),0),m.set(a,r),m.set(i.subarray(r+o),r+a.length),{removed:u,array:m}}n.splice=t})(yb||(yb={}));const $B=yb,{setLength:e5,splice:YC}=$B,{fireEvent:ey,objectEach:cg,uniqueKey:ug}=lt;class t5{constructor(e={}){this.autoId=!e.id,this.columns={},this.id=e.id||ug(),this.modified=this,this.rowCount=0,this.versionTag=ug();let t=0;cg(e.columns||{},(i,r)=>{this.columns[r]=i.slice(),t=Math.max(t,i.length)}),this.applyRowCount(t)}applyRowCount(e){this.rowCount=e,cg(this.columns,(t,i)=>{t.length!==e&&(this.columns[i]=e5(t,e))})}deleteRows(e,t=1){if(t>0&&e<this.rowCount){let i=0;cg(this.columns,(r,o)=>{this.columns[o]=YC(r,e,t).array,i=r.length}),this.rowCount=i}ey(this,"afterDeleteRows",{rowIndex:e,rowCount:t}),this.versionTag=ug()}getColumn(e,t){return this.columns[e]}getColumns(e,t){return(e||Object.keys(this.columns)).reduce((i,r)=>(i[r]=this.columns[r],i),{})}getRow(e,t){return(t||Object.keys(this.columns)).map(i=>this.columns[i]?.[e])}setColumn(e,t=[],i=0,r){this.setColumns({[e]:t},i,r)}setColumns(e,t,i){let r=this.rowCount;cg(e,(o,s)=>{this.columns[s]=o.slice(),r=o.length}),this.applyRowCount(r),i?.silent||(ey(this,"afterSetColumns"),this.versionTag=ug())}setRow(e,t=this.rowCount,i,r){const{columns:o}=this,s=i?this.rowCount+1:t+1;cg(e,(a,l)=>{let u=o[l]||r?.addColumns!==!1&&new Array(s);u&&(i?u=YC(u,t,0,!0,[a]).array:u[t]=a,o[l]=u)}),s>this.rowCount&&this.applyRowCount(s),r?.silent||(ey(this,"afterSetRows"),this.versionTag=ug())}}const qp=t5,{extend:n5,merge:i5,pick:ZC}=lt;var bb;(function(n){function e(r,o){t.call(this,r,o,!0)}n.areaMarker=e;function t(r,o,s){const a=this.legendItem=this.legendItem||{},{chart:l,options:u}=this,{baseline:g=0,symbolWidth:m,symbolHeight:b}=r,w=this.symbol||"circle",E=b/2,T=l.renderer,P=a.group,M=g-Math.round((r.fontMetrics?.b||b)*(s?.4:.3)),I={};let L,H=u.marker,W=0;if(l.styledMode||(I["stroke-width"]=Math.min(u.lineWidth||0,24),u.dashStyle?I.dashstyle=u.dashStyle:u.linecap!=="square"&&(I["stroke-linecap"]="round")),a.line=T.path().addClass("highcharts-graph").attr(I).add(P),s&&(a.area=T.path().addClass("highcharts-area").add(P)),I["stroke-linecap"]&&(W=Math.min(a.line.strokeWidth(),m)/2),m){const G=[["M",W,M],["L",m-W,M]];a.line.attr({d:G}),a.area?.attr({d:[...G,["L",m-W,g],["L",W,g]]})}if(H&&H.enabled!==!1&&m){let G=Math.min(ZC(H.radius,E),E);w.indexOf("url")===0&&(H=i5(H,{width:b,height:b}),G=0),a.symbol=L=T.symbol(w,m/2-G,M-G,2*G,2*G,n5({context:"legend"},H)).addClass("highcharts-point").add(P),L.isMarker=!0}}n.lineMarker=t;function i(r,o){const s=o.legendItem||{},a=r.options,l=r.symbolHeight,u=a.squareSymbol,g=u?l:r.symbolWidth;s.symbol=this.chart.renderer.rect(u?(r.symbolWidth-l)/2:0,r.baseline-l+1,g,l,ZC(r.options.symbolRadius,l/2)).addClass("highcharts-point").attr({zIndex:3}).add(s.group)}n.rectangle=i})(bb||(bb={}));const DE=bb,r5={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){const{numberFormatter:n}=this.series.chart;return typeof this.y!="number"?"":n(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},o5=r5,{defaultOptions:KC}=Pc,{extend:s5,extendClass:a5,merge:l5}=lt;var xb;(function(n){n.seriesTypes=St.seriesTypes;function e(i,r){const o=KC.plotOptions||{},s=r.defaultOptions,a=r.prototype;return a.type=i,a.pointClass||(a.pointClass=Tf),n.seriesTypes[i]?!1:(s&&(o[i]=s),n.seriesTypes[i]=r,!0)}n.registerSeriesType=e;function t(i,r,o,s,a){const l=KC.plotOptions||{};r=r||"",l[i]=l5(l[r],o),delete n.seriesTypes[i];const u=n.seriesTypes[r]||Ja,g=a5(u,s);if(e(i,g),n.seriesTypes[i].prototype.type=i,a){class m extends Tf{}s5(m.prototype,a),n.seriesTypes[i].prototype.pointClass=m}return n.seriesTypes[i]}n.seriesType=t})(xb||(xb={}));const rr=xb,{animObject:JC,setAnimation:c5}=$o,{defaultOptions:Pp}=Pc,{registerEventOptions:u5}=Om,{svg:h5,win:f5}=St,{seriesTypes:xd}=rr,{format:d5}=Mc,{arrayMax:ty,arrayMin:QC,clamp:jC,correctFloat:qC,crisp:g5,defined:Gr,destroyObjectProperties:p5,diffObjects:m5,erase:$C,error:Mp,extend:Cd,find:v5,fireEvent:Fi,getClosestDistance:y5,getNestedProperty:eS,insertItem:tS,isArray:nS,isNumber:co,isString:b5,merge:hg,objectEach:ny,pick:Li,removeEvent:x5,syncTimeout:iS}=lt;let Rf=class wb{constructor(){this.zoneAxis="y"}init(e,t){Fi(this,"init",{options:t}),this.dataTable??(this.dataTable=new qp);const i=this,r=e.series;this.eventsToUnbind=[],i.chart=e,i.options=i.setOptions(t);const o=i.options,s=o.visible!==!1;i.linkedSeries=[],i.bindAxes(),Cd(i,{name:o.name,state:"",visible:s,selected:o.selected===!0}),u5(this,o),(o.events?.click||o.point?.events?.click||o.allowPointSelect)&&(e.runTrackerClick=!0),i.getColor(),i.getSymbol(),i.isCartesian&&(e.hasCartesianSeries=!0);let l;r.length&&(l=r[r.length-1]),i._i=Li(l?._i,-1)+1,i.opacity=i.options.opacity,e.orderItems("series",tS(this,r)),o.dataSorting?.enabled?i.setDataSortingOptions():!i.points&&!i.data&&i.setData(o.data,!1),Fi(this,"afterInit")}is(e){return xd[e]&&this instanceof xd[e]}bindAxes(){const e=this,t=e.options,i=e.chart;let r;Fi(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(o){(i[o]||[]).forEach(function(s){r=s.options,(Li(t[o],0)===s.index||typeof t[o]<"u"&&t[o]===r.id)&&(tS(e,s.series),e[o]=s,s.isDirty=!0)}),!e[o]&&e.optionalAxis!==o&&Mp(18,!0,i)})}),Fi(this,"afterBindAxes")}hasData(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(e,t){const i=e.marker,r=t.marker||{};return i&&(r.enabled&&!i.enabled||r.symbol!==i.symbol||r.height!==i.height||r.width!==i.width)}autoIncrement(e){const t=this.options,{pointIntervalUnit:i,relativeXValue:r}=this.options,o=this.chart.time,s=this.xIncrement??o.parse(t.pointStart)??0;let a;if(this.pointInterval=a=Li(this.pointInterval,t.pointInterval,1),r&&co(e)&&(a*=e),i){const l=o.toParts(s);i==="day"?l[2]+=a:i==="month"?l[1]+=a:i==="year"&&(l[0]+=a),a=o.makeTime.apply(o,l)-s}return r&&co(e)?s+a:(this.xIncrement=s+a,s)}setDataSortingOptions(){const e=this.options;Cd(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),Gr(e.pointRange)||(e.pointRange=1)}setOptions(e){const t=this.chart,i=t.options,r=i.plotOptions,o=t.userOptions||{},s=hg(e),a=t.styledMode,l={plotOptions:r,userOptions:s};let u;Fi(this,"setOptions",l);const g=l.plotOptions[this.type],m=o.plotOptions||{},b=m.series||{},w=Pp.plotOptions[this.type]||{},E=m[this.type]||{};g.dataLabels=this.mergeArrays(w.dataLabels,g.dataLabels),this.userOptions=l.userOptions;const T=hg(g,r.series,E,s);this.tooltipOptions=hg(Pp.tooltip,Pp.plotOptions.series?.tooltip,w?.tooltip,t.userOptions.tooltip,m.series?.tooltip,E.tooltip,s.tooltip),this.stickyTracking=Li(s.stickyTracking,E.stickyTracking,b.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:T.stickyTracking),g.marker===null&&delete T.marker,this.zoneAxis=T.zoneAxis||"y";const P=this.zones=(T.zones||[]).map(M=>({...M}));return(T.negativeColor||T.negativeFillColor)&&!T.zones&&(u={value:T[this.zoneAxis+"Threshold"]||T.threshold||0,className:"highcharts-negative"},a||(u.color=T.negativeColor,u.fillColor=T.negativeFillColor),P.push(u)),P.length&&Gr(P[P.length-1].value)&&P.push(a?{}:{color:this.color,fillColor:this.fillColor}),Fi(this,"afterSetOptions",{options:T}),T}getName(){return this.options.name??d5(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(e,t,i){const r=this.chart,o=`${e}Index`,s=`${e}Counter`,a=i?.length||r.options.chart.colorCount;let l,u;t||(u=Li(e==="color"?this.options.colorIndex:void 0,this[o]),Gr(u)?l=u:(r.series.length||(r[s]=0),l=r[s]%a,r[s]+=1),i&&(t=i[l])),typeof l<"u"&&(this[o]=l),this[e]=t}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||Pp.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){const e=this.options.marker;this.getCyclic("symbol",e.symbol,this.chart.options.symbols)}getColumn(e,t){return(t?this.dataTable.modified:this.dataTable).getColumn(e,!0)||[]}findPointIndex(e,t){const{id:i,x:r}=e,o=this.points,s=this.options.dataSorting,a=this.cropStart||0;let l,u,g;if(i){const m=this.chart.get(i);m instanceof Tf&&(l=m)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let m=b=>!b.touched&&b.index===e.index;if(s?.matchByName?m=b=>!b.touched&&b.name===e.name:this.options.relativeXValue&&(m=b=>!b.touched&&b.options.x===e.x),l=v5(o,m),!l)return}return l&&(g=l?.index,typeof g<"u"&&(u=!0)),typeof g>"u"&&co(r)&&(g=this.getColumn("x").indexOf(r,t)),g!==-1&&typeof g<"u"&&this.cropped&&(g=g>=a?g-a:g),!u&&co(g)&&o[g]?.touched&&(g=void 0),g}updateData(e,t){const{options:i,requireSorting:r}=this,o=i.dataSorting,s=this.points,a=[],l=e.length===s.length;let u,g,m,b,w=!0;if(this.xIncrement=null,e.forEach((T,P)=>{const M=Gr(T)&&this.pointClass.prototype.optionsToObject.call({series:this},T)||{},{id:I,x:L}=M;let H;I||co(L)?(H=this.findPointIndex(M,b),H===-1||typeof H>"u"?a.push(T):s[H]&&T!==i.data?.[H]?(s[H].update(T,!1,void 0,!1),s[H].touched=!0,r&&(b=H+1)):s[H]&&(s[H].touched=!0),(!l||P!==H||o?.enabled||this.hasDerivedData)&&(u=!0)):a.push(T)},this),u)for(g=s.length;g--;)m=s[g],m&&!m.touched&&m.remove?.(!1,t);else l&&!o?.enabled?(e.forEach((T,P)=>{T!==s[P].y&&!s[P].destroyed&&s[P].update(T,!1,void 0,!1)}),a.length=0):w=!1;if(s.forEach(T=>{T&&(T.touched=!1)}),!w)return!1;a.forEach(T=>{this.addPoint(T,!1,void 0,void 0,!1)},this);const E=this.getColumn("x");return this.xIncrement===null&&E.length&&(this.xIncrement=ty(E),this.autoIncrement()),!0}dataColumnKeys(){return["x",...this.pointArrayMap||["y"]]}setData(e,t=!0,i,r){const o=this,s=o.points,a=s?.length||0,l=o.options,u=o.chart,g=l.dataSorting,m=o.xAxis,b=l.turboThreshold,w=this.dataTable,E=this.dataColumnKeys(),T=o.pointValKey||"y",P=o.pointArrayMap||[],M=P.length,I=l.keys;let L,H,W=0,G=1,J;u.options.chart.allowMutatingData||(l.data&&delete o.options.data,o.userOptions.data&&delete o.userOptions.data,J=hg(!0,e)),e=J||e||[];const Y=e.length;if(g?.enabled&&(e=this.sortData(e)),u.options.chart.allowMutatingData&&r!==!1&&Y&&a&&!o.cropped&&!o.hasGroupedData&&o.visible&&!o.boosted&&(H=this.updateData(e,i)),!H){o.xIncrement=null,o.colorCounter=0;let $=b&&!l.relativeXValue&&Y>b;if($){const re=o.getFirstValidPoint(e),be=o.getFirstValidPoint(e,Y-1,-1),we=Ee=>!!(nS(Ee)&&(I||co(Ee[0])));if(co(re)&&co(be)){const Ee=[],pe=[];for(const me of e)Ee.push(this.autoIncrement()),pe.push(me);w.setColumns({x:Ee,[T]:pe})}else if(we(re)&&we(be))if(M){const Ee=re.length===M?1:0,pe=new Array(E.length).fill(0).map(()=>[]);for(const me of e){Ee&&pe[0].push(this.autoIncrement());for(let ee=Ee;ee<=M;ee++)pe[ee]?.push(me[ee-Ee])}w.setColumns(E.reduce((me,ee,q)=>(me[ee]=pe[q],me),{}))}else{I&&(W=I.indexOf("x"),G=I.indexOf("y"),W=W>=0?W:0,G=G>=0?G:1),re.length===1&&(G=0);const Ee=[],pe=[];if(W===G)for(const me of e)Ee.push(this.autoIncrement()),pe.push(me[G]);else for(const me of e)Ee.push(me[W]),pe.push(me[G]);w.setColumns({x:Ee,[T]:pe})}else $=!1}if(!$){const re=E.reduce((be,we)=>(be[we]=[],be),{});for(L=0;L<Y;L++){const be=o.pointClass.prototype.applyOptions.apply({series:o},[e[L]]);for(const we of E)re[we][L]=be[we]}w.setColumns(re)}for(b5(this.getColumn("y")[0])&&Mp(14,!0,u),o.data=[],o.options.data=o.userOptions.data=e,L=a;L--;)s[L]?.destroy();m&&(m.minRange=m.userMinRange),o.isDirty=u.isDirtyBox=!0,o.isDirtyData=!!s,i=!1}l.legendType==="point"&&(this.processData(),this.generatePoints()),t&&u.redraw(i)}sortData(e){const t=this,i=t.options,r=i.dataSorting,o=r.sortKey||"y",s=function(l,u){return Gr(u)&&l.pointClass.prototype.optionsToObject.call({series:l},u)||{}};return e.forEach(function(l,u){e[u]=s(t,l),e[u].index=u},this),e.concat().sort((l,u)=>{const g=eS(o,l),m=eS(o,u);return m<g?-1:m>g?1:0}).forEach(function(l,u){l.x=u},this),t.linkedSeries&&t.linkedSeries.forEach(function(l){const u=l.options,g=u.data;!u.dataSorting?.enabled&&g&&(g.forEach(function(m,b){g[b]=s(l,m),e[b]&&(g[b].x=e[b].x,g[b].index=b)}),l.setData(g,!1))}),e}getProcessedData(e){const t=this,{dataTable:i,isCartesian:r,options:o,xAxis:s}=t,a=o.cropThreshold,l=e||t.getExtremesFromAll,u=s?.logarithmic,g=i.rowCount;let m,b,w=0,E,T,P,M=t.getColumn("x"),I=i,L=!1;s&&(E=s.getExtremes(),T=E.min,P=E.max,L=!!(s.categories&&!s.names.length),r&&t.sorted&&!l&&(!a||g>a||t.forceCrop)&&(M[g-1]<T||M[0]>P?I=new qp:t.getColumn(t.pointValKey||"y").length&&(M[0]<T||M[g-1]>P)&&(m=this.cropData(i,T,P),I=m.modified,w=m.start,b=!0))),M=I.getColumn("x")||[];const H=y5([u?M.map(u.log2lin):M],()=>t.requireSorting&&!L&&Mp(15,!1,t.chart));return{modified:I,cropped:b,cropStart:w,closestPointRange:H}}processData(e){const t=this,i=t.xAxis,r=t.dataTable;if(t.isCartesian&&!t.isDirty&&!i.isDirty&&!t.yAxis.isDirty&&!e)return!1;const o=t.getProcessedData();r.modified=o.modified,t.cropped=o.cropped,t.cropStart=o.cropStart,t.closestPointRange=t.basePointRange=o.closestPointRange,Fi(t,"afterProcessData")}cropData(e,t,i){const r=e.getColumn("x",!0)||[],o=r.length,s={};let a,l,u=0,g=o;for(a=0;a<o;a++)if(r[a]>=t){u=Math.max(0,a-1);break}for(l=a;l<o;l++)if(r[l]>i){g=l+1;break}for(const m of this.dataColumnKeys()){const b=e.getColumn(m,!0);b&&(s[m]=b.slice(u,g))}return{modified:new qp({columns:s}),start:u,end:g}}generatePoints(){const e=this,t=e.options,i=e.processedData||t.data,r=e.dataTable.modified,o=e.getColumn("x",!0),s=e.pointClass,a=r.rowCount,l=e.cropStart||0,u=e.hasGroupedData,g=t.keys,m=[],b=t.dataGrouping?.groupAll?l:0,w=e.xAxis?.categories,E=e.pointArrayMap||["y"],T=this.dataColumnKeys();let P,M,I,L,H=e.data,W;if(!H&&!u){const G=[];G.length=i?.length||0,H=e.data=G}for(g&&u&&(e.options.keys=!1),L=0;L<a;L++)M=l+L,u?(I=new s(e,r.getRow(L,T)||[]),I.dataGroup=e.groupMap[b+L],I.dataGroup?.options&&(I.options=I.dataGroup.options,Cd(I,I.dataGroup.options),delete I.dataLabels)):(I=H[M],W=i?i[M]:r.getRow(L,E),!I&&W!==void 0&&(H[M]=I=new s(e,W,o[L]))),I&&(I.index=u?b+L:M,m[L]=I,I.category=w?.[I.x]??I.x,I.key=I.name??I.category);if(e.options.keys=g,H&&(a!==(P=H.length)||u))for(L=0;L<P;L++)L===l&&!u&&(L+=a),H[L]&&(H[L].destroyElements(),H[L].plotX=void 0);e.data=H,e.points=m,Fi(this,"afterGeneratePoints")}getXExtremes(e){return{min:QC(e),max:ty(e)}}getExtremes(e,t){const{xAxis:i,yAxis:r}=this,o=t||this.getExtremesFromAll||this.options.getExtremesFromAll,s=o&&this.cropped?this.dataTable:this.dataTable.modified,a=s.rowCount,l=e||this.stackedYData,u=l?[l]:(this.keysAffectYAxis||this.pointArrayMap||["y"])?.map(W=>s.getColumn(W,!0)||[])||[],g=this.getColumn("x",!0),m=[],b=this.requireSorting&&!this.is("column")?1:0,w=r?r.positiveValuesOnly:!1,E=o||this.cropped||!i;let T,P,M,I=0,L=0;for(i&&(T=i.getExtremes(),I=T.min,L=T.max),M=0;M<a;M++)if(P=g[M],E||(g[M+b]||P)>=I&&(g[M-b]||P)<=L)for(const W of u){const G=W[M];co(G)&&(G>0||!w)&&m.push(G)}const H={activeYData:m,dataMin:QC(m),dataMax:ty(m)};return Fi(this,"afterGetExtremes",{dataExtremes:H}),H}applyExtremes(){const e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e}getFirstValidPoint(e,t=0,i=1){const r=e.length;let o=t;for(;o>=0&&o<r;){if(Gr(e[o]))return e[o];o+=i}}translate(){this.generatePoints();const e=this,t=e.options,i=t.stacking,r=e.xAxis,o=e.enabledDataSorting,s=e.yAxis,a=e.points,l=a.length,u=e.pointPlacementToXValue(),g=!!u,m=t.threshold,b=t.startFromThreshold?m:0,w=t?.nullInteraction&&s.len;let E,T,P,M,I=Number.MAX_VALUE;function L(H){return jC(H,-1e9,1e9)}for(E=0;E<l;E++){const H=a[E],W=H.x;let G,J,Y=H.y,$=H.low;const re=i&&s.stacking?.stacks[(e.negStacks&&Y<(b?0:m)?"-":"")+e.stackKey];T=r.translate(W,!1,!1,!1,!0,u),H.plotX=co(T)?qC(L(T)):void 0,i&&e.visible&&re&&re[W]&&(M=e.getStackIndicator(M,W,e.index),!H.isNull&&M.key&&(G=re[W],J=G.points[M.key]),G&&nS(J)&&($=J[0],Y=J[1],$===b&&M.key===re[W].base&&($=Li(co(m)?m:s.min)),s.positiveValuesOnly&&Gr($)&&$<=0&&($=void 0),H.total=H.stackTotal=Li(G.total),H.percentage=Gr(H.y)&&G.total?H.y/G.total*100:void 0,H.stackY=Y,e.irregularWidths||G.setOffset(e.pointXOffset||0,e.barW||0,void 0,void 0,void 0,e.xAxis))),H.yBottom=Gr($)?L(s.translate($,!1,!0,!1,!0)):void 0,e.dataModify&&(Y=e.dataModify.modifyValue(Y,E));let be;co(Y)&&H.plotX!==void 0?(be=s.translate(Y,!1,!0,!1,!0),be=co(be)?L(be):void 0):!co(Y)&&w&&(be=w),H.plotY=be,H.isInside=this.isPointInside(H),H.clientX=g?qC(r.translate(W,!1,!1,!1,!0,u)):T,H.negative=(H.y||0)<(m||0),!H.isNull&&H.visible!==!1&&(typeof P<"u"&&(I=Math.min(I,Math.abs(T-P))),P=T),H.zone=this.zones.length?H.getZone():void 0,!H.graphic&&e.group&&o&&(H.isNew=!0)}e.closestPointRangePx=I,Fi(this,"afterTranslate")}getValidPoints(e,t,i){const r=this.chart;return(e||this.points||[]).filter(function(o){const{plotX:s,plotY:a}=o;return!i&&(o.isNull||!co(a))||t&&!r.isInsidePlot(s,a,{inverted:r.inverted})?!1:o.visible!==!1})}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){const{chart:e,group:t,markerGroup:i}=this,r=e.sharedClips,o=e.renderer,s=e.getClipBox(this),a=this.getSharedClipKey();let l=r[a];l?l.animate(s):r[a]=l=o.clipRect(s),t&&t.clip(this.options.clip===!1?void 0:l),i&&i.clip()}animate(e){const{chart:t,group:i,markerGroup:r}=this,o=t.inverted,s=JC(this.options.animation),a=[this.getSharedClipKey(),s.duration,s.easing,s.defer].join(",");let l=t.sharedClips[a],u=t.sharedClips[a+"m"];if(e&&i){const g=t.getClipBox(this);if(l)l.attr("height",g.height);else{g.width=0,o&&(g.x=t.plotHeight),l=t.renderer.clipRect(g),t.sharedClips[a]=l;const m={x:-99,y:-99,width:o?t.plotWidth+199:99,height:o?99:t.plotHeight+199};u=t.renderer.clipRect(m),t.sharedClips[a+"m"]=u}i.clip(l),r?.clip(u)}else if(l&&!l.hasClass("highcharts-animating")){const g=t.getClipBox(this),m=s.step;(r?.element.childNodes.length||t.series.length>1)&&(s.step=function(b,w){m&&m.apply(w,arguments),w.prop==="width"&&u?.element&&u.attr(o?"height":"width",b+99)}),l.addClass("highcharts-animating").animate(g,s)}}afterAnimate(){this.setClip(),ny(this.chart.sharedClips,(e,t,i)=>{e&&!this.chart.container.querySelector(`[clip-path="url(#${e.id})"]`)&&(e.destroy(),delete i[t])}),this.finishedAnimating=!0,Fi(this,"afterAnimate")}drawPoints(e=this.points){const t=this,i=t.chart,r=i.styledMode,{colorAxis:o,options:s}=t,a=s.marker,l=s.nullInteraction,u=t[t.specialGroup||"markerGroup"],g=t.xAxis,m=Li(a.enabled,!g||g.isRadial?!0:null,t.closestPointRangePx>=a.enabledThreshold*a.radius);let b,w,E,T,P,M,I;if(a.enabled!==!1||t._hasPointMarkers)for(b=0;b<e.length;b++){w=e[b],E=w.graphic,T=E?"animate":"attr",P=w.marker||{},M=!!w.marker;const L=w.isNull;if((m&&!Gr(P.enabled)||P.enabled)&&(!L||l)&&w.visible!==!1){const W=Li(P.symbol,t.symbol,"rect");I=t.markerAttribs(w,w.selected&&"select"),t.enabledDataSorting&&(w.startXPos=g.reversed?-(I.width||0):g.width);const G=w.isInside!==!1;if(!E&&G&&((I.width||0)>0||w.hasImage)&&(w.graphic=E=i.renderer.symbol(W,I.x,I.y,I.width,I.height,M?P:a).add(u),t.enabledDataSorting&&i.hasRendered&&(E.attr({x:w.startXPos}),T="animate")),E&&T==="animate"&&E[G?"show":"hide"](G).animate(I),E){const J=t.pointAttribs(w,r||!w.selected?void 0:"select");r?o&&E.css({fill:J.fill}):E[T](J)}E&&E.addClass(w.getClassName(),!0)}else E&&(w.graphic=E.destroy())}}markerAttribs(e,t){const i=this.options,r=i.marker,o=e.marker||{},s=o.symbol||r.symbol,a={};let l,u,g=Li(o.radius,r?.radius);t&&(l=r.states[t],u=o.states&&o.states[t],g=Li(u?.radius,l?.radius,g&&g+(l?.radiusPlus||0))),e.hasImage=s&&s.indexOf("url")===0,e.hasImage&&(g=0);const m=e.pos();return co(g)&&m&&(i.crisp&&(m[0]=g5(m[0],e.hasImage?0:s==="rect"?r?.lineWidth||0:1)),a.x=m[0]-g,a.y=m[1]-g),g&&(a.width=a.height=2*g),a}pointAttribs(e,t){const i=this.options,r=i.marker,o=e?.options,s=o?.marker||{},a=o?.color,l=e?.color,u=e?.zone?.color;let g,m,b=this.color,w,E,T=Li(s.lineWidth,r.lineWidth),P=e?.isNull&&i.nullInteraction?0:1;return b=a||u||l||b,w=s.fillColor||r.fillColor||b,E=s.lineColor||r.lineColor||b,t=t||"normal",t&&(g=r.states[t]||{},m=s.states&&s.states[t]||{},T=Li(m.lineWidth,g.lineWidth,T+Li(m.lineWidthPlus,g.lineWidthPlus,0)),w=m.fillColor||g.fillColor||w,E=m.lineColor||g.lineColor||E,P=Li(m.opacity,g.opacity,P)),{stroke:E,"stroke-width":T,fill:w,opacity:P}}destroy(e){const t=this,i=t.chart,r=/AppleWebKit\/533/.test(f5.navigator.userAgent),o=t.data||[];let s,a,l;for(Fi(t,"destroy",{keepEventsForUpdate:e}),this.removeEvents(e),(t.axisTypes||[]).forEach(function(u){l=t[u],l?.series&&($C(l.series,t),l.isDirty=l.forceRedraw=!0)}),t.legendItem&&t.chart.legend.destroyItem(t),a=o.length;a--;)o[a]?.destroy?.();for(const u of t.zones)p5(u,void 0,!0);lt.clearTimeout(t.animationTimeout),ny(t,function(u,g){u instanceof uh&&!u.survive&&(s=r&&g==="group"?"hide":"destroy",u[s]())}),i.hoverSeries===t&&(i.hoverSeries=void 0),$C(i.series,t),i.orderItems("series"),ny(t,function(u,g){(!e||g!=="hcEvents")&&delete t[g]})}applyZones(){const e=this,{area:t,chart:i,graph:r,zones:o,points:s,xAxis:a,yAxis:l,zoneAxis:u}=e,{inverted:g,renderer:m}=i,b=this[`${u}Axis`],{isXAxis:w,len:E=0,minPointOffset:T=0}=b||{},P=(r?.strokeWidth()||0)/2+1,M=(I,L=0,H=0)=>{g&&(H=E-H);const{translated:W=0,lineClip:G}=I,J=H-W;G?.push(["L",L,Math.abs(J)<P?H-P*(J<=0?-1:1):W])};if(o.length&&(r||t)&&b&&co(b.min)){const I=b.getExtremes().max+T,L=G=>{G.forEach((J,Y)=>{(J[0]==="M"||J[0]==="L")&&(G[Y]=[J[0],w?E-J[1]:J[1],w?J[2]:E-J[2]])})};if(o.forEach(G=>{G.lineClip=[],G.translated=jC(b.toPixels(Li(G.value,I),!0)||0,0,E)}),r&&!this.showLine&&r.hide(),t&&t.hide(),u==="y"&&s.length<a.len)for(const G of s){const{plotX:J,plotY:Y,zone:$}=G,re=$&&o[o.indexOf($)-1];$&&M($,J,Y),re&&M(re,J,Y)}let H=[],W=b.toPixels(b.getExtremes().min-T,!0);o.forEach(G=>{const J=G.lineClip||[],Y=Math.round(G.translated||0);a.reversed&&J.reverse();let{clip:$,simpleClip:re}=G,be=0,we=0,Ee=a.len,pe=l.len;w?(be=Y,Ee=W):(we=Y,pe=W);const me=[["M",be,we],["L",Ee,we],["L",Ee,pe],["L",be,pe],["Z"]],ee=[me[0],...J,me[1],me[2],...H,me[3],me[4]];H=J.reverse(),W=Y,g&&(L(ee),t&&L(me)),$?($.animate({d:ee}),re?.animate({d:me})):($=G.clip=m.path(ee),t&&(re=G.simpleClip=m.path(me))),r&&G.graph?.clip($),t&&G.area?.clip(re)})}else e.visible&&(r&&r.show(),t&&t.show())}plotGroup(e,t,i,r,o){let s=this[e];const a=!s,l={visibility:i,zIndex:r||.1};return Gr(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(l.opacity=this.opacity),s||(this[e]=s=this.chart.renderer.g().add(o)),s.addClass("highcharts-"+t+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(Gr(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(s.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),s.attr(l)[a?"attr":"animate"](this.getPlotBox(t)),s}getPlotBox(e){let t=this.xAxis,i=this.yAxis;const r=this.chart,o=r.inverted&&!r.polar&&t&&this.invertible&&e==="series";r.inverted&&(t=i,i=this.xAxis);const s={scale:1,translateX:t?t.left:r.plotLeft,translateY:i?i.top:r.plotTop,name:e};Fi(this,"getPlotBox",s);const{scale:a,translateX:l,translateY:u}=s;return{translateX:l,translateY:u,rotation:o?90:0,rotationOriginX:o?a*(t.len-i.len)/2:0,rotationOriginY:o?a*(t.len+i.len)/2:0,scaleX:o?-a:a,scaleY:a}}removeEvents(e){const{eventsToUnbind:t}=this;e||x5(this),t.length&&(t.forEach(i=>{i()}),t.length=0)}render(){const e=this,{chart:t,options:i,hasRendered:r}=e,o=JC(i.animation),s=e.visible?"inherit":"hidden",a=i.zIndex,l=t.seriesGroup;let u=e.finishedAnimating?0:o.duration;Fi(this,"render"),e.plotGroup("group","series",s,a,l),e.markerGroup=e.plotGroup("markerGroup","markers",s,a,l),i.clip!==!1&&e.setClip(),u&&e.animate?.(!0),e.drawGraph&&(e.drawGraph(),e.applyZones()),e.visible&&e.drawPoints(),e.drawDataLabels?.(),e.redrawPoints?.(),i.enableMouseTracking&&e.drawTracker?.(),u&&e.animate?.(),r||(u&&o.defer&&(u+=o.defer),e.animationTimeout=iS(()=>{e.afterAnimate()},u||0)),e.isDirty=!1,e.hasRendered=!0,Fi(e,"afterRender")}redraw(){const e=this.isDirty||this.isDirtyData;this.translate(),this.render(),e&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(e,t){const{xAxis:i,yAxis:r}=this,o=this.chart.inverted;return this.searchKDTree({clientX:o?i.len-e.chartY+i.pos:e.chartX-i.pos,plotY:o?r.len-e.chartX+r.pos:e.chartY-r.pos},t,e)}buildKDTree(e){this.buildingKdTree=!0;const t=this,i=t.options,r=i.findNearestPointBy.indexOf("y")>-1?2:1;function o(a,l,u){const g=a?.length;let m,b;if(g)return m=t.kdAxisArray[l%u],a.sort((w,E)=>(w[m]||0)-(E[m]||0)),b=Math.floor(g/2),{point:a[b],left:o(a.slice(0,b),l+1,u),right:o(a.slice(b+1),l+1,u)}}function s(){t.kdTree=o(t.getValidPoints(void 0,!t.directTouch,i?.nullInteraction),r,r),t.buildingKdTree=!1}delete t.kdTree,iS(s,i.kdNow||e?.type==="touchstart"?0:1)}searchKDTree(e,t,i,r,o){const s=this,[a,l]=this.kdAxisArray,u=t?"distX":"dist",g=(s.options.findNearestPointBy||"").indexOf("y")>-1?2:1,m=!!s.isBubble,b=r||((P,M,I)=>{const L=P[I]||0,H=M[I]||0;return[L===H&&P.index>M.index||L<H?P:M,!1]}),w=o||((P,M)=>P<M);function E(P,M){const I=P[a],L=M[a],H=Gr(I)&&Gr(L)?I-L:null,W=P[l],G=M[l],J=Gr(W)&&Gr(G)?W-G:0,Y=m&&M.marker?.radius||0;M.dist=Math.sqrt((H&&H*H||0)+J*J)-Y,M.distX=Gr(H)?Math.abs(H)-Y:Number.MAX_VALUE}function T(P,M,I,L){const H=M.point,W=s.kdAxisArray[I%L];let G=H,J=!1;E(P,H);const Y=(P[W]||0)-(H[W]||0)+(m&&H.marker?.radius||0),$=Y<0?"left":"right",re=Y<0?"right":"left";if(M[$]&&([G,J]=b(H,T(P,M[$],I+1,L),u)),M[re]){const be=Math.sqrt(Y*Y),we=G[u];w(be,we,J)&&(G=b(G,T(P,M[re],I+1,L),u)[0])}return G}if(!this.kdTree&&!this.buildingKdTree&&this.buildKDTree(i),this.kdTree)return T(e,this.kdTree,g,g)}pointPlacementToXValue(){const{options:e,xAxis:t}=this;let i=e.pointPlacement;return i==="between"&&(i=t.reversed?-.5:.5),co(i)?i*(e.pointRange||t.pointRange):0}isPointInside(e){const{chart:t,xAxis:i,yAxis:r}=this,{plotX:o=-1,plotY:s=-1}=e;return s>=0&&s<=(r?r.len:t.plotHeight)&&o>=0&&o<=(i?i.len:t.plotWidth)}drawTracker(){const e=this,t=e.options,i=t.trackByArea,r=[].concat((i?e.areaPath:e.graphPath)||[]),o=e.chart,s=o.pointer,a=o.renderer,l=o.options.tooltip?.snap||0,u=()=>{t.enableMouseTracking&&o.hoverSeries!==e&&e.onMouseOver()},g="rgba(192,192,192,"+(h5?1e-4:.002)+")";let m=e.tracker;m?m.attr({d:r}):e.graph&&(e.tracker=m=a.path(r).attr({visibility:e.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),o.styledMode||m.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:g,fill:i?g:"none","stroke-width":e.graph.strokeWidth()+(i?0:2*l)}),[e.tracker,e.markerGroup,e.dataLabelsGroup].forEach(b=>{b&&(b.addClass("highcharts-tracker").on("mouseover",u).on("mouseout",w=>{s?.onTrackerMouseOut(w)}),t.cursor&&!o.styledMode&&b.css({cursor:t.cursor}),b.on("touchstart",u))})),Fi(this,"afterDrawTracker")}addPoint(e,t,i,r,o){const s=this,a=s.options,{chart:l,data:u,dataTable:g,xAxis:m}=s,b=m?.hasNames&&m.names,w=a.data,E=s.getColumn("x");let T,P;t=Li(t,!0);const M={series:s};s.pointClass.prototype.applyOptions.apply(M,[e]);const I=M.x;if(P=E.length,s.requireSorting&&I<E[P-1])for(T=!0;P&&E[P-1]>I;)P--;g.setRow(M,P,!0,{addColumns:!1}),b&&M.name&&(b[I]=M.name),w?.splice(P,0,e),(T||s.processedData)&&(s.data.splice(P,0,null),s.processData()),a.legendType==="point"&&s.generatePoints(),i&&(u[0]&&u[0].remove?u[0].remove(!1):([u,w].filter(Gr).forEach(L=>{L.shift()}),g.deleteRows(0))),o!==!1&&Fi(s,"addPoint",{point:M}),s.isDirty=!0,s.isDirtyData=!0,t&&l.redraw(r)}removePoint(e,t,i){const r=this,{chart:o,data:s,points:a,dataTable:l}=r,u=s[e],g=function(){[a?.length===s.length?a:void 0,s,r.options.data].filter(Gr).forEach(m=>{m.splice(e,1)}),l.deleteRows(e),u?.destroy(),r.isDirty=!0,r.isDirtyData=!0,t&&o.redraw()};c5(i,o),t=Li(t,!0),u?u.firePointEvent("remove",null,g):g()}remove(e,t,i,r){const o=this,s=o.chart;function a(){o.destroy(r),s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(r),Li(e,!0)&&s.redraw(t)}i!==!1?Fi(o,"remove",null,a):a()}update(e,t){e=m5(e,this.userOptions),Fi(this,"update",{options:e});const i=this,r=i.chart,o=i.userOptions,s=i.initialType||i.type,a=r.options.plotOptions,l=xd[s].prototype,u=["group","markerGroup","dataLabelsGroup","transformGroup"],g=["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"],m=i.finishedAnimating&&{animation:!1},b={};let w,E,T=wb.keepProps.slice(),P=e.type||o.type||r.options.chart.type;const M=!(this.hasDerivedData||P&&P!==this.type||typeof e.keys<"u"||typeof e.pointStart<"u"||typeof e.pointInterval<"u"||typeof e.relativeXValue<"u"||e.joinBy||e.mapData||g.some(L=>i.hasOptionChanged(L)));P=P||s,M?(T.push.apply(T,wb.keepPropsForPoints),e.visible!==!1&&T.push("area","graph"),i.parallelArrays.forEach(function(L){T.push(L+"Data")}),e.data&&(e.dataSorting&&Cd(i.options.dataSorting,e.dataSorting),this.setData(e.data,!1))):this.dataTable.modified=this.dataTable,e=hg(o,{index:o.index===void 0?i.index:o.index,pointStart:a?.series?.pointStart??o.pointStart??i.getColumn("x")[0]},!M&&{data:i.options.data},e,m),M&&e.data&&(e.data=i.options.data),T=u.concat(T),T.forEach(function(L){T[L]=i[L],delete i[L]});let I=!1;if(xd[P]){if(I=P!==i.type,i.remove(!1,!1,!1,!0),I)if(r.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(i,xd[P].prototype);else{const L=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents;for(E in l)i[E]=void 0;Cd(i,xd[P].prototype),L?i.hcEvents=L:delete i.hcEvents}}else Mp(17,!0,r,{missingModuleFor:P});if(T.forEach(function(L){i[L]=T[L]}),i.init(r,e),M&&this.points){w=i.options,w.visible===!1?(b.graphic=1,b.dataLabel=1):(this.hasMarkerChanged(w,o)&&(b.graphic=1),i.hasDataLabels?.()||(b.dataLabel=1));for(const L of this.points)L?.series&&(L.resolveColor(),Object.keys(b).length&&L.destroyElements(b),w.showInLegend===!1&&L.legendItem&&r.legend.destroyItem(L))}i.initialType=s,r.linkSeries(),r.setSortedData(),I&&i.linkedSeries.length&&(i.isDirtyData=!0),Fi(this,"afterUpdate"),Li(t,!0)&&r.redraw(M?void 0:!1)}setName(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0}hasOptionChanged(e){const t=this.chart,i=this.options[e],r=t.options.plotOptions,o=this.userOptions[e],s=Li(r?.[this.type]?.[e],r?.series?.[e]);return o&&!Gr(s)?i!==o:i!==Li(s,i)}onMouseOver(){const e=this,t=e.chart,i=t.hoverSeries;t.pointer?.setHoverChartIndex(),i&&i!==e&&i.onMouseOut(),e.options.events.mouseOver&&Fi(e,"mouseOver"),e.setState("hover"),t.hoverSeries=e}onMouseOut(){const e=this,t=e.options,i=e.chart,r=i.tooltip,o=i.hoverPoint;i.hoverSeries=null,o&&o.onMouseOut(),e&&t.events.mouseOut&&Fi(e,"mouseOut"),r&&!e.stickyTracking&&(!r.shared||e.noSharedTooltip)&&r.hide(),i.series.forEach(function(s){s.setState("",!0)})}setState(e,t){const i=this,r=i.options,o=i.graph,s=r.inactiveOtherPoints,a=r.states,l=Li(a[e||"normal"]&&a[e||"normal"].animation,i.chart.options.chart.animation);let u=r.lineWidth,g=r.opacity;if(e=e||"",i.state!==e&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(m){m&&(i.state&&m.removeClass("highcharts-series-"+i.state),e&&m.addClass("highcharts-series-"+e))}),i.state=e,!i.chart.styledMode)){if(a[e]&&a[e].enabled===!1)return;if(e&&(u=a[e].lineWidth||u+(a[e].lineWidthPlus||0),g=Li(a[e].opacity,g)),o&&!o.dashstyle&&co(u))for(const m of[o,...this.zones.map(b=>b.graph)])m?.animate({"stroke-width":u},l);s||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(m){m&&m.animate({opacity:g},l)})}t&&s&&i.points&&i.setAllPointsToState(e||void 0)}setAllPointsToState(e){this.points.forEach(function(t){t.setState&&t.setState(e)})}setVisible(e,t){const i=this,r=i.chart,o=r.options.chart.ignoreHiddenSeries,s=i.visible;i.visible=e=i.options.visible=i.userOptions.visible=typeof e>"u"?!s:e;const a=e?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(l=>{i[l]?.[a]()}),(r.hoverSeries===i||r.hoverPoint?.series===i)&&i.onMouseOut(),i.legendItem&&r.legend.colorizeItem(i,e),i.isDirty=!0,i.options.stacking&&r.series.forEach(l=>{l.options.stacking&&l.visible&&(l.isDirty=!0)}),i.linkedSeries.forEach(l=>{l.setVisible(e,!1)}),o&&(r.isDirtyBox=!0),Fi(i,a),t!==!1&&r.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(e){const t=this;t.selected=e=this.options.selected=typeof e>"u"?!t.selected:e,t.checkbox&&(t.checkbox.checked=e),Fi(t,e?"select":"unselect")}shouldShowTooltip(e,t,i={}){return i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(e,t,i)}drawLegendSymbol(e,t){DE[this.options.legendSymbol||"rectangle"]?.call(this,e,t)}};Rf.defaultOptions=o5;Rf.types=rr.seriesTypes;Rf.registerType=rr.registerSeriesType;Rf.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"];Rf.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"];Cd(Rf.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Tf,requireSorting:!0,sorted:!0});rr.series=Rf;const Ja=Rf,{animObject:w5,setAnimation:C5}=$o,{registerEventOptions:rS}=Om,{composed:S5,marginNames:oS}=St,{distribute:T5}=_m,{format:E5}=Mc,{addEvent:$p,createElement:R5,css:k5,defined:iy,discardElement:P5,find:M5,fireEvent:Nh,isNumber:sS,merge:Vf,pick:yu,pushUnique:A5,relativeLength:_5,stableSort:O5,syncTimeout:F5}=lt;class Cb{constructor(e,t){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=e,this.setOptions(t),t.enabled&&(this.render(),rS(this,t),$p(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),$p(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(e){const t=yu(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=Vf(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=yu(e.symbolWidth,16),this.pages=[],this.proximate=e.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(e,t){const i=this.chart;this.setOptions(Vf(!0,this.options,e)),"events"in this.options&&rS(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,yu(t,!0)&&i.redraw(),Nh(this,"afterUpdate",{redraw:t})}colorizeItem(e,t){const i=e.color,{area:r,group:o,label:s,line:a,symbol:l}=e.legendItem||{};if((e instanceof Ja||e instanceof Tf)&&(e.color=e.options?.legendSymbolColor||i),o?.[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){const{itemHiddenStyle:u={}}=this,g=u.color,{fillColor:m,fillOpacity:b,lineColor:w,marker:E}=e.options,T=P=>(t||(P.fill&&(P.fill=g),P.stroke&&(P.stroke=g)),P);s?.css(Vf(t?this.itemStyle:u)),a?.attr(T({stroke:w||e.color})),l&&l.attr(T(E&&l.isMarker?e.pointAttribs():{fill:e.color})),r?.attr(T({fill:m||e.color,"fill-opacity":m?1:b??.75}))}e.color=i,Nh(this,"afterColorizeItem",{item:e,visible:t})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){const t=this,{group:i,x:r=0,y:o=0}=e.legendItem||{},s=t.options,a=s.symbolPadding,l=!s.rtl,u=e.checkbox;if(i?.element){const g={translateX:l?r:t.legendWidth-r-2*a-4,translateY:o},m=()=>{Nh(this,"afterPositionItem",{item:e})};i[iy(i.translateY)?"animate":"attr"](g,void 0,m)}u&&(u.x=r,u.y=o)}destroyItem(e){const t=e.legendItem||{};for(const i of["group","label","line","symbol"])t[i]&&(t[i]=t[i].destroy());e.checkbox=P5(e.checkbox),e.legendItem=void 0}destroy(){const e=this;for(const t of this.getAllItems())this.destroyItem(t);for(const t of["clipRect","up","down","pager","nav","box","title","group"])e[t]&&(e[t]=e[t].destroy());this.display=null}positionCheckboxes(){const e=this.group?.alignAttr,t=this.clipHeight||this.legendHeight,i=this.titleHeight;let r;e&&(r=e.translateY,this.allItems.forEach(function(o){const s=o.checkbox;let a;s&&(a=r+i+s.y+(this.scrollOffset||0)+3,k5(s,{left:e.translateX+o.checkboxOffset+s.x-20+"px",top:a+"px",display:this.proximate||a>r-6&&a<r+t-6?"":"none"}))},this))}renderTitle(){const e=this.options,t=this.padding,i=e.title;let r,o=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,t-3,t-4,void 0,void 0,void 0,e.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),r=this.title.getBBox(),o=r.height,this.offsetWidth=r.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o}setText(e){const t=this.options;e.legendItem.label.attr({text:t.labelFormat?E5(t.labelFormat,e,this.chart):t.labelFormatter.call(e)})}renderItem(e){const t=this,i=e.legendItem=e.legendItem||{},r=t.chart,o=r.renderer,s=t.options,a=s.layout==="horizontal",l=t.symbolWidth,u=s.symbolPadding||0,g=t.itemStyle,m=t.itemHiddenStyle,b=a?yu(s.itemDistance,20):0,w=!s.rtl,E=!e.series,T=!E&&e.series.drawLegendSymbol?e.series:e,P=T.options,M=!!t.createCheckboxForItem&&P&&P.showCheckbox,I=s.useHTML,L=e.options.className;let H=i.label,W=l+u+b+(M?20:0);H||(i.group=o.g("legend-item").addClass("highcharts-"+T.type+"-series highcharts-color-"+e.colorIndex+(L?" "+L:"")+(E?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(t.scrollGroup),i.label=H=o.text("",w?l+u:-u,t.baseline||0,I),r.styledMode||H.css(Vf(e.visible?g:m)),H.attr({align:w?"left":"right",zIndex:2}).add(i.group),t.baseline||(t.fontMetrics=o.fontMetrics(H),t.baseline=t.fontMetrics.f+3+t.itemMarginTop,H.attr("y",t.baseline),t.symbolHeight=yu(s.symbolHeight,t.fontMetrics.f),s.squareSymbol&&(t.symbolWidth=yu(s.symbolWidth,Math.max(t.symbolHeight,16)),W=t.symbolWidth+u+b+(M?20:0),w&&H.attr("x",t.symbolWidth+u))),T.drawLegendSymbol(t,e),t.setItemEvents&&t.setItemEvents(e,H,I)),M&&!e.checkbox&&t.createCheckboxForItem&&t.createCheckboxForItem(e),t.colorizeItem(e,e.visible),(r.styledMode||!g.width)&&H.css({width:(s.itemWidth||t.widthOption||r.spacingBox.width)-W+"px"}),t.setText(e);const G=H.getBBox(),J=t.fontMetrics?.h||0;e.itemWidth=e.checkboxOffset=s.itemWidth||i.labelWidth||G.width+W,t.maxItemWidth=Math.max(t.maxItemWidth,e.itemWidth),t.totalItemWidth+=e.itemWidth,t.itemHeight=e.itemHeight=Math.round(i.labelHeight||(G.height>J*1.5?G.height:J))}layoutItem(e){const t=this.options,i=this.padding,r=t.layout==="horizontal",o=e.itemHeight,s=this.itemMarginBottom,a=this.itemMarginTop,l=r?yu(t.itemDistance,20):0,u=this.maxLegendWidth,g=t.alignColumns&&this.totalItemWidth>u?this.maxItemWidth:e.itemWidth,m=e.legendItem||{};r&&this.itemX-i+g>u&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+s),this.lastLineHeight=0),this.lastItemY=a+this.itemY+s,this.lastLineHeight=Math.max(o,this.lastLineHeight),m.x=this.itemX,m.y=this.itemY,r?this.itemX+=g:(this.itemY+=a+o+s,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-i-(e.checkbox?0:l):g)+i,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){const i=t?.options;t&&yu(i.showInLegend,iy(i.linkedTo)?!1:void 0,!0)&&(e=e.concat(t.legendItem?.labels||(i.legendType==="point"?t.data:t)))}),Nh(this,"afterGetAllItems",{allItems:e}),e}getAlignment(){const e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,t){const i=this.chart,r=this.options,o=this.getAlignment();o&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((s,a)=>{s.test(o)&&!iy(e[a])&&(i[oS[a]]=Math.max(i[oS[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*r[a%2?"x":"y"]+(r.margin??12)+t[a]+(i.titleOffset[a]||0)))})}proximatePositions(){const e=this.chart,t=[],i=this.options.align==="left";this.allItems.forEach(function(o){let s,a,l=i,u,g;o.yAxis&&(o.xAxis.options.reversed&&(l=!l),o.points&&(s=M5(l?o.points:o.points.slice(0).reverse(),function(m){return sS(m.plotY)})),a=this.itemMarginTop+o.legendItem.label.getBBox().height+this.itemMarginBottom,g=o.yAxis.top-e.plotTop,o.visible?(u=s?s.plotY:o.yAxis.height,u+=g-.3*a):u=g+o.yAxis.height,t.push({target:u,size:a,item:o}))},this);let r;for(const o of T5(t,e.plotHeight))r=o.item.legendItem||{},sS(o.pos)&&(r.y=e.plotTop-e.spacing[0]+o.pos)}render(){const e=this,t=e.chart,i=t.renderer,r=e.options,o=e.padding,s=e.getAllItems();let a,l,u,g=e.group,m,b=e.box;e.itemX=o,e.itemY=e.initialItemY,e.offsetWidth=0,e.lastItemY=0,e.widthOption=_5(r.width,t.spacingBox.width-o),m=t.spacingBox.width-2*o-r.x,["rm","lm"].indexOf(e.getAlignment().substring(0,2))>-1&&(m/=2),e.maxLegendWidth=e.widthOption||m,g||(e.group=g=i.g("legend").addClass(r.className||"").attr({zIndex:7}).add(),e.contentGroup=i.g().attr({zIndex:1}).add(g),e.scrollGroup=i.g().add(e.contentGroup)),e.renderTitle(),O5(s,(w,E)=>(w.options?.legendIndex||0)-(E.options?.legendIndex||0)),r.reversed&&s.reverse(),e.allItems=s,e.display=a=!!s.length,e.lastLineHeight=0,e.maxItemWidth=0,e.totalItemWidth=0,e.itemHeight=0,s.forEach(e.renderItem,e),s.forEach(e.layoutItem,e),l=(e.widthOption||e.offsetWidth)+o,u=e.lastItemY+e.lastLineHeight+e.titleHeight,u=e.handleOverflow(u),u+=o,b||(e.box=b=i.rect().addClass("highcharts-legend-box").attr({r:r.borderRadius}).add(g)),t.styledMode||b.attr({stroke:r.borderColor,"stroke-width":r.borderWidth||0,fill:r.backgroundColor||"none"}).shadow(r.shadow),l>0&&u>0&&b[b.placed?"animate":"attr"](b.crisp.call({},{x:0,y:0,width:l,height:u},b.strokeWidth())),g[a?"show":"hide"](),t.styledMode&&g.getStyle("display")==="none"&&(l=u=0),e.legendWidth=l,e.legendHeight=u,a&&e.align(),this.proximate||this.positionItems(),Nh(this,"afterRender")}align(e=this.chart.spacingBox){const t=this.chart,i=this.options;let r=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&t.titleOffset[0]>0?r+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&t.titleOffset[2]>0&&(r-=t.titleOffset[2]),r!==e.y&&(e=Vf(e,{y:r})),t.hasRendered||(this.group.placed=!1),this.group.align(Vf(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,e)}handleOverflow(e){const t=this,i=this.chart,r=i.renderer,o=this.options,s=o.y,a=o.verticalAlign==="top",l=this.padding,u=o.maxHeight,g=o.navigation,m=yu(g.animation,!0),b=g.arrowSize||12,w=this.pages,E=this.allItems,T=function(Y){typeof Y=="number"?J.attr({height:Y}):J&&(t.clipRect=J.destroy(),t.contentGroup.clip()),t.contentGroup.div&&(t.contentGroup.div.style.clip=Y?"rect("+l+"px,9999px,"+(l+Y)+"px,0)":"auto")},P=function(Y){return t[Y]=r.circle(0,0,b*1.3).translate(b/2,b/2).add(G),i.styledMode||t[Y].attr("fill","rgba(0,0,0,0.0001)"),t[Y]};let M,I,L,H,W=i.spacingBox.height+(a?-s:s)-l,G=this.nav,J=this.clipRect;return o.layout==="horizontal"&&o.verticalAlign!=="middle"&&!o.floating&&(W/=2),u&&(W=Math.min(W,u)),w.length=0,e&&W>0&&e>W&&g.enabled!==!1?(this.clipHeight=M=Math.max(W-20-this.titleHeight-l,0),this.currentPage=yu(this.currentPage,1),this.fullHeight=e,E.forEach((Y,$)=>{L=Y.legendItem||{};const re=L.y||0,be=Math.round(L.label.getBBox().height);let we=w.length;(!we||re-w[we-1]>M&&(I||re)!==w[we-1])&&(w.push(I||re),we++),L.pageIx=we-1,I&&H&&(H.pageIx=we-1),$===E.length-1&&re+be-w[we-1]>M&&re>w[we-1]&&(w.push(re),L.pageIx=we),re!==I&&(I=re),H=L}),J||(J=t.clipRect=r.clipRect(0,l-2,9999,0),t.contentGroup.clip(J)),T(M),G||(this.nav=G=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol("triangle",0,0,b,b).add(G),P("upTracker").on("click",function(){t.scroll(-1,m)}),this.pager=r.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&g.style&&this.pager.css(g.style),this.pager.add(G),this.down=r.symbol("triangle-down",0,0,b,b).add(G),P("downTracker").on("click",function(){t.scroll(1,m)})),t.scroll(0),e=W):G&&(T(),this.nav=G.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,t){const i=this.chart,r=this.pages,o=r.length,s=this.clipHeight,a=this.options.navigation,l=this.pager,u=this.padding;let g=this.currentPage+e;if(g>o&&(g=o),g>0){typeof t<"u"&&C5(t,i),this.nav.attr({translateX:u,translateY:s+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(b){b.attr({class:g===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),l.attr({text:g+"/"+o}),[this.down,this.downTracker].forEach(function(b){b.attr({x:18+this.pager.getBBox().width,class:g===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:g===1?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:g===1?"default":"pointer"}),this.down.attr({fill:g===o?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:g===o?"default":"pointer"})),this.scrollOffset=-r[g-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=g,this.positionCheckboxes();const m=w5(yu(t,i.renderer.globalAnimation,!0));F5(()=>{Nh(this,"afterScroll",{currentPage:g})},m.duration)}}setItemEvents(e,t,i){const r=this,o=e.legendItem||{},s=r.chart.renderer.boxWrapper,a=e instanceof Tf,l=e instanceof Ja,u="highcharts-legend-"+(a?"point":"series")+"-active",g=r.chart.styledMode,m=i?[t,o.symbol]:[o.group],b=w=>{r.allItems.forEach(E=>{e!==E&&[E].concat(E.linkedSeries||[]).forEach(T=>{T.setState(w,!a)})})};for(const w of m)w&&w.on("mouseover",function(){e.visible&&b("inactive"),e.setState("hover"),e.visible&&s.addClass(u),g||t.css(r.options.itemHoverStyle)}).on("mouseout",function(){r.chart.styledMode||t.css(Vf(e.visible?r.itemStyle:r.itemHiddenStyle)),b(""),s.removeClass(u),e.setState()}).on("click",function(E){const T=function(){e.setVisible&&e.setVisible(),b(e.visible?"inactive":"")};s.removeClass(u),Nh(r,"itemClick",{browserEvent:E,legendItem:e},T),a?e.firePointEvent("legendItemClick",{browserEvent:E}):l&&Nh(e,"legendItemClick",{browserEvent:E})})}createCheckboxForItem(e){const t=this;e.checkbox=R5("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},t.options.itemCheckboxStyle,t.chart.container),$p(e.checkbox,"click",function(i){const r=i.target;Nh(e.series||e,"checkboxClick",{checked:r.checked,item:e},function(){e.select()})})}}(function(n){function e(t){A5(S5,"Core.Legend")&&$p(t,"beforeMargins",function(){this.legend=new n(this,this.options.legend)})}n.compose=e})(Cb||(Cb={}));const BE=Cb,{animate:ry,animObject:L5,setAnimation:oy}=$o,{defaultOptions:sy}=Pc,{numberFormat:I5}=Mc,{registerEventOptions:aS}=Om,{charts:Gf,doc:fg,marginNames:lS,svg:D5,win:cS}=St,{seriesTypes:ay}=rr,{addEvent:ly,attr:uS,createElement:cy,css:bu,defined:df,diffObjects:hS,discardElement:B5,erase:N5,error:uy,extend:vf,find:hy,fireEvent:gn,getAlignFactor:z5,getStyle:fy,isArray:H5,isNumber:wd,isObject:W5,isString:Ap,merge:sh,objectEach:dy,pick:na,pInt:V5,relativeLength:fS,removeEvent:dS,splat:_p,syncTimeout:G5,uniqueKey:U5}=lt;let xg=class NE{static chart(e,t,i){return new NE(e,t,i)}constructor(e,t,i){this.sharedClips={};const r=[...arguments];(Ap(e)||e.nodeName)&&(this.renderTo=r.shift()),this.init(r[0],r[1])}setZoomOptions(){const e=this,t=e.options.chart,i=t.zooming;e.zooming={...i,type:na(t.zoomType,i.type),key:na(t.zoomKey,i.key),pinchType:na(t.pinchType,i.pinchType),singleTouch:na(t.zoomBySingleTouch,i.singleTouch,!1),resetButton:sh(i.resetButton,t.resetZoomButton)}}init(e,t){gn(this,"init",{args:arguments},function(){const i=sh(sy,e),r=i.chart,o=this.renderTo||r.renderTo;this.userOptions=vf({},e),(this.renderTo=Ap(o)?fg.getElementById(o):o)||uy(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=t,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.locale=i.lang.locale??this.renderTo.closest("[lang]")?.lang,this.time=new M0(vf(i.time||{},{locale:this.locale}),i.lang),i.time=this.time.options,this.numberFormatter=(r.numberFormatter||I5).bind(this),this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes;const s=this;s.index=Gf.length,Gf.push(s),St.chartCount++,aS(this,r),s.xAxis=[],s.yAxis=[],s.pointCount=s.colorCounter=s.symbolCounter=0,this.setZoomOptions(),gn(s,"afterInit"),s.firstRender()})}initSeries(e){const t=this,i=t.options.chart,r=e.type||i.type,o=ay[r];o||uy(17,!0,t,{missingModuleFor:r});const s=new o;return typeof s.init=="function"&&s.init(t,e),s}setSortedData(){this.getSeriesOrderByLinks().forEach(function(e){!e.points&&!e.data&&e.enabledDataSorting&&e.setData(e.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(e,t){return e.linkedSeries.length||t.linkedSeries.length?t.linkedSeries.length-e.linkedSeries.length:0})}orderItems(e,t=0){const i=this[e],r=this.options[e]=_p(this.options[e]).slice(),o=this.userOptions[e]=this.userOptions[e]?_p(this.userOptions[e]).slice():[];if(this.hasRendered&&(r.splice(t),o.splice(t)),i)for(let s=t,a=i.length;s<a;++s){const l=i[s];l&&(l.index=s,l instanceof Ja&&(l.name=l.getName()),l.options.isInternal||(r[s]=l.options,o[s]=l.userOptions))}}getClipBox(e,t){const i=this.inverted,{xAxis:r,yAxis:o}=e||{};let{x:s,y:a,width:l,height:u}=sh(this.clipBox);return e&&(r&&r.len!==this.plotSizeX&&(l=r.len),o&&o.len!==this.plotSizeY&&(u=o.len),i&&!e.invertible&&([l,u]=[u,l])),t&&(s+=(i?o:r)?.pos??this.plotLeft,a+=(i?r:o)?.pos??this.plotTop),{x:s,y:a,width:l,height:u}}isInsidePlot(e,t,i={}){const{inverted:r,plotBox:o,plotLeft:s,plotTop:a,scrollablePlotBox:l}=this,{scrollLeft:u=0,scrollTop:g=0}=i.visiblePlotOnly&&this.scrollablePlotArea?.scrollingContainer||{},m=i.series,b=i.visiblePlotOnly&&l||o,w=i.inverted?t:e,E=i.inverted?e:t,T={x:w,y:E,isInsidePlot:!0,options:i};if(!i.ignoreX){const P=m&&(r&&!this.polar?m.yAxis:m.xAxis)||{pos:s,len:1/0},M=i.paneCoordinates?P.pos+w:s+w;M>=Math.max(u+s,P.pos)&&M<=Math.min(u+s+b.width,P.pos+P.len)||(T.isInsidePlot=!1)}if(!i.ignoreY&&T.isInsidePlot){const P=!r&&i.axis&&!i.axis.isXAxis&&i.axis||m&&(r?m.xAxis:m.yAxis)||{pos:a,len:1/0},M=i.paneCoordinates?P.pos+E:a+E;M>=Math.max(g+a,P.pos)&&M<=Math.min(g+a+b.height,P.pos+P.len)||(T.isInsidePlot=!1)}return gn(this,"afterIsInsidePlot",T),T.isInsidePlot}redraw(e){gn(this,"beforeRedraw");const t=this,i=t.hasCartesianSeries?t.axes:t.colorAxis||[],r=t.series,o=t.pointer,s=t.legend,a=t.userOptions.legend,l=t.renderer,u=l.isHidden(),g=[];let m,b,w,E=t.isDirtyBox,T=t.isDirtyLegend,P;for(l.rootFontSize=l.boxWrapper.getStyle("font-size"),t.setResponsive&&t.setResponsive(!1),oy(t.hasRendered?e:!1,t),u&&t.temporaryDisplay(),t.layOutTitles(!1),w=r.length;w--;)if(P=r[w],(P.options.stacking||P.options.centerInCategory)&&(b=!0,P.isDirty)){m=!0;break}if(m)for(w=r.length;w--;)P=r[w],P.options.stacking&&(P.isDirty=!0);r.forEach(function(M){M.isDirty&&(M.options.legendType==="point"?(typeof M.updateTotals=="function"&&M.updateTotals(),T=!0):a&&(a.labelFormatter||a.labelFormat)&&(T=!0)),M.isDirtyData&&gn(M,"updatedData")}),T&&s&&s.options.enabled&&(s.render(),t.isDirtyLegend=!1),b&&t.getStacks(),i.forEach(function(M){M.updateNames(),M.setScale()}),t.getMargins(),i.forEach(function(M){M.isDirty&&(E=!0)}),i.forEach(function(M){const I=M.min+","+M.max;M.extKey!==I&&(M.extKey=I,g.push(function(){gn(M,"afterSetExtremes",vf(M.eventArgs,M.getExtremes())),delete M.eventArgs})),(E||b)&&M.redraw()}),E&&t.drawChartBox(),gn(t,"predraw"),r.forEach(function(M){(E||M.isDirty)&&M.visible&&M.redraw(),M.isDirtyData=!1}),o&&o.reset(!0),l.draw(),gn(t,"redraw"),gn(t,"render"),u&&t.temporaryDisplay(!0),g.forEach(function(M){M.call()})}get(e){const t=this.series;function i(o){return o.id===e||o.options&&o.options.id===e}let r=hy(this.axes,i)||hy(this.series,i);for(let o=0;!r&&o<t.length;o++)r=hy(t[o].points||[],i);return r}createAxes(){const e=this.userOptions;gn(this,"createAxes");for(const t of["xAxis","yAxis"]){const i=e[t]=_p(e[t]||{});for(const r of i)new db(this,r,t)}gn(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((e,t)=>(t.getPointsCollection().forEach(i=>{na(i.selectedStaging,i.selected)&&e.push(i)}),e),[])}getSelectedSeries(){return this.series.filter(e=>e.selected)}setTitle(e,t,i){this.applyDescription("title",e),this.applyDescription("subtitle",t),this.applyDescription("caption",void 0),this.layOutTitles(i)}applyDescription(e,t){const i=this,r=this.options[e]=sh(this.options[e],t);let o=this[e];o&&t&&(this[e]=o=o.destroy()),r&&!o&&(o=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:"highcharts-"+e,zIndex:r.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add(),o.update=function(s,a){i.applyDescription(e,s),i.layOutTitles(a)},this.styledMode||o.css(vf(e==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},r.style)),o.textPxLength=o.getBBox().width,o.css({whiteSpace:r.style?.whiteSpace}),this[e]=o)}layOutTitles(e=!0){const t=[0,0,0],{options:i,renderer:r,spacingBox:o}=this;["title","subtitle","caption"].forEach(a=>{const l=this[a],u=this.options[a],g=sh(o),m=l?.textPxLength||0;if(l&&u){gn(this,"layOutTitle",{alignTo:g,key:a,textPxLength:m});const b=r.fontMetrics(l),w=b.b,E=b.h,T=u.verticalAlign||"top",P=T==="top",M=P&&u.minScale||1,I=a==="title"?P?-3:0:P?t[0]+2:0,L=Math.min(g.width/m,1),H=Math.max(M,L),W=sh({y:T==="bottom"?w:I+w},{align:a==="title"?L<M?"left":"center":this.title?.alignValue},u),G=(u.width||(L>M?this.chartWidth:g.width)/H)+"px";l.alignValue!==W.align&&(l.placed=!1);const J=Math.round(l.css({width:G}).getBBox(u.useHTML).height);if(W.height=J,l.align(W,!1,g).attr({align:W.align,scaleX:H,scaleY:H,"transform-origin":`${g.x+m*H*z5(W.align)} ${E}`}),!u.floating){const Y=J*(J<E*1.2?1:H);T==="top"?t[0]=Math.ceil(t[0]+Y):T==="bottom"&&(t[2]=Math.ceil(t[2]+Y))}}},this),t[0]&&(i.title?.verticalAlign||"top")==="top"&&(t[0]+=i.title?.margin||0),t[2]&&i.caption?.verticalAlign==="bottom"&&(t[2]+=i.caption?.margin||0);const s=!this.titleOffset||this.titleOffset.join(",")!==t.join(",");this.titleOffset=t,gn(this,"afterLayOutTitles"),!this.isDirtyBox&&s&&(this.isDirtyBox=this.isDirtyLegend=s,this.hasRendered&&e&&this.isDirtyBox&&this.redraw())}getContainerBox(){const e=[].map.call(this.renderTo.children,i=>{if(i!==this.container){const r=i.style.display;return i.style.display="none",[i,r]}}),t={width:fy(this.renderTo,"width",!0)||0,height:fy(this.renderTo,"height",!0)||0};return e.filter(Boolean).forEach(([i,r])=>{i.style.display=r}),t}getChartSize(){const e=this,t=e.options.chart,i=t.width,r=t.height,o=e.getContainerBox(),s=o.height<=1||!e.renderTo.parentElement?.style.height&&e.renderTo.style.height==="100%";e.chartWidth=Math.max(0,i||o.width||600),e.chartHeight=Math.max(0,fS(r,e.chartWidth)||(s?400:o.height)),e.containerBox=o}temporaryDisplay(e){let t=this.renderTo,i;if(e)for(;t?.style;)t.hcOrigStyle&&(bu(t,t.hcOrigStyle),delete t.hcOrigStyle),t.hcOrigDetached&&(fg.body.removeChild(t),t.hcOrigDetached=!1),t=t.parentNode;else for(;t?.style&&(!fg.body.contains(t)&&!t.parentNode&&(t.hcOrigDetached=!0,fg.body.appendChild(t)),(fy(t,"display",!1)==="none"||t.hcOricDetached)&&(t.hcOrigStyle={display:t.style.display,height:t.style.height,overflow:t.style.overflow},i={display:"block",overflow:"hidden"},t!==this.renderTo&&(i.height=0),bu(t,i),t.offsetWidth||t.style.setProperty("display","block","important")),t=t.parentNode,t!==fg.body););}setClassName(e){this.container.className="highcharts-container "+(e||"")}getContainer(){const e=this,t=e.options,i=t.chart,r="data-highcharts-chart",o=U5(),s=e.renderTo;let a;const l=V5(uS(s,r));wd(l)&&Gf[l]&&Gf[l].hasRendered&&Gf[l].destroy(),uS(s,r,e.index),s.innerHTML=wu.emptyHTML,!i.skipClone&&!s.offsetWidth&&e.temporaryDisplay(),e.getChartSize();const u=e.chartHeight;let g=e.chartWidth;bu(s,{overflow:"hidden"}),e.styledMode||(a=vf({position:"relative",overflow:"hidden",width:g+"px",height:u+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},i.style||{}));const m=cy("div",{id:o},a,s);e.container=m,e.getChartSize(),g!==e.chartWidth&&(g=e.chartWidth,e.styledMode||bu(m,{width:na(i.style?.width,g+"px")})),e.containerBox=e.getContainerBox(),e._cursor=m.style.cursor;const b=i.renderer||!D5?Kg.getRendererType(i.renderer):ME;if(e.renderer=new b(m,g,u,void 0,i.forExport,t.exporting?.allowHTML,e.styledMode),oy(void 0,e),e.setClassName(i.className),!e.styledMode)e.renderer.setStyle(i.style);else for(const w in t.defs)this.renderer.definition(t.defs[w]);e.renderer.chartIndex=e.index,gn(this,"afterGetContainer")}getMargins(e){const{spacing:t,margin:i,titleOffset:r}=this;this.resetMargins(),r[0]&&!df(i[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+t[0])),r[2]&&!df(i[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+t[2])),this.legend?.display&&this.legend.adjustMargins(i,t),gn(this,"getMargins"),e||this.getAxisMargins()}getAxisMargins(){const e=this,t=e.axisOffset=[0,0,0,0],i=e.colorAxis,r=e.margin,o=s=>{s.forEach(a=>{a.visible&&a.getOffset()})};e.hasCartesianSeries?o(e.axes):i?.length&&o(i),lS.forEach((s,a)=>{df(r[a])||(e[s]+=t[a])}),e.setChartSize()}getOptions(){return hS(this.userOptions,sy)}reflow(e){const t=this,i=t.containerBox,r=t.getContainerBox();delete t.pointer?.chartPosition,!t.exporting?.isPrinting&&!t.isResizing&&i&&r.width&&((r.width!==i.width||r.height!==i.height)&&(lt.clearTimeout(t.reflowTimeout),t.reflowTimeout=G5(function(){t.container&&t.setSize(void 0,void 0,!1)},e?100:0)),t.containerBox=r)}setReflow(){const e=this,t=i=>{e.options?.chart.reflow&&e.hasLoaded&&e.reflow(i)};if(typeof ResizeObserver=="function")new ResizeObserver(t).observe(e.renderTo);else{const i=ly(cS,"resize",t);ly(this,"destroy",i)}}setSize(e,t,i){const r=this,o=r.renderer;r.isResizing+=1,oy(i,r);const s=o.globalAnimation;r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,typeof e<"u"&&(r.options.chart.width=e),typeof t<"u"&&(r.options.chart.height=t),r.getChartSize();const{chartWidth:a,chartHeight:l,scrollablePixelsX:u=0,scrollablePixelsY:g=0}=r;(r.isDirtyBox||a!==r.oldChartWidth||l!==r.oldChartHeight)&&(r.styledMode||(s?ry:bu)(r.container,{width:`${a+u}px`,height:`${l+g}px`},s),r.setChartSize(!0),o.setSize(a,l,s),r.axes.forEach(function(m){m.isDirty=!0,m.setScale()}),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(s),r.oldChartHeight=void 0,gn(r,"resize"),setTimeout(()=>{r&&gn(r,"endResize")},L5(s).duration)),r.isResizing-=1}setChartSize(e){const t=this,{chartHeight:i,chartWidth:r,inverted:o,spacing:s,renderer:a}=t,l=t.clipOffset,u=Math[o?"floor":"round"];let g,m,b,w;t.plotLeft=g=Math.round(t.plotLeft),t.plotTop=m=Math.round(t.plotTop),t.plotWidth=b=Math.max(0,Math.round(r-g-(t.marginRight??0))),t.plotHeight=w=Math.max(0,Math.round(i-m-(t.marginBottom??0))),t.plotSizeX=o?w:b,t.plotSizeY=o?b:w,t.spacingBox=a.spacingBox={x:s[3],y:s[0],width:r-s[3]-s[1],height:i-s[0]-s[2]},t.plotBox=a.plotBox={x:g,y:m,width:b,height:w},l&&(t.clipBox={x:u(l[3]),y:u(l[0]),width:u(t.plotSizeX-l[1]-l[3]),height:u(t.plotSizeY-l[0]-l[2])}),e||(t.axes.forEach(function(E){E.setAxisSize(),E.setAxisTranslation()}),a.alignElements()),gn(t,"afterSetChartSize",{skipAxes:e})}resetMargins(){gn(this,"resetMargins");const e=this,t=e.options.chart,i=t.plotBorderWidth||0,r=Math.round(i)/2;["margin","spacing"].forEach(o=>{const s=t[o],a=W5(s)?s:[s,s,s,s];["Top","Right","Bottom","Left"].forEach((l,u)=>{e[o][u]=t[`${o}${l}`]??a[u]})}),lS.forEach((o,s)=>{e[o]=e.margin[s]??e.spacing[s]}),e.axisOffset=[0,0,0,0],e.clipOffset=[r,r,r,r],e.plotBorderWidth=i}drawChartBox(){const e=this,t=e.options.chart,i=e.renderer,r=e.chartWidth,o=e.chartHeight,s=e.styledMode,a=e.plotBGImage,l=t.backgroundColor,u=t.plotBackgroundColor,g=t.plotBackgroundImage,m=e.plotLeft,b=e.plotTop,w=e.plotWidth,E=e.plotHeight,T=e.plotBox,P=e.clipRect,M=e.clipBox;let I=e.chartBackground,L=e.plotBackground,H=e.plotBorder,W,G,J,Y="animate";I||(e.chartBackground=I=i.rect().addClass("highcharts-background").add(),Y="attr"),s?W=G=I.strokeWidth():(W=t.borderWidth||0,G=W+(t.shadow?8:0),J={fill:l||"none"},(W||I["stroke-width"])&&(J.stroke=t.borderColor,J["stroke-width"]=W),I.attr(J).shadow(t.shadow)),I[Y]({x:G/2,y:G/2,width:r-G-W%2,height:o-G-W%2,r:t.borderRadius}),Y="animate",L||(Y="attr",e.plotBackground=L=i.rect().addClass("highcharts-plot-background").add()),L[Y](T),s||(L.attr({fill:u||"none"}).shadow(t.plotShadow),g&&(a?(g!==a.attr("href")&&a.attr("href",g),a.animate(T)):e.plotBGImage=i.image(g,m,b,w,E).add())),P?P.animate({width:M.width,height:M.height}):e.clipRect=i.clipRect(M),Y="animate",H||(Y="attr",e.plotBorder=H=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),s||H.attr({stroke:t.plotBorderColor,"stroke-width":t.plotBorderWidth||0,fill:"none"}),H[Y](H.crisp(T,-H.strokeWidth())),e.isDirtyBox=!1,gn(this,"afterDrawChartBox")}propFromSeries(){const e=this,t=e.options.chart,i=e.options.series;let r,o,s;["inverted","angular","polar"].forEach(function(a){for(o=ay[t.type],s=t[a]||o&&o.prototype[a],r=i?.length;!s&&r--;)o=ay[i[r].type],o&&o.prototype[a]&&(s=!0);e[a]=s})}linkSeries(e){const t=this,i=t.series;i.forEach(function(r){r.linkedSeries.length=0}),i.forEach(function(r){const{linkedTo:o}=r.options;if(Ap(o)){let s;o===":previous"?s=t.series[r.index-1]:s=t.get(o),s&&s.linkedParent!==r&&(s.linkedSeries.push(r),r.linkedParent=s,s.enabledDataSorting&&r.setDataSortingOptions(),r.visible=na(r.options.visible,s.options.visible,r.visible))}}),gn(this,"afterLinkSeries",{isUpdating:e})}renderSeries(){this.series.forEach(function(e){e.translate(),e.render()})}render(){const e=this,t=e.axes,i=e.colorAxis,r=e.renderer,o=e.options.chart.axisLayoutRuns||2,s=m=>{m.forEach(b=>{b.visible&&b.render()})};let a=0,l=!0,u,g=0;e.setTitle(),gn(e,"beforeMargins"),e.getStacks?.(),e.getMargins(!0),e.setChartSize();for(const m of t){const{options:b}=m,{labels:w}=b;if(e.hasCartesianSeries&&m.horiz&&m.visible&&w.enabled&&m.series.length&&m.coll!=="colorAxis"&&!e.polar){a=b.tickLength,m.createGroups();const E=new Ad(m,0,"",!0),T=E.createLabel("x",w);if(E.destroy(),T&&na(w.reserveSpace,!wd(b.crossing))&&(a=T.getBBox().height+w.distance+Math.max(b.offset||0,0)),a){T?.destroy();break}}}for(e.plotHeight=Math.max(e.plotHeight-a,0);(l||u||o>1)&&g<o;){const m=e.plotWidth,b=e.plotHeight;for(const w of t)g===0?w.setScale():(w.horiz&&l||!w.horiz&&u)&&w.setTickInterval(!0);g===0?e.getAxisMargins():e.getMargins(),l=m/e.plotWidth>(g?1:1.1),u=b/e.plotHeight>(g?1:1.05),g++}e.drawChartBox(),e.hasCartesianSeries?s(t):i?.length&&s(i),e.seriesGroup||(e.seriesGroup=r.g("series-group").attr({zIndex:3}).shadow(e.options.chart.seriesGroupShadow).add()),e.dataLabelsGroup||(e.dataLabelsGroup=r.g("datalabels-group").attr({zIndex:6}).add()),e.renderSeries(),e.addCredits(),e.setResponsive&&e.setResponsive(),e.hasRendered=!0}addCredits(e){const t=this,i=sh(!0,this.options.credits,e);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){i.href&&(cS.location.href=i.href)}).attr({align:i.position.align,zIndex:8}),t.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(r){t.credits=t.credits.destroy(),t.addCredits(r)})}destroy(){const e=this,t=e.axes,i=e.series,r=e.container,o=r?.parentNode;let s;for(gn(e,"destroy"),e.renderer.forExport?N5(Gf,e):Gf[e.index]=void 0,St.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),dS(e),s=t.length;s--;)t[s]=t[s].destroy();for(this.scroller?.destroy?.(),s=i.length;s--;)i[s]=i[s].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(a=>{e[a]=e[a]?.destroy?.()}),r&&(r.innerHTML=wu.emptyHTML,dS(r),o&&B5(r)),dy(e,function(a,l){delete e[l]})}firstRender(){const e=this,t=e.options;e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.createAxes();const i=H5(t.series)?t.series:[];t.series=[],i.forEach(function(r){e.initSeries(r)}),e.linkSeries(),e.setSortedData(),gn(e,"beforeRender"),e.render(),e.pointer?.getChartPosition(),!e.renderer.imgCount&&!e.hasLoaded&&e.onload(),e.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(e){e&&typeof this.index<"u"&&e.apply(this,[this])},this),gn(this,"load"),gn(this,"render"),df(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){const{options:e,title:t}=this;e&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(t?.element.textContent||"").replace(/</g,"<")}),e.accessibility&&e.accessibility.enabled===!1||uy('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}addSeries(e,t,i){const r=this;let o;return e&&(t=na(t,!0),gn(r,"addSeries",{options:e},function(){o=r.initSeries(e),r.isDirtyLegend=!0,r.linkSeries(),o.enabledDataSorting&&o.setData(e.data,!1),gn(r,"afterAddSeries",{series:o}),t&&r.redraw(i)})),o}addAxis(e,t,i,r){return this.createAxis(t?"xAxis":"yAxis",{axis:e,redraw:i,animation:r})}addColorAxis(e,t,i){return this.createAxis("colorAxis",{axis:e,redraw:t,animation:i})}createAxis(e,t){const i=new db(this,t.axis,e);return na(t.redraw,!0)&&this.redraw(t.animation),i}showLoading(e){const t=this,i=t.options,r=i.loading,o=function(){s&&bu(s,{left:t.plotLeft+"px",top:t.plotTop+"px",width:t.plotWidth+"px",height:t.plotHeight+"px"})};let s=t.loadingDiv,a=t.loadingSpan;s||(t.loadingDiv=s=cy("div",{className:"highcharts-loading highcharts-loading-hidden"},null,t.container)),a||(t.loadingSpan=a=cy("span",{className:"highcharts-loading-inner"},null,s),ly(t,"redraw",o)),s.className="highcharts-loading",wu.setElementHTML(a,na(e,i.lang.loading,"")),t.styledMode||(bu(s,vf(r.style,{zIndex:10})),bu(a,r.labelStyle),t.loadingShown||(bu(s,{opacity:0,display:""}),ry(s,{opacity:r.style.opacity||.5},{duration:r.showDuration||0}))),t.loadingShown=!0,o()}hideLoading(){const e=this.options,t=this.loadingDiv;t&&(t.className="highcharts-loading highcharts-loading-hidden",this.styledMode||ry(t,{opacity:0},{duration:e.loading.hideDuration||100,complete:function(){bu(t,{display:"none"})}})),this.loadingShown=!1}update(e,t,i,r){const o=this,s={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},a=e.isResponsiveOptions,l=[];let u,g,m;gn(o,"update",{options:e}),a||o.setResponsive(!1,!0),e=hS(e,o.options),o.userOptions=sh(o.userOptions,e);const b=e.chart;b&&(sh(!0,o.options.chart,b),this.setZoomOptions(),"className"in b&&o.setClassName(b.className),("inverted"in b||"polar"in b||"type"in b)&&(o.propFromSeries(),u=!0),"alignTicks"in b&&(u=!0),"events"in b&&aS(this,b),dy(b,function(T,P){o.propsRequireUpdateSeries.indexOf("chart."+P)!==-1&&(g=!0),o.propsRequireDirtyBox.indexOf(P)!==-1&&(o.isDirtyBox=!0),o.propsRequireReflow.indexOf(P)!==-1&&(o.isDirtyBox=!0,a||(m=!0))}),!o.styledMode&&b.style&&o.renderer.setStyle(o.options.chart.style||{})),!o.styledMode&&e.colors&&(this.options.colors=e.colors),dy(e,function(T,P){o[P]&&typeof o[P].update=="function"?o[P].update(T,!1):typeof o[s[P]]=="function"?o[s[P]](T):P!=="colors"&&o.collectionsWithUpdate.indexOf(P)===-1&&sh(!0,o.options[P],e[P]),P!=="chart"&&o.propsRequireUpdateSeries.indexOf(P)!==-1&&(g=!0)}),this.collectionsWithUpdate.forEach(function(T){e[T]&&(_p(e[T]).forEach(function(P,M){const I=df(P.id);let L;I&&(L=o.get(P.id)),!L&&o[T]&&(L=o[T][na(P.index,M)],L&&(I&&df(L.options.id)||L.options.isInternal)&&(L=void 0)),L&&L.coll===T&&(L.update(P,!1),i&&(L.touched=!0)),!L&&i&&o.collectionsWithInit[T]&&(o.collectionsWithInit[T][0].apply(o,[P].concat(o.collectionsWithInit[T][1]||[]).concat([!1])).touched=!0)}),i&&o[T].forEach(function(P){!P.touched&&!P.options.isInternal?l.push(P):delete P.touched}))}),l.forEach(function(T){T.chart&&T.remove&&T.remove(!1)}),u&&o.axes.forEach(function(T){T.update({},!1)}),g&&o.getSeriesOrderByLinks().forEach(function(T){T.chart&&T.update({},!1)},this);const w=b?.width,E=b&&(Ap(b.height)?fS(b.height,w||o.chartWidth):b.height);m||wd(w)&&w!==o.chartWidth||wd(E)&&E!==o.chartHeight?o.setSize(w,E,r):na(t,!0)&&o.redraw(r),gn(o,"afterUpdate",{options:e,redraw:t,animation:r})}setSubtitle(e,t){this.applyDescription("subtitle",e),this.layOutTitles(t)}setCaption(e,t){this.applyDescription("caption",e),this.layOutTitles(t)}showResetZoom(){const e=this,t=sy.lang,i=e.zooming.resetButton,r=i.theme,o=i.relativeTo==="chart"||i.relativeTo==="spacingBox"?null:"plotBox";function s(){e.zoomOut()}gn(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(t.resetZoom,null,null,s,r).attr({align:i.position.align,title:t.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,o)}),gn(this,"afterShowResetZoom")}zoomOut(){gn(this,"selection",{resetSelection:!0},()=>this.transform({reset:!0,trigger:"zoom"}))}pan(e,t){const i=this,r=typeof t=="object"?t:{enabled:t,type:"x"},o=r.type,s=o&&i[{x:"xAxis",xy:"axes",y:"yAxis"}[o]].filter(l=>l.options.panningEnabled&&!l.options.isInternal),a=i.options.chart;a?.panning&&(a.panning=r),gn(this,"pan",{originalEvent:e},()=>{i.transform({axes:s,event:e,to:{x:e.chartX-(i.mouseDownX||0),y:e.chartY-(i.mouseDownY||0)},trigger:"pan"}),bu(i.container,{cursor:"move"})})}transform(e){const{axes:t=this.axes,event:i,from:r={},reset:o,selection:s,to:a={},trigger:l}=e,{inverted:u,time:g}=this;this.hoverPoints?.forEach(E=>E.setState()),gn(this,"transform",e);let m=e.hasZoomed||!1,b,w;for(const E of t){const{horiz:T,len:P,minPointOffset:M=0,options:I,reversed:L}=E,H=T?"width":"height",W=T?"x":"y",G=na(a[H],E.len),J=na(r[H],E.len),Y=Math.abs(G)<10?1:G/J,$=(r[W]||0)+J/2-E.pos,re=(a[W]??E.pos)+G/2-E.pos,be=$-re/Y,we=L&&!u||!L&&u?-1:1,Ee=be;if(!o&&($<0||$>E.len))continue;const pe=E.chart.polar||E.isOrdinal?0:M*we||0,me=E.toValue(Ee,!0),ee=E.toValue(Ee+P/Y,!0);let q=me+pe,le=ee-pe,Te=E.allExtremes;if(s&&s[E.coll].push({axis:E,min:Math.min(me,ee),max:Math.max(me,ee)}),q>le&&([q,le]=[le,q]),Y===1&&!o&&E.coll==="yAxis"&&!Te){for(const Pt of E.series){const pn=Pt.getExtremes(Pt.getProcessedData(!0).modified.getColumn("y")||[],!0);Te??(Te={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),wd(pn.dataMin)&&wd(pn.dataMax)&&(Te.dataMin=Math.min(pn.dataMin,Te.dataMin),Te.dataMax=Math.max(pn.dataMax,Te.dataMax))}E.allExtremes=Te}const{dataMin:he,dataMax:ue,min:Ne,max:We}=vf(E.getExtremes(),Te||{}),Qe=g.parse(I.min),_e=g.parse(I.max),Ve=he??Qe,Oe=ue??_e,qe=le-q,je=E.categories?0:Math.min(qe,Oe-Ve),it=Ve-je*(df(Qe)?0:I.minPadding),ct=Oe+je*(df(_e)?0:I.maxPadding),li=E.allowZoomOutside||Y===1||l!=="zoom"&&Y>1,tt=Math.min(Qe??it,it,li?Ne:it),Nt=Math.max(_e??ct,ct,li?We:ct);(!E.isOrdinal||Y!==1||o)&&(q<tt&&(q=tt,Y>=1&&(le=q+qe)),le>Nt&&(le=Nt,Y>=1&&(q=le-qe)),(o||E.series.length&&(q!==Ne||le!==We)&&q>=tt&&le<=Nt)&&(s?s[E.coll].push({axis:E,min:q,max:le}):(E.isPanning=l!=="zoom",E.isPanning&&(w=!0),E.setExtremes(o?void 0:q,o?void 0:le,!1,!1,{move:be,trigger:l,scale:Y}),!o&&(q>tt||le<Nt)&&l!=="mousewheel"&&(b=!0)),m=!0),!this.hasCartesianSeries&&!o&&l!=="mousewheel"&&(b=!0),i&&(this[T?"mouseDownX":"mouseDownY"]=i[T?"chartX":"chartY"]))}return m&&(s?gn(this,"selection",s,()=>{delete e.selection,e.trigger="zoom",this.transform(e)}):(b&&!w&&!this.resetZoomButton?this.showResetZoom():!b&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()),this.redraw(l==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),m}};vf(xg.prototype,{callbacks:[],collectionsWithInit:{xAxis:[xg.prototype.addAxis,[!0]],yAxis:[xg.prototype.addAxis,[!1]],series:[xg.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]});const zE=xg,{stop:X5}=$o,{composed:Y5}=St,{addEvent:gf,createElement:Op,css:gy,defined:py,erase:Z5,merge:gS,pushUnique:pS}=lt;function K5(){let n=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!n&&(this.scrollablePlotArea=n=new Jg(this)),n?.applyFixed()}function mS(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class Jg{static compose(e,t,i){pS(Y5,this.compose)&&(gf(e,"afterInit",mS),gf(t,"afterSetChartSize",r=>this.afterSetSize(r.target,r)),gf(t,"render",K5),gf(i,"show",mS))}static afterSetSize(e,t){const{minWidth:i,minHeight:r}=e.options.chart.scrollablePlotArea||{},{clipBox:o,plotBox:s,inverted:a,renderer:l}=e;let u,g,m;if(!l.forExport)if(i?(e.scrollablePixelsX=u=Math.max(0,i-e.chartWidth),u&&(e.scrollablePlotBox=gS(e.plotBox),s.width=e.plotWidth+=u,o[a?"height":"width"]+=u,m=!0)):r&&(e.scrollablePixelsY=g=Math.max(0,r-e.chartHeight),py(g)&&(e.scrollablePlotBox=gS(e.plotBox),s.height=e.plotHeight+=g,o[a?"width":"height"]+=g,m=!1)),py(m)){if(!t.skipAxes)for(const b of e.axes)(b.horiz===m||e.hasParallelCoordinates&&b.coll==="yAxis")&&(b.setAxisSize(),b.setAxisTranslation())}else delete e.scrollablePlotBox}constructor(e){const t=e.options.chart,i=Kg.getRendererType(),r=t.scrollablePlotArea||{},o=this.moveFixedElements.bind(this),s={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};e.scrollablePixelsX&&(s.overflowX="auto"),e.scrollablePixelsY&&(s.overflowY="auto"),this.chart=e;const a=this.parentDiv=Op("div",{className:"highcharts-scrolling-parent"},{position:"relative"},e.renderTo),l=this.scrollingContainer=Op("div",{className:"highcharts-scrolling"},s,a),u=this.innerContainer=Op("div",{className:"highcharts-inner-container"},void 0,l),g=this.fixedDiv=Op("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(t.style?.zIndex||0)+2,top:0},void 0,!0),m=this.fixedRenderer=new i(g,e.chartWidth,e.chartHeight,t.style);this.mask=m.path().attr({fill:t.backgroundColor||"#fff","fill-opacity":r.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),l.parentNode.insertBefore(g,l),gy(e.renderTo,{overflow:"visible"}),gf(e,"afterShowResetZoom",o),gf(e,"afterApplyDrilldown",o),gf(e,"afterLayOutTitles",o);let b;gf(l,"scroll",()=>{const{pointer:w,hoverPoint:E}=e;w&&(delete w.chartPosition,E&&(b=E),w.runPointActions(void 0,b,!0))}),u.appendChild(e.container)}applyFixed(){const{chart:e,fixedRenderer:t,isDirty:i,scrollingContainer:r}=this,{axisOffset:o,chartWidth:s,chartHeight:a,container:l,plotHeight:u,plotLeft:g,plotTop:m,plotWidth:b,scrollablePixelsX:w=0,scrollablePixelsY:E=0}=e,T=e.options.chart,P=T.scrollablePlotArea||{},{scrollPositionX:M=0,scrollPositionY:I=0}=P,L=s+w,H=a+E;t.setSize(s,a),(i??!0)&&(this.isDirty=!1,this.moveFixedElements()),X5(e.container),gy(l,{width:`${L}px`,height:`${H}px`}),e.renderer.boxWrapper.attr({width:L,height:H,viewBox:[0,0,L,H].join(" ")}),e.chartBackground?.attr({width:L,height:H}),gy(r,{width:`${s}px`,height:`${a}px`}),py(i)||(r.scrollLeft=w*M,r.scrollTop=E*I);const W=m-o[0]-1,G=g-o[3]-1,J=m+u+o[2]+1,Y=g+b+o[1]+1,$=g+b-w,re=m+u-E;let be=[["M",0,0]];w?be=[["M",0,W],["L",g-1,W],["L",g-1,J],["L",0,J],["Z"],["M",$,W],["L",s,W],["L",s,J],["L",$,J],["Z"]]:E&&(be=[["M",G,0],["L",G,m-1],["L",Y,m-1],["L",Y,0],["Z"],["M",G,re],["L",G,a],["L",Y,a],["L",Y,re],["Z"]]),e.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:be})}moveFixedElements(){const{container:e,inverted:t,scrollablePixelsX:i,scrollablePixelsY:r}=this.chart,o=this.fixedRenderer,s=Jg.fixedSelectors;let a;if(i&&!t?a=".highcharts-yaxis":i&&t||r&&!t?a=".highcharts-xaxis":r&&t&&(a=".highcharts-yaxis"),a&&!(this.chart.hasParallelCoordinates&&a===".highcharts-yaxis"))for(const l of[`${a}:not(.highcharts-radial-axis)`,`${a}-labels:not(.highcharts-radial-axis-labels)`])pS(s,l);else for(const l of[".highcharts-xaxis",".highcharts-yaxis"])for(const u of[`${l}:not(.highcharts-radial-axis)`,`${l}-labels:not(.highcharts-radial-axis-labels)`])Z5(s,u);for(const l of s)[].forEach.call(e.querySelectorAll(l),u=>{(u.namespaceURI===o.SVG_NS?o.box:o.box.parentNode).appendChild(u),u.style.pointerEvents="auto"})}}Jg.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];const J5=Jg,{format:Q5}=Mc,{series:j5}=rr,{destroyObjectProperties:q5,fireEvent:vS,getAlignFactor:my,isNumber:vy,pick:dg}=lt;class $5{constructor(e,t,i,r,o){const s=e.chart.inverted,a=e.reversed;this.axis=e;const l=this.isNegative=!!i!=!!a;this.options=t=t||{},this.x=r,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=o,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:t.align||(s?l?"left":"right":"center"),verticalAlign:t.verticalAlign||(s?"middle":l?"bottom":"top"),y:t.y,x:t.x},this.textAlign=t.textAlign||(s?l?"right":"left":"center")}destroy(){q5(this,this.axis)}render(e){const t=this.axis.chart,i=this.options,r=i.format,o=r?Q5(r,this,t):i.formatter.call(this);if(this.label)this.label.attr({text:o,visibility:"hidden"});else{this.label=t.renderer.label(o,null,void 0,i.shape,void 0,void 0,i.useHTML,!1,"stack-labels");const s={r:i.borderRadius||0,text:o,padding:dg(i.padding,5),visibility:"hidden"};t.styledMode||(s.fill=i.backgroundColor,s.stroke=i.borderColor,s["stroke-width"]=i.borderWidth,this.label.css(i.style||{})),this.label.attr(s),this.label.added||this.label.add(e)}this.label.labelrank=t.plotSizeY,vS(this,"afterRender")}setOffset(e,t,i,r,o,s){const{alignOptions:a,axis:l,label:u,options:g,textAlign:m}=this,b=l.chart,w=this.getStackBox({xOffset:e,width:t,boxBottom:i,boxTop:r,defaultX:o,xAxis:s}),{verticalAlign:E}=a;if(u&&w){const T=u.getBBox(void 0,0),P=u.padding;let M=dg(g.overflow,"justify")==="justify",I;a.x=g.x||0,a.y=g.y||0;const{x:L,y:H}=this.adjustStackPosition({labelBox:T,verticalAlign:E,textAlign:m});w.x-=L,w.y-=H,u.align(a,!1,w),I=b.isInsidePlot(u.alignAttr.x+a.x+L,u.alignAttr.y+a.y+H),I||(M=!1),M&&j5.prototype.justifyDataLabel.call(l,u,a,u.alignAttr,T,w),u.attr({x:u.alignAttr.x,y:u.alignAttr.y,rotation:g.rotation,rotationOriginX:T.width*my(g.textAlign||"center"),rotationOriginY:T.height/2}),dg(!M&&g.crop,!0)&&(I=vy(u.x)&&vy(u.y)&&b.isInsidePlot(u.x-P+(u.width||0),u.y)&&b.isInsidePlot(u.x+P,u.y)),u[I?"show":"hide"]()}vS(this,"afterSetOffset",{xOffset:e,width:t})}adjustStackPosition({labelBox:e,verticalAlign:t,textAlign:i}){return{x:e.width/2+e.width/2*(2*my(i)-1),y:e.height/2*2*(1-my(t))}}getStackBox(e){const t=this,i=this.axis,r=i.chart,{boxTop:o,defaultX:s,xOffset:a,width:l,boxBottom:u}=e,g=i.stacking.usePercentage?100:dg(o,this.total,0),m=i.toPixels(g),b=e.xAxis||r.xAxis[0],w=dg(s,b.translate(this.x))+a,E=i.toPixels(u||vy(i.min)&&i.logarithmic&&i.logarithmic.lin2log(i.min)||0),T=Math.abs(m-E),P=r.inverted,M=t.isNegative;return P?{x:(M?m:m-T)-r.plotLeft,y:b.height-w-l+b.top-r.plotTop,width:T,height:l}:{x:w+b.transB-r.plotLeft,y:(M?m-T:m)-r.plotTop,width:l,height:T}}}const HE=$5,{getDeferredAnimation:eN}=$o,{series:{prototype:tN}}=rr,{addEvent:yS,correctFloat:kg,defined:WE,destroyObjectProperties:nN,fireEvent:iN,isNumber:Sb,objectEach:Zf,pick:Tb}=lt;function rN(){const n=this,e=n.inverted;n.axes.forEach(t=>{t.stacking?.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),n.series.forEach(t=>{const i=t.xAxis?.options||{};t.options.stacking&&t.reserveSpace()&&(t.stackKey=[t.type,Tb(t.options.stack,""),e?i.top:i.left,e?i.height:i.width].join(","))})}function oN(){const n=this.stacking;if(n){const e=n.stacks;Zf(e,(t,i)=>{nN(t),delete e[i]}),n.stackTotalGroup?.destroy()}}function sN(){this.stacking||(this.stacking=new fN(this))}function aN(n,e,t,i){return!WE(n)||n.x!==e||i&&n.stackKey!==i?n={x:e,index:0,key:i,stackKey:i}:n.index++,n.key=[t,e,n.index].join(","),n}function lN(){const n=this,e=n.yAxis,t=n.stackKey||"",i=e.stacking.stacks,r=n.getColumn("x",!0),o=n.options.stacking,s=n[o+"Stacker"];let a;s&&[t,"-"+t].forEach(l=>{let u=r.length,g,m,b;for(;u--;)g=r[u],a=n.getStackIndicator(a,g,n.index,l),m=i[l]?.[g],b=m?.points[a.key||""],b&&s.call(n,b,m,u)})}function cN(n,e,t){const i=e.total?100/e.total:0;n[0]=kg(n[0]*i),n[1]=kg(n[1]*i),this.stackedYData[t]=n[1]}function uN(n){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?tN.setStackedPoints.call(this,n,"group"):n.stacking.resetStacks())}function hN(n,e){const t=e||this.options.stacking;if(!t||!this.reserveSpace()||({group:"xAxis"}[t]||"yAxis")!==n.coll)return;const i=this,r=i.getColumn("x",!0),o=i.getColumn(i.pointValKey||"y",!0),s=[],a=o.length,l=i.options,u=l.threshold||0,g=l.startFromThreshold?u:0,m=l.stack,b=e?`${i.type},${t}`:i.stackKey||"",w="-"+b,E=i.negStacks,T=n.stacking,P=T.stacks,M=T.oldStacks;let I,L,H,W,G,J,Y;for(T.stacksTouched+=1,Y=0;Y<a;Y++){const $=r[Y]||0,re=o[Y],be=Sb(re)&&re||0;I=i.getStackIndicator(I,$,i.index),J=I.key||"",L=E&&be<(g?0:u),G=L?w:b,P[G]||(P[G]={}),P[G][$]||(M[G]?.[$]?(P[G][$]=M[G][$],P[G][$].total=null):P[G][$]=new HE(n,n.options.stackLabels,!!L,$,m)),H=P[G][$],re!==null?(H.points[J]=H.points[i.index]=[Tb(H.cumulative,g)],WE(H.cumulative)||(H.base=J),H.touched=T.stacksTouched,I.index>0&&i.singleStacks===!1&&(H.points[J][0]=H.points[i.index+","+$+",0"][0])):(delete H.points[J],delete H.points[i.index]);let we=H.total||0;t==="percent"?(W=L?b:w,E&&P[W]?.[$]?(W=P[W][$],we=W.total=Math.max(W.total||0,we)+Math.abs(be)):we=kg(we+Math.abs(be))):t==="group"?Sb(re)&&we++:we=kg(we+be),t==="group"?H.cumulative=(we||1)-1:H.cumulative=kg(Tb(H.cumulative,g)+be),H.total=we,re!==null&&(H.points[J].push(H.cumulative),s[Y]=H.cumulative,H.hasValidPoints=!0)}t==="percent"&&(T.usePercentage=!0),t!=="group"&&(this.stackedYData=s),T.oldStacks={}}class fN{constructor(e){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=e}buildStacks(){const e=this,t=e.axis,i=t.series,r=t.coll==="xAxis",o=t.options.reversedStacks,s=i.length;let a,l;for(this.resetStacks(),e.usePercentage=!1,l=s;l--;)a=i[o?l:s-l-1],r&&a.setGroupedPoints(t),a.setStackedPoints(t);if(!r)for(l=0;l<s;l++)i[l].modifyStacks();iN(t,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,Zf(this.stacks,e=>{Zf(e,t=>{t.cumulative=t.total})}))}resetStacks(){Zf(this.stacks,e=>{Zf(e,(t,i)=>{Sb(t.touched)&&t.touched<this.stacksTouched?(t.destroy(),delete e[i]):(t.total=null,t.cumulative=null)})})}renderStackTotals(){const e=this,t=e.axis,i=t.chart,r=i.renderer,o=e.stacks,s=t.options.stackLabels?.animation,a=eN(i,s||!1),l=e.stackTotalGroup=e.stackTotalGroup||r.g("stack-labels").attr({zIndex:6,opacity:0}).add();l.translate(i.plotLeft,i.plotTop),Zf(o,u=>{Zf(u,g=>{g.render(l)})}),l.animate({opacity:1},a)}}var Eb;(function(n){function e(t,i,r){const o=i.prototype,s=r.prototype;o.getStacks||(yS(t,"init",sN),yS(t,"destroy",oN),o.getStacks=rN,s.getStackIndicator=aN,s.modifyStacks=lN,s.percentStacker=cN,s.setGroupedPoints=uN,s.setStackedPoints=hN)}n.compose=e})(Eb||(Eb={}));const dN=Eb,{defined:gN,merge:VE,isObject:pN}=lt;class GE extends Ja{drawGraph(){const e=this.options,t=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode;[this,...this.zones].forEach((r,o)=>{let s,a=r.graph;const l=a?"animate":"attr",u=r.dashStyle||e.dashStyle;a?(a.endX=this.preventGraphAnimation?null:t.xMap,a.animate({d:t})):t.length&&(r.graph=a=this.chart.renderer.path(t).addClass("highcharts-graph"+(o?` highcharts-zone-graph-${o-1} `:" ")+(o&&r.className||"")).attr({zIndex:1}).add(this.group)),a&&!i&&(s={stroke:!o&&e.lineColor||r.color||this.color||"#cccccc","stroke-width":e.lineWidth||0,fill:this.fillGraph&&this.color||"none"},u?s.dashstyle=u:e.linecap!=="square"&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),a[l](s).shadow(e.shadow&&VE({filterUnits:"userSpaceOnUse"},pN(e.shadow)?e.shadow:{}))),a&&(a.startX=t.xMap,a.isArea=t.isArea)})}getGraphPath(e,t,i){const r=this,o=r.options,s=[],a=[];let l,u=o.step;e=e||r.points;const g=e.reversed;return g&&e.reverse(),u={right:1,center:2}[u]||u&&3,u&&g&&(u=4-u),e=this.getValidPoints(e,!1,o.nullInteraction||!(o.connectNulls&&!t&&!i)),e.forEach(function(m,b){const w=m.plotX,E=m.plotY,T=e[b-1],P=m.isNull||typeof E!="number";let M;(m.leftCliff||T?.rightCliff)&&!i&&(l=!0),P&&!gN(t)&&b>0?l=!o.connectNulls:P&&!t?l=!0:(b===0||l?M=[["M",m.plotX,m.plotY]]:r.getPointSpline?M=[r.getPointSpline(e,m,b)]:u?(u===1?M=[["L",T.plotX,E]]:u===2?M=[["L",(T.plotX+w)/2,T.plotY],["L",(T.plotX+w)/2,E]]:M=[["L",w,T.plotY]],M.push(["L",w,E])):M=[["L",w,E]],a.push(m.x),u&&(a.push(m.x),u===2&&a.push(m.x)),s.push.apply(s,M),l=!1)}),s.xMap=a,r.graphPath=s,s}}GE.defaultOptions=VE(Ja.defaultOptions,{legendSymbol:"lineMarker"});rr.registerSeriesType("line",GE);const mN={threshold:0,legendSymbol:"areaMarker"},vN=mN,{seriesTypes:{line:Rb}}=rr,{extend:yN,merge:bN,objectEach:xN,pick:Fp}=lt;class L0 extends Rb{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);const{areaPath:e,options:t}=this;[this,...this.zones].forEach((i,r)=>{const o={},s=i.fillColor||t.fillColor;let a=i.area;const l=a?"animate":"attr";a?(a.endX=this.preventGraphAnimation?null:e.xMap,a.animate({d:e})):(o.zIndex=0,a=i.area=this.chart.renderer.path(e).addClass("highcharts-area"+(r?` highcharts-zone-area-${r-1} `:" ")+(r&&i.className||"")).add(this.group),a.isArea=!0),this.chart.styledMode||(o.fill=s||i.color||this.color,o["fill-opacity"]=s?1:t.fillOpacity??.75,a.css({pointerEvents:this.stickyTracking?"none":"auto"})),a[l](o),a.startX=e.xMap,a.shiftUnit=t.step?2:1})}getGraphPath(e){const t=Rb.prototype.getGraphPath,i=this.options,r=i.stacking,o=this.yAxis,s=[],a=[],l=this.index,u=o.stacking.stacks[this.stackKey],g=i.threshold,m=Math.round(o.getThreshold(i.threshold)),b=Fp(i.connectNulls,r==="percent"),w=function(G,J,Y){const $=e[G],re=r&&u[$.x].points[l],be=$[Y+"Null"]||0,we=$[Y+"Cliff"]||0;let Ee,pe,me=!0;we||be?(Ee=(be?re[0]:re[1])+we,pe=re[0]+we,me=!!be):!r&&e[J]&&e[J].isNull&&(Ee=pe=g),typeof Ee<"u"&&(a.push({plotX:E,plotY:Ee===null?m:o.getThreshold(Ee),isNull:me,isCliff:!0}),s.push({plotX:E,plotY:pe===null?m:o.getThreshold(pe),doCurve:!1}))};let E,T,P;e=e||this.points,r&&(e=this.getStackPoints(e));for(let G=0,J=e.length;G<J;++G)r||(e[G].leftCliff=e[G].rightCliff=e[G].leftNull=e[G].rightNull=void 0),T=e[G].isNull,E=Fp(e[G].rectPlotX,e[G].plotX),P=r?Fp(e[G].yBottom,m):m,(!T||b)&&(b||w(G,G-1,"left"),T&&!r&&b||(a.push(e[G]),s.push({x:G,plotX:E,plotY:P})),b||w(G,G+1,"right"));const M=t.call(this,a,!0,!0);s.reversed=!0;const I=t.call(this,s,!0,!0),L=I[0];L&&L[0]==="M"&&(I[0]=["L",L[1],L[2]]);const H=M.concat(I);H.length&&H.push(["Z"]);const W=t.call(this,a,!1,b);return this.chart.series.length>1&&r&&a.some(G=>G.isCliff)&&(H.hasStackedCliffs=W.hasStackedCliffs=!0),H.xMap=M.xMap,this.areaPath=H,W}getStackPoints(e){const t=this,i=[],r=[],o=this.xAxis,s=this.yAxis,a=s.stacking.stacks[this.stackKey],l={},u=s.series,g=u.length,m=s.options.reversedStacks?1:-1,b=u.indexOf(t);if(e=e||this.points,this.options.stacking){for(let E=0;E<e.length;E++)e[E].leftNull=e[E].rightNull=void 0,l[e[E].x]=e[E];xN(a,function(E,T){E.total!==null&&r.push(T)}),r.sort(function(E,T){return E-T});const w=u.map(E=>E.visible);r.forEach(function(E,T){let P=0,M,I;if(l[E]&&!l[E].isNull)i.push(l[E]),[-1,1].forEach(function(L){const H=L===1?"rightNull":"leftNull",W=L===1?"rightCliff":"leftCliff",G=a[r[T+L]];let J=0;if(G){let Y=b;for(;Y>=0&&Y<g;){const $=u[Y].index;M=G.points[$],M||($===t.index?l[E][H]=!0:w[Y]&&(I=a[E].points[$],I&&(J-=I[1]-I[0]))),Y+=m}}l[E][W]=J});else{let L=b;for(;L>=0&&L<g;){const H=u[L].index;if(M=a[E].points[H],M){P=M[1];break}L+=m}P=Fp(P,0),P=s.translate(P,0,1,0,1),i.push({isNull:!0,plotX:o.translate(E,0,0,0,1),x:E,plotY:P,yBottom:P})}})}return i}}L0.defaultOptions=bN(Rb.defaultOptions,vN);yN(L0.prototype,{singleStacks:!1});rr.registerSeriesType("area",L0);const{line:UE}=rr.seriesTypes,{merge:wN,pick:Lp}=lt;class I0 extends UE{getPointSpline(e,t,i){const s=t.plotX||0,a=t.plotY||0,l=e[i-1],u=e[i+1];let g,m,b,w;function E(P){return P&&!P.isNull&&P.doCurve!==!1&&!t.isCliff}if(E(l)&&E(u)){const P=l.plotX||0,M=l.plotY||0,I=u.plotX||0,L=u.plotY||0;let H=0;g=(1.5*s+P)/2.5,m=(1.5*a+M)/2.5,b=(1.5*s+I)/2.5,w=(1.5*a+L)/2.5,b!==g&&(H=(w-m)*(b-s)/(b-g)+a-w),m+=H,w+=H,m>M&&m>a?(m=Math.max(M,a),w=2*a-m):m<M&&m<a&&(m=Math.min(M,a),w=2*a-m),w>L&&w>a?(w=Math.max(L,a),m=2*a-w):w<L&&w<a&&(w=Math.min(L,a),m=2*a-w),t.rightContX=b,t.rightContY=w,t.controlPoints={low:[g,m],high:[b,w]}}const T=["C",Lp(l.rightContX,l.plotX,0),Lp(l.rightContY,l.plotY,0),Lp(g,s,0),Lp(m,a,0),s,a];return l.rightContX=l.rightContY=void 0,T}}I0.defaultOptions=wN(UE.defaultOptions);rr.registerSeriesType("spline",I0);const XE=I0,{area:CN,area:{prototype:yy}}=rr.seriesTypes,{extend:SN,merge:TN}=lt;class D0 extends XE{}D0.defaultOptions=TN(XE.defaultOptions,CN.defaultOptions);SN(D0.prototype,{getGraphPath:yy.getGraphPath,getStackPoints:yy.getStackPoints,drawGraph:yy.drawGraph});rr.registerSeriesType("areaspline",D0);const EN={borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},RN=EN,{animObject:kN}=$o,{parse:PN}=Jh,{noop:MN}=St,{clamp:Ip,crisp:Dp,defined:bS,extend:YE,fireEvent:xS,isArray:wS,isNumber:Bp,merge:kb,pick:gg,objectEach:AN}=lt;class Lm extends Ja{animate(e){const t=this,i=this.yAxis,r=i.pos,o=i.reversed,s=t.options,{clipOffset:a,inverted:l}=this.chart,u={},g=l?"translateX":"translateY";let m,b;e&&a?(u.scaleY=.001,b=Ip(i.toPixels(s.threshold||0),r,r+i.len),l?(b+=o?-Math.floor(a[0]):Math.ceil(a[2]),u.translateX=b-i.len):(b+=o?Math.ceil(a[0]):-Math.floor(a[2]),u.translateY=b),t.clipBox&&t.setClip(),t.group.attr(u)):(m=Number(t.group.attr(g)),t.group.animate({scaleY:1},YE(kN(t.options.animation),{step:function(w,E){t.group&&(u[g]=m+E.pos*(r-m),t.group.attr(u))}})))}init(e,t){super.init.apply(this,arguments);const i=this;e=i.chart,e.hasRendered&&e.series.forEach(function(r){r.type===i.type&&(r.isDirty=!0)})}getColumnMetrics(){const e=this,t=e.options,i=e.xAxis,r=e.yAxis,o=i.options.reversedStacks,s=i.reversed&&!o||!i.reversed&&o,a={};let l,u=0;t.grouping===!1?u=1:e.chart.series.forEach(function(I){const L=I.yAxis,H=I.options;let W;I.type===e.type&&I.reserveSpace()&&r.len===L.len&&r.pos===L.pos&&(H.stacking&&H.stacking!=="group"?(l=I.stackKey,typeof a[l]>"u"&&(a[l]=u++),W=a[l]):H.grouping!==!1&&(W=u++),I.columnIndex=W)});const g=Math.min(Math.abs(i.transA)*(!i.brokenAxis?.hasBreaks&&i.ordinal?.slope||t.pointRange||i.closestPointRange||i.tickInterval||1),i.len),m=g*t.groupPadding,b=g-2*m,w=b/(u||1),E=Math.min(t.maxPointWidth||i.len,gg(t.pointWidth,w*(1-2*t.pointPadding))),T=(w-E)/2,P=(e.columnIndex||0)+(s?1:0),M=T+(m+P*w-g/2)*(s?-1:1);return e.columnMetrics={width:E,offset:M,paddedWidth:w,columnCount:u},e.columnMetrics}crispCol(e,t,i,r){const o=this.borderWidth,s=this.chart.inverted,a=Dp(t+r,o,s);if(t=Dp(t,o,s),r=a-t,this.options.crisp){const l=Dp(e+i,o);e=Dp(e,o),i=l-e}return{x:e,y:t,width:i,height:r}}adjustForMissingColumns(e,t,i,r){if(!i.isNull&&r.columnCount>1){const o=this.xAxis.series.filter(u=>u.visible).map(u=>u.index);let s=0,a=0;AN(this.xAxis.stacking?.stacks,u=>{const g=typeof i.x=="number"?u[i.x.toString()]?.points:void 0,m=g?.[this.index],b={};if(g&&wS(m)){let w=this.index;const E=Object.keys(g).filter(T=>!T.match(",")&&g[T]&&g[T].length>1).map(parseFloat).filter(T=>o.indexOf(T)!==-1).filter(T=>{const P=this.chart.series[T].options,M=P.stacking&&P.stack;if(bS(M)){if(Bp(b[M]))return w===T&&(w=b[M]),!1;b[M]=T}return!0}).sort((T,P)=>P-T);s=E.indexOf(w),a=E.length}}),s=this.xAxis.reversed?a-1-s:s;const l=(a-1)*r.paddedWidth+t;e=(i.plotX||0)+l/2-t-s*r.paddedWidth}return e}translate(){const e=this,t=e.chart,i=e.options,r=e.dense=e.closestPointRange*e.xAxis.transA<2,o=e.borderWidth=gg(i.borderWidth,r?0:1),s=e.xAxis,a=e.yAxis,l=i.threshold,u=gg(i.minPointLength,5),g=e.getColumnMetrics(),m=g.width,b=e.pointXOffset=g.offset,w=e.dataMin,E=e.dataMax,T=e.translatedThreshold=a.getThreshold(l);let P=e.barW=Math.max(m,1+2*o);i.pointPadding&&i.crisp&&(P=Math.ceil(P)),Ja.prototype.translate.apply(e),e.points.forEach(function(M){const I=gg(M.yBottom,T),L=999+Math.abs(I),H=M.plotX||0,W=Ip(M.plotY,-L,a.len+L);let G,J=Math.min(W,I),Y=Math.max(W,I)-J,$=m,re=H+b,be=P;u&&Math.abs(Y)<u&&(Y=u,G=!a.reversed&&!M.negative||a.reversed&&M.negative,Bp(l)&&Bp(E)&&M.y===l&&E<=l&&(a.min||0)<l&&(w!==E||(a.max||0)<=l)&&(G=!G,M.negative=!M.negative),J=Math.abs(J-T)>u?I-u:T-(G?u:0)),bS(M.options.pointWidth)&&($=be=Math.ceil(M.options.pointWidth),re-=Math.round(($-m)/2)),i.centerInCategory&&(re=e.adjustForMissingColumns(re,$,M,g)),M.barX=re,M.pointWidth=$,M.tooltipPos=t.inverted?[Ip(a.len+a.pos-t.plotLeft-W,a.pos-t.plotLeft,a.len+a.pos-t.plotLeft),s.len+s.pos-t.plotTop-re-be/2,Y]:[s.left-t.plotLeft+re+be/2,Ip(W+a.pos-t.plotTop,a.pos-t.plotTop,a.len+a.pos-t.plotTop),Y],M.shapeType=e.pointClass.prototype.shapeType||"roundedRect",M.shapeArgs=e.crispCol(re,J,be,M.isNull?0:Y)}),xS(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(e,t){const i=this.options,r=this.pointAttrToOptions||{},o=r.stroke||"borderColor",s=r["stroke-width"]||"borderWidth";let a,l,u,g=e&&e.color||this.color,m=e&&e[o]||i[o]||g,b=e&&e.options.dashStyle||i.dashStyle,w=e&&e[s]||i[s]||this[s]||0,E=e?.isNull&&i.nullInteraction?0:e?.opacity??i.opacity??1;e&&this.zones.length&&(l=e.getZone(),g=e.options.color||l&&(l.color||e.nonZonedColor)||this.color,l&&(m=l.borderColor||m,b=l.dashStyle||b,w=l.borderWidth||w)),t&&e&&(a=kb(i.states[t],e.options.states&&e.options.states[t]||{}),u=a.brightness,g=a.color||typeof u<"u"&&PN(g).brighten(a.brightness).get()||g,m=a[o]||m,w=a[s]||w,b=a.dashStyle||b,E=gg(a.opacity,E));const T={fill:g,stroke:m,"stroke-width":w,opacity:E};return b&&(T.dashstyle=b),T}drawPoints(e=this.points){const t=this,i=this.chart,r=t.options,o=r.nullInteraction,s=i.renderer,a=r.animationLimit||250;let l;e.forEach(function(u){const g=u.plotY;let m=u.graphic,b=!!m,w=m&&i.pointCount<a?"animate":"attr";Bp(g)&&(u.y!==null||o)?(l=u.shapeArgs,m&&u.hasNewShapeType()&&(m=m.destroy()),t.enabledDataSorting&&(u.startXPos=t.xAxis.reversed?-(l&&l.width||0):t.xAxis.width),m||(u.graphic=m=s[u.shapeType](l).add(u.group||t.group),m&&t.enabledDataSorting&&i.hasRendered&&i.pointCount<a&&(m.attr({x:u.startXPos}),b=!0,w="animate")),m&&b&&m[w](kb(l)),i.styledMode||m[w](t.pointAttribs(u,u.selected&&"select")).shadow(u.allowShadow!==!1&&r.shadow),m&&(m.addClass(u.getClassName(),!0),m.attr({visibility:u.visible?"inherit":"hidden"}))):m&&(u.graphic=m.destroy())})}drawTracker(e=this.points){const t=this,i=t.chart,r=i.pointer,o=function(a){r?.normalize(a);const l=r?.getPointFromEvent(a);r&&l&&t.options.enableMouseTracking&&(i.isInsidePlot(a.chartX-i.plotLeft,a.chartY-i.plotTop,{visiblePlotOnly:!0})||r?.inClass(a.target,"highcharts-data-label"))&&(r.isDirectTouch=!0,l.onMouseOver(a))};let s;e.forEach(function(a){s=wS(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[],a.graphic&&(a.graphic.element.point=a),s.forEach(function(l){(l.div||l.element).point=a})}),t._hasTracking||(t.trackerGroups.forEach(function(a){t[a]&&(t[a].addClass("highcharts-tracker").on("mouseover",o).on("mouseout",function(l){r?.onTrackerMouseOut(l)}).on("touchstart",o),!i.styledMode&&t.options.cursor&&t[a].css({cursor:t.options.cursor}))}),t._hasTracking=!0),xS(this,"afterDrawTracker")}remove(){const e=this,t=e.chart;t.hasRendered&&t.series.forEach(function(i){i.type===e.type&&(i.isDirty=!0)}),Ja.prototype.remove.apply(e,arguments)}}Lm.defaultOptions=kb(Ja.defaultOptions,RN);YE(Lm.prototype,{directTouch:!0,getSymbol:MN,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});rr.registerSeriesType("column",Lm);const gm=Lm,{getDeferredAnimation:_N}=$o,{format:ON}=Mc,{defined:Uf,extend:CS,fireEvent:by,getAlignFactor:SS,isArray:pf,isString:pg,merge:mg,objectEach:FN,pick:vg,pInt:LN,splat:TS}=lt;var Pb;(function(n){function e(){return g(this).some(b=>b?.enabled)}function t(b,w,E,T,P){const M=this,{chart:I,enabledDataSorting:L}=this,H=this.isCartesian&&I.inverted,W=b.plotX,G=b.plotY,J=E.rotation||0,Y=Uf(W)&&Uf(G)&&I.isInsidePlot(W,Math.round(G),{inverted:H,paneCoordinates:!0,series:M}),$=Ee=>{L&&M.xAxis&&!re&&M.setDataLabelStartPos(b,w,P,Y,Ee)},re=J===0?vg(E.overflow,L?"none":"justify")==="justify":!1;let be=this.visible&&b.visible!==!1&&Uf(W)&&(b.series.forceDL||L&&!re||Y||vg(E.inside,!!this.options.stacking)&&T&&I.isInsidePlot(W,H?T.x+1:T.y+T.height-1,{inverted:H,paneCoordinates:!0,series:M}));const we=b.pos();if(be&&we){const Ee=w.getBBox(),pe=w.getBBox(void 0,0);if(T=CS({x:we[0],y:Math.round(we[1]),width:0,height:0},T||{}),E.alignTo==="plotEdges"&&M.isCartesian&&(T[H?"x":"y"]=0,T[H?"width":"height"]=this.yAxis?.len||0),CS(E,{width:Ee.width,height:Ee.height}),$(T),w.align(mg(E,{width:pe.width,height:pe.height}),!1,T,!1),w.alignAttr.x+=SS(E.align)*(pe.width-Ee.width),w.alignAttr.y+=SS(E.verticalAlign)*(pe.height-Ee.height),w[w.placed?"animate":"attr"]({"text-align":w.alignAttr["text-align"]||"center",x:w.alignAttr.x+(Ee.width-pe.width)/2,y:w.alignAttr.y+(Ee.height-pe.height)/2,rotationOriginX:(w.width||0)/2,rotationOriginY:(w.height||0)/2}),re&&T.height>=0)this.justifyDataLabel(w,E,w.alignAttr,Ee,T,P);else if(vg(E.crop,!0)){const{x:me,y:ee}=w.alignAttr,q=1;be=I.isInsidePlot(me,ee,{paneCoordinates:!0,series:M})&&I.isInsidePlot(me+Ee.width-q,ee+Ee.height-q,{paneCoordinates:!0,series:M})}E.shape&&!J&&w[P?"attr":"animate"]({anchorX:we[0],anchorY:we[1]})}P&&L&&(w.placed=!1),!be&&(!L||re)?(w.hide(),w.placed=!1):(w.show(),w.placed=!0)}function i(b,w){const E=w.filter;if(E){const T=E.operator,P=b[E.property],M=E.value;return T===">"&&P>M||T==="<"&&P<M||T===">="&&P>=M||T==="<="&&P<=M||T==="=="&&P==M||T==="==="&&P===M||T==="!="&&P!=M||T==="!=="&&P!==M}return!0}function r(b){const w=b.prototype;w.initDataLabels||(w.initDataLabels=s,w.initDataLabelsGroup=o,w.alignDataLabel=t,w.drawDataLabels=a,w.justifyDataLabel=l,w.mergeArrays=u,w.setDataLabelStartPos=m,w.hasDataLabels=e)}n.compose=r;function o(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6,this.chart.dataLabelsGroup)}function s(b){const w=this,E=w.hasRendered||0,T=this.initDataLabelsGroup().attr({opacity:+E});return!E&&T&&(w.visible&&T.show(),w.options.animation?T.animate({opacity:1},b):T.attr({opacity:1})),T}function a(b){b=b||this.points;const w=this,E=w.chart,T=w.options,P=E.renderer,{backgroundColor:M,plotBackgroundColor:I}=E.options.chart,L=P.getContrast(pg(I)&&I||pg(M)&&M||"#000000"),H=g(w);let W,G;const{animation:J,defer:Y}=H[0],$=Y?_N(E,J,w):{defer:0,duration:0};by(this,"drawDataLabels"),w.hasDataLabels?.()&&(G=this.initDataLabels($),b.forEach(re=>{const be=re.dataLabels||[],we=re.color||w.color;W=TS(u(H,re.dlOptions||re.options?.dataLabels)),W.forEach((pe,me)=>{const ee=pe.enabled&&(re.visible||re.dataLabelOnHidden)&&(!re.isNull||re.dataLabelOnNull)&&i(re,pe),{backgroundColor:q,borderColor:le,distance:Te,style:he={}}=pe;let ue,Ne,We,Qe={},_e=be[me],Ve=!_e,Oe;ee&&(ue=vg(pe[re.formatPrefix+"Format"],pe.format),Ne=Uf(ue)?ON(ue,re,E):(pe[re.formatPrefix+"Formatter"]||pe.formatter).call(re,pe),We=pe.rotation,E.styledMode||(he.color=vg(pe.color,he.color,pg(w.color)?w.color:void 0,"#000000"),he.color==="contrast"?(q!=="none"&&(Oe=q),re.contrastColor=P.getContrast(Oe!=="auto"&&pg(Oe)&&Oe||(pg(we)?we:"")),he.color=Oe||!Uf(Te)&&pe.inside||LN(Te||0)<0||T.stacking?re.contrastColor:L):delete re.contrastColor,T.cursor&&(he.cursor=T.cursor)),Qe={r:pe.borderRadius||0,rotation:We,padding:pe.padding,zIndex:1},E.styledMode||(Qe.fill=q==="auto"?re.color:q,Qe.stroke=le==="auto"?re.color:le,Qe["stroke-width"]=pe.borderWidth),FN(Qe,(qe,je)=>{typeof qe>"u"&&delete Qe[je]})),_e&&(!ee||!Uf(Ne)||!!(_e.div||_e.text?.foreignObject)!=!!pe.useHTML||(!_e.rotation||!pe.rotation)&&_e.rotation!==pe.rotation)&&(_e=void 0,Ve=!0),ee&&Uf(Ne)&&Ne!==""&&(_e?Qe.text=Ne:(_e=P.label(Ne,0,0,pe.shape,void 0,void 0,pe.useHTML,void 0,"data-label"),_e.addClass(" highcharts-data-label-color-"+re.colorIndex+" "+(pe.className||"")+(pe.useHTML?" highcharts-tracker":""))),_e&&(_e.options=pe,_e.attr(Qe),E.styledMode?he.width&&_e.css({width:he.width,textOverflow:he.textOverflow,whiteSpace:he.whiteSpace}):_e.css(he).shadow(pe.shadow),by(_e,"beforeAddingDataLabel",{labelOptions:pe,point:re}),_e.added||_e.add(G),w.alignDataLabel(re,_e,pe,void 0,Ve),_e.isActive=!0,be[me]&&be[me]!==_e&&be[me].destroy(),be[me]=_e))});let Ee=be.length;for(;Ee--;)be[Ee]?.isActive?be[Ee].isActive=!1:(be[Ee]?.destroy(),be.splice(Ee,1));re.dataLabel=be[0],re.dataLabels=be})),by(this,"afterDrawDataLabels")}function l(b,w,E,T,P,M){const I=this.chart,L=w.align,H=w.verticalAlign,W=b.box?0:b.padding||0,G=I.inverted?this.yAxis:this.xAxis,J=G?G.left-I.plotLeft:0,Y=I.inverted?this.xAxis:this.yAxis,$=Y?Y.top-I.plotTop:0;let{x:re=0,y:be=0}=w,we,Ee;return we=(E.x||0)+W+J,we<0&&(L==="right"&&re>=0?(w.align="left",w.inside=!0):re-=we,Ee=!0),we=(E.x||0)+T.width-W+J,we>I.plotWidth&&(L==="left"&&re<=0?(w.align="right",w.inside=!0):re+=I.plotWidth-we,Ee=!0),we=E.y+W+$,we<0&&(H==="bottom"&&be>=0?(w.verticalAlign="top",w.inside=!0):be-=we,Ee=!0),we=(E.y||0)+T.height-W+$,we>I.plotHeight&&(H==="top"&&be<=0?(w.verticalAlign="bottom",w.inside=!0):be+=I.plotHeight-we,Ee=!0),Ee&&(w.x=re,w.y=be,b.placed=!M,b.align(w,void 0,P)),Ee}function u(b,w){let E=[],T;if(pf(b)&&!pf(w))E=b.map(function(P){return mg(P,w)});else if(pf(w)&&!pf(b))E=w.map(function(P){return mg(b,P)});else if(!pf(b)&&!pf(w))E=mg(b,w);else if(pf(b)&&pf(w))for(T=Math.max(b.length,w.length);T--;)E[T]=mg(b[T],w[T]);return E}function g(b){const w=b.chart.options.plotOptions;return TS(u(u(w?.series?.dataLabels,w?.[b.type]?.dataLabels),b.options.dataLabels))}function m(b,w,E,T,P){const M=this.chart,I=M.inverted,L=this.xAxis,H=L.reversed,W=((I?w.height:w.width)||0)/2,G=b.pointWidth,J=G?G/2:0;w.startXPos=I?P.x:H?-W-J:L.width-W+J,w.startYPos=I?H?this.yAxis.height-W+J:-W-J:P.y,T?w.visibility==="hidden"&&(w.show(),w.attr({opacity:0}).animate({opacity:1})):w.attr({opacity:1}).animate({opacity:0},void 0,w.hide),M.hasRendered&&(E&&w.attr({x:w.startXPos,y:w.startYPos}),w.placed=!0)}})(Pb||(Pb={}));const Im=Pb,{composed:IN}=St,{series:ES}=rr,{merge:DN,pushUnique:BN}=lt;var Mb;(function(n){function e(i,r,o,s,a){const{chart:l,options:u}=this,g=l.inverted,m=this.xAxis?.len||l.plotSizeX||0,b=this.yAxis?.len||l.plotSizeY||0,w=i.dlBox||i.shapeArgs,E=i.below??(i.plotY||0)>(this.translatedThreshold??b),T=o.inside??!!u.stacking;if(w){if(s=DN(w),o.overflow!=="allow"||o.crop!==!1||u.clip!==!1){s.y<0&&(s.height+=s.y,s.y=0);const P=s.y+s.height-b;P>0&&P<s.height-1&&(s.height-=P)}g&&(s={x:b-s.y-s.height,y:m-s.x-s.width,width:s.height,height:s.width}),T||(g?(s.x+=E?0:s.width,s.width=0):(s.y+=E?s.height:0,s.height=0))}o.align??(o.align=!g||T?"center":E?"right":"left"),o.verticalAlign??(o.verticalAlign=g||T?"middle":E?"top":"bottom"),ES.prototype.alignDataLabel.call(this,i,r,o,s,a),o.inside&&i.contrastColor&&r.css({color:i.contrastColor})}function t(i){Im.compose(ES),BN(IN,"ColumnDataLabel")&&(i.prototype.alignDataLabel=e)}n.compose=t})(Mb||(Mb={}));const NN=Mb,{extend:zN,merge:HN}=lt;class B0 extends gm{}B0.defaultOptions=HN(gm.defaultOptions,{});zN(B0.prototype,{inverted:!0});rr.registerSeriesType("bar",B0);const WN={lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},VN=WN,{column:GN,line:ZE}=rr.seriesTypes,{addEvent:UN,extend:XN,merge:YN}=lt;class Dm extends ZE{applyJitter(){const e=this,t=this.options.jitter,i=this.points.length;function r(o){const s=Math.sin(o)*1e4;return s-Math.floor(s)}t&&this.points.forEach(function(o,s){["x","y"].forEach(function(a,l){if(t[a]&&!o.isNull){const u=`plot${a.toUpperCase()}`,g=e[`${a}Axis`],m=t[a]*g.transA;if(g&&!g.logarithmic){const b=Math.max(0,(o[u]||0)-m),w=Math.min(g.len,(o[u]||0)+m);o[u]=b+(w-b)*r(s+l*i),a==="x"&&(o.clientX=o.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}Dm.defaultOptions=YN(ZE.defaultOptions,VN);XN(Dm.prototype,{drawTracker:GN.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]});UN(Dm,"afterTranslate",function(){this.applyJitter()});rr.registerSeriesType("scatter",Dm);const{deg2rad:RS}=St,{fireEvent:ZN,isNumber:xy,pick:Np,relativeLength:KN}=lt;var Ab;(function(n){function e(){const i=this.options,r=this.chart,o=2*(i.slicedOffset||0),s=r.plotWidth-2*o,a=r.plotHeight-2*o,l=i.center,u=Math.min(s,a),g=i.thickness;let m,b=i.size,w=i.innerSize||0,E,T;typeof b=="string"&&(b=parseFloat(b)),typeof w=="string"&&(w=parseFloat(w));const P=[Np(l?.[0],"50%"),Np(l?.[1],"50%"),Np(b&&b<0?void 0:i.size,"100%"),Np(w&&w<0?void 0:i.innerSize||0,"0%")];for(r.angular&&!(this instanceof Ja)&&(P[3]=0),E=0;E<4;++E)T=P[E],m=E<2||E===2&&/%$/.test(T),P[E]=KN(T,[s,a,u,P[2]][E])+(m?o:0);return P[3]>P[2]&&(P[3]=P[2]),xy(g)&&g*2<P[2]&&g>0&&(P[3]=P[2]-g*2),ZN(this,"afterGetCenter",{positions:P}),P}n.getCenter=e;function t(i,r){const o=xy(i)?i:0,s=xy(r)&&r>o&&r-o<360?r:o+360,a=-90;return{start:RS*(o+a),end:RS*(s+a)}}n.getStartAndEndRadians=t})(Ab||(Ab={}));const KE=Ab,{setAnimation:JN}=$o,{addEvent:kS,defined:QN,extend:jN,isNumber:qN,pick:$N,relativeLength:ez}=lt;class JE extends Tf{getConnectorPath(e){const t=e.dataLabelPosition,i=e.options||{},r=i.connectorShape,o=this.connectorShapes[r]||r;return t&&o.call(this,{...t.computed,alignment:t.alignment},t.connectorPosition,i)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(e){const t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:t.r-1,start:t.start,end:t.end,borderRadius:t.borderRadius})}constructor(e,t,i){super(e,t,i),this.half=0,this.name??(this.name=e.chart.options.lang.pieSliceName);const r=o=>{this.slice(o.type==="select")};kS(this,"select",r),kS(this,"unselect",r)}isValid(){return qN(this.y)&&this.y>=0}setVisible(e,t=!0){e!==this.visible&&this.update({visible:e??!this.visible},t,void 0,!1)}slice(e,t,i){const r=this.series,o=r.chart;JN(i,o),t=$N(t,!0),this.sliced=this.options.sliced=e=QN(e)?e:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}jN(JE.prototype,{connectorShapes:{fixedOffset:function(n,e,t){const i=e.breakAt,r=e.touchingSliceAt,o=t.softConnector?["C",n.x+(n.alignment==="left"?-5:5),n.y,2*i.x-r.x,2*i.y-r.y,i.x,i.y]:["L",i.x,i.y];return[["M",n.x,n.y],o,["L",r.x,r.y]]},straight:function(n,e){const t=e.touchingSliceAt;return[["M",n.x,n.y],["L",t.x,t.y]]},crookedLine:function(n,e,t){const{angle:i=this.angle||0,breakAt:r,touchingSliceAt:o}=e,{series:s}=this,[a,l,u]=s.center,g=u/2,{plotLeft:m,plotWidth:b}=s.chart,w=n.alignment==="left",{x:E,y:T}=n;let P=r.x;if(t.crookDistance){const I=ez(t.crookDistance,1);P=w?a+g+(b+m-a-g)*(1-I):m+(a-g)*I}else P=a+(l-T)*Math.tan(i-Math.PI/2);const M=[["M",E,T]];return(w?P<=E&&P>=r.x:P>=E&&P<=r.x)&&M.push(["L",P,T]),M.push(["L",r.x,r.y],["L",o.x,o.y]),M}}});const tz=JE,nz={borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},iz=nz,{getStartAndEndRadians:rz}=KE,{noop:PS}=St,{clamp:oz,extend:sz,fireEvent:MS,merge:_b,pick:az}=lt;class N0 extends Ja{animate(e){const t=this,i=t.points,r=t.startAngleRad;e||i.forEach(function(o){const s=o.graphic,a=o.shapeArgs;s&&a&&(s.attr({r:az(o.startR,t.center&&t.center[3]/2),start:r,end:r}),s.animate({r:a.r,start:a.start,end:a.end},t.options.animation))})}drawEmpty(){const e=this.startAngleRad,t=this.endAngleRad,i=this.options;let r,o;this.total===0&&this.center?(r=this.center[0],o=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(r,o,this.center[1]/2,0,e,t).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:PE.arc(r,o,this.center[2]/2,0,{start:e,end:t,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":i.borderWidth,fill:i.fillColor||"none",stroke:i.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){const e=this.chart.renderer;this.points.forEach(function(t){t.graphic&&t.hasNewShapeType()&&(t.graphic=t.graphic.destroy()),t.graphic||(t.graphic=e[t.shapeType](t.shapeArgs).add(t.series.group),t.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(e,t,i,r){const o=this.center,s=this.radii?this.radii[i.index]||0:o[2]/2,a=r.dataLabelPosition,l=a?.distance||0,u=Math.asin(oz((e-o[1])/(s+l),-1,1));return o[0]+(t?-1:1)*(Math.cos(u)*(s+l))+(l>0?(t?-1:1)*(r.padding||0):0)}hasData(){return this.points.some(e=>e.visible)}redrawPoints(){const e=this,t=e.chart;let i,r,o,s;this.drawEmpty(),e.group&&!t.styledMode&&e.group.shadow(e.options.shadow),e.points.forEach(function(a){const l={};r=a.graphic,!a.isNull&&r?(s=a.shapeArgs,i=a.getTranslate(),t.styledMode||(o=e.pointAttribs(a,a.selected&&"select")),a.delayedRendering?(r.setRadialReference(e.center).attr(s).attr(i),t.styledMode||r.attr(o).attr({"stroke-linejoin":"round"}),a.delayedRendering=!1):(r.setRadialReference(e.center),t.styledMode||_b(!0,l,o),_b(!0,l,s,i),r.animate(l)),r.attr({visibility:a.visible?"inherit":"hidden"}),r.addClass(a.getClassName(),!0)):r&&(a.graphic=r.destroy())})}sortByAngle(e,t){e.sort(function(i,r){return typeof i.angle<"u"&&(r.angle-i.angle)*t})}translate(e){MS(this,"translate"),this.generatePoints();const t=this,i=1e3,r=t.options,o=r.slicedOffset,s=rz(r.startAngle,r.endAngle),a=t.startAngleRad=s.start,l=t.endAngleRad=s.end,u=l-a,g=t.points,m=r.ignoreHiddenPoint,b=g.length;let w,E,T,P,M,I,L,H=0;for(e||(t.center=e=t.getCenter()),I=0;I<b;I++){L=g[I],w=a+H*u,L.isValid()&&(!m||L.visible)&&(H+=L.percentage/100),E=a+H*u;const W={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:Math.round(w*i)/i,end:Math.round(E*i)/i};L.shapeType="arc",L.shapeArgs=W,T=(E+w)/2,T>1.5*Math.PI?T-=2*Math.PI:T<-Math.PI/2&&(T+=2*Math.PI),L.slicedTranslation={translateX:Math.round(Math.cos(T)*o),translateY:Math.round(Math.sin(T)*o)},P=Math.cos(T)*e[2]/2,M=Math.sin(T)*e[2]/2,L.tooltipPos=[e[0]+P*.7,e[1]+M*.7],L.half=T<-Math.PI/2||T>Math.PI/2?1:0,L.angle=T}MS(t,"afterTranslate")}updateTotals(){const e=this.points,t=e.length,i=this.options.ignoreHiddenPoint;let r,o,s=0;for(r=0;r<t;r++)o=e[r],o.isValid()&&(!i||o.visible)&&(s+=o.y);for(this.total=s,r=0;r<t;r++)o=e[r],o.percentage=s>0&&(o.visible||!i)?o.y/s*100:0,o.total=s}}N0.defaultOptions=_b(Ja.defaultOptions,iz);sz(N0.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:gm.prototype.drawTracker,getCenter:KE.getCenter,getSymbol:PS,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:gm.prototype.pointAttribs,pointClass:tz,requireSorting:!1,searchPoint:PS,trackerGroups:["group","dataLabelsGroup"]});rr.registerSeriesType("pie",N0);const{composed:lz,noop:cz}=St,{distribute:uz}=_m,{series:AS}=rr,{arrayMax:hz,clamp:_S,defined:OS,isNumber:fz,pick:dz,pushUnique:gz,relativeLength:FS}=lt;var Ob;(function(n){const e={radialDistributionY:function(a,l){return(l.dataLabelPosition?.top||0)+a.distributeBox.pos},radialDistributionX:function(a,l,u,g,m){const b=m.dataLabelPosition;return a.getX(u<(b?.top||0)+2||u>(b?.bottom||0)-2?g:u,l.half,l,m)},justify:function(a,l,u,g){return g[0]+(a.half?-1:1)*(u+(l.dataLabelPosition?.distance||0))},alignToPlotEdges:function(a,l,u,g){const m=a.getBBox().width;return l?m+g:u-m-g},alignToConnectors:function(a,l,u,g){let m=0,b;return a.forEach(function(w){b=w.dataLabel.getBBox().width,b>m&&(m=b)}),l?m+g:u-m-g}};function t(a){if(Im.compose(AS),gz(lz,"PieDataLabel")){const l=a.prototype;l.dataLabelPositioners=e,l.alignDataLabel=cz,l.drawDataLabels=r,l.getDataLabelPosition=i,l.placeDataLabels=o,l.verifyDataLabelOverflow=s}}n.compose=t;function i(a,l){const u=Math.PI/2,{start:g=0,end:m=0}=a.shapeArgs||{};let b=a.angle||0;l>0&&g<u&&m>u&&b>u/2&&b<u*1.5&&(b=b<=u?Math.max(u/2,(g+u)/2):Math.min(u*1.5,(u+m)/2));const{center:w,options:E}=this,T=w[2]/2,P=Math.cos(b),M=Math.sin(b),I=w[0]+P*T,L=w[1]+M*T,H=Math.min((E.slicedOffset||0)+(E.borderWidth||0),l/5);return{natural:{x:I+P*l,y:L+M*l},computed:{},alignment:l<0?"center":a.half?"right":"left",connectorPosition:{angle:b,breakAt:{x:I+P*H,y:L+M*H},touchingSliceAt:{x:I,y:L}},distance:l}}function r(){const a=this,l=a.points,u=a.chart,g=u.plotWidth,m=u.plotHeight,b=u.plotLeft,w=Math.round(u.chartWidth/3),E=a.center,T=E[2]/2,P=E[1],M=[[],[]],I=[0,0,0,0],L=a.dataLabelPositioners;let H,W,G,J=0;!a.visible||!a.hasDataLabels?.()||(l.forEach(Y=>{(Y.dataLabels||[]).forEach($=>{$.shortened&&($.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),$.shortened=!1)})}),AS.prototype.drawDataLabels.apply(a),l.forEach(Y=>{(Y.dataLabels||[]).forEach(($,re)=>{const be=E[2]/2,we=$.options,Ee=FS(we?.distance||0,be);re===0&&M[Y.half].push(Y),OS(we?.style?.width)||$.getBBox().width>w&&($.css({width:Math.round(w*.7)+"px"}),$.shortened=!0),$.dataLabelPosition=this.getDataLabelPosition(Y,Ee),J=Math.max(J,Ee)})}),M.forEach((Y,$)=>{const re=Y.length,be=[];let we,Ee,pe=0,me;re&&(a.sortByAngle(Y,$-.5),J>0&&(we=Math.max(0,P-T-J),Ee=Math.min(P+T+J,u.plotHeight),Y.forEach(ee=>{(ee.dataLabels||[]).forEach(q=>{const le=q.dataLabelPosition;le&&le.distance>0&&(le.top=Math.max(0,P-T-le.distance),le.bottom=Math.min(P+T+le.distance,u.plotHeight),pe=q.getBBox().height||21,q.lineHeight=u.renderer.fontMetrics(q.text||q).h+2*q.padding,ee.distributeBox={target:(q.dataLabelPosition?.natural.y||0)-le.top+q.lineHeight/2,size:pe,rank:ee.y},be.push(ee.distributeBox))})}),me=Ee+pe-we,uz(be,me,me/5)),Y.forEach(ee=>{(ee.dataLabels||[]).forEach(q=>{const le=q.options||{},Te=ee.distributeBox,he=q.dataLabelPosition,ue=he?.natural.y||0,Ne=le.connectorPadding||0,We=q.lineHeight||21,Qe=q.getBBox(),_e=(We-Qe.height)/2;let Ve=0,Oe=ue,qe="inherit";if(he){if(be&&OS(Te)&&he.distance>0&&(typeof Te.pos>"u"?qe="hidden":(G=Te.size,Oe=L.radialDistributionY(ee,q))),le.justify)Ve=L.justify(ee,q,T,E);else switch(le.alignTo){case"connectors":Ve=L.alignToConnectors(Y,$,g,b);break;case"plotEdges":Ve=L.alignToPlotEdges(q,$,g,b);break;default:Ve=L.radialDistributionX(a,ee,Oe-_e,ue,q)}if(he.attribs={visibility:qe,align:he.alignment},he.posAttribs={x:Ve+(le.x||0)+({left:Ne,right:-Ne}[he.alignment]||0),y:Oe+(le.y||0)-We/2},he.computed.x=Ve,he.computed.y=Oe-_e,dz(le.crop,!0)){W=q.getBBox().width;let je;Ve-W<Ne&&$===1?(je=Math.round(W-Ve+Ne),I[3]=Math.max(je,I[3])):Ve+W>g-Ne&&$===0&&(je=Math.round(Ve+W-g+Ne),I[1]=Math.max(je,I[1])),Oe-G/2<0?I[0]=Math.max(Math.round(-Oe+G/2),I[0]):Oe+G/2>m&&(I[2]=Math.max(Math.round(Oe+G/2-m),I[2])),he.sideOverflow=je}}})}))}),(hz(I)===0||this.verifyDataLabelOverflow(I))&&(this.placeDataLabels(),this.points.forEach(Y=>{(Y.dataLabels||[]).forEach($=>{const{connectorColor:re,connectorWidth:be=1}=$.options||{},we=$.dataLabelPosition;if(fz(be)){let Ee;H=$.connector,we&&we.distance>0?(Ee=!H,H||($.connector=H=u.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+Y.colorIndex+(Y.className?" "+Y.className:"")).add(a.dataLabelsGroup)),u.styledMode||H.attr({"stroke-width":be,stroke:re||Y.color||"#666666"}),H[Ee?"attr":"animate"]({d:Y.getConnectorPath($)}),H.attr({visibility:we.attribs?.visibility})):H&&($.connector=H.destroy())}})})))}function o(){this.points.forEach(a=>{(a.dataLabels||[]).forEach(l=>{const u=l.dataLabelPosition;u?(u.sideOverflow&&(l.css({width:Math.max(l.getBBox().width-u.sideOverflow,0)+"px",textOverflow:l.options?.style?.textOverflow||"ellipsis"}),l.shortened=!0),l.attr(u.attribs),l[l.moved?"animate":"attr"](u.posAttribs),l.moved=!0):l&&l.attr({y:-9999})}),delete a.distributeBox},this)}function s(a){const l=this.center,u=this.options,g=u.center,m=u.minSize||80;let b=m,w=u.size!==null;return w||(g[0]!==null?b=Math.max(l[2]-Math.max(a[1],a[3]),m):(b=Math.max(l[2]-a[1]-a[3],m),l[0]+=(a[3]-a[1])/2),g[1]!==null?b=_S(b,m,l[2]-Math.max(a[0],a[2])):(b=_S(b,m,l[2]-a[0]-a[2]),l[1]+=(a[0]-a[2])/2),b<l[2]?(l[2]=b,l[3]=Math.min(u.thickness?Math.max(0,b-u.thickness*2):Math.max(0,FS(u.innerSize||0,b)),b),this.translate(l),this.drawDataLabels&&this.drawDataLabels()):w=!0),w}})(Ob||(Ob={}));const pz=Ob;var Fb;(function(n){function e(o){const s=o.reduce((a,l)=>(a.x+=l.x,a.y+=l.y,a),{x:0,y:0});return{x:s.x/o.length,y:s.y/o.length}}n.getCenterOfPoints=e;function t(o,s){return Math.sqrt(Math.pow(s.x-o.x,2)+Math.pow(s.y-o.y,2))}n.getDistanceBetweenPoints=t;function i(o,s){return Math.atan2(s.x-o.x,s.y-o.y)}n.getAngleBetweenPoints=i;function r({x:o,y:s},a){const l=a.length;let u,g,m=!1;for(u=0,g=l-1;u<l;g=u++){const[b,w]=a[u],[E,T]=a[g];w>s!=T>s&&o<(E-b)*(s-w)/(T-w)+b&&(m=!m)}return m}n.pointInPolygon=r})(Fb||(Fb={}));const mz=Fb,{pointInPolygon:vz}=mz,{addEvent:yz,getAlignFactor:bz,fireEvent:QE,objectEach:LS,pick:xz}=lt;function wz(n){const e=this,t=n.length,i=(b,w)=>!(w.x>=b.x+b.width||w.x+w.width<=b.x||w.y>=b.y+b.height||w.y+w.height<=b.y),r=(b,w)=>{for(const E of b)if(vz({x:E[0],y:E[1]},w))return!0;return!1};function o(b){if(b&&(!b.alignAttr||b.placed)){const w=b.box?0:b.padding||0,E=b.alignAttr||{x:b.attr("x"),y:b.attr("y")},{height:T,polygon:P,width:M}=b.getBBox(),I=bz(b.alignValue)*M;return b.width=M,b.height=T,{x:E.x+(b.parentGroup?.translateX||0)+w-I,y:E.y+(b.parentGroup?.translateY||0)+w,width:M-2*w,height:T-2*w,polygon:P}}}let s,a,l,u,g,m=!1;for(let b=0;b<t;b++)s=n[b],s&&(s.oldOpacity=s.opacity,s.newOpacity=1,s.absoluteBox=o(s));n.sort((b,w)=>(w.labelrank||0)-(b.labelrank||0));for(let b=0;b<t;++b){a=n[b],u=a&&a.absoluteBox;const w=u?.polygon;for(let E=b+1;E<t;++E){l=n[E],g=l&&l.absoluteBox;let T=!1;if(u&&g&&a!==l&&a.newOpacity!==0&&l.newOpacity!==0&&a.visibility!=="hidden"&&l.visibility!=="hidden"){const P=g.polygon;if(w&&P&&w!==P?r(w,P)&&(T=!0):i(u,g)&&(T=!0),T){const M=a.labelrank<l.labelrank?a:l,I=M.text;M.newOpacity=0,I?.element.querySelector("textPath")&&I.hide()}}}}for(const b of n)jE(b,e)&&(m=!0);m&&QE(e,"afterHideAllOverlappingLabels")}function Cz(n){const e=n.prototype;e.hideOverlappingLabels||(e.hideOverlappingLabels=wz,yz(n,"render",Sz))}function jE(n,e){let t,i,r=!1;return n&&(i=n.newOpacity,n.oldOpacity!==i&&(n.hasClass("highcharts-data-label")?(n[i?"removeClass":"addClass"]("highcharts-data-label-hidden"),t=function(){e.styledMode||n.css({pointerEvents:i?"auto":"none"})},r=!0,n[n.isOld?"animate":"attr"]({opacity:i},void 0,t),QE(e,"afterHideOverlappingLabel")):n.attr({opacity:i})),n.isOld=!0),r}function Sz(){const n=this;let e=[];for(const t of n.labelCollectors||[])e=e.concat(t());for(const t of n.yAxis||[])t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&LS(t.stacking.stacks,i=>{LS(i,r=>{r.label&&e.push(r.label)})});for(const t of n.series||[])if(t.visible&&t.hasDataLabels?.()){const i=r=>{for(const o of r)o.visible&&(o.dataLabels||[]).forEach(s=>{const a=s.options||{};s.labelrank=xz(a.labelrank,o.labelrank,o.shapeArgs?.height),a.allowOverlap??Number(a.distance)>0?(s.oldOpacity=s.opacity,s.newOpacity=1,jE(s,n)):e.push(s)})};i(t.nodes||[]),i(t.points)}this.hideOverlappingLabels(e)}const Tz={compose:Cz},qE=Tz,{defaultOptions:Ez}=Pc,{noop:$E}=St,{addEvent:IS,extend:Rz,isObject:eR,merge:kz,relativeLength:z0}=lt,Pz={radius:0,scope:"stack",where:void 0};let tR=$E,nR=$E;function Mz(n,e,t){const i=n[e];let r=n[e+1];r[0]==="Z"&&(r=n[0]);let o,s,a;if((i[0]==="M"||i[0]==="L")&&r[0]==="A"?(o=i,s=r,a=!0):i[0]==="A"&&(r[0]==="M"||r[0]==="L")&&(o=r,s=i),o&&s&&s.params){const l=s[1],u=s[5],g=s.params,{start:m,end:b,cx:w,cy:E}=g,T=u?l-t:l+t,P=T?Math.asin(t/T):0,M=u?P:-P,I=Math.cos(P)*T;a?(g.start=m+M,o[1]=w+I*Math.cos(m),o[2]=E+I*Math.sin(m),n.splice(e+1,0,["A",t,t,0,0,1,w+l*Math.cos(g.start),E+l*Math.sin(g.start)])):(g.end=b-M,s[6]=w+l*Math.cos(g.end),s[7]=E+l*Math.sin(g.end),n.splice(e+1,0,["A",t,t,0,0,1,w+I*Math.cos(b),E+I*Math.sin(b)])),s[4]=Math.abs(g.end-g.start)<Math.PI?0:1}}function Az(n,e,t,i,r={}){const o=tR(n,e,t,i,r),{brStart:s=!0,brEnd:a=!0,innerR:l=0,r:u=t,start:g=0,end:m=0}=r;if(r.open||!r.borderRadius)return o;const b=m-g,w=Math.sin(b/2),E=Math.max(Math.min(z0(r.borderRadius||0,u-l),(u-l)/2,u*w/(1+w)),0),T=Math.min(E,2*(b/Math.PI)*l);let P=o.length-1;for(;P--;)!s&&(P===0||P===3)||!a&&(P===1||P===2)||Mz(o,P,P>1?T:E);return o}function _z(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){const{options:n,yAxis:e}=this,t=n.stacking==="percent",i=Ez.plotOptions?.[this.type]?.borderRadius,r=H0(n.borderRadius,eR(i)?i:{}),o=e.options.reversed;for(const s of this.points){const{shapeArgs:a}=s;if(s.shapeType==="roundedRect"&&a){const{width:l=0,height:u=0,y:g=0}=a;let m=g,b=u;if(r.scope==="stack"&&s.stackTotal){const P=e.translate(t?100:s.stackTotal,!1,!0,!1,!0),M=e.translate(n.threshold||0,!1,!0,!1,!0),I=this.crispCol(0,Math.min(P,M),0,Math.abs(P-M));m=I.y,b=I.height}const w=(s.negative?-1:1)*(o?-1:1)===-1;let E=r.where;!E&&this.is("waterfall")&&Math.abs((s.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(E="all"),E||(E="end");const T=Math.min(z0(r.radius,l),l/2,E==="all"?u/2:1/0)||0;E==="end"&&(w&&(m-=T),b+=T),Rz(a,{brBoxHeight:b,brBoxY:m,r:T})}}}}function Oz(n,e,t){const i=n.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){const r=t.prototype.symbols;IS(n,"afterColumnTranslate",_z,{order:9}),IS(i,"afterTranslate",Fz),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),tR=r.arc,nR=r.roundedRect,r.arc=Az,r.roundedRect=Lz}}function H0(n,e){return eR(n)||(n={radius:n||0}),kz(Pz,e,n)}function Fz(){const n=H0(this.options.borderRadius);for(const e of this.points){const t=e.shapeArgs;t&&(t.borderRadius=z0(n.radius,(t.r||0)-(t.innerR||0)))}}function Lz(n,e,t,i,r={}){const o=nR(n,e,t,i,r),{r:s=0,brBoxHeight:a=i,brBoxY:l=e}=r,u=e-l,g=l+a-(e+i),m=u-s>-.1?0:s,b=g-s>-.1?0:s,w=Math.max(m&&u,0),E=Math.max(b&&g,0),T=[n+m,e],P=[n+t-m,e],M=[n+t,e+m],I=[n+t,e+i-b],L=[n+t-b,e+i],H=[n+b,e+i],W=[n,e+i-b],G=[n,e+m],J=(Y,$)=>Math.sqrt(Math.pow(Y,2)-Math.pow($,2));if(w){const Y=J(m,m-w);T[0]-=Y,P[0]+=Y,M[1]=G[1]=e+m-w}if(i<m-w){const Y=J(m,m-w-i);M[0]=I[0]=n+t-m+Y,L[0]=Math.min(M[0],L[0]),H[0]=Math.max(I[0],H[0]),W[0]=G[0]=n+m-Y,M[1]=G[1]=e+i}if(E){const Y=J(b,b-E);L[0]+=Y,H[0]-=Y,I[1]=W[1]=e+i-b+E}if(i<b-E){const Y=J(b,b-E-i);M[0]=I[0]=n+t-b+Y,P[0]=Math.min(M[0],P[0]),T[0]=Math.max(I[0],T[0]),W[0]=G[0]=n+b-Y,I[1]=W[1]=e}return o.length=0,o.push(["M",...T],["L",...P],["A",m,m,0,0,1,...M],["L",...I],["A",b,b,0,0,1,...L],["L",...H],["A",b,b,0,0,1,...W],["L",...G],["A",m,m,0,0,1,...T],["Z"]),o}const Iz={compose:Oz,optionsToObject:H0},Dz=Iz,{diffObjects:Bz,extend:Nz,find:zz,merge:Hz,pick:zp,uniqueKey:Wz}=lt;var Lb;(function(n){function e(r){const o=r.prototype;return o.matchResponsiveRule||Nz(o,{matchResponsiveRule:t,setResponsive:i}),r}n.compose=e;function t(r,o){const s=r.condition;(s.callback||function(){return this.chartWidth<=zp(s.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=zp(s.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=zp(s.minWidth,0)&&this.chartHeight>=zp(s.minHeight,0)}).call(this)&&o.push(r._id)}function i(r,o){const s=this.options.responsive,a=this.currentResponsive;let l=[],u;!o&&s&&s.rules&&s.rules.forEach(b=>{typeof b._id>"u"&&(b._id=Wz()),this.matchResponsiveRule(b,l)},this);const g=Hz(...l.map(b=>zz(s?.rules||[],w=>w._id===b)).map(b=>b?.chartOptions));g.isResponsiveOptions=!0,l=l.toString()||void 0;const m=a?.ruleIds;l!==m&&(a&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(a.undoOptions,r,!0),this.updatingResponsive=!1),l?(u=Bz(g,this.options,!0,this.collectionsWithUpdate),u.isResponsiveOptions=!0,this.currentResponsive={ruleIds:l,mergedOptions:g,undoOptions:u},this.updatingResponsive||this.update(g,r,!0)):this.currentResponsive=void 0)}})(Lb||(Lb={}));const Vz=Lb,nt=St;nt.AST=wu;nt.Axis=db;nt.Chart=zE;nt.Color=Jh;nt.DataLabel=Im;nt.DataTableCore=qp;nt.Fx=qf;nt.HTMLElement=OE;nt.Legend=BE;nt.LegendSymbol=DE;nt.OverlappingDataLabels=nt.OverlappingDataLabels||qE;nt.PlotLineOrBand=FE;nt.Point=Tf;nt.Pointer=IE;nt.RendererRegistry=Kg;nt.Series=Ja;nt.SeriesRegistry=rr;nt.StackItem=HE;nt.SVGElement=uh;nt.SVGRenderer=ME;nt.Templating=Mc;nt.Tick=Ad;nt.Time=M0;nt.Tooltip=LE;nt.animate=$o.animate;nt.animObject=$o.animObject;nt.chart=zE.chart;nt.color=Jh.parse;nt.dateFormat=Mc.dateFormat;nt.defaultOptions=Pc.defaultOptions;nt.distribute=_m.distribute;nt.format=Mc.format;nt.getDeferredAnimation=$o.getDeferredAnimation;nt.getOptions=Pc.getOptions;nt.numberFormat=Mc.numberFormat;nt.seriesType=rr.seriesType;nt.setAnimation=$o.setAnimation;nt.setOptions=Pc.setOptions;nt.stop=$o.stop;nt.time=Pc.defaultTime;nt.timers=qf.timers;Dz.compose(nt.Series,nt.SVGElement,nt.SVGRenderer);NN.compose(nt.Series.types.column);Im.compose(nt.Series);lB.compose(nt.Axis);OE.compose(nt.SVGRenderer);BE.compose(nt.Chart);hB.compose(nt.Axis);qE.compose(nt.Chart);pz.compose(nt.Series.types.pie);FE.compose(nt.Chart,nt.Axis);IE.compose(nt.Chart);Vz.compose(nt.Chart);J5.compose(nt.Axis,nt.Chart,nt.Series);dN.compose(nt.Axis,nt.Chart,nt.Series);LE.compose(nt.Pointer);lt.extend(nt,lt);const pm=nt;var iR=function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t};pm.AST.allowedAttributes.indexOf("data-hc-option")===-1&&pm.AST.allowedAttributes.push("data-hc-option");let Gh=pm;const wy={logLevel:"silent",log(...n){this.logLevel==="debug"&&console.log(...n)}};function Gz(n){if(n===void 0){Gh=pm,delete Gh.__provided;return}Gh=n,Gh.__provided=!0}function Uz(){return Gh}const DS=n=>Array.isArray(n)?n.flat():[n];function Hp(n,e=void 0){const t={};function i(u,g,m=null){const b=g.split(".");let w=u;for(let E=0;E<b.length-1;E++){const T=b[E];w[T]||(w[T]={}),w=w[T]}return w[b[b.length-1]]=m,u}function r(u){return e?e(u):u.filter(g=>typeof g=="string").join("")}function o(u){return typeof u=="object"&&u!==null&&"$$typeof"in u&&"props"in u}function s(u,g){return Object.assign(Object.assign({},u),{childOption:g.childOption?`${g.childOption}.${u.childOption}`:u.childOption,HCOption:g.HCOption?`${g.HCOption}.${u.HCOption}`:u.HCOption})}function a(u,g,m){var b,w,E;if(!u)return;if(Array.isArray(u)&&u.some(P=>{var M;return(M=P?.props)===null||M===void 0?void 0:M["data-hc-option"]})){const P=[];for(const M of u){const I=(b=M?.props)===null||b===void 0?void 0:b["data-hc-option"];I?i(g,I,r([M])):P.push(M)}P.length&&m.childOption&&i(g,m.childOption,r(P));return}const T=[];if(Array.isArray(u))for(const P of u){if(!((w=P?.type)===null||w===void 0)&&w._HCReact){const M=P.type._HCReact;P.type._HCReact=s(M,m),l(P);continue}T.push(P)}else{const P=u;if(!((E=P?.type)===null||E===void 0)&&E._HCReact){const M=P.type._HCReact;P.type._HCReact=s(M,m),l(P)}else T.push(P)}if(m.childOption){const P=T.length>0?T:[u];i(g,m.childOption,r(P))}}function l(u){var g,m,b,w,E;if(!u||typeof u!="object")return;const T=(g=u.type)===null||g===void 0?void 0:g._HCReact;if(!T?.HCOption)return;const P=(m=t[E=T.HCOption])!==null&&m!==void 0?m:t[E]=T.isArrayType?[]:{},M=Array.isArray(P),I=M?{}:P,L=(b=u.props)!==null&&b!==void 0?b:{},{children:H}=L,W=iR(L,["children"]);T.defaultOptions&&Object.assign(I,T.defaultOptions),Object.assign(I,W),typeof H=="string"&&T.childOption?i(I,T.childOption,H):Array.isArray(H)?a(H,I,T):o(H)&&e&&(!((w=H.props)===null||w===void 0)&&w.children&&Object.keys(H.props).length===1?a(H.props.children,I,T):T.childOption&&i(I,T.childOption,e(H))),M&&t[T.HCOption].push(I)}return Array.isArray(n)?n.flat().forEach(u=>l(u)):l(n),t}const W0=ge.forwardRef(function(e,t){e.highcharts&&Gz(e.highcharts);const i=Gh.merge(Object.assign({title:{text:e.title||void 0}},e.options||{}),Object.assign({series:e.children?DS(e.children).filter(l=>{var u;return((u=l?.type)===null||u===void 0?void 0:u.type)==="Series"}).map(l=>{var u,g,m;return Gh.merge({type:(u=l.props.type)!==null&&u!==void 0?u:(m=(g=l.type)===null||g===void 0?void 0:g._HCReact)===null||m===void 0?void 0:m.HC_Option.replace("series.",""),data:l.props.data||[]},Object.assign(Object.assign({},l.props.options||{}),Hp(l.props.children,Sv.renderToStaticMarkup)))}):[]},Hp(e.children,Sv.renderToStaticMarkup)),e.options||{}),r=ge.useRef(),o=ge.useRef();ge.useImperativeHandle(t,()=>({get chart(){return o.current},get container(){return r.current}}),[]);const s=l=>{var u,g;(u=(g=l.title).text)!==null&&u!==void 0||(g.text=e.title)},a=()=>{e.children&&DS(e.children).filter(u=>{var g;return((g=u?.type)===null||g===void 0?void 0:g.type)==="Series"}).forEach((u,g)=>{var m;if(u.props){const b=u.props,{children:w,type:E,options:T}=b,P=iR(b,["children","type","options"]);T&&(i.series[g]=Gh.merge(i.series[g],T)),i.series[g]=Gh.merge(i.series[g],Object.assign(Object.assign({type:E??((m=u?.type)===null||m===void 0?void 0:m._HCReact.HC_Option.replace("series.",""))},Hp(u.props.children)),P))}})};return ge.useEffect(()=>{if(wy.log(JSON.stringify(i,void 0," ")),o.current)wy.log("Updating chart",JSON.parse(JSON.stringify(i))),s(i),a(),o.current.update(Object.assign(Object.assign({},i),Hp(e.children,Sv.renderToStaticMarkup)),!0,!0);else{const l=e.chartConstructor||"chart";wy.log("Creating chart using",l,"constructor"),o.current=Uz()[l](r.current,i)}}),ge.createElement("div",Object.assign({},e.containerProps,{ref:r}))});function rR(n){return null}rR.type="Series";W0.Series=rR;function oR(n){return null}oR._HCReact={type:"HC_Option",HCOption:"title",childOption:"text",defaultOptions:void 0,isArrayType:!1};function sR(n){return null}sR._HCReact={type:"HC_Option",HCOption:"tooltip",childOption:"format",defaultOptions:{useHTML:!0},isArrayType:!1};const Cy={chart:{type:"areaspline",backgroundColor:"transparent",spacing:[0,0,0,0],margin:[0,0,0,0]},plotOptions:{areaspline:{marker:{enabled:!1}}},xAxis:{gridLineWidth:0,lineWidth:0,tickWidth:0,labels:{enabled:!1},title:{text:""}},yAxis:{gridLineWidth:0,lineWidth:0,tickWidth:0,labels:{enabled:!1},title:{text:""}},legend:{enabled:!1},credits:{enabled:!1}},Xz={positive:{color:"var(--fill-positive-primary)",fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"var(--fill-positive-tint-high)"],[1,"var(--fill-positive-transparent)"]]}},negative:{color:"var(--fill-negative-primary)",fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"var(--fill-negative-tint-high)"],[1,"var(--fill-negative-transparent)"]]}},accent:{color:"var(--fill-accent-primary)",fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"var(--fill-accent-tint-high)"],[1,"var(--fill-accent-transparent)"]]}},warning:{color:"var(--fill-warning-primary)",fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"var(--fill-warning-tint-high)"],[1,"var(--fill-warning-transparent)"]]}}},Yz=(n,e,t,i)=>({...Cy,xAxis:{...Cy.xAxis,...t},yAxis:{...Cy.yAxis,...i},series:[{type:"areaspline",data:e,...Xz[n]}]}),aR=ge.forwardRef(({color:n="positive",data:e=[],xAxis:t,yAxis:i,containerProps:r,highcharts:o,tooltip:s},a)=>{const l=ge.useRef(null),u=a||l;ge.useEffect(()=>()=>{typeof u=="object"&&u?.current?.chart&&u.current.chart.destroy()},[u]);const g=ge.useMemo(()=>Yz(n,e,t,i),[n,e,t,i]);return ae.jsx(W0,{highcharts:o,ref:u,options:g,containerProps:r,children:ae.jsx(sR,{backgroundColor:"var(--fill-bg-primary)",shadow:{color:"var(--effect-shadow-m)",offsetX:0,offsetY:4},useHTML:!0,shared:!0,borderRadius:8,children:s})})});aR.displayName="LineChart";const Zz={chart:{type:"pie",backgroundColor:"transparent",spacing:[0,0,0,0],margin:[0,0,0,0],events:{click:void 0}},title:{align:"center",verticalAlign:"middle",floating:!0,style:{fontSize:"24px",fontWeight:"600",color:"var(--text-primary)"}},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!1},startAngle:90,endAngle:-90,innerSize:"90%",borderWidth:0,states:{hover:{enabled:!1},select:{enabled:!1},inactive:{enabled:!1}},enableMouseTracking:!1}},tooltip:{enabled:!1},legend:{enabled:!1},credits:{enabled:!1}},Kz={positive:{colors:["var(--fill-positive-primary)","var(--fill-positive-tint-high)"]},negative:{colors:["var(--fill-negative-primary)","var(--fill-negative-tint-high)"]},accent:{colors:["var(--fill-accent-primary)","var(--fill-accent-tint-high)"]},warning:{colors:["var(--fill-warning-primary)","var(--fill-warning-tint-high)"]}},Jz=(n,e)=>({...Zz,series:[{type:"pie",data:[{name:"",y:Math.min(n,100)},{name:"",y:Math.max(100-n,0)}],...Kz[e]}]}),lR=ge.forwardRef(({highcharts:n,color:e="positive",percentage:t,label:i=s=>`${s}%`,containerProps:r},o)=>{const s=ge.useRef(null),a=o||s;ge.useEffect(()=>()=>{typeof a=="object"&&a?.current?.chart&&a.current.chart.destroy()},[a]);const l=ge.useMemo(()=>Jz(t,e),[t,e]);return ae.jsx(W0,{highcharts:n,ref:a,options:l,containerProps:r,children:ae.jsx(oR,{children:i?.(t)})})});lR.displayName="PieProgressChart";const Qz=n=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("path",{d:"M9 17L14 12L9 7",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),jz="_link_aolvt_8",qz="_separator_aolvt_19",$z="_nav_aolvt_23",em={link:jz,separator:qz,nav:$z,"nav-item":"_nav-item_aolvt_29"},V0=({children:n,separator:e=ae.jsx(Qz,{className:em.separator})})=>{const t=ge.Children.toArray(n).filter(i=>ge.isValidElement(i));return ae.jsx("nav",{"aria-label":"breadcrumb",className:em.nav,children:t.map((i,r)=>{const o=r===t.length-1;return ae.jsxs(en,{tag:"span",className:em["nav-item"],children:[ge.cloneElement(i,{active:i.props.active??o}),!o&&e]},r)})})},e6=({children:n,href:e,active:t,className:i,activeClassName:r,activeElement:o,onClick:s})=>t?o||ae.jsx(en,{tag:"span",variant:"body-2",fontWeight:"medium",colorName:"primary",className:Je.cx(i,r),onClick:s,children:n}):ae.jsx("a",{href:e,className:Je.cx(em.link,i),onClick:s,children:n});V0.Item=e6;V0.displayName="Breadcrumbs";const t6=V0,n6="_avatar_wstms_8",i6="_fullRound_wstms_15",r6="_avatar_primary_wstms_25",o6="_avatar_secondary_wstms_28",s6="_avatar_negative_wstms_31",a6="_avatar_positive_wstms_34",l6="_avatar_warning_wstms_37",c6="_avatar_neutral_wstms_40",u6="_avatar_2xsSize_wstms_83",h6="_avatar_xsSize_wstms_97",f6="_avatar_smSize_wstms_111",d6="_avatar_mdSize_wstms_125",g6="_avatar_lgSize_wstms_139",p6="_avatar_xlSize_wstms_153",m6="_avatar_2xlSize_wstms_167",Wp={avatar:n6,fullRound:i6,avatar_primary:r6,avatar_secondary:o6,avatar_negative:s6,avatar_positive:a6,avatar_warning:l6,avatar_neutral:c6,avatar_2xsSize:u6,avatar_xsSize:h6,avatar_smSize:f6,avatar_mdSize:d6,avatar_lgSize:g6,avatar_xlSize:p6,avatar_2xlSize:m6};function v6({attr:n,children:e,className:t,color:i="primary",size:r="md",fullRound:o=!1,...s}){const a="avatar";return ae.jsx("div",{...n,...s,className:Jf(Wp[a],t,Pg(Wp,a,r),mm(Wp,a,i),{[Wp.fullRound]:o}),children:e})}const Ib={neutral:{border:"var(--border-neutral-alpha-low)",bg:"var(--status-neutral-tint)",color:"var(--text-secondary)",colorName:"secondary"},accent:{border:"var(--border-accent-secondary)",bg:"var(--status-accent-tint-low)",color:"var(--text-accent)",colorName:"accent"},warning:{border:"var(--border-warning-secondary)",bg:"var(--status-warning-tint-low)",color:"var(--text-warning)",colorName:"warning"},positive:{border:"var(--border-positive-secondary)",bg:"var(--status-positive-tint-low)",color:"var(--text-positive)",colorName:"positive"},negative:{border:"var(--border-negative-secondary)",bg:"var(--status-negative-tint-low)",color:"var(--text-negative)",colorName:"negative"}},Vp={sm:{h:24,text:"caption-1",corner:"var(--corner-xs)",p:"6px var(--spacing-sm)"},md:{h:32,text:"body-2",corner:"var(--corner-sm)",p:"6px var(--spacing-md)"},lg:{h:40,text:"body-2",corner:"var(--corner-md)",p:"6px var(--spacing-lg)"}},y6=(n,e,t,i)=>{const r=Ib[e];let o=r.bg,s="none";const a=r.color;switch(n){case"outline":o="transparent",s=`1px solid ${r.border}`;break;case"clear":o="transparent";break;case"filled":default:o=r.bg;break}return Je.css({cursor:t?"not-allowed":i?"pointer":"default",opacity:t?.5:1,userSelect:"none",position:"relative",transition:"background-color 0.2s, opacity 0.2s",backgroundColor:o,color:a,border:s})},b6=Je.css({display:"inline-flex",cursor:"pointer",opacity:.6,"&:hover":{opacity:1}}),cR=({label:n,color:e="neutral",size:t="md",variant:i="filled",leftElement:r,rightElement:o,disabled:s,onClick:a,onDelete:l,className:u})=>{const g=y6(i,e,s,a);return ae.jsxs(et,{row:!0,alignItems:"center",gap:"var(--spacing-sm)",p:Vp[t].p,h:Vp[t].h,overflow:"hidden",borderRadius:Vp[t].corner,onClick:a,className:Je.cx(g,u),children:[a&&ae.jsx(od,{}),r,ae.jsx(en,{variant:Vp[t].text,colorName:Ib[e].colorName,textOverflow:"ellipsis",children:n}),o,l&&!s&&ae.jsx(en,{className:b6,colorName:Ib[e].colorName,onClick:m=>{m.stopPropagation(),l(m)},children:ae.jsx(U1,{})})]})};cR.displayName="Badge";const x6=n=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.15}),Re.createElement("path",{d:"M16 9L10.0337 15L8 12.9548",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),BS=n=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",fill:"currentColor",fillOpacity:.15}),Re.createElement("path",{d:"M12 6C11.4477 6 11 6.44772 11 7V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V7C13 6.44772 12.5523 6 12 6Z",fill:"currentColor"}),Re.createElement("path",{d:"M12 15C11.4477 15 11 15.4477 11 16V17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17V16C13 15.4477 12.5523 15 12 15Z",fill:"currentColor"})),w6=n=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},Re.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.12}),Re.createElement("path",{d:"M16 8L8 16M16 16L8 8",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})),C6=n=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"black",...n},Re.createElement("path",{d:"M12 2V22M19.0711 4.92893L4.92893 19.0711M22 12H2M19.0711 19.0711L4.92893 4.92893",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),S6="_hint_prca1_8",T6="_md_prca1_19",E6="_sm_prca1_24",R6="_icon_prca1_29",k6="_content_prca1_40",P6="_title_prca1_46",M6="_subtitle_prca1_50",A6="_disabled_prca1_55",_6="_warning_prca1_60",O6="_solid_prca1_60",F6="_negative_prca1_65",L6="_positive_prca1_70",I6="_accent_prca1_75",D6="_neutral_prca1_80",B6="_soft_prca1_85",Cc={hint:S6,md:T6,sm:E6,icon:R6,content:k6,title:P6,subtitle:M6,disabled:A6,warning:_6,solid:O6,negative:F6,positive:L6,accent:I6,neutral:D6,soft:B6},N6={negative:ae.jsx(w6,{}),positive:ae.jsx(x6,{}),accent:ae.jsx(BS,{}),warning:ae.jsx(BS,{}),neutral:ae.jsx(C6,{})},z6=({title:n,subtitle:e,color:t="warning",variant:i="soft",size:r="md",icon:o,disabled:s=!1,className:a,style:l})=>{const u=o||N6[t];return ae.jsxs("div",{className:Jf(Cc.hint,Cc[t],Cc[i],Cc[r],s&&Cc.disabled,a),style:l,"aria-disabled":s,children:[u&&ae.jsx("span",{className:Jf(Cc.icon,Cc[t]),children:u}),ae.jsxs("div",{className:Cc.content,children:[n&&ae.jsx(en,{className:Jf(Cc.title,Pg(Cc,"title",r)),variant:r==="md"?"body-1":"caption-2",children:n}),e&&ae.jsx(en,{className:Jf(Cc.subtitle,Pg(Cc,"subtitle",r)),variant:r==="md"?"body-2":"caption-1",children:e})]})]})},H6=Je.keyframes`
|
|
28
|
+
`),b.createElement("g",{className:"spinner"},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0003 6.83317C13.5692 6.83317 11.2376 7.79894 9.51851 9.51803C7.79943 11.2371 6.83366 13.5687 6.83366 15.9998C6.83366 18.431 7.79943 20.7626 9.51851 22.4817C11.2376 24.2007 13.5692 25.1665 16.0003 25.1665C18.4315 25.1665 20.7631 24.2007 22.4821 22.4817C24.2012 20.7626 25.167 18.431 25.167 15.9998C25.167 13.5687 24.2012 11.2371 22.4821 9.51803C20.7631 7.79894 18.4315 6.83317 16.0003 6.83317ZM3.16699 15.9998C3.16699 8.91217 8.91266 3.1665 16.0003 3.1665C23.088 3.1665 28.8337 8.91217 28.8337 15.9998C28.8337 23.0875 23.088 28.8332 16.0003 28.8332C8.91266 28.8332 3.16699 23.0875 3.16699 15.9998Z",fill:"currentColor",fillOpacity:.12}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9997 6.83319C13.6363 6.82787 11.3633 7.74068 9.65999 9.37907C9.30711 9.70535 8.84021 9.88001 8.35982 9.86545C7.87943 9.85089 7.42396 9.64827 7.09149 9.30122C6.75902 8.95416 6.57612 8.49043 6.58218 8.00985C6.58823 7.52928 6.78276 7.07031 7.12388 6.73174C9.50956 4.43941 12.6912 3.16143 15.9997 3.16652C16.4859 3.16652 16.9522 3.35967 17.296 3.70349C17.6398 4.04731 17.833 4.51362 17.833 4.99985C17.833 5.48608 17.6398 5.9524 17.296 6.29621C16.9522 6.64003 16.4859 6.83319 15.9997 6.83319Z",fill:"currentColor"}))),E0=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_2074_3858)"},b.createElement("path",{d:"M21 21L16.65 16.65M19 11C19 15.4183 15.4183 19 11 19C6.58172 19 3 15.4183 3 11C3 6.58172 6.58172 3 11 3C15.4183 3 19 6.58172 19 11Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_2074_3858"},b.createElement("rect",{width:24,height:24,fill:"white"})))),P0="_table_19yhs_8",M0={table:P0},Bc=C.forwardRef(({children:e,className:t,style:n,...o},s)=>v.jsx("td",{ref:s,className:k.cx(t),style:n,...o,children:e}));Bc.displayName="TableBodyCell";const zc=C.forwardRef(({children:e,row:t=!0,justifyContent:n="flex-start",alignItems:o="center",py:s="var(--spacing-sm)",px:i="var(--spacing-md)",minHeight:r="56px",...a},l)=>v.jsx(L,{row:t,justifyContent:n,alignItems:o,py:s,px:i,minHeight:r,ref:l,...a,children:e}));zc.displayName="TableBodyCellContent";const Hc=C.forwardRef(({children:e,className:t,showBorders:n=!1,isSelected:o=!1,...s},i)=>{const r=k.css({borderBottom:n?"1px solid var(--border-neutral-alpha-low)":"none"});return v.jsx("tr",{ref:i,className:k.cx(r,t),...s,children:e})});Hc.displayName="TableBodyRow";const T0=C.forwardRef(({children:e,className:t,style:n,justifyContent:o="flex-start",alignItems:s="flex-start",...i},r)=>{const a=k.css({justifyContent:o,alignItems:s,fontWeight:"inherit"});return v.jsx("th",{ref:r,className:k.cx(a,t),style:n,...i,children:e})}),wi=C.forwardRef(({children:e,row:t=!0,justifyContent:n="flex-start",alignItems:o="center",py:s="var(--spacing-sm)",px:i="var(--spacing-md)",minHeight:r="56px",...a},l)=>v.jsx(L,{row:t,justifyContent:n,alignItems:o,py:s,px:i,minHeight:r,ref:l,...a,children:e}));wi.displayName="TableHeadCellContent";const A0=e=>b.createElement("svg",{width:10,height:6,viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M8.75 0.75L4.75 4.75L0.75 0.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),V0=e=>b.createElement("svg",{width:10,height:6,viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M8.75 4.75L4.75 0.75L0.75 4.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),D0=({sortDirection:e,gap:t="5px",...n})=>v.jsxs(L,{gap:t,...n,children:[v.jsx(V0,{style:{color:e==="asc"?"var(--icon-accent)":"var(--icon-tertiary)"}}),v.jsx(A0,{style:{color:e==="desc"?"var(--icon-accent)":"var(--icon-tertiary)"}})]}),Wc=({children:e,tableProps:t,gap:n="10px",...o})=>{const s=t.column.getIsSorted();return v.jsxs(wi,{style:{cursor:"pointer",userSelect:"none"},gap:n,...o,children:[e,v.jsx(D0,{sortDirection:s})]})};Wc.displayName="TableHeadCellContentSortable";const Gc=C.forwardRef(({children:e,className:t,showBorders:n=!1,...o},s)=>{const i=k.css({backgroundColor:"var(--fill-bg-secondary)",borderBottom:n?"1px solid var(--border-neutral-alpha-low)":"none"});return v.jsx("tr",{ref:s,className:k.cx(i,t),...o,children:e})});Gc.displayName="TableHeadRow";const k0=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M15 18L9 12L15 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),F0=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),L0=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),b.createElement("path",{d:"M5 13C5.55228 13 6 12.5523 6 12C6 11.4477 5.55228 11 5 11C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),I0=(e,t)=>{const n=[];if(t<=10){for(let i=1;i<=t;i++)n.push(i);return n}const o=2,s=[];for(let i=Math.max(2,e+1-o);i<=Math.min(t-1,e+1+o);i++)s.push(i);return e+1-o>2?n.push(1,"..."):n.push(1),n.push(...s),e+1+o<t-1?n.push("...",t):t>1&&n.push(t),n},j0=({pageIndex:e,pageSize:t,totalCount:n,onPageChange:o,onPageSizeChange:s,pageSizeOptions:i=[10,20,50,100],showPageSizeSelector:r=!0,renderPageSizeSelectorDropdownItem:a=c=>c.label,renderPageSizeSelectorInputItem:l})=>{const c=Math.ceil(n/t),u=e>0,f=e<c-1,d=()=>{u&&o(e-1)},h=()=>{f&&o(e+1)},p=m=>{s(Number(m))},g=I0(e,c);return n===0?null:v.jsxs(L,{row:!0,justifyContent:"space-between",children:[v.jsxs(L,{row:!0,gap:"var(--spacing-sm)",children:[v.jsx(Yt,{onClick:d,disabled:!u,color:"neutral",size:"sm",children:v.jsx(k0,{})}),v.jsx(L,{row:!0,gap:"var(--spacing-sm)",children:g.map(m=>v.jsx($0,{isDots:m==="...",isCurrentPage:m===e+1,disabled:m==="...",onClick:()=>o(m-1),children:m},m))}),v.jsx(Yt,{color:"neutral",size:"sm",onClick:h,disabled:!f,children:v.jsx(F0,{})})]}),r&&v.jsx(L,{children:v.jsx(_c,{value:t.toString(),size:"sm",items:i.map(m=>({value:m.toString(),label:m.toString()})),returnedValue:m=>m.value,renderDropdownItem:a,renderSingleInputItem:l,onChange:m=>p(m)})})]})},$0=({children:e,isCurrentPage:t=!1,onClick:n,isDots:o=!1,disabled:s=!1})=>{const i=k.css({cursor:s?"not-allowed":"pointer",userSelect:"none",width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:t?"var(--fill-accent-secondary)":"var(--fill-bg-secondary)",borderRadius:"var(--corner-sm)",border:t?"1px solid var(--fill-accent-secondary-hover)":"1px solid var(--border-neutral-alpha-basic)"}),r=k.css({width:"24px",height:"24px",color:t?"var(--icon-secondary)":"var(--icon-tertiary)"});return v.jsx(L,{className:i,onClick:s?void 0:n,children:o?v.jsx(L0,{className:r}):v.jsx(q,{center:!0,variant:"body-2",fontWeight:"medium",children:e})})},O0=k.css({position:"relative",borderRadius:"var(--corner-md)",overflow:"hidden","&::before, &::after":{content:'""',position:"absolute",top:0,bottom:14,width:96,pointerEvents:"none",zIndex:2,transition:"opacity 0.2s ease"},"&::before":{left:0,background:"linear-gradient(to left, rgba(255, 255, 255, 0.00) 0%, #FFF 100%)"},"&::after":{right:0,background:"linear-gradient(to right, rgba(255, 255, 255, 0.00) 0%, #FFF 100%)"}}),N0=k.css({overflowX:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--gray-86) var(--gray-96)"}),Uc=C.memo(({data:e,children:t,className:n,showBorders:o=!1,...s})=>{const[i,r]=C.useState(!1),[a,l]=C.useState(!1),c=C.useRef(null),u=C.useCallback(()=>{const d=c.current;if(!d)return;const{scrollLeft:h,scrollWidth:p,clientWidth:g}=d,m=p>g;r(m&&h>0),l(m&&h<p-g-1)},[]);C.useEffect(()=>{const d=c.current;if(!d)return;u();const h=new ResizeObserver(u);return h.observe(d),d.addEventListener("scroll",u),()=>{h.disconnect(),d.removeEventListener("scroll",u)}},[u,e]);const f=k.css({border:o?"1px solid var(--border-neutral-alpha-low)":"transparent","&::before":{opacity:i?1:0},"&::after":{opacity:a?1:0}});return v.jsx(L,{className:k.cx(O0,f,n),...s,children:v.jsx(L,{ref:c,className:N0,children:t})})});Uc.displayName="TableWrapper";const B0=k.css({width:"100%",maxWidth:"100%",minWidth:"max-content",borderCollapse:"collapse",borderSpacing:0,backgroundColor:"var(--fill-bg-primary)"}),z0=k.css({backgroundColor:"var(--fill-bg-secondary)",color:"var(--text-tertiary)"}),$t=({ref:e,data:t,columns:n,showBorders:o=!0,enableSorting:s=!1,enablePagination:i=!1,enableRowSelection:r=!1,enableMultiRowSelection:a=!1,sorting:l,onSortingChange:c,columnFilters:u,onColumnFiltersChange:f,columnVisibility:d,onColumnVisibilityChange:h,pagination:p,onPaginationChange:g,rowSelection:m,onRowSelectionChange:w,totalCount:x,loading:y=!1,emptyLabels:S={title:"Nothing found",description:"No results found for “result”",action:"Reset"},loadingLabels:_={title:"Loading...",description:"Please wait or reset your promt",action:"Reset"},className:M,containerClassName:T,tableOptions:P={},onRowClick:D,getRowId:F,headCellComponent:j=T0,bodyCellComponent:$=Bc,headRowComponent:O=Gc,bodyRowComponent:V=Hc,onReset:z,renderPageSizeSelectorDropdownItem:N,renderPageSizeSelectorInputItem:E})=>{const[R,A]=C.useState([]),[I,Y]=C.useState([]),[K,U]=C.useState({}),[re,J]=C.useState({pageIndex:0,pageSize:10}),[ne,B]=C.useState({}),X=l??R,oe=u??I,de=d??K,le=p??re,ke=m??ne,nt=Z=>{const ee=typeof Z=="function"?Z(X):Z;c?c(ee):A(ee)},ot=Z=>{const ee=typeof Z=="function"?Z(oe):Z;f?f(ee):Y(ee)},st=Z=>{const ee=typeof Z=="function"?Z(de):Z;h?h(ee):U(ee)},it=Z=>{const ee=typeof Z=="function"?Z(le):Z;g?g(ee):J(ee)},Ot=_0({data:t,columns:n,state:{sorting:X,columnFilters:oe,columnVisibility:de,pagination:le,rowSelection:ke},onSortingChange:nt,onColumnFiltersChange:ot,onColumnVisibilityChange:st,onPaginationChange:it,onRowSelectionChange:Z=>{const ee=typeof Z=="function"?Z(ke):Z;w?w(ee):B(ee)},getCoreRowModel:v0(),getSortedRowModel:s?x0():void 0,getPaginationRowModel:i?w0():void 0,enableRowSelection:r,enableMultiRowSelection:a,getRowId:F,manualPagination:!!x,pageCount:x?Math.ceil(x/le.pageSize):void 0,...P});C.useImperativeHandle(e,()=>Ot);const{rows:dn}=Ot.getRowModel(),Zc=(Z,ee)=>{D&&D(Z.original,ee)};return y?v.jsxs(L,{w:"full",borderRadius:"var(--corner-md)",py:"var(--spacing-5xl)",px:"var(--spacing-10xl)",alignItems:"center",className:k.cx(T),children:[v.jsx(R0,{width:32,height:32,style:{color:"var(--icon-tertiary)",marginBottom:"var(--spacing-sm)"}}),v.jsx(q,{mb:"var(--spacing-xs)",variant:"title-3",fontWeight:"semibold",children:_.title}),v.jsx(q,{mb:"var(--spacing-md)",colorName:"tertiary",variant:"body-1",fontWeight:"medium",children:_.description}),typeof _.action=="string"?v.jsx(cs,{width:"auto",onClick:z,intensity:"secondary",color:"accent",children:_.action}):_.action]}):dn.length?v.jsxs(L,{w:"full",gap:"var(--spacing-xl)",className:k.cx(T),children:[v.jsx(Uc,{data:t,showBorders:o,children:v.jsxs("table",{className:k.cx(B0,M0.table,M),children:[v.jsx("thead",{className:z0,children:Ot.getHeaderGroups().map(Z=>v.jsx(O,{showBorders:o,children:Z.headers.map(ee=>v.jsx(j,{style:{width:ee.getSize()},onClick:ee.column.getToggleSortingHandler(),children:ee.isPlaceholder?null:fa(ee.column.columnDef.header,ee.getContext())},ee.id))},Z.id))}),v.jsx("tbody",{children:dn.map((Z,ee)=>v.jsx(V,{showBorders:o,isSelected:Z.getIsSelected(),onClick:()=>Zc(Z,ee),children:Z.getVisibleCells().map(so=>v.jsx($,{children:fa(so.column.columnDef.cell,so.getContext())},so.id))},Z.id))})]})}),i&&!y&&v.jsx(j0,{pageIndex:le.pageIndex,pageSize:le.pageSize,totalCount:x||t.length,renderPageSizeSelectorDropdownItem:N,renderPageSizeSelectorInputItem:E,onPageChange:Z=>it({...le,pageIndex:Z}),onPageSizeChange:Z=>it({...le,pageSize:Z,pageIndex:0})})]}):v.jsxs(L,{w:"full",borderRadius:"var(--corner-md)",py:"var(--spacing-5xl)",px:"var(--spacing-10xl)",alignItems:"center",className:k.cx(T),children:[v.jsx(E0,{width:24,height:24,style:{color:"var(--icon-tertiary)",marginBottom:"var(--spacing-sm)"}}),v.jsx(q,{mb:"var(--spacing-xs)",variant:"title-3",fontWeight:"semibold",children:S.title}),v.jsx(q,{mb:"var(--spacing-md)",colorName:"tertiary",variant:"body-1",fontWeight:"medium",children:S.description}),typeof S.action=="string"?v.jsx(cs,{width:"auto",onClick:z,intensity:"secondary",color:"accent",children:S.action}):S.action]})};$t.displayName="Table";$t.HeadCellContent=wi;$t.BodyCellContent=zc;$t.HeadCellContentSortable=Wc;$t.createColumnHelper=Vc;const Oo={chart:{type:"areaspline",backgroundColor:"transparent",spacing:[0,0,0,0],margin:[0,0,0,0]},xAxis:{gridLineWidth:0,lineWidth:0,tickWidth:0,labels:{enabled:!1},title:{text:""}},yAxis:{gridLineWidth:0,lineWidth:0,tickWidth:0,labels:{enabled:!1},title:{text:""}},legend:{enabled:!1},credits:{enabled:!1}},H0={positive:{color:"var(--fill-positive-primary)",fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"var(--fill-positive-tint-high)"],[1,"var(--fill-positive-transparent)"]]}},negative:{color:"var(--fill-negative-primary)",fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"var(--fill-negative-tint-high)"],[1,"var(--fill-negative-transparent)"]]}},accent:{color:"var(--fill-accent-primary)",fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"var(--fill-accent-tint-high)"],[1,"var(--fill-accent-transparent)"]]}},warning:{color:"var(--fill-warning-primary)",fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"var(--fill-warning-tint-high)"],[1,"var(--fill-warning-transparent)"]]}}},W0=(e,t,n,o,s)=>({...Oo,plotOptions:{areaspline:{marker:{enabled:!1,states:{hover:{enabled:s}}},allowPointSelect:!1}},xAxis:{...Oo.xAxis,...n},yAxis:{...Oo.yAxis,...o},series:[{type:"areaspline",data:t,...H0[e]}]}),G0=e=>({outside:!0,enabled:!!e,padding:0,position:{alignByTranslate:!0},shadow:{color:"var(--effect-shadow-m)",offsetX:0,offsetY:0},borderRadius:8,backgroundColor:"var(--fill-bg-primary)",useHTML:!0,...e}),Kc=({color:e="positive",data:t=[],xAxis:n,yAxis:o,containerProps:s,highcharts:i,tooltip:r})=>{const a=C.useRef(null);C.useEffect(()=>()=>{typeof a=="object"&&a?.current?.chart&&a.current.chart.destroy()},[]);const l=C.useMemo(()=>W0(e,t,n,o,!!r),[e,t,n,o,r]),c=C.useMemo(()=>r?G0(r):{enabled:!1},[r]);return v.jsx(kn.Chart,{highcharts:i,ref:a,options:l,containerProps:s,children:v.jsx(kn.Tooltip,{...c})})};Kc.displayName="LineChart";const U0={chart:{type:"pie",backgroundColor:"transparent",spacing:[0,0,0,0],margin:[0,0,0,0],events:{click:void 0}},title:{align:"center",verticalAlign:"middle",floating:!0,style:{fontSize:"24px",fontWeight:"600",color:"var(--text-primary)"}},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!1},startAngle:90,endAngle:-90,innerSize:"90%",borderWidth:0,states:{hover:{enabled:!1},select:{enabled:!1},inactive:{enabled:!1}},enableMouseTracking:!1}},tooltip:{enabled:!1},legend:{enabled:!1},credits:{enabled:!1}},K0={positive:{colors:["var(--fill-positive-primary)","var(--fill-positive-tint-high)"]},negative:{colors:["var(--fill-negative-primary)","var(--fill-negative-tint-high)"]},accent:{colors:["var(--fill-accent-primary)","var(--fill-accent-tint-high)"]},warning:{colors:["var(--fill-warning-primary)","var(--fill-warning-tint-high)"]}},q0=(e,t)=>({...U0,series:[{type:"pie",data:[{name:"",y:Math.min(e,100)},{name:"",y:Math.max(100-e,0)}],...K0[t]}]}),qc=C.forwardRef(({highcharts:e,color:t="positive",percentage:n,label:o=r=>`${r}%`,containerProps:s},i)=>{const r=C.useRef(null),a=i||r;C.useEffect(()=>()=>{typeof a=="object"&&a?.current?.chart&&a.current.chart.destroy()},[a]);const l=C.useMemo(()=>q0(n,t),[n,t]);return v.jsx(kn.Chart,{highcharts:e,ref:a,options:l,containerProps:s,children:v.jsx(kn.Title,{children:o?.(n)})})});qc.displayName="PieProgressChart";const X0=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M9 17L14 12L9 7",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Y0="_link_aolvt_8",Z0="_separator_aolvt_19",J0="_nav_aolvt_23",Dn={link:Y0,separator:Z0,nav:J0,"nav-item":"_nav-item_aolvt_29"},xi=({children:e,separator:t=v.jsx(X0,{className:Dn.separator})})=>{const n=C.Children.toArray(e).filter(o=>C.isValidElement(o));return v.jsx("nav",{"aria-label":"breadcrumb",className:Dn.nav,children:n.map((o,s)=>{const i=s===n.length-1;return v.jsxs(q,{tag:"span",className:Dn["nav-item"],children:[C.cloneElement(o,{active:o.props.active??i}),!i&&t]},s)})})},Q0=({children:e,href:t,active:n,className:o,activeClassName:s,activeElement:i,onClick:r})=>n?i||v.jsx(q,{tag:"span",variant:"body-2",fontWeight:"medium",colorName:"primary",className:k.cx(o,s),onClick:r,children:e}):v.jsx("a",{href:t,className:k.cx(Dn.link,o),onClick:r,children:e});xi.Item=Q0;xi.displayName="Breadcrumbs";const ew=xi,tw="_avatar_wstms_8",nw="_fullRound_wstms_15",ow="_avatar_primary_wstms_25",sw="_avatar_secondary_wstms_28",iw="_avatar_negative_wstms_31",rw="_avatar_positive_wstms_34",aw="_avatar_warning_wstms_37",lw="_avatar_neutral_wstms_40",cw="_avatar_2xsSize_wstms_83",uw="_avatar_xsSize_wstms_97",dw="_avatar_smSize_wstms_111",fw="_avatar_mdSize_wstms_125",hw="_avatar_lgSize_wstms_139",gw="_avatar_xlSize_wstms_153",pw="_avatar_2xlSize_wstms_167",bn={avatar:tw,fullRound:nw,avatar_primary:ow,avatar_secondary:sw,avatar_negative:iw,avatar_positive:rw,avatar_warning:aw,avatar_neutral:lw,avatar_2xsSize:cw,avatar_xsSize:uw,avatar_smSize:dw,avatar_mdSize:fw,avatar_lgSize:hw,avatar_xlSize:gw,avatar_2xlSize:pw};function mw({attr:e,children:t,className:n,color:o="primary",size:s="md",fullRound:i=!1,...r}){const a="avatar";return v.jsx("div",{...e,...r,className:lt(bn[a],n,Xt(bn,a,s),Wn(bn,a,o),{[bn.fullRound]:i}),children:t})}const xs={neutral:{border:"var(--border-neutral-alpha-low)",bg:"var(--status-neutral-tint)",color:"var(--text-secondary)",colorName:"secondary"},accent:{border:"var(--border-accent-secondary)",bg:"var(--status-accent-tint-low)",color:"var(--text-accent)",colorName:"accent"},warning:{border:"var(--border-warning-secondary)",bg:"var(--status-warning-tint-low)",color:"var(--text-warning)",colorName:"warning"},positive:{border:"var(--border-positive-secondary)",bg:"var(--status-positive-tint-low)",color:"var(--text-positive)",colorName:"positive"},negative:{border:"var(--border-negative-secondary)",bg:"var(--status-negative-tint-low)",color:"var(--text-negative)",colorName:"negative"}},_n={sm:{h:24,text:"caption-1",corner:"var(--corner-xs)",p:"6px var(--spacing-sm)"},md:{h:32,text:"body-2",corner:"var(--corner-sm)",p:"6px var(--spacing-md)"},lg:{h:40,text:"body-2",corner:"var(--corner-md)",p:"6px var(--spacing-lg)"}},vw=(e,t,n,o)=>{const s=xs[t];let i=s.bg,r="none";const a=s.color;switch(e){case"outline":i="transparent",r=`1px solid ${s.border}`;break;case"clear":i="transparent";break;default:i=s.bg;break}return k.css({cursor:n?"not-allowed":o?"pointer":"default",opacity:n?.5:1,userSelect:"none",position:"relative",transition:"background-color 0.2s, opacity 0.2s",backgroundColor:i,color:a,border:r})},yw=k.css({display:"inline-flex",cursor:"pointer",opacity:.6,"&:hover":{opacity:1}}),Xc=({label:e,color:t="neutral",size:n="md",variant:o="filled",leftElement:s,rightElement:i,disabled:r,onClick:a,onDelete:l,className:c})=>{const u=vw(o,t,r,a);return v.jsxs(L,{row:!0,alignItems:"center",gap:"var(--spacing-sm)",p:_n[n].p,h:_n[n].h,overflow:"hidden",borderRadius:_n[n].corner,onClick:a,className:k.cx(u,c),children:[a&&v.jsx(pt,{}),s,v.jsx(q,{variant:_n[n].text,colorName:xs[t].colorName,textOverflow:"ellipsis",children:e}),i,l&&!r&&v.jsx(q,{className:yw,colorName:xs[t].colorName,onClick:f=>{f.stopPropagation(),l(f)},children:v.jsx(bc,{})})]})};Xc.displayName="Badge";const ww=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.15}),b.createElement("path",{d:"M16 9L10.0337 15L8 12.9548",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ha=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",fill:"currentColor",fillOpacity:.15}),b.createElement("path",{d:"M12 6C11.4477 6 11 6.44772 11 7V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V7C13 6.44772 12.5523 6 12 6Z",fill:"currentColor"}),b.createElement("path",{d:"M12 15C11.4477 15 11 15.4477 11 16V17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17V16C13 15.4477 12.5523 15 12 15Z",fill:"currentColor"})),xw=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.12}),b.createElement("path",{d:"M16 8L8 16M16 16L8 8",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})),Cw=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"black",...e},b.createElement("path",{d:"M12 2V22M19.0711 4.92893L4.92893 19.0711M22 12H2M19.0711 19.0711L4.92893 4.92893",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Sw="_hint_prca1_8",bw="_md_prca1_19",_w="_sm_prca1_24",Rw="_icon_prca1_29",Ew="_content_prca1_40",Pw="_title_prca1_46",Mw="_subtitle_prca1_50",Tw="_disabled_prca1_55",Aw="_warning_prca1_60",Vw="_solid_prca1_60",Dw="_negative_prca1_65",kw="_positive_prca1_70",Fw="_accent_prca1_75",Lw="_neutral_prca1_80",Iw="_soft_prca1_85",Se={hint:Sw,md:bw,sm:_w,icon:Rw,content:Ew,title:Pw,subtitle:Mw,disabled:Tw,warning:Aw,solid:Vw,negative:Dw,positive:kw,accent:Fw,neutral:Lw,soft:Iw},jw={negative:v.jsx(xw,{}),positive:v.jsx(ww,{}),accent:v.jsx(ha,{}),warning:v.jsx(ha,{}),neutral:v.jsx(Cw,{})},$w=({title:e,subtitle:t,color:n="warning",variant:o="soft",size:s="md",icon:i,disabled:r=!1,className:a,style:l})=>{const c=i||jw[n];return v.jsxs("div",{className:lt(Se.hint,Se[n],Se[o],Se[s],r&&Se.disabled,a),style:l,"aria-disabled":r,children:[c&&v.jsx("span",{className:lt(Se.icon,Se[n]),children:c}),v.jsxs("div",{className:Se.content,children:[e&&v.jsx(q,{className:lt(Se.title,Xt(Se,"title",s)),variant:s==="md"?"body-1":"caption-2",children:e}),t&&v.jsx(q,{className:lt(Se.subtitle,Xt(Se,"subtitle",s)),variant:s==="md"?"body-2":"caption-1",children:t})]})]})},Ow=k.keyframes`
|
|
271
29
|
from {
|
|
272
30
|
opacity: 0;
|
|
273
31
|
}
|
|
274
32
|
to {
|
|
275
33
|
opacity: 1;
|
|
276
34
|
}
|
|
277
|
-
`,
|
|
35
|
+
`,Nw=k.css({animation:`${Ow} 0.2s ease-out`,boxShadow:"0 4px 20px 0 var(--effect-shadow-s)"}),Bw=({children:e,className:t,...n})=>v.jsx(L,{relative:!0,backgroundColor:"var(--fill-bg-primary)",borderRadius:"var(--corner-md)",className:k.cx(Nw,t),...n,children:e}),zw=({children:e,content:t,initialOpen:n=!1,open:o,onChange:s,placement:i="bottom",trigger:r="click",offset:a=12,closeOnBackdropClick:l=!0,closeOnEsc:c=!0,className:u,contentClassName:f,style:d,openDelay:h=200,closeDelay:p=200,zIndex:g=1,popoverContentComponent:m=Bw})=>{const[w,x]=C.useState(n),y=o??w,S=s??x,_=C.useCallback(E=>{l&&E.target===E.currentTarget&&S(!1)},[l,S]),{context:M,refs:T,floatingStyles:P}=gi({placement:i,open:y,onOpenChange:S,whileElementsMounted:ai,middleware:[li(a),ui({crossAxis:i.includes("-"),fallbackAxisSideDirection:i.includes("start")?"start":"end",padding:a}),ci({padding:a})]}),D=Fv(M,{enabled:r==="click"}),F=wc(M,{enabled:r==="hover",delay:{open:h,close:p}}),j=xc(M,{enabled:c,escapeKey:!0}),$=Sc(M),O=Cc([D,F,j,$]),V=e.ref,z=vc([T.setReference,V]),N=C.cloneElement(e,O.getReferenceProps({...e.props,ref:z,"data-state":M.open?"open":"closed"}));return v.jsxs(v.Fragment,{children:[N,y&&v.jsxs(un,{children:[r!=="hover"&&l&&v.jsx(L,{position:"fixed",top:0,right:0,bottom:0,left:0,display:"block",backgroundColor:"transparent",onClick:_,zIndex:g}),v.jsx(L,{absolute:!0,zIndex:g,className:u,ref:T.setFloating,style:{...P,...d},...O.getFloatingProps(),children:v.jsx(m,{className:f,children:t})})]})]})},Hw={top:"polygon(100% 0%, 50% 100%, 0% 0%)",bottom:"polygon(0% 100%, 50% 0%, 100% 100%)","top-start":"polygon(0% 0%, 0% 100%, 100% 0%)","top-end":"polygon(100% 0%, 100% 100%, 0% 0%)","bottom-start":"polygon(0% 100%, 0% 0%, 100% 100%)","bottom-end":"polygon(100% 100%, 100% 0%, 0% 100%)",left:"polygon(0% 100%, 100% 50%, 0% 0%)",right:"polygon(100% 100%, 0% 50%, 100% 0%)"},Ww=10,Gw=6,Rn=1,Uw=(e,t)=>(e==="top"||e==="bottom")&&t?`${e}-${t}`:e,Kw=(e,t,n)=>n?(e==="top"||e==="bottom")&&t?{[e==="top"?t==="start"?"borderBottomLeftRadius":"borderBottomRightRadius":t==="start"?"borderTopLeftRadius":"borderTopRightRadius"]:0}:{}:{},qw=(e,t,n)=>e==="left"||e==="right"?{width:6,height:n}:t?{width:8,height:6}:{width:n,height:6},Xw=(e,t,n)=>e?(t==="top"||t==="bottom")&&n?{x:n==="start"?0:void 0,y:e.y}:{x:e.x,y:e.y}:{x:void 0,y:void 0},Yw=k.keyframes`
|
|
36
|
+
from { opacity: 0; transform: translateY(2px); }
|
|
37
|
+
to { opacity: 1; transform: translateY(0); }
|
|
38
|
+
`,Zw=k.css({backgroundColor:"var(--fill-bg-primary)",boxShadow:"0 4px 20px 0 var(--effect-shadow-m)",animation:`${Yw} 0.16s ease-out`,color:"var(--text-primary)",fontSize:"12px",lineHeight:"16px",fontWeight:"500",wordBreak:"break-word"}),Jw=k.css({position:"absolute",backgroundColor:"var(--fill-bg-primary)",clipPath:"var(--tooltip-arrow-shape)"}),Yc=({children:e,content:t,disabled:n=!1,initialOpen:o=!1,open:s,onChange:i,placement:r="top",trigger:a="hover",offset:l=5,showArrow:c=!0,openDelay:u=400,closeDelay:f=0,closeOnEsc:d=!0,zIndex:h=1,maxWidth:p,className:g,contentClassName:m,style:w,id:x,p:y="var(--spacing-md)",borderRadius:S="var(--corner-sm)"})=>{const[_,M]=C.useState(o),[T,P]=C.useState(null),D=s??_,F=i??M,j=C.useId(),$=x??`tooltip-${j}`,O=t==null||t==="",V=!n&&!O,z=C.useCallback(dn=>{V&&F(dn)},[V,F]),N=l+(c?Gw:0),{context:E,refs:R,floatingStyles:A,middlewareData:I,placement:Y}=gi({placement:r,open:V?D:!1,onOpenChange:z,whileElementsMounted:ai,middleware:[li(N),ui({crossAxis:r.includes("-"),fallbackAxisSideDirection:r.includes("start")?"start":"end",padding:N}),ci({padding:N}),...c&&T?[bv({element:T,padding:0})]:[]]}),K=I.arrow,U=Y.split("-")[0],re=Y.includes("-")?Y.split("-")[1]:null,J=Xw(K,U,re),ne=Uw(U,re),B=Kw(U,re,c),X=qw(U,re,Ww),oe=k.css({...B}),de=k.css({left:J.x??void 0,top:J.y??void 0,width:X.width,height:X.height,"--tooltip-arrow-shape":Hw[ne],...U==="top"&&{bottom:-X.height+Rn},...U==="bottom"&&{top:-X.height+Rn},...U==="left"&&{right:-X.width+Rn},...U==="right"&&{left:-X.width+Rn},...re==="end"&&(U==="top"||U==="bottom")&&{left:"auto",right:0}}),le=wc(E,{enabled:a==="hover"&&V,delay:{open:u,close:f},move:!1}),ke=$v(E,{enabled:a==="hover"&&V}),nt=xc(E,{enabled:d&&V,escapeKey:!0}),ot=Sc(E,{role:"tooltip"}),st=Cc([le,ke,nt,ot]),it=e.ref,oo=vc([R.setReference,it]),Ot=C.useMemo(()=>C.cloneElement(e,st.getReferenceProps({...e.props,ref:oo,"data-state":E.open?"open":"closed",...E.open?{"aria-describedby":$}:{}})),[e,st,E.open,$,oo]);return v.jsxs(v.Fragment,{children:[Ot,V&&D&&v.jsx(un,{children:v.jsx(L,{absolute:!0,zIndex:h,className:g,ref:R.setFloating,style:{...A,...w},...st.getFloatingProps({id:$}),children:v.jsxs(L,{relative:!0,maxWidth:p,p:y,borderRadius:S,className:k.cx(Zw,oe,m),children:[c&&v.jsx(L,{ref:P,className:k.cx(Jw,de)}),typeof t=="string"?v.jsx(q,{colorName:"primary",variant:"caption-1",fontWeight:"medium",children:t}):t]})})})]})};Yc.displayName="Tooltip";const Qw="_themeProviderScoped_wp43s_9",ex={themeProviderScoped:Qw};function tx({className:e,children:t,theme:n}){const o=C.useRef(null);return v.jsx(Ac.Provider,{value:o,children:v.jsx("div",{ref:o,className:lt(ex.themeProviderScoped,e),id:"theme-provider-scoped","data-theme":n,children:t})})}exports.AnimatedText=Ql;exports.Avatar=mw;exports.Badge=Xc;exports.Box=L;exports.Breadcrumbs=ew;exports.Button=cs;exports.Checkbox=ti;exports.Hint=$w;exports.IconButton=Yt;exports.Input=ec;exports.LineChart=Kc;exports.Loader=pa;exports.Modal=to;exports.OtpInput=tc;exports.PieProgressChart=qc;exports.Popover=zw;exports.Portal=un;exports.Radio=oc;exports.RadioGroup=sc;exports.Ripple=pt;exports.SegmentControl=lm;exports.Select=_c;exports.Switch=Rc;exports.Table=$t;exports.Tabs=Ec;exports.Tag=pi;exports.Text=q;exports.ThemeProviderScoped=tx;exports.Tooltip=Yc;exports.createColumnHelper=Vc;exports.getSizeClass=Xt;exports.getStyleClass=Wn;exports.useControlled=mt;
|
|
278
39
|
//# sourceMappingURL=ui-kit.cjs.js.map
|