@zzusp/ccsm 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +236 -232
  3. package/dist/assets/DiskUsage-BY6XwffG.js +2 -0
  4. package/dist/assets/DiskUsage-BY6XwffG.js.map +1 -0
  5. package/dist/assets/{ImportPage-b8NORa8b.js → ImportPage-Cwq5bx7G.js} +2 -2
  6. package/dist/assets/ImportPage-Cwq5bx7G.js.map +1 -0
  7. package/dist/assets/MarkdownContent-BFu7Nkk_.js +2 -0
  8. package/dist/assets/MarkdownContent-BFu7Nkk_.js.map +1 -0
  9. package/dist/assets/{ProjectMemory-aSV8UzQ9.js → ProjectMemory-CcE3KbUK.js} +2 -2
  10. package/dist/assets/ProjectMemory-CcE3KbUK.js.map +1 -0
  11. package/dist/assets/{charts-A5eNHLjX.js → charts-jxJqXXUr.js} +2 -2
  12. package/dist/assets/{charts-A5eNHLjX.js.map → charts-jxJqXXUr.js.map} +1 -1
  13. package/dist/assets/index-CrWxV6sb.css +1 -0
  14. package/dist/assets/index-DTbWl1jb.js +11 -0
  15. package/dist/assets/index-DTbWl1jb.js.map +1 -0
  16. package/dist/assets/markdown-Bag5rX3T.js +30 -0
  17. package/dist/assets/markdown-Bag5rX3T.js.map +1 -0
  18. package/dist/assets/{query-C1K1uQRu.js → query-CS7JQ86v.js} +2 -2
  19. package/dist/assets/{query-C1K1uQRu.js.map → query-CS7JQ86v.js.map} +1 -1
  20. package/dist/assets/{react-W0jzChlo.js → react-CPkiFScu.js} +10 -10
  21. package/dist/assets/{react-W0jzChlo.js.map → react-CPkiFScu.js.map} +1 -1
  22. package/dist/assets/{router-DfbutHY3.js → router-DwaHAh1G.js} +2 -2
  23. package/dist/assets/{router-DfbutHY3.js.map → router-DwaHAh1G.js.map} +1 -1
  24. package/dist/assets/vendor-Cs8vYp-N.js +27 -0
  25. package/dist/assets/vendor-Cs8vYp-N.js.map +1 -0
  26. package/dist/favicon.svg +7 -7
  27. package/dist/index.html +30 -30
  28. package/package.json +24 -11
  29. package/server/index.ts +4 -0
  30. package/server/lib/active-sessions.test.ts +119 -0
  31. package/server/lib/active-sessions.ts +95 -95
  32. package/server/lib/bundle.test.ts +182 -0
  33. package/server/lib/bundle.ts +86 -86
  34. package/server/lib/claude-paths.test.ts +126 -0
  35. package/server/lib/claude-paths.ts +43 -36
  36. package/server/lib/cleanup-suggestions.ts +131 -0
  37. package/server/lib/constants.ts +8 -7
  38. package/server/lib/delete-project.ts +100 -100
  39. package/server/lib/delete.test.ts +244 -0
  40. package/server/lib/delete.ts +192 -203
  41. package/server/lib/disk-usage.ts +81 -83
  42. package/server/lib/encode-cwd.ts +24 -24
  43. package/server/lib/export-bundle.ts +236 -236
  44. package/server/lib/export-import-bundle.test.ts +337 -0
  45. package/server/lib/fs-size.ts +38 -38
  46. package/server/lib/import-bundle.ts +488 -488
  47. package/server/lib/load-memory.ts +120 -120
  48. package/server/lib/load-session.ts +209 -209
  49. package/server/lib/modified-files.test.ts +280 -0
  50. package/server/lib/modified-files.ts +228 -0
  51. package/server/lib/open-folder.ts +47 -40
  52. package/server/lib/parse-jsonl.ts +160 -107
  53. package/server/lib/port.ts +23 -23
  54. package/server/lib/safe-id.test.ts +41 -0
  55. package/server/lib/safe-id.ts +6 -6
  56. package/server/lib/safe-remove.test.ts +73 -0
  57. package/server/lib/safe-remove.ts +25 -0
  58. package/server/lib/scan.ts +289 -183
  59. package/server/lib/search-all.ts +130 -130
  60. package/server/lib/search-session.ts +203 -203
  61. package/server/lib/system-tags.ts +20 -20
  62. package/server/lib/update.ts +67 -0
  63. package/server/lib/version.test.ts +39 -0
  64. package/server/lib/version.ts +117 -0
  65. package/server/routes/disk-cleanup.ts +54 -0
  66. package/server/routes/disk.ts +9 -9
  67. package/server/routes/import.ts +87 -87
  68. package/server/routes/projects.ts +104 -104
  69. package/server/routes/search.ts +79 -79
  70. package/server/routes/sessions.ts +130 -81
  71. package/server/routes/version.ts +34 -0
  72. package/server/types.ts +1 -1
  73. package/shared/constants.ts +7 -2
  74. package/shared/types.ts +513 -359
  75. package/dist/assets/DiskUsage-Bq4VaoUA.js +0 -2
  76. package/dist/assets/DiskUsage-Bq4VaoUA.js.map +0 -1
  77. package/dist/assets/ImportPage-b8NORa8b.js.map +0 -1
  78. package/dist/assets/ProjectMemory-aSV8UzQ9.js.map +0 -1
  79. package/dist/assets/index-DLATR3tZ.js +0 -5
  80. package/dist/assets/index-DLATR3tZ.js.map +0 -1
  81. package/dist/assets/index-DLDtbkux.css +0 -1
  82. package/dist/assets/vendor-CH80ylbS.js +0 -19
  83. package/dist/assets/vendor-CH80ylbS.js.map +0 -1
@@ -1,19 +0,0 @@
1
- import{r as C,j as va,c as qt,g as F,R as Hm}from"./react-W0jzChlo.js";const ld=C.createContext({});function zm(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const Xm=typeof window<"u",Ym=Xm?C.useLayoutEffect:C.useEffect,no=C.createContext(null);function io(e,t){e.indexOf(t)===-1&&e.push(t)}function $t(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const ge=(e,t,r)=>r>t?t:r<e?e:r;let so=()=>{};const Ee={},fd=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function hd(e){return typeof e=="object"&&e!==null}const dd=e=>/^0[^.\s]+$/u.test(e);function pd(e){let t;return()=>(t===void 0&&(t=e()),t)}const oe=e=>e,Zm=(e,t)=>r=>t(e(r)),xt=(...e)=>e.reduce(Zm),gt=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class ao{constructor(){this.subscriptions=[]}add(t){return io(this.subscriptions,t),()=>$t(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let s=0;s<i;s++){const a=this.subscriptions[s];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ie=e=>e*1e3,ae=e=>e/1e3;function md(e,t){return t?e*(1e3/t):0}const yd=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Jm=1e-7,Qm=12;function ey(e,t,r,n,i){let s,a,o=0;do a=t+(r-t)/2,s=yd(a,n,i)-e,s>0?r=a:t=a;while(Math.abs(s)>Jm&&++o<Qm);return a}function Pt(e,t,r,n){if(e===t&&r===n)return oe;const i=s=>ey(s,0,1,e,r);return s=>s===0||s===1?s:yd(i(s),t,n)}const gd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vd=e=>t=>1-e(1-t),bd=Pt(.33,1.53,.69,.99),oo=vd(bd),Td=gd(oo),Sd=e=>e>=1?1:(e*=2)<1?.5*oo(e):.5*(2-Math.pow(2,-10*(e-1))),uo=e=>1-Math.sin(Math.acos(e)),_d=vd(uo),Ad=gd(uo),ty=Pt(.42,0,1,1),ry=Pt(0,0,.58,1),wd=Pt(.42,0,.58,1),ny=e=>Array.isArray(e)&&typeof e[0]!="number",xd=e=>Array.isArray(e)&&typeof e[0]=="number",iy={linear:oe,easeIn:ty,easeInOut:wd,easeOut:ry,circIn:uo,circInOut:Ad,circOut:_d,backIn:oo,backInOut:Td,backOut:bd,anticipate:Sd},sy=e=>typeof e=="string",Ho=e=>{if(xd(e)){so(e.length===4);const[t,r,n,i]=e;return Pt(t,r,n,i)}else if(sy(e))return iy[e];return e},Ot=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ay(e,t){let r=new Set,n=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(l){a.has(l)&&(c.schedule(l),e()),l(o)}const c={schedule:(l,f=!1,h=!1)=>{const y=h&&i?r:n;return f&&a.add(l),y.add(l),l},cancel:l=>{n.delete(l),a.delete(l)},process:l=>{if(o=l,i){s=!0;return}i=!0;const f=r;r=n,n=f,r.forEach(u),r.clear(),i=!1,s&&(s=!1,c.process(l))}};return c}const oy=40;function Pd(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,a=Ot.reduce((b,T)=>(b[T]=ay(s),b),{}),{setup:o,read:u,resolveKeyframes:c,preUpdate:l,update:f,preRender:h,render:p,postRender:y}=a,m=()=>{const b=Ee.useManualTiming,T=b?i.timestamp:performance.now();r=!1,b||(i.delta=n?1e3/60:Math.max(Math.min(T-i.timestamp,oy),1)),i.timestamp=T,i.isProcessing=!0,o.process(i),u.process(i),c.process(i),l.process(i),f.process(i),h.process(i),p.process(i),y.process(i),i.isProcessing=!1,r&&t&&(n=!1,e(m))},d=()=>{r=!0,n=!0,i.isProcessing||e(m)};return{schedule:Ot.reduce((b,T)=>{const S=a[T];return b[T]=(_,A=!1,R=!1)=>(r||d(),S.schedule(_,A,R)),b},{}),cancel:b=>{for(let T=0;T<Ot.length;T++)a[Ot[T]].cancel(b)},state:i,steps:a}}const{schedule:j,cancel:Ce,state:Z,steps:vr}=Pd(typeof requestAnimationFrame<"u"?requestAnimationFrame:oe,!0);let Lt;function uy(){Lt=void 0}const ee={now:()=>(Lt===void 0&&ee.set(Z.isProcessing||Ee.useManualTiming?Z.timestamp:performance.now()),Lt),set:e=>{Lt=e,queueMicrotask(uy)}},Rd=e=>t=>typeof t=="string"&&t.startsWith(e),Ed=Rd("--"),cy=Rd("var(--"),co=e=>cy(e)?ly.test(e.split("/*")[0].trim()):!1,ly=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function zo(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Qe={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},vt={...Qe,transform:e=>ge(0,1,e)},It={...Qe,default:1},ht=e=>Math.round(e*1e5)/1e5,lo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fy(e){return e==null}const hy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fo=(e,t)=>r=>!!(typeof r=="string"&&hy.test(r)&&r.startsWith(e)||t&&!fy(r)&&Object.prototype.hasOwnProperty.call(r,t)),Cd=(e,t,r)=>n=>{if(typeof n!="string")return n;const[i,s,a,o]=n.match(lo);return{[e]:parseFloat(i),[t]:parseFloat(s),[r]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},dy=e=>ge(0,255,e),br={...Qe,transform:e=>Math.round(dy(e))},Le={test:fo("rgb","red"),parse:Cd("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+br.transform(e)+", "+br.transform(t)+", "+br.transform(r)+", "+ht(vt.transform(n))+")"};function py(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const ba={test:fo("#"),parse:py,transform:Le.transform},Rt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),we=Rt("deg"),ye=Rt("%"),P=Rt("px"),my=Rt("vh"),yy=Rt("vw"),Xo={...ye,parse:e=>ye.parse(e)/100,transform:e=>ye.transform(e*100)},He={test:fo("hsl","hue"),parse:Cd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ye.transform(ht(t))+", "+ye.transform(ht(r))+", "+ht(vt.transform(n))+")"},W={test:e=>Le.test(e)||ba.test(e)||He.test(e),parse:e=>Le.test(e)?Le.parse(e):He.test(e)?He.parse(e):ba.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Le.transform(e):He.transform(e),getAnimatableNone:e=>{const t=W.parse(e);return t.alpha=0,W.transform(t)}},gy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function vy(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(lo))==null?void 0:t.length)||0)+(((r=e.match(gy))==null?void 0:r.length)||0)>0}const Md="number",qd="color",by="var",Ty="var(",Yo="${}",Sy=/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 Ye(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(Sy,u=>(W.test(u)?(n.color.push(s),i.push(qd),r.push(W.parse(u))):u.startsWith(Ty)?(n.var.push(s),i.push(by),r.push(u)):(n.number.push(s),i.push(Md),r.push(parseFloat(u))),++s,Yo)).split(Yo);return{values:r,split:o,indexes:n,types:i}}function _y(e){return Ye(e).values}function Od({split:e,types:t}){const r=e.length;return n=>{let i="";for(let s=0;s<r;s++)if(i+=e[s],n[s]!==void 0){const a=t[s];a===Md?i+=ht(n[s]):a===qd?i+=W.transform(n[s]):i+=n[s]}return i}}function Ay(e){return Od(Ye(e))}const wy=e=>typeof e=="number"?0:W.test(e)?W.getAnimatableNone(e):e,xy=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:wy(e);function Py(e){const t=Ye(e);return Od(t)(t.values.map((n,i)=>xy(n,t.split[i])))}const he={test:vy,parse:_y,createTransformer:Ay,getAnimatableNone:Py};function Tr(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Ry({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,s=0,a=0;if(!t)i=s=a=r;else{const o=r<.5?r*(1+t):r+t-r*t,u=2*r-o;i=Tr(u,o,e+1/3),s=Tr(u,o,e),a=Tr(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:n}}function Wt(e,t){return r=>r>0?t:e}const k=(e,t,r)=>e+(t-e)*r,Sr=(e,t,r)=>{const n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},Ey=[ba,Le,He],Cy=e=>Ey.find(t=>t.test(e));function Zo(e){const t=Cy(e);if(!t)return!1;let r=t.parse(e);return t===He&&(r=Ry(r)),r}const Jo=(e,t)=>{const r=Zo(e),n=Zo(t);if(!r||!n)return Wt(e,t);const i={...r};return s=>(i.red=Sr(r.red,n.red,s),i.green=Sr(r.green,n.green,s),i.blue=Sr(r.blue,n.blue,s),i.alpha=k(r.alpha,n.alpha,s),Le.transform(i))},Ta=new Set(["none","hidden"]);function My(e,t){return Ta.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function qy(e,t){return r=>k(e,t,r)}function ho(e){return typeof e=="number"?qy:typeof e=="string"?co(e)?Wt:W.test(e)?Jo:Dy:Array.isArray(e)?Id:typeof e=="object"?W.test(e)?Jo:Oy:Wt}function Id(e,t){const r=[...e],n=r.length,i=e.map((s,a)=>ho(s)(s,t[a]));return s=>{for(let a=0;a<n;a++)r[a]=i[a](s);return r}}function Oy(e,t){const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=ho(e[i])(e[i],t[i]));return i=>{for(const s in n)r[s]=n[s](i);return r}}function Iy(e,t){const r=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][n[s]],o=e.values[a]??0;r[i]=o,n[s]++}return r}const Dy=(e,t)=>{const r=he.createTransformer(t),n=Ye(e),i=Ye(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?Ta.has(e)&&!i.values.length||Ta.has(t)&&!n.values.length?My(e,t):xt(Id(Iy(n,i),i.values),r):Wt(e,t)};function Dd(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?k(e,t,r):ho(e)(e,t)}const Vy=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>j.update(t,r),stop:()=>Ce(t),now:()=>Z.isProcessing?Z.timestamp:ee.now()}},Vd=(e,t,r=10)=>{let n="";const i=Math.max(Math.round(t/r),2);for(let s=0;s<i;s++)n+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},Kt=2e4;function po(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<Kt;)t+=r,n=e.next(t);return t>=Kt?1/0:t}function jy(e,t=100,r){const n=r({...e,keyframes:[0,t]}),i=Math.min(po(n),Kt);return{type:"keyframes",ease:s=>n.next(i*s).value/t,duration:ae(i)}}const G={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};function Sa(e,t){return e*Math.sqrt(1-t*t)}const Ly=12;function Fy(e,t,r){let n=r;for(let i=1;i<Ly;i++)n=n-e(n)/t(n);return n}const _r=.001;function By({duration:e=G.duration,bounce:t=G.bounce,velocity:r=G.velocity,mass:n=G.mass}){let i,s,a=1-t;a=ge(G.minDamping,G.maxDamping,a),e=ge(G.minDuration,G.maxDuration,ae(e)),a<1?(i=c=>{const l=c*a,f=l*e,h=l-r,p=Sa(c,a),y=Math.exp(-f);return _r-h/p*y},s=c=>{const f=c*a*e,h=f*r+r,p=Math.pow(a,2)*Math.pow(c,2)*e,y=Math.exp(-f),m=Sa(Math.pow(c,2),a);return(-i(c)+_r>0?-1:1)*((h-p)*y)/m}):(i=c=>{const l=Math.exp(-c*e),f=(c-r)*e+1;return-_r+l*f},s=c=>{const l=Math.exp(-c*e),f=(r-c)*(e*e);return l*f});const o=5/e,u=Fy(i,s,o);if(e=ie(e),isNaN(u))return{stiffness:G.stiffness,damping:G.damping,duration:e};{const c=Math.pow(u,2)*n;return{stiffness:c,damping:a*2*Math.sqrt(n*c),duration:e}}}const ky=["duration","bounce"],Ny=["stiffness","damping","mass"];function Qo(e,t){return t.some(r=>e[r]!==void 0)}function Uy(e){let t={velocity:G.velocity,stiffness:G.stiffness,damping:G.damping,mass:G.mass,isResolvedFromDuration:!1,...e};if(!Qo(e,Ny)&&Qo(e,ky))if(t.velocity=0,e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),i=n*n,s=2*ge(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:G.mass,stiffness:i,damping:s}}else{const r=By({...e,velocity:0});t={...t,...r,mass:G.mass},t.isResolvedFromDuration=!0}return t}function Ht(e=G.visualDuration,t=G.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:i}=r;const s=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],o={done:!1,value:s},{stiffness:u,damping:c,mass:l,duration:f,velocity:h,isResolvedFromDuration:p}=Uy({...r,velocity:-ae(r.velocity||0)}),y=h||0,m=c/(2*Math.sqrt(u*l)),d=a-s,g=ae(Math.sqrt(u/l)),v=Math.abs(d)<5;n||(n=v?G.restSpeed.granular:G.restSpeed.default),i||(i=v?G.restDelta.granular:G.restDelta.default);let b,T,S,_,A,R;if(m<1)S=Sa(g,m),_=(y+m*g*d)/S,b=E=>{const w=Math.exp(-m*g*E);return a-w*(_*Math.sin(S*E)+d*Math.cos(S*E))},A=m*g*_+d*S,R=m*g*d-_*S,T=E=>Math.exp(-m*g*E)*(A*Math.sin(S*E)+R*Math.cos(S*E));else if(m===1){b=w=>a-Math.exp(-g*w)*(d+(y+g*d)*w);const E=y+g*d;T=w=>Math.exp(-g*w)*(g*E*w-y)}else{const E=g*Math.sqrt(m*m-1);b=U=>{const $=Math.exp(-m*g*U),Q=Math.min(E*U,300);return a-$*((y+m*g*d)*Math.sinh(Q)+E*d*Math.cosh(Q))/E};const w=(y+m*g*d)/E,M=m*g*w-d*E,O=m*g*d-w*E;T=U=>{const $=Math.exp(-m*g*U),Q=Math.min(E*U,300);return $*(M*Math.sinh(Q)+O*Math.cosh(Q))}}const q={calculatedDuration:p&&f||null,velocity:E=>ie(T(E)),next:E=>{if(!p&&m<1){const M=Math.exp(-m*g*E),O=Math.sin(S*E),U=Math.cos(S*E),$=a-M*(_*O+d*U),Q=ie(M*(A*O+R*U));return o.done=Math.abs(Q)<=n&&Math.abs(a-$)<=i,o.value=o.done?a:$,o}const w=b(E);if(p)o.done=E>=f;else{const M=ie(T(E));o.done=Math.abs(M)<=n&&Math.abs(a-w)<=i}return o.value=o.done?a:w,o},toString:()=>{const E=Math.min(po(q),Kt),w=Vd(M=>q.next(E*M).value,E,30);return E+"ms "+w},toTransition:()=>{}};return q}Ht.applyToOptions=e=>{const t=jy(e,100,Ht);return e.ease=t.ease,e.duration=ie(t.duration),e.type="keyframes",e};const Gy=5;function jd(e,t,r){const n=Math.max(t-Gy,0);return md(r-e(n),t-n)}function _a({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:u,restDelta:c=.5,restSpeed:l}){const f=e[0],h={done:!1,value:f},p=R=>o!==void 0&&R<o||u!==void 0&&R>u,y=R=>o===void 0?u:u===void 0||Math.abs(o-R)<Math.abs(u-R)?o:u;let m=r*t;const d=f+m,g=a===void 0?d:a(d);g!==d&&(m=g-f);const v=R=>-m*Math.exp(-R/n),b=R=>g+v(R),T=R=>{const q=v(R),E=b(R);h.done=Math.abs(q)<=c,h.value=h.done?g:E};let S,_;const A=R=>{p(h.value)&&(S=R,_=Ht({keyframes:[h.value,y(h.value)],velocity:jd(b,R,h.value),damping:i,stiffness:s,restDelta:c,restSpeed:l}))};return A(0),{calculatedDuration:null,next:R=>{let q=!1;return!_&&S===void 0&&(q=!0,T(R),A(R)),S!==void 0&&R>=S?_.next(R-S):(!q&&T(R),h)}}}function $y(e,t,r){const n=[],i=r||Ee.mix||Dd,s=e.length-1;for(let a=0;a<s;a++){let o=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||oe:t;o=xt(u,o)}n.push(o)}return n}function Wy(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const s=e.length;if(so(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=$y(t,n,i),u=o.length,c=l=>{if(a&&l<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(l<e[f+1]);f++);const h=gt(e[f],e[f+1],l);return o[f](h)};return r?l=>c(ge(e[0],e[s-1],l)):c}function Ky(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=gt(0,t,n);e.push(k(r,1,i))}}function Hy(e){const t=[0];return Ky(t,e.length-1),t}function zy(e,t){return e.map(r=>r*t)}function Xy(e,t){return e.map(()=>t||wd).splice(0,e.length-1)}function dt({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=ny(n)?n.map(Ho):Ho(n),s={done:!1,value:t[0]},a=zy(r&&r.length===t.length?r:Hy(t),e),o=Wy(a,t,{ease:Array.isArray(i)?i:Xy(t,i)});return{calculatedDuration:e,next:u=>(s.value=o(u),s.done=u>=e,s)}}const Yy=e=>e!==null;function ir(e,{repeat:t,repeatType:r="loop"},n,i=1){const s=e.filter(Yy),o=i<0||t&&r!=="loop"&&t%2===1?0:s.length-1;return!o||n===void 0?s[o]:n}const Zy={decay:_a,inertia:_a,tween:dt,keyframes:dt,spring:Ht};function Ld(e){typeof e.type=="string"&&(e.type=Zy[e.type])}class mo{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const Jy=e=>e/100;class zt extends mo{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var n,i;const{motionValue:r}=this.options;r&&r.updatedAt!==ee.now()&&this.tick(ee.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(n=this.options).onStop)==null||i.call(n))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ld(t);const{type:r=dt,repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const u=r||dt;u!==dt&&typeof o[0]!="number"&&(this.mixKeyframes=xt(Jy,Dd(o[0],o[1])),o=[0,100]);const c=u({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=po(c));const{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=c}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:u}=this;if(this.startTime===null)return n.next(0);const{delay:c=0,keyframes:l,repeat:f,repeatType:h,repeatDelay:p,type:y,onUpdate:m,finalKeyframe:d}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let b=this.currentTime,T=n;if(f){const R=Math.min(this.currentTime,i)/o;let q=Math.floor(R),E=R%1;!E&&R>=1&&(E=1),E===1&&q--,q=Math.min(q,f+1),!!(q%2)&&(h==="reverse"?(E=1-E,p&&(E-=p/o)):h==="mirror"&&(T=a)),b=ge(0,1,E)*o}let S;v?(this.delayState.value=l[0],S=this.delayState):S=T.next(b),s&&!v&&(S.value=s(S.value));let{done:_}=S;!v&&u!==null&&(_=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return A&&y!==_a&&(S.value=ir(l,this.options,d,this.speed)),m&&m(S.value),A&&this.finish(),S}then(t,r){return this.finished.then(t,r)}get duration(){return ae(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ae(t)}get time(){return ae(this.currentTime)}set time(t){t=ie(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?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const r=this.generator.next(t).value;return jd(n=>this.generator.next(n).value,t,r)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(ee.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=ae(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=Vy,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(s=(i=this.options).onPlay)==null||s.call(i);const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),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(ee.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(t=this.options).onComplete)==null||r.call(t)}cancel(){var t,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(t=this.options).onCancel)==null||r.call(t)}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){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),t.observe(this)}}function Qy(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Fe=e=>e*180/Math.PI,Aa=e=>{const t=Fe(Math.atan2(e[1],e[0]));return wa(t)},eg={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Aa,rotateZ:Aa,skewX:e=>Fe(Math.atan(e[1])),skewY:e=>Fe(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},wa=e=>(e=e%360,e<0&&(e+=360),e),eu=Aa,tu=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ru=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),tg={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tu,scaleY:ru,scale:e=>(tu(e)+ru(e))/2,rotateX:e=>wa(Fe(Math.atan2(e[6],e[5]))),rotateY:e=>wa(Fe(Math.atan2(-e[2],e[0]))),rotateZ:eu,rotate:eu,skewX:e=>Fe(Math.atan(e[4])),skewY:e=>Fe(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function xa(e){return e.includes("scale")?1:0}function Pa(e,t){if(!e||e==="none")return xa(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(r)n=tg,i=r;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=eg,i=o}if(!i)return xa(t);const s=n[t],a=i[1].split(",").map(ng);return typeof s=="function"?s(a):a[s]}const rg=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Pa(r,t)};function ng(e){return parseFloat(e.trim())}const et=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tt=new Set(et),nu=e=>e===Qe||e===P,ig=new Set(["x","y","z"]),sg=et.filter(e=>!ig.has(e));function ag(e){const t=[];return sg.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const Re={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:n})=>{const i=e.max-e.min;return n==="border-box"?i:i-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:n})=>{const i=e.max-e.min;return n==="border-box"?i:i-parseFloat(t)-parseFloat(r)},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})=>Pa(t,"x"),y:(e,{transform:t})=>Pa(t,"y")};Re.translateX=Re.x;Re.translateY=Re.y;const Be=new Set;let Ra=!1,Ea=!1,Ca=!1;function Fd(){if(Ea){const e=Array.from(Be).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const i=ag(n);i.length&&(r.set(n,i),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const i=r.get(n);i&&i.forEach(([s,a])=>{var o;(o=n.getValue(s))==null||o.set(a)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Ea=!1,Ra=!1,Be.forEach(e=>e.complete(Ca)),Be.clear()}function Bd(){Be.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ea=!0)})}function og(){Ca=!0,Bd(),Fd(),Ca=!1}class yo{constructor(t,r,n,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Be.add(this),Ra||(Ra=!0,j.read(Bd),j.resolveKeyframes(Fd))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(n&&r){const o=n.readValue(r,a);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}Qy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Be.delete(this)}cancel(){this.state==="scheduled"&&(Be.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ug=e=>e.startsWith("--");function kd(e,t,r){ug(t)?e.style.setProperty(t,r):e.style[t]=r}const cg={};function Nd(e,t){const r=pd(e);return()=>cg[t]??r()}const lg=Nd(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ud=Nd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ut=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,iu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ut([0,.65,.55,1]),circOut:ut([.55,0,1,.45]),backIn:ut([.31,.01,.66,-.59]),backOut:ut([.33,1.53,.69,.99])};function Gd(e,t){if(e)return typeof e=="function"?Ud()?Vd(e,t):"ease-out":xd(e)?ut(e):Array.isArray(e)?e.map(r=>Gd(r,t)||iu.easeOut):iu[e]}function fg(e,t,r,{delay:n=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:u}={},c=void 0){const l={[t]:r};u&&(l.offset=u);const f=Gd(o,i);Array.isArray(f)&&(l.easing=f);const h={delay:n,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(l,h)}function $d(e){return typeof e=="function"&&"applyToOptions"in e}function hg({type:e,...t}){return $d(e)&&Ud()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Wd extends mo{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:n,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:o,onComplete:u}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,so(typeof t.type!="string");const c=hg(t);this.animation=fg(r,n,i,c,s),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const l=ir(i,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(l),kd(r,n,l),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,r;(r=(t=this.animation).finish)==null||r.call(t)}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(){var r,n,i;const t=(r=this.options)==null?void 0:r.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(n=this.animation).commitStyles)==null||i.call(n))}get duration(){var r,n;const t=((n=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:n.call(r).duration)||0;return ae(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ae(t)}get time(){return ae(Number(this.animation.currentTime)||0)}set time(t){const r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ie(t),r&&this.animation.pause()}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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:r,rangeEnd:n,observe:i}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&lg()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),n&&(this.animation.rangeEnd=n),oe):i(this)}}const Kd={anticipate:Sd,backInOut:Td,circInOut:Ad};function dg(e){return e in Kd}function pg(e){typeof e.ease=="string"&&dg(e.ease)&&(e.ease=Kd[e.ease])}const Ar=10;class mg extends Wd{constructor(t){pg(t),Ld(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:i,element:s,...a}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const o=new zt({...a,autoplay:!1}),u=Math.max(Ar,ee.now()-this.startTime),c=ge(0,Ar,u-Ar),l=o.sample(u).value,{name:f}=this.options;s&&f&&kd(s,f,l),r.setWithVelocity(o.sample(Math.max(0,u-c)).value,l,c),o.stop()}}const su=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(he.test(e)||e==="0")&&!e.startsWith("url("));function yg(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function gg(e,t,r,n){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=su(i,t),o=su(s,t);return!a||!o?!1:yg(e)||(r==="spring"||$d(r))&&n}function Ma(e){e.duration=0,e.type="keyframes"}const Hd=new Set(["opacity","clipPath","filter","transform"]),vg=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function bg(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&vg.test(e[t]))return!0;return!1}const Tg=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Sg=pd(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _g(e){var f;const{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:s,type:a,keyframes:o}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Sg()&&r&&(Hd.has(r)||Tg.has(r)&&bg(o))&&(r!=="transform"||!l)&&!c&&!n&&i!=="mirror"&&s!==0&&a!=="inertia"}const Ag=40;class wg extends mo{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:o,name:u,motionValue:c,element:l,...f}){var y;super(),this.stop=()=>{var m,d;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(d=this.keyframeResolver)==null||d.cancel()},this.createdAt=ee.now();const h={autoplay:t,delay:r,type:n,repeat:i,repeatDelay:s,repeatType:a,name:u,motionValue:c,element:l,...f},p=(l==null?void 0:l.KeyframeResolver)||yo;this.keyframeResolver=new p(o,(m,d,g)=>this.onKeyframesResolved(m,d,h,!g),u,c,l),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,r,n,i){var g,v;this.keyframeResolver=void 0;const{name:s,type:a,velocity:o,delay:u,isHandoff:c,onUpdate:l}=n;this.resolvedAt=ee.now();let f=!0;gg(t,s,a,o)||(f=!1,(Ee.instantAnimations||!u)&&(l==null||l(ir(t,n,r))),t[0]=t[t.length-1],Ma(n),n.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Ag?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},y=f&&!c&&_g(p),m=(v=(g=p.motionValue)==null?void 0:g.owner)==null?void 0:v.current;let d;if(y)try{d=new mg({...p,element:m})}catch{d=new zt(p)}else d=new zt(p);d.finished.then(()=>{this.notifyFinished()}).catch(oe),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),og()),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(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function zd(e,t,r,n=0,i=1){const s=Array.from(e).sort((c,l)=>c.sortNodePosition(l)).indexOf(t),a=e.size,o=(a-1)*n;return typeof r=="function"?r(s,a):i===1?s*n:o-s*n}const xg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Pg(e){const t=xg.exec(e);if(!t)return[,];const[,r,n,i]=t;return[`--${r??n}`,i]}function Xd(e,t,r=1){const[n,i]=Pg(e);if(!n)return;const s=window.getComputedStyle(t).getPropertyValue(n);if(s){const a=s.trim();return fd(a)?parseFloat(a):a}return co(i)?Xd(i,t,r+1):i}const Rg={type:"spring",stiffness:500,damping:25,restSpeed:10},Eg=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Cg={type:"keyframes",duration:.8},Mg={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qg=(e,{keyframes:t})=>t.length>2?Cg:tt.has(e)?e.startsWith("scale")?Eg(t[1]):Rg:Mg;function Yd(e,t){if(e!=null&&e.inherit&&t){const{inherit:r,...n}=e;return{...t,...n}}return e}function go(e,t){const r=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return r!==e?Yd(r,e):r}const Og=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Ig(e){for(const t in e)if(!Og.has(t))return!0;return!1}const vo=(e,t,r,n={},i,s)=>a=>{const o=go(n,e)||{},u=o.delay||n.delay||0;let{elapsed:c=0}=n;c=c-ie(u);const l={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-c,onUpdate:h=>{t.set(h),o.onUpdate&&o.onUpdate(h)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};Ig(o)||Object.assign(l,qg(e,l)),l.duration&&(l.duration=ie(l.duration)),l.repeatDelay&&(l.repeatDelay=ie(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let f=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(Ma(l),l.delay===0&&(f=!0)),(Ee.instantAnimations||Ee.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(f=!0,Ma(l),l.delay=0),l.allowFlatten=!o.type&&!o.ease,f&&!s&&t.get()!==void 0){const h=ir(l.keyframes,o);if(h!==void 0){j.update(()=>{l.onUpdate(h),l.onComplete()});return}}return o.isSync?new zt(l):new wg(l)};function au(e){const t=[{},{}];return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function bo(e,t,r,n){if(typeof t=="function"){const[i,s]=au(n);t=t(r!==void 0?r:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=au(n);t=t(r!==void 0?r:e.custom,i,s)}return t}function ke(e,t,r){const n=e.getProps();return bo(n,t,r!==void 0?r:n.custom,e)}const Zd=new Set(["width","height","top","left","right","bottom",...et]),ou=30,Dg=e=>!isNaN(parseFloat(e));class Vg{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{var s;const i=ee.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=ee.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Dg(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new ao);const n=this.events[t].add(r);return t==="change"?()=>{n(),j.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.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=ee.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ou)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,ou);return md(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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(){var t,r;(t=this.dependents)==null||t.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ze(e,t){return new Vg(e,t)}const qa=e=>Array.isArray(e);function jg(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ze(r))}function Lg(e){return qa(e)?e[e.length-1]||0:e}function Fg(e,t){const r=ke(e,t);let{transitionEnd:n={},transition:i={},...s}=r||{};s={...s,...n};for(const a in s){const o=Lg(s[a]);jg(e,a,o)}}const J=e=>!!(e&&e.getVelocity);function Bg(e){return!!(J(e)&&e.add)}function Oa(e,t){const r=e.getValue("willChange");if(Bg(r))return r.add(t);if(!r&&Ee.WillChange){const n=new Ee.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function To(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const kg="framerAppearId",Jd="data-"+To(kg);function Qd(e){return e.props[Jd]}function Ng({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function ep(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:s,transitionEnd:a,...o}=t;const u=e.getDefaultTransition();s=s?Yd(s,u):u;const c=s==null?void 0:s.reduceMotion;n&&(s=n);const l=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in o){const p=e.getValue(h,e.latestValues[h]??null),y=o[h];if(y===void 0||f&&Ng(f,h))continue;const m={delay:r,...go(s||{},h)},d=p.get();if(d!==void 0&&!p.isAnimating()&&!Array.isArray(y)&&y===d&&!m.velocity){j.update(()=>p.set(y));continue}let g=!1;if(window.MotionHandoffAnimation){const T=Qd(e);if(T){const S=window.MotionHandoffAnimation(T,h,j);S!==null&&(m.startTime=S,g=!0)}}Oa(e,h);const v=c??e.shouldReduceMotion;p.start(vo(h,p,y,v&&Zd.has(h)?{type:!1}:m,e,g));const b=p.animation;b&&l.push(b)}if(a){const h=()=>j.update(()=>{a&&Fg(e,a)});l.length?Promise.all(l).then(h):h()}return l}function Ia(e,t,r={}){var u;const n=ke(e,t,r.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const s=n?()=>Promise.all(ep(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:f,staggerDirection:h}=i;return Ug(e,t,c,l,f,h,r)}:()=>Promise.resolve(),{when:o}=i;if(o){const[c,l]=o==="beforeChildren"?[s,a]:[a,s];return c().then(()=>l())}else return Promise.all([s(),a(r.delay)])}function Ug(e,t,r=0,n=0,i=0,s=1,a){const o=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),o.push(Ia(u,t,{...a,delay:r+(typeof n=="function"?0:n)+zd(e.variantChildren,u,n,i,s)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(o)}function Gg(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(s=>Ia(e,s,r));n=Promise.all(i)}else if(typeof t=="string")n=Ia(e,t,r);else{const i=typeof t=="function"?ke(e,t,r.custom):t;n=Promise.all(ep(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}const $g={test:e=>e==="auto",parse:e=>e},tp=e=>t=>t.test(e),rp=[Qe,P,ye,we,yy,my,$g],uu=e=>rp.find(tp(e));function Wg(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||dd(e):!0}const Kg=new Set(["brightness","contrast","saturate","opacity"]);function Hg(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(lo)||[];if(!n)return e;const i=r.replace(n,"");let s=Kg.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+i+")"}const zg=/\b([a-z-]*)\(.*?\)/gu,Da={...he,getAnimatableNone:e=>{const t=e.match(zg);return t?t.map(Hg).join(" "):e}},Va={...he,getAnimatableNone:e=>{const t=he.parse(e);return he.createTransformer(e)(t.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}},cu={...Qe,transform:Math.round},Xg={rotate:we,rotateX:we,rotateY:we,rotateZ:we,scale:It,scaleX:It,scaleY:It,scaleZ:It,skew:we,skewX:we,skewY:we,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:vt,originX:Xo,originY:Xo,originZ:P},So={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,...Xg,zIndex:cu,fillOpacity:vt,strokeOpacity:vt,numOctaves:cu},Yg={...So,color:W,backgroundColor:W,outlineColor:W,fill:W,stroke:W,borderColor:W,borderTopColor:W,borderRightColor:W,borderBottomColor:W,borderLeftColor:W,filter:Da,WebkitFilter:Da,mask:Va,WebkitMask:Va},np=e=>Yg[e],Zg=new Set([Da,Va]);function ip(e,t){let r=np(e);return Zg.has(r)||(r=he),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Jg=new Set(["auto","none","0"]);function Qg(e,t,r){let n=0,i;for(;n<e.length&&!i;){const s=e[n];typeof s=="string"&&!Jg.has(s)&&Ye(s).values.length&&(i=e[n]),n++}if(i&&r)for(const s of t)e[s]=ip(r,i)}class ev extends yo{constructor(t,r,n,i,s){super(t,r,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),co(f))){const h=Xd(f,r.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Zd.has(n)||t.length!==2)return;const[i,s]=t,a=uu(i),o=uu(s),u=zo(i),c=zo(s);if(u!==c&&Re[n]){this.needsMeasurement=!0;return}if(a!==o)if(nu(a)&&nu(o))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else Re[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let i=0;i<t.length;i++)(t[i]===null||Wg(t[i]))&&n.push(i);n.length&&Qg(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Re[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const i=r[r.length-1];i!==void 0&&t.getValue(n,i).jump(i,!1)}measureEndState(){var o;const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(r);i&&i.jump(this.measuredOrigin,!1);const s=n.length-1,a=n[s];n[s]=Re[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([u,c])=>{t.getValue(u).set(c)}),this.resolveNoneKeyframes()}}function sp(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const i=(r==null?void 0:r[e])??n.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(n=>n!=null)}const ap=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function tv(e){return hd(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:_o}=Pd(queueMicrotask,!1),fe={x:!1,y:!1};function op(){return fe.x||fe.y}function rv(e){return e==="x"||e==="y"?fe[e]?null:(fe[e]=!0,()=>{fe[e]=!1}):fe.x||fe.y?null:(fe.x=fe.y=!0,()=>{fe.x=fe.y=!1})}function up(e,t){const r=sp(e),n=new AbortController,i={passive:!0,...t,signal:n.signal};return[r,i,()=>n.abort()]}function nv(e){return!(e.pointerType==="touch"||op())}function iv(e,t,r={}){const[n,i,s]=up(e,r);return n.forEach(a=>{let o=!1,u=!1,c;const l=()=>{a.removeEventListener("pointerleave",y)},f=d=>{c&&(c(d),c=void 0),l()},h=d=>{o=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(d))},p=()=>{o=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},y=d=>{if(d.pointerType!=="touch"){if(o){u=!0;return}f(d)}},m=d=>{if(!nv(d))return;u=!1;const g=t(a,d);typeof g=="function"&&(c=g,a.addEventListener("pointerleave",y,i))};a.addEventListener("pointerenter",m,i),a.addEventListener("pointerdown",p,i)}),s}const cp=(e,t)=>t?e===t?!0:cp(e,t.parentElement):!1,Ao=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,sv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function av(e){return sv.has(e.tagName)||e.isContentEditable===!0}const ov=new Set(["INPUT","SELECT","TEXTAREA"]);function uv(e){return ov.has(e.tagName)||e.isContentEditable===!0}const Ft=new WeakSet;function lu(e){return t=>{t.key==="Enter"&&e(t)}}function wr(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const cv=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=lu(()=>{if(Ft.has(r))return;wr(r,"down");const i=lu(()=>{wr(r,"up")}),s=()=>wr(r,"cancel");r.addEventListener("keyup",i,t),r.addEventListener("blur",s,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function fu(e){return Ao(e)&&!op()}const hu=new WeakSet;function lv(e,t,r={}){const[n,i,s]=up(e,r),a=o=>{const u=o.currentTarget;if(!fu(o)||hu.has(o))return;Ft.add(u),r.stopPropagation&&hu.add(o);const c=t(u,o),l=(p,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Ft.has(u)&&Ft.delete(u),fu(p)&&typeof c=="function"&&c(p,{success:y})},f=p=>{l(p,u===window||u===document||r.useGlobalTarget||cp(u,p.target))},h=p=>{l(p,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return n.forEach(o=>{(r.useGlobalTarget?window:o).addEventListener("pointerdown",a,i),tv(o)&&(o.addEventListener("focus",c=>cv(c,i)),!av(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function wo(e){return hd(e)&&"ownerSVGElement"in e}const Bt=new WeakMap;let xe;const lp=(e,t,r)=>(n,i)=>i&&i[0]?i[0][e+"Size"]:wo(n)&&"getBBox"in n?n.getBBox()[t]:n[r],fv=lp("inline","width","offsetWidth"),hv=lp("block","height","offsetHeight");function dv({target:e,borderBoxSize:t}){var r;(r=Bt.get(e))==null||r.forEach(n=>{n(e,{get width(){return fv(e,t)},get height(){return hv(e,t)}})})}function pv(e){e.forEach(dv)}function mv(){typeof ResizeObserver>"u"||(xe=new ResizeObserver(pv))}function yv(e,t){xe||mv();const r=sp(e);return r.forEach(n=>{let i=Bt.get(n);i||(i=new Set,Bt.set(n,i)),i.add(t),xe==null||xe.observe(n)}),()=>{r.forEach(n=>{const i=Bt.get(n);i==null||i.delete(t),i!=null&&i.size||xe==null||xe.unobserve(n)})}}const kt=new Set;let ze;function gv(){ze=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};kt.forEach(t=>t(e))},window.addEventListener("resize",ze)}function vv(e){return kt.add(e),ze||gv(),()=>{kt.delete(e),!kt.size&&typeof ze=="function"&&(window.removeEventListener("resize",ze),ze=void 0)}}function du(e,t){return typeof e=="function"?vv(e):yv(e,t)}function bv(e){return wo(e)&&e.tagName==="svg"}const Tv=[...rp,W,he],Sv=e=>Tv.find(tp(e)),pu=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xe=()=>({x:pu(),y:pu()}),mu=()=>({min:0,max:0}),H=()=>({x:mu(),y:mu()}),_v=new WeakMap;function sr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function bt(e){return typeof e=="string"||Array.isArray(e)}const xo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Po=["initial",...xo];function ar(e){return sr(e.animate)||Po.some(t=>bt(e[t]))}function fp(e){return!!(ar(e)||e.variants)}function Av(e,t,r){for(const n in t){const i=t[n],s=r[n];if(J(i))e.addValue(n,i);else if(J(s))e.addValue(n,Ze(i,{owner:e}));else if(s!==i)if(e.hasValue(n)){const a=e.getValue(n);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(n);e.addValue(n,Ze(a!==void 0?a:i,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const ja={current:null},hp={current:!1},wv=typeof window<"u";function xv(){if(hp.current=!0,!!wv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ja.current=e.matches;e.addEventListener("change",t),t()}else ja.current=!1}const yu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Xt={};function dp(e){Xt=e}function Pv(){return Xt}class Rv{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,skipAnimations:s,blockInitialAnimation:a,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=yo,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 p=ee.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,j.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=r.initial?{...c}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=s,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=ar(r),this.isVariantNode=fp(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(r,{},this);for(const p in h){const y=h[p];c[p]!==void 0&&J(y)&&y.set(c[p])}}mount(t){var r,n;if(this.hasBeenMounted)for(const i in this.initialValues)(r=this.values.get(i))==null||r.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,_v.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((i,s)=>this.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(hp.current||xv(),this.shouldReduceMotion=ja.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Ce(this.notifyUpdate),Ce(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const n=this.features[r];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,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&Hd.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:o,times:u,ease:c,duration:l}=r.accelerate,f=new Wd({element:this.current,name:t,keyframes:o,times:u,ease:c,duration:ie(l)}),h=a(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const n=tt.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&j.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),r.owner&&r.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 Xt){const r=Xt[t];if(!r)continue;const{isEnabled:n,Feature:i}=r;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):H()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<yu.length;n++){const i=yu[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Av(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 r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Ze(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(fd(n)||dd(n))?n=parseFloat(n):!Sv(n)&&he.test(r)&&(n=ip(t,r)),this.setBaseTarget(t,J(n)?n.get():n)),J(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var s;const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const a=bo(this.props,r,(s=this.presenceContext)==null?void 0:s.custom);a&&(n=a[t])}if(r&&n!==void 0)return n;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!J(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new ao),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){_o.render(this.render)}}class pp extends Rv{constructor(){super(...arguments),this.KeyframeResolver=ev}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){const n=t.style;return n?n[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;J(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class Me{constructor(t){this.isMounted=!1,this.node=t}update(){}}function mp({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Ev({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Cv(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function xr(e){return e===void 0||e===1}function La({scale:e,scaleX:t,scaleY:r}){return!xr(e)||!xr(t)||!xr(r)}function Ve(e){return La(e)||yp(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function yp(e){return gu(e.x)||gu(e.y)}function gu(e){return e&&e!=="0%"}function Yt(e,t,r){const n=e-r,i=t*n;return r+i}function vu(e,t,r,n,i){return i!==void 0&&(e=Yt(e,i,n)),Yt(e,r,n)+t}function Fa(e,t=0,r=1,n,i){e.min=vu(e.min,t,r,n,i),e.max=vu(e.max,t,r,n,i)}function gp(e,{x:t,y:r}){Fa(e.x,t.translate,t.scale,t.originPoint),Fa(e.y,r.translate,r.scale,r.originPoint)}const bu=.999999999999,Tu=1.0000000000001;function Mv(e,t,r,n=!1){var o;const i=r.length;if(!i)return;t.x=t.y=1;let s,a;for(let u=0;u<i;u++){s=r[u],a=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(pe(e.x,-s.scroll.offset.x),pe(e.y,-s.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,gp(e,a)),n&&Ve(s.latestValues)&&Nt(e,s.latestValues,(o=s.layout)==null?void 0:o.layoutBox))}t.x<Tu&&t.x>bu&&(t.x=1),t.y<Tu&&t.y>bu&&(t.y=1)}function pe(e,t){e.min+=t,e.max+=t}function Su(e,t,r,n,i=.5){const s=k(e.min,e.max,i);Fa(e,t,r,s,n)}function _u(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Nt(e,t,r){const n=r??e;Su(e.x,_u(t.x,n.x),t.scaleX,t.scale,t.originX),Su(e.y,_u(t.y,n.y),t.scaleY,t.scale,t.originY)}function vp(e,t){return mp(Cv(e.getBoundingClientRect(),t))}function qv(e,t,r){const n=vp(e,r),{scroll:i}=t;return i&&(pe(n.x,i.offset.x),pe(n.y,i.offset.y)),n}const Ov={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Iv=et.length;function Dv(e,t,r){let n="",i=!0;for(let s=0;s<Iv;s++){const a=et[s],o=e[a];if(o===void 0)continue;let u=!0;if(typeof o=="number")u=o===(a.startsWith("scale")?1:0);else{const c=parseFloat(o);u=a.startsWith("scale")?c===1:c===0}if(!u||r){const c=ap(o,So[a]);if(!u){i=!1;const l=Ov[a]||a;n+=`${l}(${c}) `}r&&(t[a]=c)}}return n=n.trim(),r?n=r(t,i?"":n):i&&(n="none"),n}function Ro(e,t,r){const{style:n,vars:i,transformOrigin:s}=e;let a=!1,o=!1;for(const u in t){const c=t[u];if(tt.has(u)){a=!0;continue}else if(Ed(u)){i[u]=c;continue}else{const l=ap(c,So[u]);u.startsWith("origin")?(o=!0,s[u]=l):n[u]=l}}if(t.transform||(a||r?n.transform=Dv(t,e.transform,r):n.transform&&(n.transform="none")),o){const{originX:u="50%",originY:c="50%",originZ:l=0}=s;n.transformOrigin=`${u} ${c} ${l}`}}function bp(e,{style:t,vars:r},n,i){const s=e.style;let a;for(a in t)s[a]=t[a];i==null||i.applyProjectionStyles(s,n);for(a in r)s.setProperty(a,r[a])}function Au(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const at={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(P.test(e))e=parseFloat(e);else return e;const r=Au(e,t.target.x),n=Au(e,t.target.y);return`${r}% ${n}%`}},Vv={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=he.parse(e);if(i.length>5)return n;const s=he.createTransformer(e),a=typeof i[0]!="number"?1:0,o=r.x.scale*t.x,u=r.y.scale*t.y;i[0+a]/=o,i[1+a]/=u;const c=k(o,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=c),typeof i[3+a]=="number"&&(i[3+a]/=c),s(i)}},Ba={borderRadius:{...at,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:at,borderTopRightRadius:at,borderBottomLeftRadius:at,borderBottomRightRadius:at,boxShadow:Vv};function Tp(e,{layout:t,layoutId:r}){return tt.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Ba[e]||e==="opacity")}function Eo(e,t,r){var a;const n=e.style,i=t==null?void 0:t.style,s={};if(!n)return s;for(const o in n)(J(n[o])||i&&J(i[o])||Tp(o,e)||((a=r==null?void 0:r.getValue(o))==null?void 0:a.liveStyle)!==void 0)&&(s[o]=n[o]);return s}function jv(e){return window.getComputedStyle(e)}class Lv extends pp{constructor(){super(...arguments),this.type="html",this.renderInstance=bp}readValueFromInstance(t,r){var n;if(tt.has(r))return(n=this.projection)!=null&&n.isProjecting?xa(r):rg(t,r);{const i=jv(t),s=(Ed(r)?i.getPropertyValue(r):i[r])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:r}){return vp(t,r)}build(t,r,n){Ro(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Eo(t,r,n)}}const Fv={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bv={offset:"strokeDashoffset",array:"strokeDasharray"};function kv(e,t,r=1,n=0,i=!0){e.pathLength=1;const s=i?Fv:Bv;e[s.offset]=`${-n}`,e[s.array]=`${t} ${r}`}const Nv=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Sp(e,{attrX:t,attrY:r,attrScale:n,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},u,c,l){if(Ro(e,o,c),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=(l==null?void 0:l.transformBox)??"fill-box",delete f.transformBox);for(const p of Nv)f[p]!==void 0&&(h[p]=f[p],delete f[p]);t!==void 0&&(f.x=t),r!==void 0&&(f.y=r),n!==void 0&&(f.scale=n),i!==void 0&&kv(f,i,s,a,!1)}const _p=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"]),Ap=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Uv(e,t,r,n){bp(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(_p.has(i)?i:To(i),t.attrs[i])}function wp(e,t,r){const n=Eo(e,t,r);for(const i in e)if(J(e[i])||J(t[i])){const s=et.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[s]=e[i]}return n}class Gv extends pp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=H}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(tt.has(r)){const n=np(r);return n&&n.default||0}return r=_p.has(r)?r:To(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return wp(t,r,n)}build(t,r,n){Sp(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,i){Uv(t,r,n,i)}mount(t){this.isSVGTag=Ap(t.tagName),super.mount(t)}}const $v=Po.length;function xp(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?xp(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<$v;r++){const n=Po[r],i=e.props[n];(bt(i)||i===!1)&&(t[n]=i)}return t}function Pp(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const Wv=[...xo].reverse(),Kv=xo.length;function Hv(e){return t=>Promise.all(t.map(({animation:r,options:n})=>Gg(e,r,n)))}function zv(e){let t=Hv(e),r=wu(),n=!0,i=!1;const s=c=>(l,f)=>{var p;const h=ke(e,f,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(h){const{transition:y,transitionEnd:m,...d}=h;l={...l,...d,...m}}return l};function a(c){t=c(e)}function o(c){const{props:l}=e,f=xp(e.parent)||{},h=[],p=new Set;let y={},m=1/0;for(let g=0;g<Kv;g++){const v=Wv[g],b=r[v],T=l[v]!==void 0?l[v]:f[v],S=bt(T),_=v===c?b.isActive:null;_===!1&&(m=g);let A=T===f[v]&&T!==l[v]&&S;if(A&&(n||i)&&e.manuallyAnimateOnMount&&(A=!1),b.protectedKeys={...y},!b.isActive&&_===null||!T&&!b.prevProp||sr(T)||typeof T=="boolean")continue;if(v==="exit"&&b.isActive&&_!==!0){b.prevResolvedValues&&(y={...y,...b.prevResolvedValues});continue}const R=Xv(b.prevProp,T);let q=R||v===c&&b.isActive&&!A&&S||g>m&&S,E=!1;const w=Array.isArray(T)?T:[T];let M=w.reduce(s(v),{});_===!1&&(M={});const{prevResolvedValues:O={}}=b,U={...O,...M},$=X=>{q=!0,p.has(X)&&(E=!0,p.delete(X)),b.needsAnimating[X]=!0;const se=e.getValue(X);se&&(se.liveStyle=!1)};for(const X in U){const se=M[X],Ie=O[X];if(y.hasOwnProperty(X))continue;let We=!1;qa(se)&&qa(Ie)?We=!Pp(se,Ie):We=se!==Ie,We?se!=null?$(X):p.add(X):se!==void 0&&p.has(X)?$(X):b.protectedKeys[X]=!0}b.prevProp=T,b.prevResolvedValues=M,b.isActive&&(y={...y,...M}),(n||i)&&e.blockInitialAnimation&&(q=!1);const Q=A&&R;q&&(!Q||E)&&h.push(...w.map(X=>{const se={type:v};if(typeof X=="string"&&(n||i)&&!Q&&e.manuallyAnimateOnMount&&e.parent){const{parent:Ie}=e,We=ke(Ie,X);if(Ie.enteringChildren&&We){const{delayChildren:Km}=We.transition||{};se.delay=zd(Ie.enteringChildren,e,Km)}}return{animation:X,options:se}}))}if(p.size){const g={};if(typeof l.initial!="boolean"){const v=ke(e,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(g.transition=v.transition)}p.forEach(v=>{const b=e.getBaseTarget(v),T=e.getValue(v);T&&(T.liveStyle=!0),g[v]=b??null}),h.push({animation:g})}let d=!!h.length;return n&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(d=!1),n=!1,i=!1,d?t(h):Promise.resolve()}function u(c,l){var h;if(r[c].isActive===l)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(p=>{var y;return(y=p.animationState)==null?void 0:y.setActive(c,l)}),r[c].isActive=l;const f=o(c);for(const p in r)r[p].protectedKeys={};return f}return{animateChanges:o,setActive:u,setAnimateFunction:a,getState:()=>r,reset:()=>{r=wu(),i=!0}}}function Xv(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Pp(t,e):!1}function De(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wu(){return{animate:De(!0),whileInView:De(),whileHover:De(),whileTap:De(),whileDrag:De(),whileFocus:De(),exit:De()}}function ka(e,t){e.min=t.min,e.max=t.max}function ce(e,t){ka(e.x,t.x),ka(e.y,t.y)}function xu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Rp=1e-4,Yv=1-Rp,Zv=1+Rp,Ep=.01,Jv=0-Ep,Qv=0+Ep;function te(e){return e.max-e.min}function eb(e,t,r){return Math.abs(e-t)<=r}function Pu(e,t,r,n=.5){e.origin=n,e.originPoint=k(t.min,t.max,e.origin),e.scale=te(r)/te(t),e.translate=k(r.min,r.max,e.origin)-e.originPoint,(e.scale>=Yv&&e.scale<=Zv||isNaN(e.scale))&&(e.scale=1),(e.translate>=Jv&&e.translate<=Qv||isNaN(e.translate))&&(e.translate=0)}function pt(e,t,r,n){Pu(e.x,t.x,r.x,n?n.originX:void 0),Pu(e.y,t.y,r.y,n?n.originY:void 0)}function Ru(e,t,r,n=0){const i=n?k(r.min,r.max,n):r.min;e.min=i+t.min,e.max=e.min+te(t)}function tb(e,t,r,n){Ru(e.x,t.x,r.x,n==null?void 0:n.x),Ru(e.y,t.y,r.y,n==null?void 0:n.y)}function Eu(e,t,r,n=0){const i=n?k(r.min,r.max,n):r.min;e.min=t.min-i,e.max=e.min+te(t)}function Zt(e,t,r,n){Eu(e.x,t.x,r.x,n==null?void 0:n.x),Eu(e.y,t.y,r.y,n==null?void 0:n.y)}function Cu(e,t,r,n,i){return e-=t,e=Yt(e,1/r,n),i!==void 0&&(e=Yt(e,1/i,n)),e}function rb(e,t=0,r=1,n=.5,i,s=e,a=e){if(ye.test(t)&&(t=parseFloat(t),t=k(a.min,a.max,t/100)-a.min),typeof t!="number")return;let o=k(s.min,s.max,n);e===s&&(o-=t),e.min=Cu(e.min,t,r,o,i),e.max=Cu(e.max,t,r,o,i)}function Mu(e,t,[r,n,i],s,a){rb(e,t[r],t[n],t[i],t.scale,s,a)}const nb=["x","scaleX","originX"],ib=["y","scaleY","originY"];function qu(e,t,r,n){Mu(e.x,t,nb,r?r.x:void 0,n?n.x:void 0),Mu(e.y,t,ib,r?r.y:void 0,n?n.y:void 0)}function Ou(e){return e.translate===0&&e.scale===1}function Cp(e){return Ou(e.x)&&Ou(e.y)}function Iu(e,t){return e.min===t.min&&e.max===t.max}function sb(e,t){return Iu(e.x,t.x)&&Iu(e.y,t.y)}function Du(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Mp(e,t){return Du(e.x,t.x)&&Du(e.y,t.y)}function Vu(e){return te(e.x)/te(e.y)}function ju(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function de(e){return[e("x"),e("y")]}function ab(e,t,r){let n="";const i=e.x.translate/t.x,s=e.y.translate/t.y,a=(r==null?void 0:r.z)||0;if((i||s||a)&&(n=`translate3d(${i}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:c,rotate:l,rotateX:f,rotateY:h,skewX:p,skewY:y}=r;c&&(n=`perspective(${c}px) ${n}`),l&&(n+=`rotate(${l}deg) `),f&&(n+=`rotateX(${f}deg) `),h&&(n+=`rotateY(${h}deg) `),p&&(n+=`skewX(${p}deg) `),y&&(n+=`skewY(${y}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(n+=`scale(${o}, ${u})`),n||"none"}const qp=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],ob=qp.length,Lu=e=>typeof e=="string"?parseFloat(e):e,Fu=e=>typeof e=="number"||P.test(e);function ub(e,t,r,n,i,s){i?(e.opacity=k(0,r.opacity??1,cb(n)),e.opacityExit=k(t.opacity??1,0,lb(n))):s&&(e.opacity=k(t.opacity??1,r.opacity??1,n));for(let a=0;a<ob;a++){const o=qp[a];let u=Bu(t,o),c=Bu(r,o);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||Fu(u)===Fu(c)?(e[o]=Math.max(k(Lu(u),Lu(c),n),0),(ye.test(c)||ye.test(u))&&(e[o]+="%")):e[o]=c}(t.rotate||r.rotate)&&(e.rotate=k(t.rotate||0,r.rotate||0,n))}function Bu(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const cb=Op(0,.5,_d),lb=Op(.5,.95,oe);function Op(e,t,r){return n=>n<e?0:n>t?1:r(gt(e,t,n))}function fb(e,t,r){const n=J(e)?e:Ze(e);return n.start(vo("",n,t,r)),n.animation}function Tt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const hb=(e,t)=>e.depth-t.depth;class db{constructor(){this.children=[],this.isDirty=!1}add(t){io(this.children,t),this.isDirty=!0}remove(t){$t(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(hb),this.isDirty=!1,this.children.forEach(t)}}function pb(e,t){const r=ee.now(),n=({timestamp:i})=>{const s=i-r;s>=t&&(Ce(n),e(s-t))};return j.setup(n,!0),()=>Ce(n)}function Ut(e){return J(e)?e.get():e}class mb{constructor(){this.members=[]}add(t){io(this.members,t);for(let r=this.members.length-1;r>=0;r--){const n=this.members[r];if(n===t||n===this.lead||n===this.prevLead)continue;const i=n.instance;(!i||i.isConnected===!1)&&!n.snapshot&&($t(this.members,n),n.unmount())}t.scheduleRender()}remove(t){if($t(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){var r;for(let n=this.members.indexOf(t)-1;n>=0;n--){const i=this.members[n];if(i.isPresent!==!1&&((r=i.instance)==null?void 0:r.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,r){var i;const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=n.options,{layoutDependency:a}=t.options;(s===void 0||s!==a)&&(t.resumeFrom=n,r&&(n.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,n,i,s,a;(n=(r=t.options).onExitComplete)==null||n.call(r),(a=(i=t.resumingFrom)==null?void 0:(s=i.options).onExitComplete)==null||a.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Gt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Pr=["","X","Y","Z"],yb=1e3;let gb=0;function Rr(e,t,r,n){const{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Ip(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=Qd(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",j,!(i||s))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&Ip(n)}function Dp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(a={},o=t==null?void 0:t()){this.id=gb++,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(Tb),this.nodes.forEach(Pb),this.nodes.forEach(Rb),this.nodes.forEach(Sb)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new db)}addEventListener(a,o){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new ao),this.eventHandlers.get(a).add(o)}notifyListeners(a,...o){const u=this.eventHandlers.get(a);u&&u.notify(...o)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=wo(a)&&!bv(a),this.instance=a;const{layoutId:o,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||o)&&(this.isLayoutDirty=!0),e){let l,f=0;const h=()=>this.root.updateBlockedByResize=!1;j.read(()=>{f=window.innerWidth}),e(a,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,l&&l(),l=pb(h,250),Gt.hasAnimatedSinceResize&&(Gt.hasAnimatedSinceResize=!1,this.nodes.forEach(Uu)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&c&&(o||u)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||Ob,{onLayoutAnimationStart:m,onLayoutAnimationComplete:d}=c.getProps(),g=!this.targetLayout||!Mp(this.targetLayout,p),v=!f&&h;if(this.options.layoutRoot||this.resumeFrom||v||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...go(y,"layout"),onPlay:m,onComplete:d};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(l,v)}else f||Uu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ce(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(Eb),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ip(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const f=this.path[l];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:o,layout:u}=this.options;if(o===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),u&&this.nodes.forEach(Ab),this.nodes.forEach(ku);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Nu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(wb),this.nodes.forEach(xb),this.nodes.forEach(vb),this.nodes.forEach(bb)):this.nodes.forEach(Nu),this.clearAllSnapshots();const o=ee.now();Z.delta=ge(0,1e3/60,o-Z.timestamp),Z.timestamp=o,Z.isProcessing=!0,vr.update.process(Z),vr.preRender.process(Z),vr.render.process(Z),Z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_o.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_b),this.sharedNodes.forEach(Cb)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,j.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){j.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!te(this.snapshot.measuredBox.x)&&!te(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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=H()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(o=!1),o&&this.instance){const u=n(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!Cp(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,l=c!==this.prevTransformTemplateValue;a&&this.instance&&(o||Ve(this.latestValues)||l)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const o=this.measurePageBox();let u=this.removeElementScroll(o);return a&&(u=this.removeTransform(u)),Ib(u),{animationId:this.root.animationId,measuredBox:o,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:a}=this.options;if(!a)return H();const o=a.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(Db))){const{scroll:l}=this.root;l&&(pe(o.x,l.offset.x),pe(o.y,l.offset.y))}return o}removeElementScroll(a){var u;const o=H();if(ce(o,a),(u=this.scroll)!=null&&u.wasRoot)return o;for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:f,options:h}=l;l!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&ce(o,a),pe(o.x,f.offset.x),pe(o.y,f.offset.y))}return o}applyTransform(a,o=!1,u){var l,f;const c=u||H();ce(c,a);for(let h=0;h<this.path.length;h++){const p=this.path[h];!o&&p.options.layoutScroll&&p.scroll&&p!==p.root&&(pe(c.x,-p.scroll.offset.x),pe(c.y,-p.scroll.offset.y)),Ve(p.latestValues)&&Nt(c,p.latestValues,(l=p.layout)==null?void 0:l.layoutBox)}return Ve(this.latestValues)&&Nt(c,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),c}removeTransform(a){var u;const o=H();ce(o,a);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!Ve(l.latestValues))continue;let f;l.instance&&(La(l.latestValues)&&l.updateSnapshot(),f=H(),ce(f,l.measurePageBox())),qu(o,l.latestValues,(u=l.snapshot)==null?void 0:u.layoutBox,f)}return Ve(this.latestValues)&&qu(o,this.latestValues),o}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==Z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var p;const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==o;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:f}=this.options;if(!this.layout||!(l||f))return;this.resolvedRelativeTargetAt=Z.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=H(),this.targetWithTransforms=H()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),tb(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ce(this.target,this.layout.layoutBox),gp(this.target,this.targetDelta)):ce(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||La(this.parent.latestValues)||yp(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,o,u){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=H(),this.relativeTargetOrigin=H(),Zt(this.relativeTargetOrigin,o,u,this.options.layoutAnchor||void 0),ce(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var y;const a=this.getLead(),o=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(u=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Z.timestamp&&(u=!1),u)return;const{layout:c,layoutId:l}=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||l))return;ce(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;Mv(this.layoutCorrected,this.treeScale,this.path,o),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=H());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xu(this.prevProjectionDelta.x,this.projectionDelta.x),xu(this.prevProjectionDelta.y,this.projectionDelta.y)),pt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!ju(this.projectionDelta.x,this.prevProjectionDelta.x)||!ju(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var o;if((o=this.options.visualElement)==null||o.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Xe(),this.projectionDelta=Xe(),this.projectionDeltaWithTransform=Xe()}setAnimationOrigin(a,o=!1){const u=this.snapshot,c=u?u.latestValues:{},l={...this.latestValues},f=Xe();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const h=H(),p=u?u.source:void 0,y=this.layout?this.layout.source:void 0,m=p!==y,d=this.getStack(),g=!d||d.members.length<=1,v=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(qb));this.animationProgress=0;let b;this.mixTargetDelta=T=>{const S=T/1e3;Gu(f.x,a.x,S),Gu(f.y,a.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Zt(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Mb(this.relativeTarget,this.relativeTargetOrigin,h,S),b&&sb(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=H()),ce(b,this.relativeTarget)),m&&(this.animationValues=l,ub(l,c,this.latestValues,S,v,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var o,u,c;this.notifyListeners("animationStart"),(o=this.currentAnimation)==null||o.stop(),(c=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Ce(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=j.update(()=>{Gt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ze(0)),this.motionValue.jump(0,!1),this.currentAnimation=fb(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(yb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:o,target:u,layout:c,latestValues:l}=a;if(!(!o||!u||!c)){if(this!==a&&this.layout&&c&&Vp(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||H();const f=te(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+f;const h=te(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+h}ce(o,u),Nt(o,l),pt(this.projectionDeltaWithTransform,this.layoutCorrected,o,l)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new mb),this.sharedNodes.get(a).add(o);const c=o.options.initialPromotionConfig;o.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(o):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())==null?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())==null?void 0:o.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:o,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let o=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const c={};u.z&&Rr("z",a,c,this.animationValues);for(let l=0;l<Pr.length;l++)Rr(`rotate${Pr[l]}`,a,c,this.animationValues),Rr(`skew${Pr[l]}`,a,c,this.animationValues);a.render();for(const l in c)a.setStaticValue(l,c[l]),this.animationValues&&(this.animationValues[l]=c[l]);a.scheduleRender()}applyProjectionStyles(a,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Ut(o==null?void 0:o.pointerEvents)||"",a.transform=u?u(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Ut(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Ve(this.latestValues)&&(a.transform=u?u({},""):"none",this.hasProjected=!1);return}a.visibility="";const l=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=ab(this.projectionDeltaWithTransform,this.treeScale,l);u&&(f=u(l,f)),a.transform=f;const{x:h,y:p}=this.projectionDelta;a.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?a.opacity=c===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:a.opacity=c===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const y in Ba){if(l[y]===void 0)continue;const{correct:m,applyTo:d,isCSSVariable:g}=Ba[y],v=f==="none"?l[y]:m(l[y],c);if(d){const b=d.length;for(let T=0;T<b;T++)a[d[T]]=v}else g?this.options.visualElement.renderState.vars[y]=v:a[y]=v}this.options.layoutId&&(a.pointerEvents=c===this?Ut(o==null?void 0:o.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var o;return(o=a.currentAnimation)==null?void 0:o.stop()}),this.root.nodes.forEach(ku),this.root.sharedNodes.clear()}}}function vb(e){e.updateLayout()}function bb(e){var r;const t=((r=e.resumeFrom)==null?void 0:r.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:s}=e.options,a=t.source!==e.layout.source;if(s==="size")de(f=>{const h=a?t.measuredBox[f]:t.layoutBox[f],p=te(h);h.min=n[f].min,h.max=h.min+p});else if(s==="x"||s==="y"){const f=s==="x"?"y":"x";ka(a?t.measuredBox[f]:t.layoutBox[f],n[f])}else Vp(s,t.layoutBox,n)&&de(f=>{const h=a?t.measuredBox[f]:t.layoutBox[f],p=te(n[f]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const o=Xe();pt(o,n,t.layoutBox);const u=Xe();a?pt(u,e.applyTransform(i,!0),t.measuredBox):pt(u,n,t.layoutBox);const c=!Cp(o);let l=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:p}=f;if(h&&p){const y=e.options.layoutAnchor||void 0,m=H();Zt(m,t.layoutBox,h.layoutBox,y);const d=H();Zt(d,n,p.layoutBox,y),Mp(m,d)||(l=!0),f.options.layoutRoot&&(e.relativeTarget=d,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:u,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Tb(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 Sb(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _b(e){e.clearSnapshot()}function ku(e){e.clearMeasurements()}function Ab(e){e.isLayoutDirty=!0,e.updateLayout()}function Nu(e){e.isLayoutDirty=!1}function wb(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function xb(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Uu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Pb(e){e.resolveTargetDelta()}function Rb(e){e.calcProjection()}function Eb(e){e.resetSkewAndRotation()}function Cb(e){e.removeLeadSnapshot()}function Gu(e,t,r){e.translate=k(t.translate,0,r),e.scale=k(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function $u(e,t,r,n){e.min=k(t.min,r.min,n),e.max=k(t.max,r.max,n)}function Mb(e,t,r,n){$u(e.x,t.x,r.x,n),$u(e.y,t.y,r.y,n)}function qb(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ob={duration:.45,ease:[.4,0,.1,1]},Wu=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ku=Wu("applewebkit/")&&!Wu("chrome/")?Math.round:oe;function Hu(e){e.min=Ku(e.min),e.max=Ku(e.max)}function Ib(e){Hu(e.x),Hu(e.y)}function Vp(e,t,r){return e==="position"||e==="preserve-aspect"&&!eb(Vu(t),Vu(r),.2)}function Db(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Vb=Dp({attachResizeListener:(e,t)=>Tt(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Er={current:void 0},jp=Dp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Er.current){const e=new Vb({});e.mount(window),e.setOptions({layoutScroll:!0}),Er.current=e}return Er.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Lp=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function jb(e=!0){const t=C.useContext(no);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:i}=t,s=C.useId();C.useEffect(()=>{if(e)return i(s)},[e]);const a=C.useCallback(()=>e&&n&&n(s),[s,n,e]);return!r&&n?[!1,a]:[!0]}const Fp=C.createContext({strict:!1}),zu={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"]};let Xu=!1;function Lb(){if(Xu)return;const e={};for(const t in zu)e[t]={isEnabled:r=>zu[t].some(n=>!!r[n])};dp(e),Xu=!0}function Bp(){return Lb(),Pv()}function Fb(e){const t=Bp();for(const r in e)t[r]={...t[r],...e[r]};dp(t)}const Bb=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","propagate","ignoreStrict","viewport"]);function Jt(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Bb.has(e)}let kp=e=>!Jt(e);function kb(e){typeof e=="function"&&(kp=t=>t.startsWith("on")?!Jt(t):e(t))}try{kb(require("@emotion/is-prop-valid").default)}catch{}function Nb(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||J(e[i])||(kp(i)||r===!0&&Jt(i)||!t&&!Jt(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}const or=C.createContext({});function Ub(e,t){if(ar(e)){const{initial:r,animate:n}=e;return{initial:r===!1||bt(r)?r:void 0,animate:bt(n)?n:void 0}}return e.inherit!==!1?t:{}}function Gb(e){const{initial:t,animate:r}=Ub(e,C.useContext(or));return C.useMemo(()=>({initial:t,animate:r}),[Yu(t),Yu(r)])}function Yu(e){return Array.isArray(e)?e.join(" "):e}const Co=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Np(e,t,r){for(const n in t)!J(t[n])&&!Tp(n,r)&&(e[n]=t[n])}function $b({transformTemplate:e},t){return C.useMemo(()=>{const r=Co();return Ro(r,t,e),Object.assign({},r.vars,r.style)},[t])}function Wb(e,t){const r=e.style||{},n={};return Np(n,r,e),Object.assign(n,$b(e,t)),n}function Kb(e,t){const r={},n=Wb(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const Up=()=>({...Co(),attrs:{}});function Hb(e,t,r,n){const i=C.useMemo(()=>{const s=Up();return Sp(s,t,Ap(n),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Np(s,e.style,e),i.style={...s,...i.style}}return i}const zb=["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 Mo(e){return typeof e!="string"||e.includes("-")?!1:!!(zb.indexOf(e)>-1||/[A-Z]/u.test(e))}function Xb(e,t,r,{latestValues:n},i,s=!1,a){const u=(a??Mo(e)?Hb:Kb)(t,n,i,e),c=Nb(t,typeof e=="string",s),l=e!==C.Fragment?{...c,...u,ref:r}:{},{children:f}=t,h=C.useMemo(()=>J(f)?f.get():f,[f]);return C.createElement(e,{...l,children:h})}function Yb({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,i){return{latestValues:Zb(r,n,i,e),renderState:t()}}function Zb(e,t,r,n){const i={},s=n(e,{});for(const h in s)i[h]=Ut(s[h]);let{initial:a,animate:o}=e;const u=ar(e),c=fp(e);t&&c&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),o===void 0&&(o=t.animate));let l=r?r.initial===!1:!1;l=l||a===!1;const f=l?o:a;if(f&&typeof f!="boolean"&&!sr(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const y=bo(e,h[p]);if(y){const{transitionEnd:m,transition:d,...g}=y;for(const v in g){let b=g[v];if(Array.isArray(b)){const T=l?b.length-1:0;b=b[T]}b!==null&&(i[v]=b)}for(const v in m)i[v]=m[v]}}}return i}const Gp=e=>(t,r)=>{const n=C.useContext(or),i=C.useContext(no),s=()=>Yb(e,t,n,i);return r?s():zm(s)},Jb=Gp({scrapeMotionValuesFromProps:Eo,createRenderState:Co}),Qb=Gp({scrapeMotionValuesFromProps:wp,createRenderState:Up}),e0=Symbol.for("motionComponentSymbol");function t0(e,t,r){const n=C.useRef(r);C.useInsertionEffect(()=>{n.current=r});const i=C.useRef(null);return C.useCallback(s=>{var o;s&&((o=e.onMount)==null||o.call(e,s));const a=n.current;if(typeof a=="function")if(s){const u=a(s);typeof u=="function"&&(i.current=u)}else i.current?(i.current(),i.current=null):a(s);else a&&(a.current=s);t&&(s?t.mount(s):t.unmount())},[t])}const $p=C.createContext({});function Ke(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function r0(e,t,r,n,i,s){var b,T;const{visualElement:a}=C.useContext(or),o=C.useContext(Fp),u=C.useContext(no),c=C.useContext(Lp),l=c.reducedMotion,f=c.skipAnimations,h=C.useRef(null),p=C.useRef(!1);n=n||o.renderer,!h.current&&n&&(h.current=n(e,{visualState:t,parent:a,props:r,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:l,skipAnimations:f,isSVG:s}),p.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const y=h.current,m=C.useContext($p);y&&!y.projection&&i&&(y.type==="html"||y.type==="svg")&&n0(h.current,r,i,m);const d=C.useRef(!1);C.useInsertionEffect(()=>{y&&d.current&&y.update(r,u)});const g=r[Jd],v=C.useRef(!!g&&typeof window<"u"&&!((b=window.MotionHandoffIsComplete)!=null&&b.call(window,g))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,g)));return Ym(()=>{p.current=!0,y&&(d.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),v.current&&y.animationState&&y.animationState.animateChanges())}),C.useEffect(()=>{y&&(!v.current&&y.animationState&&y.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)==null||S.call(window,g)}),v.current=!1),y.enteringChildren=void 0)}),y}function n0(e,t,r,n){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:u,layoutRoot:c,layoutAnchor:l,layoutCrossfade:f}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Wp(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&Ke(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:n,crossfade:f,layoutScroll:u,layoutRoot:c,layoutAnchor:l})}function Wp(e){if(e)return e.options.allowProjection!==!1?e.projection:Wp(e.parent)}function Cr(e,{forwardMotionProps:t=!1,type:r}={},n,i){n&&Fb(n);const s=r?r==="svg":Mo(e),a=s?Qb:Jb;function o(c,l){let f;const h={...C.useContext(Lp),...c,layoutId:i0(c)},{isStatic:p}=h,y=Gb(c),m=a(c,p);if(!p&&typeof window<"u"){s0();const d=a0(h);f=d.MeasureLayout,y.visualElement=r0(e,m,h,i,d.ProjectionNode,s)}return va.jsxs(or.Provider,{value:y,children:[f&&y.visualElement?va.jsx(f,{visualElement:y.visualElement,...h}):null,Xb(e,c,t0(m,y.visualElement,l),m,p,t,s)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=C.forwardRef(o);return u[e0]=e,u}function i0({layoutId:e}){const t=C.useContext(ld).id;return t&&e!==void 0?t+"-"+e:e}function s0(e,t){C.useContext(Fp).strict}function a0(e){const t=Bp(),{drag:r,layout:n}=t;if(!r&&!n)return{};const i={...r,...n};return{MeasureLayout:r!=null&&r.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function o0(e,t){if(typeof Proxy>"u")return Cr;const r=new Map,n=(s,a)=>Cr(s,a,e,t),i=(s,a)=>n(s,a);return new Proxy(i,{get:(s,a)=>a==="create"?n:(r.has(a)||r.set(a,Cr(a,void 0,e,t)),r.get(a))})}const u0=(e,t)=>t.isSVG??Mo(e)?new Gv(t):new Lv(t,{allowProjection:e!==C.Fragment});class c0 extends Me{constructor(t){super(t),t.animationState||(t.animationState=zv(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();sr(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let l0=0;class f0 extends Me{constructor(){super(...arguments),this.id=l0++,this.isExitComplete=!1}update(){var s;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;if(t&&n===!1){if(this.isExitComplete){const{initial:a,custom:o}=this.node.getProps();if(typeof a=="string"){const u=ke(this.node,a,o);if(u){const{transition:c,transitionEnd:l,...f}=u;for(const h in f)(s=this.node.getValue(h))==null||s.jump(f[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);r&&!t&&i.then(()=>{this.isExitComplete=!0,r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const h0={animation:{Feature:c0},exit:{Feature:f0}};function Et(e){return{point:{x:e.pageX,y:e.pageY}}}const d0=e=>t=>Ao(t)&&e(t,Et(t));function mt(e,t,r,n){return Tt(e,t,d0(r),n)}const Kp=({current:e})=>e?e.ownerDocument.defaultView:null,Zu=(e,t)=>Math.abs(e-t);function p0(e,t){const r=Zu(e.x,t.x),n=Zu(e.y,t.y);return Math.sqrt(r**2+n**2)}const Ju=new Set(["auto","scroll"]);class Hp{constructor(t,r,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Dt(this.lastRawMoveEventInfo,this.transformPagePoint));const p=Mr(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,m=p0(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!m)return;const{point:d}=p,{timestamp:g}=Z;this.history.push({...d,timestamp:g});const{onStart:v,onMove:b}=this.handlers;y||(v&&v(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,p)},this.handlePointerMove=(p,y)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=Dt(y,this.transformPagePoint),j.update(this.updatePoint,!0)},this.handlePointerUp=(p,y)=>{this.end();const{onEnd:m,onSessionEnd:d,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Mr(p.type==="pointercancel"?this.lastMoveEventInfo:Dt(y,this.transformPagePoint),this.history);this.startEvent&&m&&m(p,v),d&&d(p,v)},!Ao(t))return;this.dragSnapToOrigin=s,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=i||window;const u=Et(t),c=Dt(u,this.transformPagePoint),{point:l}=c,{timestamp:f}=Z;this.history=[{...l,timestamp:f}];const{onSessionStart:h}=r;h&&h(t,Mr(c,this.history)),this.removeListeners=xt(mt(this.contextWindow,"pointermove",this.handlePointerMove),mt(this.contextWindow,"pointerup",this.handlePointerUp),mt(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let r=t.parentElement;for(;r;){const n=getComputedStyle(r);(Ju.has(n.overflowX)||Ju.has(n.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const r=this.scrollPositions.get(t);if(!r)return;const n=t===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:i.x-r.x,y:i.y-r.y};s.x===0&&s.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,i),j.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ce(this.updatePoint)}}function Dt(e,t){return t?{point:t(e.point)}:e}function Qu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mr({point:e},t){return{point:e,delta:Qu(e,zp(t)),offset:Qu(e,m0(t)),velocity:y0(t,.1)}}function m0(e){return e[0]}function zp(e){return e[e.length-1]}function y0(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=zp(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>ie(t)));)r--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&i.timestamp-n.timestamp>ie(t)*2&&(n=e[1]);const s=ae(i.timestamp-n.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-n.x)/s,y:(i.y-n.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function g0(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?k(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?k(r,e,n.max):Math.min(e,r)),e}function ec(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function v0(e,{top:t,left:r,bottom:n,right:i}){return{x:ec(e.x,r,i),y:ec(e.y,t,n)}}function tc(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function b0(e,t){return{x:tc(e.x,t.x),y:tc(e.y,t.y)}}function T0(e,t){let r=.5;const n=te(e),i=te(t);return i>n?r=gt(t.min,t.max-n,e.min):n>i&&(r=gt(e.min,e.max-i,t.min)),ge(0,1,r)}function S0(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Na=.35;function _0(e=Na){return e===!1?e=0:e===!0&&(e=Na),{x:rc(e,"left","right"),y:rc(e,"top","bottom")}}function rc(e,t,r){return{min:nc(e,t),max:nc(e,r)}}function nc(e,t){return typeof e=="number"?e:e[t]||0}const A0=new WeakMap;class w0{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=H(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=f=>{r&&this.snapToCursor(Et(f).point),this.stopAnimation()},a=(f,h)=>{const{drag:p,dragPropagation:y,onDragStart:m}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rv(p),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),de(g=>{let v=this.getAxisMotionValue(g).get()||0;if(ye.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const T=b.layout.layoutBox[g];T&&(v=te(T)*(parseFloat(v)/100))}}this.originPoint[g]=v}),m&&j.update(()=>m(f,h),!1,!0),Oa(this.visualElement,"transform");const{animationState:d}=this.visualElement;d&&d.setActive("whileDrag",!0)},o=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:m,onDrag:d}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:g}=h;if(y&&this.currentDirection===null){this.currentDirection=P0(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),d&&j.update(()=>d(f,h),!1,!0)},u=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Hp(t,{onSessionStart:s,onStart:a,onMove:o,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Kp(this.visualElement),element:this.visualElement.current})}stop(t,r){const n=t||this.latestPointerEvent,i=r||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!n)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:o}=this.getProps();o&&j.postRender(()=>o(n,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!Vt(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=g0(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&Ke(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=v0(n.layoutBox,t):this.constraints=!1,this.elastic=_0(r),i!==this.constraints&&!Ke(t)&&n&&this.constraints&&!this.hasMutatedConstraints&&de(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=S0(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Ke(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=qv(n,i.root,this.visualElement.getTransformPagePoint());let a=b0(i.layout.layoutBox,s);if(r){const o=r(Ev(a));this.hasMutatedConstraints=!!o,o&&(a=mp(o))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},c=de(l=>{if(!Vt(l,r,this.currentDirection))return;let f=u&&u[l]||{};(a===!0||a===l)&&(f={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,y={type:"inertia",velocity:n?t[l]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(l,y)});return Promise.all(c).then(o)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return Oa(this.visualElement,t),n.start(vo(t,n,0,r,this.visualElement,!1))}stopAnimation(){de(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){de(r=>{const{drag:n}=this.getProps();if(!Vt(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(r);if(i&&i.layout){const{min:a,max:o}=i.layout.layoutBox[r],u=s.get()||0;s.set(t[r]-k(a,o,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Ke(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};de(a=>{const o=this.getAxisMotionValue(a);if(o&&this.constraints!==!1){const u=o.get();i[a]=T0({min:u,max:u},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),de(a=>{if(!Vt(a,t,null))return;const o=this.getAxisMotionValue(a),{min:u,max:c}=this.constraints[a];o.set(k(u,c,i[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;A0.set(this.visualElement,this);const t=this.visualElement.current,r=mt(t,"pointerdown",c=>{const{drag:l,dragListener:f=!0}=this.getProps(),h=c.target,p=h!==t&&uv(h);l&&f&&!p&&this.start(c)});let n;const i=()=>{const{dragConstraints:c}=this.getProps();Ke(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),n||(n=x0(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,a=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),j.read(i);const o=Tt(window,"resize",()=>this.scalePositionWithinConstraints()),u=s.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(de(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())}));return()=>{o(),r(),a(),u&&u(),n&&n()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=Na,dragMomentum:o=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:o}}}function ic(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function x0(e,t,r){const n=du(e,ic(r)),i=du(t,ic(r));return()=>{n(),i()}}function Vt(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function P0(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class R0 extends Me{constructor(t){super(t),this.removeGroupControls=oe,this.removeListeners=oe,this.controls=new w0(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||oe}update(){const{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const qr=e=>(t,r)=>{e&&j.update(()=>e(t,r),!1,!0)};class E0 extends Me{constructor(){super(...arguments),this.removePointerDownListener=oe}onPointerDown(t){this.session=new Hp(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kp(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:qr(t),onStart:qr(r),onMove:qr(n),onEnd:(s,a)=>{delete this.session,i&&j.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=mt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Or=!1;class C0 extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;s&&(r.group&&r.group.add(s),n&&n.register&&i&&n.register(s),Or&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Gt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:s}=this.props,{projection:a}=n;return a&&(a.isPresent=s,t.layoutDependency!==r&&a.setOptions({...a.options,layoutDependency:r}),Or=!0,i||t.layoutDependency!==r||r===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||j.postRender(()=>{const o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:r}=this.props,{projection:n}=t;n&&(n.options.layoutAnchor=r,n.root.didUpdate(),_o.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;Or=!0,i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Xp(e){const[t,r]=jb(),n=C.useContext(ld);return va.jsx(C0,{...e,layoutGroup:n,switchLayoutGroup:C.useContext($p),isPresent:t,safeToRemove:r})}const M0={pan:{Feature:E0},drag:{Feature:R0,ProjectionNode:jp,MeasureLayout:Xp}};function sc(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const i="onHover"+r,s=n[i];s&&j.postRender(()=>s(t,Et(t)))}class q0 extends Me{mount(){const{current:t}=this.node;t&&(this.unmount=iv(t,(r,n)=>(sc(this.node,n,"Start"),i=>sc(this.node,i,"End"))))}unmount(){}}class O0 extends Me{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=xt(Tt(this.node.current,"focus",()=>this.onFocus()),Tt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ac(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const i="onTap"+(r==="End"?"":r),s=n[i];s&&j.postRender(()=>s(t,Et(t)))}class I0 extends Me{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:r,propagate:n}=this.node.props;this.unmount=lv(t,(i,s)=>(ac(this.node,s,"Start"),(a,{success:o})=>ac(this.node,a,o?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:(n==null?void 0:n.tap)===!1})}unmount(){}}const Ua=new WeakMap,Ir=new WeakMap,D0=e=>{const t=Ua.get(e.target);t&&t(e)},V0=e=>{e.forEach(D0)};function j0({root:e,...t}){const r=e||document;Ir.has(r)||Ir.set(r,{});const n=Ir.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(V0,{root:e,...t})),n[i]}function L0(e,t,r){const n=j0(t);return Ua.set(e,r),n.observe(e),()=>{Ua.delete(e),n.unobserve(e)}}const F0={some:0,all:1};class B0 extends Me{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var u;(u=this.stopObserver)==null||u.call(this);const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:s}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:F0[i]},o=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,s&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),p=l?f:h;p&&p(c)};this.stopObserver=L0(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(k0(t,r))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function k0({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const N0={inView:{Feature:B0},tap:{Feature:I0},focus:{Feature:O0},hover:{Feature:q0}},U0={layout:{ProjectionNode:jp,MeasureLayout:Xp}},G0={...h0,...N0,...M0,...U0},iw=o0(G0,u0);function Yp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Yp(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function sw(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Yp(e))&&(n&&(n+=" "),n+=t);return n}var Dr,oc;function re(){if(oc)return Dr;oc=1;var e=Array.isArray;return Dr=e,Dr}var Vr,uc;function Zp(){if(uc)return Vr;uc=1;var e=typeof qt=="object"&&qt&&qt.Object===Object&&qt;return Vr=e,Vr}var jr,cc;function be(){if(cc)return jr;cc=1;var e=Zp(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return jr=r,jr}var Lr,lc;function Ct(){if(lc)return Lr;lc=1;var e=be(),t=e.Symbol;return Lr=t,Lr}var Fr,fc;function $0(){if(fc)return Fr;fc=1;var e=Ct(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function s(a){var o=r.call(a,i),u=a[i];try{a[i]=void 0;var c=!0}catch{}var l=n.call(a);return c&&(o?a[i]=u:delete a[i]),l}return Fr=s,Fr}var Br,hc;function W0(){if(hc)return Br;hc=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Br=r,Br}var kr,dc;function _e(){if(dc)return kr;dc=1;var e=Ct(),t=$0(),r=W0(),n="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function a(o){return o==null?o===void 0?i:n:s&&s in Object(o)?t(o):r(o)}return kr=a,kr}var Nr,pc;function Ae(){if(pc)return Nr;pc=1;function e(t){return t!=null&&typeof t=="object"}return Nr=e,Nr}var Ur,mc;function rt(){if(mc)return Ur;mc=1;var e=_e(),t=Ae(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Ur=n,Ur}var Gr,yc;function qo(){if(yc)return Gr;yc=1;var e=re(),t=rt(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(s,a){if(e(s))return!1;var o=typeof s;return o=="number"||o=="symbol"||o=="boolean"||s==null||t(s)?!0:n.test(s)||!r.test(s)||a!=null&&s in Object(a)}return Gr=i,Gr}var $r,gc;function qe(){if(gc)return $r;gc=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return $r=e,$r}var Wr,vc;function Oo(){if(vc)return Wr;vc=1;var e=_e(),t=qe(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function a(o){if(!t(o))return!1;var u=e(o);return u==n||u==i||u==r||u==s}return Wr=a,Wr}var Kr,bc;function K0(){if(bc)return Kr;bc=1;var e=be(),t=e["__core-js_shared__"];return Kr=t,Kr}var Hr,Tc;function H0(){if(Tc)return Hr;Tc=1;var e=K0(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Hr=r,Hr}var zr,Sc;function Jp(){if(Sc)return zr;Sc=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return zr=r,zr}var Xr,_c;function z0(){if(_c)return Xr;_c=1;var e=Oo(),t=H0(),r=qe(),n=Jp(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,a=Function.prototype,o=Object.prototype,u=a.toString,c=o.hasOwnProperty,l=RegExp("^"+u.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?l:s;return p.test(n(h))}return Xr=f,Xr}var Yr,Ac;function X0(){if(Ac)return Yr;Ac=1;function e(t,r){return t==null?void 0:t[r]}return Yr=e,Yr}var Zr,wc;function Ge(){if(wc)return Zr;wc=1;var e=z0(),t=X0();function r(n,i){var s=t(n,i);return e(s)?s:void 0}return Zr=r,Zr}var Jr,xc;function ur(){if(xc)return Jr;xc=1;var e=Ge(),t=e(Object,"create");return Jr=t,Jr}var Qr,Pc;function Y0(){if(Pc)return Qr;Pc=1;var e=ur();function t(){this.__data__=e?e(null):{},this.size=0}return Qr=t,Qr}var en,Rc;function Z0(){if(Rc)return en;Rc=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return en=e,en}var tn,Ec;function J0(){if(Ec)return tn;Ec=1;var e=ur(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(s){var a=this.__data__;if(e){var o=a[s];return o===t?void 0:o}return n.call(a,s)?a[s]:void 0}return tn=i,tn}var rn,Cc;function Q0(){if(Cc)return rn;Cc=1;var e=ur(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var s=this.__data__;return e?s[i]!==void 0:r.call(s,i)}return rn=n,rn}var nn,Mc;function e1(){if(Mc)return nn;Mc=1;var e=ur(),t="__lodash_hash_undefined__";function r(n,i){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=e&&i===void 0?t:i,this}return nn=r,nn}var sn,qc;function t1(){if(qc)return sn;qc=1;var e=Y0(),t=Z0(),r=J0(),n=Q0(),i=e1();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,sn=s,sn}var an,Oc;function r1(){if(Oc)return an;Oc=1;function e(){this.__data__=[],this.size=0}return an=e,an}var on,Ic;function Io(){if(Ic)return on;Ic=1;function e(t,r){return t===r||t!==t&&r!==r}return on=e,on}var un,Dc;function cr(){if(Dc)return un;Dc=1;var e=Io();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return un=t,un}var cn,Vc;function n1(){if(Vc)return cn;Vc=1;var e=cr(),t=Array.prototype,r=t.splice;function n(i){var s=this.__data__,a=e(s,i);if(a<0)return!1;var o=s.length-1;return a==o?s.pop():r.call(s,a,1),--this.size,!0}return cn=n,cn}var ln,jc;function i1(){if(jc)return ln;jc=1;var e=cr();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return ln=t,ln}var fn,Lc;function s1(){if(Lc)return fn;Lc=1;var e=cr();function t(r){return e(this.__data__,r)>-1}return fn=t,fn}var hn,Fc;function a1(){if(Fc)return hn;Fc=1;var e=cr();function t(r,n){var i=this.__data__,s=e(i,r);return s<0?(++this.size,i.push([r,n])):i[s][1]=n,this}return hn=t,hn}var dn,Bc;function lr(){if(Bc)return dn;Bc=1;var e=r1(),t=n1(),r=i1(),n=s1(),i=a1();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,dn=s,dn}var pn,kc;function Do(){if(kc)return pn;kc=1;var e=Ge(),t=be(),r=e(t,"Map");return pn=r,pn}var mn,Nc;function o1(){if(Nc)return mn;Nc=1;var e=t1(),t=lr(),r=Do();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return mn=n,mn}var yn,Uc;function u1(){if(Uc)return yn;Uc=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return yn=e,yn}var gn,Gc;function fr(){if(Gc)return gn;Gc=1;var e=u1();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return gn=t,gn}var vn,$c;function c1(){if($c)return vn;$c=1;var e=fr();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return vn=t,vn}var bn,Wc;function l1(){if(Wc)return bn;Wc=1;var e=fr();function t(r){return e(this,r).get(r)}return bn=t,bn}var Tn,Kc;function f1(){if(Kc)return Tn;Kc=1;var e=fr();function t(r){return e(this,r).has(r)}return Tn=t,Tn}var Sn,Hc;function h1(){if(Hc)return Sn;Hc=1;var e=fr();function t(r,n){var i=e(this,r),s=i.size;return i.set(r,n),this.size+=i.size==s?0:1,this}return Sn=t,Sn}var _n,zc;function Vo(){if(zc)return _n;zc=1;var e=o1(),t=c1(),r=l1(),n=f1(),i=h1();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,_n=s,_n}var An,Xc;function Qp(){if(Xc)return An;Xc=1;var e=Vo(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var a=arguments,o=i?i.apply(this,a):a[0],u=s.cache;if(u.has(o))return u.get(o);var c=n.apply(this,a);return s.cache=u.set(o,c)||u,c};return s.cache=new(r.Cache||e),s}return r.Cache=e,An=r,An}var wn,Yc;function d1(){if(Yc)return wn;Yc=1;var e=Qp(),t=500;function r(n){var i=e(n,function(a){return s.size===t&&s.clear(),a}),s=i.cache;return i}return wn=r,wn}var xn,Zc;function p1(){if(Zc)return xn;Zc=1;var e=d1(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(a,o,u,c){s.push(u?c.replace(r,"$1"):o||a)}),s});return xn=n,xn}var Pn,Jc;function jo(){if(Jc)return Pn;Jc=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,s=Array(i);++n<i;)s[n]=r(t[n],n,t);return s}return Pn=e,Pn}var Rn,Qc;function m1(){if(Qc)return Rn;Qc=1;var e=Ct(),t=jo(),r=re(),n=rt(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function a(o){if(typeof o=="string")return o;if(r(o))return t(o,a)+"";if(n(o))return s?s.call(o):"";var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}return Rn=a,Rn}var En,el;function em(){if(el)return En;el=1;var e=m1();function t(r){return r==null?"":e(r)}return En=t,En}var Cn,tl;function tm(){if(tl)return Cn;tl=1;var e=re(),t=qo(),r=p1(),n=em();function i(s,a){return e(s)?s:t(s,a)?[s]:r(n(s))}return Cn=i,Cn}var Mn,rl;function hr(){if(rl)return Mn;rl=1;var e=rt();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Mn=t,Mn}var qn,nl;function Lo(){if(nl)return qn;nl=1;var e=tm(),t=hr();function r(n,i){i=e(i,n);for(var s=0,a=i.length;n!=null&&s<a;)n=n[t(i[s++])];return s&&s==a?n:void 0}return qn=r,qn}var On,il;function rm(){if(il)return On;il=1;var e=Lo();function t(r,n,i){var s=r==null?void 0:e(r,n);return s===void 0?i:s}return On=t,On}var y1=rm();const aw=F(y1);var In,sl;function g1(){if(sl)return In;sl=1;function e(t){return t==null}return In=e,In}var v1=g1();const ow=F(v1);var Dn,al;function b1(){if(al)return Dn;al=1;var e=_e(),t=re(),r=Ae(),n="[object String]";function i(s){return typeof s=="string"||!t(s)&&r(s)&&e(s)==n}return Dn=i,Dn}var T1=b1();const uw=F(T1);var S1=Oo();const cw=F(S1);var _1=qe();const lw=F(_1);var Vn={exports:{}},I={};/**
2
- * @license React
3
- * react-is.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var ol;function A1(){if(ol)return I;ol=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),o=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(d){if(typeof d=="object"&&d!==null){var g=d.$$typeof;switch(g){case e:switch(d=d.type,d){case r:case i:case n:case c:case l:return d;default:switch(d=d&&d.$$typeof,d){case o:case a:case u:case h:case f:case s:return d;default:return g}}case t:return g}}}return I.ContextConsumer=a,I.ContextProvider=s,I.Element=e,I.ForwardRef=u,I.Fragment=r,I.Lazy=h,I.Memo=f,I.Portal=t,I.Profiler=i,I.StrictMode=n,I.Suspense=c,I.SuspenseList=l,I.isAsyncMode=function(){return!1},I.isConcurrentMode=function(){return!1},I.isContextConsumer=function(d){return m(d)===a},I.isContextProvider=function(d){return m(d)===s},I.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},I.isForwardRef=function(d){return m(d)===u},I.isFragment=function(d){return m(d)===r},I.isLazy=function(d){return m(d)===h},I.isMemo=function(d){return m(d)===f},I.isPortal=function(d){return m(d)===t},I.isProfiler=function(d){return m(d)===i},I.isStrictMode=function(d){return m(d)===n},I.isSuspense=function(d){return m(d)===c},I.isSuspenseList=function(d){return m(d)===l},I.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===c||d===l||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===f||d.$$typeof===s||d.$$typeof===a||d.$$typeof===u||d.$$typeof===y||d.getModuleId!==void 0)},I.typeOf=m,I}var ul;function w1(){return ul||(ul=1,Vn.exports=A1()),Vn.exports}var fw=w1(),jn,cl;function nm(){if(cl)return jn;cl=1;var e=_e(),t=Ae(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return jn=n,jn}var Ln,ll;function x1(){if(ll)return Ln;ll=1;var e=nm();function t(r){return e(r)&&r!=+r}return Ln=t,Ln}var P1=x1();const hw=F(P1);var R1=nm();const dw=F(R1);var Fn,fl;function E1(){if(fl)return Fn;fl=1;function e(t,r,n){var i=-1,s=t.length;r<0&&(r=-r>s?0:s+r),n=n>s?s:n,n<0&&(n+=s),s=r>n?0:n-r>>>0,r>>>=0;for(var a=Array(s);++i<s;)a[i]=t[i+r];return a}return Fn=e,Fn}var Bn,hl;function C1(){if(hl)return Bn;hl=1;var e=E1();function t(r,n,i){var s=r.length;return i=i===void 0?s:i,!n&&i>=s?r:e(r,n,i)}return Bn=t,Bn}var kn,dl;function im(){if(dl)return kn;dl=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\ufe0e\\ufe0f",a="\\u200d",o=RegExp("["+a+e+i+s+"]");function u(c){return o.test(c)}return kn=u,kn}var Nn,pl;function M1(){if(pl)return Nn;pl=1;function e(t){return t.split("")}return Nn=e,Nn}var Un,ml;function q1(){if(ml)return Un;ml=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\ufe0e\\ufe0f",a="["+e+"]",o="["+i+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+o+"|"+u+")",l="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=c+"?",m="["+s+"]?",d="(?:"+p+"(?:"+[l,f,h].join("|")+")"+m+y+")*",g=m+y+d,v="(?:"+[l+o+"?",o,f,h,a].join("|")+")",b=RegExp(u+"(?="+u+")|"+v+g,"g");function T(S){return S.match(b)||[]}return Un=T,Un}var Gn,yl;function O1(){if(yl)return Gn;yl=1;var e=M1(),t=im(),r=q1();function n(i){return t(i)?r(i):e(i)}return Gn=n,Gn}var $n,gl;function I1(){if(gl)return $n;gl=1;var e=C1(),t=im(),r=O1(),n=em();function i(s){return function(a){a=n(a);var o=t(a)?r(a):void 0,u=o?o[0]:a.charAt(0),c=o?e(o,1).join(""):a.slice(1);return u[s]()+c}}return $n=i,$n}var Wn,vl;function D1(){if(vl)return Wn;vl=1;var e=I1(),t=e("toUpperCase");return Wn=t,Wn}var V1=D1();const pw=F(V1);var Kn,bl;function j1(){if(bl)return Kn;bl=1;var e=lr();function t(){this.__data__=new e,this.size=0}return Kn=t,Kn}var Hn,Tl;function L1(){if(Tl)return Hn;Tl=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Hn=e,Hn}var zn,Sl;function F1(){if(Sl)return zn;Sl=1;function e(t){return this.__data__.get(t)}return zn=e,zn}var Xn,_l;function B1(){if(_l)return Xn;_l=1;function e(t){return this.__data__.has(t)}return Xn=e,Xn}var Yn,Al;function k1(){if(Al)return Yn;Al=1;var e=lr(),t=Do(),r=Vo(),n=200;function i(s,a){var o=this.__data__;if(o instanceof e){var u=o.__data__;if(!t||u.length<n-1)return u.push([s,a]),this.size=++o.size,this;o=this.__data__=new r(u)}return o.set(s,a),this.size=o.size,this}return Yn=i,Yn}var Zn,wl;function sm(){if(wl)return Zn;wl=1;var e=lr(),t=j1(),r=L1(),n=F1(),i=B1(),s=k1();function a(o){var u=this.__data__=new e(o);this.size=u.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=i,a.prototype.set=s,Zn=a,Zn}var Jn,xl;function N1(){if(xl)return Jn;xl=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Jn=t,Jn}var Qn,Pl;function U1(){if(Pl)return Qn;Pl=1;function e(t){return this.__data__.has(t)}return Qn=e,Qn}var ei,Rl;function am(){if(Rl)return ei;Rl=1;var e=Vo(),t=N1(),r=U1();function n(i){var s=-1,a=i==null?0:i.length;for(this.__data__=new e;++s<a;)this.add(i[s])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,ei=n,ei}var ti,El;function om(){if(El)return ti;El=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return ti=e,ti}var ri,Cl;function um(){if(Cl)return ri;Cl=1;function e(t,r){return t.has(r)}return ri=e,ri}var ni,Ml;function cm(){if(Ml)return ni;Ml=1;var e=am(),t=om(),r=um(),n=1,i=2;function s(a,o,u,c,l,f){var h=u&n,p=a.length,y=o.length;if(p!=y&&!(h&&y>p))return!1;var m=f.get(a),d=f.get(o);if(m&&d)return m==o&&d==a;var g=-1,v=!0,b=u&i?new e:void 0;for(f.set(a,o),f.set(o,a);++g<p;){var T=a[g],S=o[g];if(c)var _=h?c(S,T,g,o,a,f):c(T,S,g,a,o,f);if(_!==void 0){if(_)continue;v=!1;break}if(b){if(!t(o,function(A,R){if(!r(b,R)&&(T===A||l(T,A,u,c,f)))return b.push(R)})){v=!1;break}}else if(!(T===S||l(T,S,u,c,f))){v=!1;break}}return f.delete(a),f.delete(o),v}return ni=s,ni}var ii,ql;function G1(){if(ql)return ii;ql=1;var e=be(),t=e.Uint8Array;return ii=t,ii}var si,Ol;function $1(){if(Ol)return si;Ol=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,s){n[++r]=[s,i]}),n}return si=e,si}var ai,Il;function Fo(){if(Il)return ai;Il=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return ai=e,ai}var oi,Dl;function W1(){if(Dl)return oi;Dl=1;var e=Ct(),t=G1(),r=Io(),n=cm(),i=$1(),s=Fo(),a=1,o=2,u="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",m="[object String]",d="[object Symbol]",g="[object ArrayBuffer]",v="[object DataView]",b=e?e.prototype:void 0,T=b?b.valueOf:void 0;function S(_,A,R,q,E,w,M){switch(R){case v:if(_.byteLength!=A.byteLength||_.byteOffset!=A.byteOffset)return!1;_=_.buffer,A=A.buffer;case g:return!(_.byteLength!=A.byteLength||!w(new t(_),new t(A)));case u:case c:case h:return r(+_,+A);case l:return _.name==A.name&&_.message==A.message;case p:case m:return _==A+"";case f:var O=i;case y:var U=q&a;if(O||(O=s),_.size!=A.size&&!U)return!1;var $=M.get(_);if($)return $==A;q|=o,M.set(_,A);var Q=n(O(_),O(A),q,E,w,M);return M.delete(_),Q;case d:if(T)return T.call(_)==T.call(A)}return!1}return oi=S,oi}var ui,Vl;function lm(){if(Vl)return ui;Vl=1;function e(t,r){for(var n=-1,i=r.length,s=t.length;++n<i;)t[s+n]=r[n];return t}return ui=e,ui}var ci,jl;function K1(){if(jl)return ci;jl=1;var e=lm(),t=re();function r(n,i,s){var a=i(n);return t(n)?a:e(a,s(n))}return ci=r,ci}var li,Ll;function H1(){if(Ll)return li;Ll=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,s=0,a=[];++n<i;){var o=t[n];r(o,n,t)&&(a[s++]=o)}return a}return li=e,li}var fi,Fl;function z1(){if(Fl)return fi;Fl=1;function e(){return[]}return fi=e,fi}var hi,Bl;function X1(){if(Bl)return hi;Bl=1;var e=H1(),t=z1(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(o){return n.call(a,o)}))}:t;return hi=s,hi}var di,kl;function Y1(){if(kl)return di;kl=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return di=e,di}var pi,Nl;function Z1(){if(Nl)return pi;Nl=1;var e=_e(),t=Ae(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return pi=n,pi}var mi,Ul;function Bo(){if(Ul)return mi;Ul=1;var e=Z1(),t=Ae(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(a){return t(a)&&n.call(a,"callee")&&!i.call(a,"callee")};return mi=s,mi}var ct={exports:{}},yi,Gl;function J1(){if(Gl)return yi;Gl=1;function e(){return!1}return yi=e,yi}ct.exports;var $l;function fm(){return $l||($l=1,(function(e,t){var r=be(),n=J1(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===i,o=a?r.Buffer:void 0,u=o?o.isBuffer:void 0,c=u||n;e.exports=c})(ct,ct.exports)),ct.exports}var gi,Wl;function ko(){if(Wl)return gi;Wl=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var s=typeof n;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return gi=r,gi}var vi,Kl;function No(){if(Kl)return vi;Kl=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return vi=t,vi}var bi,Hl;function Q1(){if(Hl)return bi;Hl=1;var e=_e(),t=No(),r=Ae(),n="[object Arguments]",i="[object Array]",s="[object Boolean]",a="[object Date]",o="[object Error]",u="[object Function]",c="[object Map]",l="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",m="[object WeakMap]",d="[object ArrayBuffer]",g="[object DataView]",v="[object Float32Array]",b="[object Float64Array]",T="[object Int8Array]",S="[object Int16Array]",_="[object Int32Array]",A="[object Uint8Array]",R="[object Uint8ClampedArray]",q="[object Uint16Array]",E="[object Uint32Array]",w={};w[v]=w[b]=w[T]=w[S]=w[_]=w[A]=w[R]=w[q]=w[E]=!0,w[n]=w[i]=w[d]=w[s]=w[g]=w[a]=w[o]=w[u]=w[c]=w[l]=w[f]=w[h]=w[p]=w[y]=w[m]=!1;function M(O){return r(O)&&t(O.length)&&!!w[e(O)]}return bi=M,bi}var Ti,zl;function hm(){if(zl)return Ti;zl=1;function e(t){return function(r){return t(r)}}return Ti=e,Ti}var lt={exports:{}};lt.exports;var Xl;function eT(){return Xl||(Xl=1,(function(e,t){var r=Zp(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===n,a=s&&r.process,o=(function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}})();e.exports=o})(lt,lt.exports)),lt.exports}var Si,Yl;function dm(){if(Yl)return Si;Yl=1;var e=Q1(),t=hm(),r=eT(),n=r&&r.isTypedArray,i=n?t(n):e;return Si=i,Si}var _i,Zl;function tT(){if(Zl)return _i;Zl=1;var e=Y1(),t=Bo(),r=re(),n=fm(),i=ko(),s=dm(),a=Object.prototype,o=a.hasOwnProperty;function u(c,l){var f=r(c),h=!f&&t(c),p=!f&&!h&&n(c),y=!f&&!h&&!p&&s(c),m=f||h||p||y,d=m?e(c.length,String):[],g=d.length;for(var v in c)(l||o.call(c,v))&&!(m&&(v=="length"||p&&(v=="offset"||v=="parent")||y&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||i(v,g)))&&d.push(v);return d}return _i=u,_i}var Ai,Jl;function rT(){if(Jl)return Ai;Jl=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Ai=t,Ai}var wi,Ql;function pm(){if(Ql)return wi;Ql=1;function e(t,r){return function(n){return t(r(n))}}return wi=e,wi}var xi,ef;function nT(){if(ef)return xi;ef=1;var e=pm(),t=e(Object.keys,Object);return xi=t,xi}var Pi,tf;function iT(){if(tf)return Pi;tf=1;var e=rT(),t=nT(),r=Object.prototype,n=r.hasOwnProperty;function i(s){if(!e(s))return t(s);var a=[];for(var o in Object(s))n.call(s,o)&&o!="constructor"&&a.push(o);return a}return Pi=i,Pi}var Ri,rf;function Mt(){if(rf)return Ri;rf=1;var e=Oo(),t=No();function r(n){return n!=null&&t(n.length)&&!e(n)}return Ri=r,Ri}var Ei,nf;function dr(){if(nf)return Ei;nf=1;var e=tT(),t=iT(),r=Mt();function n(i){return r(i)?e(i):t(i)}return Ei=n,Ei}var Ci,sf;function sT(){if(sf)return Ci;sf=1;var e=K1(),t=X1(),r=dr();function n(i){return e(i,r,t)}return Ci=n,Ci}var Mi,af;function aT(){if(af)return Mi;af=1;var e=sT(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(s,a,o,u,c,l){var f=o&t,h=e(s),p=h.length,y=e(a),m=y.length;if(p!=m&&!f)return!1;for(var d=p;d--;){var g=h[d];if(!(f?g in a:n.call(a,g)))return!1}var v=l.get(s),b=l.get(a);if(v&&b)return v==a&&b==s;var T=!0;l.set(s,a),l.set(a,s);for(var S=f;++d<p;){g=h[d];var _=s[g],A=a[g];if(u)var R=f?u(A,_,g,a,s,l):u(_,A,g,s,a,l);if(!(R===void 0?_===A||c(_,A,o,u,l):R)){T=!1;break}S||(S=g=="constructor")}if(T&&!S){var q=s.constructor,E=a.constructor;q!=E&&"constructor"in s&&"constructor"in a&&!(typeof q=="function"&&q instanceof q&&typeof E=="function"&&E instanceof E)&&(T=!1)}return l.delete(s),l.delete(a),T}return Mi=i,Mi}var qi,of;function oT(){if(of)return qi;of=1;var e=Ge(),t=be(),r=e(t,"DataView");return qi=r,qi}var Oi,uf;function uT(){if(uf)return Oi;uf=1;var e=Ge(),t=be(),r=e(t,"Promise");return Oi=r,Oi}var Ii,cf;function mm(){if(cf)return Ii;cf=1;var e=Ge(),t=be(),r=e(t,"Set");return Ii=r,Ii}var Di,lf;function cT(){if(lf)return Di;lf=1;var e=Ge(),t=be(),r=e(t,"WeakMap");return Di=r,Di}var Vi,ff;function lT(){if(ff)return Vi;ff=1;var e=oT(),t=Do(),r=uT(),n=mm(),i=cT(),s=_e(),a=Jp(),o="[object Map]",u="[object Object]",c="[object Promise]",l="[object Set]",f="[object WeakMap]",h="[object DataView]",p=a(e),y=a(t),m=a(r),d=a(n),g=a(i),v=s;return(e&&v(new e(new ArrayBuffer(1)))!=h||t&&v(new t)!=o||r&&v(r.resolve())!=c||n&&v(new n)!=l||i&&v(new i)!=f)&&(v=function(b){var T=s(b),S=T==u?b.constructor:void 0,_=S?a(S):"";if(_)switch(_){case p:return h;case y:return o;case m:return c;case d:return l;case g:return f}return T}),Vi=v,Vi}var ji,hf;function fT(){if(hf)return ji;hf=1;var e=sm(),t=cm(),r=W1(),n=aT(),i=lT(),s=re(),a=fm(),o=dm(),u=1,c="[object Arguments]",l="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(m,d,g,v,b,T){var S=s(m),_=s(d),A=S?l:i(m),R=_?l:i(d);A=A==c?f:A,R=R==c?f:R;var q=A==f,E=R==f,w=A==R;if(w&&a(m)){if(!a(d))return!1;S=!0,q=!1}if(w&&!q)return T||(T=new e),S||o(m)?t(m,d,g,v,b,T):r(m,d,A,g,v,b,T);if(!(g&u)){var M=q&&p.call(m,"__wrapped__"),O=E&&p.call(d,"__wrapped__");if(M||O){var U=M?m.value():m,$=O?d.value():d;return T||(T=new e),b(U,$,g,v,T)}}return w?(T||(T=new e),n(m,d,g,v,b,T)):!1}return ji=y,ji}var Li,df;function Uo(){if(df)return Li;df=1;var e=fT(),t=Ae();function r(n,i,s,a,o){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,s,a,r,o)}return Li=r,Li}var Fi,pf;function hT(){if(pf)return Fi;pf=1;var e=sm(),t=Uo(),r=1,n=2;function i(s,a,o,u){var c=o.length,l=c,f=!u;if(s==null)return!l;for(s=Object(s);c--;){var h=o[c];if(f&&h[2]?h[1]!==s[h[0]]:!(h[0]in s))return!1}for(;++c<l;){h=o[c];var p=h[0],y=s[p],m=h[1];if(f&&h[2]){if(y===void 0&&!(p in s))return!1}else{var d=new e;if(u)var g=u(y,m,p,s,a,d);if(!(g===void 0?t(m,y,r|n,u,d):g))return!1}}return!0}return Fi=i,Fi}var Bi,mf;function ym(){if(mf)return Bi;mf=1;var e=qe();function t(r){return r===r&&!e(r)}return Bi=t,Bi}var ki,yf;function dT(){if(yf)return ki;yf=1;var e=ym(),t=dr();function r(n){for(var i=t(n),s=i.length;s--;){var a=i[s],o=n[a];i[s]=[a,o,e(o)]}return i}return ki=r,ki}var Ni,gf;function gm(){if(gf)return Ni;gf=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Ni=e,Ni}var Ui,vf;function pT(){if(vf)return Ui;vf=1;var e=hT(),t=dT(),r=gm();function n(i){var s=t(i);return s.length==1&&s[0][2]?r(s[0][0],s[0][1]):function(a){return a===i||e(a,i,s)}}return Ui=n,Ui}var Gi,bf;function mT(){if(bf)return Gi;bf=1;function e(t,r){return t!=null&&r in Object(t)}return Gi=e,Gi}var $i,Tf;function yT(){if(Tf)return $i;Tf=1;var e=tm(),t=Bo(),r=re(),n=ko(),i=No(),s=hr();function a(o,u,c){u=e(u,o);for(var l=-1,f=u.length,h=!1;++l<f;){var p=s(u[l]);if(!(h=o!=null&&c(o,p)))break;o=o[p]}return h||++l!=f?h:(f=o==null?0:o.length,!!f&&i(f)&&n(p,f)&&(r(o)||t(o)))}return $i=a,$i}var Wi,Sf;function gT(){if(Sf)return Wi;Sf=1;var e=mT(),t=yT();function r(n,i){return n!=null&&t(n,i,e)}return Wi=r,Wi}var Ki,_f;function vT(){if(_f)return Ki;_f=1;var e=Uo(),t=rm(),r=gT(),n=qo(),i=ym(),s=gm(),a=hr(),o=1,u=2;function c(l,f){return n(l)&&i(f)?s(a(l),f):function(h){var p=t(h,l);return p===void 0&&p===f?r(h,l):e(f,p,o|u)}}return Ki=c,Ki}var Hi,Af;function nt(){if(Af)return Hi;Af=1;function e(t){return t}return Hi=e,Hi}var zi,wf;function bT(){if(wf)return zi;wf=1;function e(t){return function(r){return r==null?void 0:r[t]}}return zi=e,zi}var Xi,xf;function TT(){if(xf)return Xi;xf=1;var e=Lo();function t(r){return function(n){return e(n,r)}}return Xi=t,Xi}var Yi,Pf;function ST(){if(Pf)return Yi;Pf=1;var e=bT(),t=TT(),r=qo(),n=hr();function i(s){return r(s)?e(n(s)):t(s)}return Yi=i,Yi}var Zi,Rf;function Te(){if(Rf)return Zi;Rf=1;var e=pT(),t=vT(),r=nt(),n=re(),i=ST();function s(a){return typeof a=="function"?a:a==null?r:typeof a=="object"?n(a)?t(a[0],a[1]):e(a):i(a)}return Zi=s,Zi}var Ji,Ef;function vm(){if(Ef)return Ji;Ef=1;function e(t,r,n,i){for(var s=t.length,a=n+(i?1:-1);i?a--:++a<s;)if(r(t[a],a,t))return a;return-1}return Ji=e,Ji}var Qi,Cf;function _T(){if(Cf)return Qi;Cf=1;function e(t){return t!==t}return Qi=e,Qi}var es,Mf;function AT(){if(Mf)return es;Mf=1;function e(t,r,n){for(var i=n-1,s=t.length;++i<s;)if(t[i]===r)return i;return-1}return es=e,es}var ts,qf;function wT(){if(qf)return ts;qf=1;var e=vm(),t=_T(),r=AT();function n(i,s,a){return s===s?r(i,s,a):e(i,t,a)}return ts=n,ts}var rs,Of;function xT(){if(Of)return rs;Of=1;var e=wT();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return rs=t,rs}var ns,If;function PT(){if(If)return ns;If=1;function e(t,r,n){for(var i=-1,s=t==null?0:t.length;++i<s;)if(n(r,t[i]))return!0;return!1}return ns=e,ns}var is,Df;function RT(){if(Df)return is;Df=1;function e(){}return is=e,is}var ss,Vf;function ET(){if(Vf)return ss;Vf=1;var e=mm(),t=RT(),r=Fo(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(s){return new e(s)}:t;return ss=i,ss}var as,jf;function CT(){if(jf)return as;jf=1;var e=am(),t=xT(),r=PT(),n=um(),i=ET(),s=Fo(),a=200;function o(u,c,l){var f=-1,h=t,p=u.length,y=!0,m=[],d=m;if(l)y=!1,h=r;else if(p>=a){var g=c?null:i(u);if(g)return s(g);y=!1,h=n,d=new e}else d=c?[]:m;e:for(;++f<p;){var v=u[f],b=c?c(v):v;if(v=l||v!==0?v:0,y&&b===b){for(var T=d.length;T--;)if(d[T]===b)continue e;c&&d.push(b),m.push(v)}else h(d,b,l)||(d!==m&&d.push(b),m.push(v))}return m}return as=o,as}var os,Lf;function MT(){if(Lf)return os;Lf=1;var e=Te(),t=CT();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return os=r,os}var qT=MT();const mw=F(qT);var us,Ff;function OT(){if(Ff)return us;Ff=1;var e=Ct(),t=Bo(),r=re(),n=e?e.isConcatSpreadable:void 0;function i(s){return r(s)||t(s)||!!(n&&s&&s[n])}return us=i,us}var cs,Bf;function bm(){if(Bf)return cs;Bf=1;var e=lm(),t=OT();function r(n,i,s,a,o){var u=-1,c=n.length;for(s||(s=t),o||(o=[]);++u<c;){var l=n[u];i>0&&s(l)?i>1?r(l,i-1,s,a,o):e(o,l):a||(o[o.length]=l)}return o}return cs=r,cs}var ls,kf;function IT(){if(kf)return ls;kf=1;function e(t){return function(r,n,i){for(var s=-1,a=Object(r),o=i(r),u=o.length;u--;){var c=o[t?u:++s];if(n(a[c],c,a)===!1)break}return r}}return ls=e,ls}var fs,Nf;function DT(){if(Nf)return fs;Nf=1;var e=IT(),t=e();return fs=t,fs}var hs,Uf;function Tm(){if(Uf)return hs;Uf=1;var e=DT(),t=dr();function r(n,i){return n&&e(n,i,t)}return hs=r,hs}var ds,Gf;function VT(){if(Gf)return ds;Gf=1;var e=Mt();function t(r,n){return function(i,s){if(i==null)return i;if(!e(i))return r(i,s);for(var a=i.length,o=n?a:-1,u=Object(i);(n?o--:++o<a)&&s(u[o],o,u)!==!1;);return i}}return ds=t,ds}var ps,$f;function Go(){if($f)return ps;$f=1;var e=Tm(),t=VT(),r=t(e);return ps=r,ps}var ms,Wf;function Sm(){if(Wf)return ms;Wf=1;var e=Go(),t=Mt();function r(n,i){var s=-1,a=t(n)?Array(n.length):[];return e(n,function(o,u,c){a[++s]=i(o,u,c)}),a}return ms=r,ms}var ys,Kf;function jT(){if(Kf)return ys;Kf=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return ys=e,ys}var gs,Hf;function LT(){if(Hf)return gs;Hf=1;var e=rt();function t(r,n){if(r!==n){var i=r!==void 0,s=r===null,a=r===r,o=e(r),u=n!==void 0,c=n===null,l=n===n,f=e(n);if(!c&&!f&&!o&&r>n||o&&u&&l&&!c&&!f||s&&u&&l||!i&&l||!a)return 1;if(!s&&!o&&!f&&r<n||f&&i&&a&&!s&&!o||c&&i&&a||!u&&a||!l)return-1}return 0}return gs=t,gs}var vs,zf;function FT(){if(zf)return vs;zf=1;var e=LT();function t(r,n,i){for(var s=-1,a=r.criteria,o=n.criteria,u=a.length,c=i.length;++s<u;){var l=e(a[s],o[s]);if(l){if(s>=c)return l;var f=i[s];return l*(f=="desc"?-1:1)}}return r.index-n.index}return vs=t,vs}var bs,Xf;function BT(){if(Xf)return bs;Xf=1;var e=jo(),t=Lo(),r=Te(),n=Sm(),i=jT(),s=hm(),a=FT(),o=nt(),u=re();function c(l,f,h){f.length?f=e(f,function(m){return u(m)?function(d){return t(d,m.length===1?m[0]:m)}:m}):f=[o];var p=-1;f=e(f,s(r));var y=n(l,function(m,d,g){var v=e(f,function(b){return b(m)});return{criteria:v,index:++p,value:m}});return i(y,function(m,d){return a(m,d,h)})}return bs=c,bs}var Ts,Yf;function kT(){if(Yf)return Ts;Yf=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Ts=e,Ts}var Ss,Zf;function NT(){if(Zf)return Ss;Zf=1;var e=kT(),t=Math.max;function r(n,i,s){return i=t(i===void 0?n.length-1:i,0),function(){for(var a=arguments,o=-1,u=t(a.length-i,0),c=Array(u);++o<u;)c[o]=a[i+o];o=-1;for(var l=Array(i+1);++o<i;)l[o]=a[o];return l[i]=s(c),e(n,this,l)}}return Ss=r,Ss}var _s,Jf;function UT(){if(Jf)return _s;Jf=1;function e(t){return function(){return t}}return _s=e,_s}var As,Qf;function _m(){if(Qf)return As;Qf=1;var e=Ge(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return As=t,As}var ws,eh;function GT(){if(eh)return ws;eh=1;var e=UT(),t=_m(),r=nt(),n=t?function(i,s){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:r;return ws=n,ws}var xs,th;function $T(){if(th)return xs;th=1;var e=800,t=16,r=Date.now;function n(i){var s=0,a=0;return function(){var o=r(),u=t-(o-a);if(a=o,u>0){if(++s>=e)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}return xs=n,xs}var Ps,rh;function WT(){if(rh)return Ps;rh=1;var e=GT(),t=$T(),r=t(e);return Ps=r,Ps}var Rs,nh;function KT(){if(nh)return Rs;nh=1;var e=nt(),t=NT(),r=WT();function n(i,s){return r(t(i,s,e),i+"")}return Rs=n,Rs}var Es,ih;function pr(){if(ih)return Es;ih=1;var e=Io(),t=Mt(),r=ko(),n=qe();function i(s,a,o){if(!n(o))return!1;var u=typeof a;return(u=="number"?t(o)&&r(a,o.length):u=="string"&&a in o)?e(o[a],s):!1}return Es=i,Es}var Cs,sh;function HT(){if(sh)return Cs;sh=1;var e=bm(),t=BT(),r=KT(),n=pr(),i=r(function(s,a){if(s==null)return[];var o=a.length;return o>1&&n(s,a[0],a[1])?a=[]:o>2&&n(a[0],a[1],a[2])&&(a=[a[0]]),t(s,e(a,1),[])});return Cs=i,Cs}var zT=HT();const yw=F(zT);var Ms,ah;function XT(){if(ah)return Ms;ah=1;var e=be(),t=function(){return e.Date.now()};return Ms=t,Ms}var qs,oh;function YT(){if(oh)return qs;oh=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return qs=t,qs}var Os,uh;function ZT(){if(uh)return Os;uh=1;var e=YT(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Os=r,Os}var Is,ch;function Am(){if(ch)return Is;ch=1;var e=ZT(),t=qe(),r=rt(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt;function u(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var l=typeof c.valueOf=="function"?c.valueOf():c;c=t(l)?l+"":l}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=s.test(c);return f||a.test(c)?o(c.slice(2),f?2:8):i.test(c)?n:+c}return Is=u,Is}var Ds,lh;function JT(){if(lh)return Ds;lh=1;var e=qe(),t=XT(),r=Am(),n="Expected a function",i=Math.max,s=Math.min;function a(o,u,c){var l,f,h,p,y,m,d=0,g=!1,v=!1,b=!0;if(typeof o!="function")throw new TypeError(n);u=r(u)||0,e(c)&&(g=!!c.leading,v="maxWait"in c,h=v?i(r(c.maxWait)||0,u):h,b="trailing"in c?!!c.trailing:b);function T(O){var U=l,$=f;return l=f=void 0,d=O,p=o.apply($,U),p}function S(O){return d=O,y=setTimeout(R,u),g?T(O):p}function _(O){var U=O-m,$=O-d,Q=u-U;return v?s(Q,h-$):Q}function A(O){var U=O-m,$=O-d;return m===void 0||U>=u||U<0||v&&$>=h}function R(){var O=t();if(A(O))return q(O);y=setTimeout(R,_(O))}function q(O){return y=void 0,b&&l?T(O):(l=f=void 0,p)}function E(){y!==void 0&&clearTimeout(y),d=0,l=m=f=y=void 0}function w(){return y===void 0?p:q(t())}function M(){var O=t(),U=A(O);if(l=arguments,f=this,m=O,U){if(y===void 0)return S(m);if(v)return clearTimeout(y),y=setTimeout(R,u),T(m)}return y===void 0&&(y=setTimeout(R,u)),p}return M.cancel=E,M.flush=w,M}return Ds=a,Ds}var Vs,fh;function QT(){if(fh)return Vs;fh=1;var e=JT(),t=qe(),r="Expected a function";function n(i,s,a){var o=!0,u=!0;if(typeof i!="function")throw new TypeError(r);return t(a)&&(o="leading"in a?!!a.leading:o,u="trailing"in a?!!a.trailing:u),e(i,s,{leading:o,maxWait:s,trailing:u})}return Vs=n,Vs}var eS=QT();const gw=F(eS);class vw extends Map{constructor(t,r=nS){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(hh(this,t))}has(t){return super.has(hh(this,t))}set(t,r){return super.set(tS(this,t),r)}delete(t){return super.delete(rS(this,t))}}function hh({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function tS({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function rS({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function nS(e){return e!==null&&typeof e=="object"?e.valueOf():e}var js,dh;function mr(){if(dh)return js;dh=1;var e=rt();function t(r,n,i){for(var s=-1,a=r.length;++s<a;){var o=r[s],u=n(o);if(u!=null&&(c===void 0?u===u&&!e(u):i(u,c)))var c=u,l=o}return l}return js=t,js}var Ls,ph;function wm(){if(ph)return Ls;ph=1;function e(t,r){return t>r}return Ls=e,Ls}var Fs,mh;function iS(){if(mh)return Fs;mh=1;var e=mr(),t=wm(),r=nt();function n(i){return i&&i.length?e(i,r,t):void 0}return Fs=n,Fs}var sS=iS();const bw=F(sS);var Bs,yh;function xm(){if(yh)return Bs;yh=1;function e(t,r){return t<r}return Bs=e,Bs}var ks,gh;function aS(){if(gh)return ks;gh=1;var e=mr(),t=xm(),r=nt();function n(i){return i&&i.length?e(i,r,t):void 0}return ks=n,ks}var oS=aS();const Tw=F(oS);var Ns,vh;function uS(){if(vh)return Ns;vh=1;var e=jo(),t=Te(),r=Sm(),n=re();function i(s,a){var o=n(s)?e:r;return o(s,t(a,3))}return Ns=i,Ns}var Us,bh;function cS(){if(bh)return Us;bh=1;var e=bm(),t=uS();function r(n,i){return e(t(n,i),1)}return Us=r,Us}var lS=cS();const Sw=F(lS);var Gs,Th;function fS(){if(Th)return Gs;Th=1;var e=Uo();function t(r,n){return e(r,n)}return Gs=t,Gs}var hS=fS();const _w=F(hS);var it=1e9,dS={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Wo,N=!0,ue="[DecimalError] ",Ne=ue+"Invalid argument: ",$o=ue+"Exponent out of range: ",st=Math.floor,je=Math.pow,pS=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ne,z=1e7,B=7,Pm=9007199254740991,Qt=st(Pm/B),x={};x.absoluteValue=x.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};x.comparedTo=x.cmp=function(e){var t,r,n,i,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(n=s.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return n===i?0:n>i^s.s<0?1:-1};x.decimalPlaces=x.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*B;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};x.dividedBy=x.div=function(e){return Se(this,new this.constructor(e))};x.dividedToIntegerBy=x.idiv=function(e){var t=this,r=t.constructor;return L(Se(t,new r(e),0,1),r.precision)};x.equals=x.eq=function(e){return!this.cmp(e)};x.exponent=function(){return K(this)};x.greaterThan=x.gt=function(e){return this.cmp(e)>0};x.greaterThanOrEqualTo=x.gte=function(e){return this.cmp(e)>=0};x.isInteger=x.isint=function(){return this.e>this.d.length-2};x.isNegative=x.isneg=function(){return this.s<0};x.isPositive=x.ispos=function(){return this.s>0};x.isZero=function(){return this.s===0};x.lessThan=x.lt=function(e){return this.cmp(e)<0};x.lessThanOrEqualTo=x.lte=function(e){return this.cmp(e)<1};x.logarithm=x.log=function(e){var t,r=this,n=r.constructor,i=n.precision,s=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(ne))throw Error(ue+"NaN");if(r.s<1)throw Error(ue+(r.s?"NaN":"-Infinity"));return r.eq(ne)?new n(0):(N=!1,t=Se(St(r,s),St(e,s),s),N=!0,L(t,i))};x.minus=x.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Cm(t,e):Rm(t,(e.s=-e.s,e))};x.modulo=x.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(ue+"NaN");return r.s?(N=!1,t=Se(r,e,0,1).times(e),N=!0,r.minus(t)):L(new n(r),i)};x.naturalExponential=x.exp=function(){return Em(this)};x.naturalLogarithm=x.ln=function(){return St(this)};x.negated=x.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};x.plus=x.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Rm(t,e):Cm(t,(e.s=-e.s,e))};x.precision=x.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ne+e);if(t=K(i)+1,n=i.d.length-1,r=n*B+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};x.squareRoot=x.sqrt=function(){var e,t,r,n,i,s,a,o=this,u=o.constructor;if(o.s<1){if(!o.s)return new u(0);throw Error(ue+"NaN")}for(e=K(o),N=!1,i=Math.sqrt(+o),i==0||i==1/0?(t=me(o.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=st((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(i.toString()),r=u.precision,i=a=r+3;;)if(s=n,n=s.plus(Se(o,s,a+2)).times(.5),me(s.d).slice(0,a)===(t=me(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(L(s,r+1,0),s.times(s).eq(o)){n=s;break}}else if(t!="9999")break;a+=4}return N=!0,L(n,r)};x.times=x.mul=function(e){var t,r,n,i,s,a,o,u,c,l=this,f=l.constructor,h=l.d,p=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,r=l.e+e.e,u=h.length,c=p.length,u<c&&(s=h,h=p,p=s,a=u,u=c,c=a),s=[],a=u+c,n=a;n--;)s.push(0);for(n=c;--n>=0;){for(t=0,i=u+n;i>n;)o=s[i]+p[n]*h[i-n-1]+t,s[i--]=o%z|0,t=o/z|0;s[i]=(s[i]+t)%z|0}for(;!s[--a];)s.pop();return t?++r:s.shift(),e.d=s,e.e=r,N?L(e,f.precision):e};x.toDecimalPlaces=x.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ve(e,0,it),t===void 0?t=n.rounding:ve(t,0,8),L(r,e+K(r)+1,t))};x.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Ue(n,!0):(ve(e,0,it),t===void 0?t=i.rounding:ve(t,0,8),n=L(new i(n),e+1,t),r=Ue(n,!0,e+1)),r};x.toFixed=function(e,t){var r,n,i=this,s=i.constructor;return e===void 0?Ue(i):(ve(e,0,it),t===void 0?t=s.rounding:ve(t,0,8),n=L(new s(i),e+K(i)+1,t),r=Ue(n.abs(),!1,e+K(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};x.toInteger=x.toint=function(){var e=this,t=e.constructor;return L(new t(e),K(e)+1,t.rounding)};x.toNumber=function(){return+this};x.toPower=x.pow=function(e){var t,r,n,i,s,a,o=this,u=o.constructor,c=12,l=+(e=new u(e));if(!e.s)return new u(ne);if(o=new u(o),!o.s){if(e.s<1)throw Error(ue+"Infinity");return o}if(o.eq(ne))return o;if(n=u.precision,e.eq(ne))return L(o,n);if(t=e.e,r=e.d.length-1,a=t>=r,s=o.s,a){if((r=l<0?-l:l)<=Pm){for(i=new u(ne),t=Math.ceil(n/B+4),N=!1;r%2&&(i=i.times(o),_h(i.d,t)),r=st(r/2),r!==0;)o=o.times(o),_h(o.d,t);return N=!0,e.s<0?new u(ne).div(i):L(i,n)}}else if(s<0)throw Error(ue+"NaN");return s=s<0&&e.d[Math.max(t,r)]&1?-1:1,o.s=1,N=!1,i=e.times(St(o,n+c)),N=!0,i=Em(i),i.s=s,i};x.toPrecision=function(e,t){var r,n,i=this,s=i.constructor;return e===void 0?(r=K(i),n=Ue(i,r<=s.toExpNeg||r>=s.toExpPos)):(ve(e,1,it),t===void 0?t=s.rounding:ve(t,0,8),i=L(new s(i),e,t),r=K(i),n=Ue(i,e<=r||r<=s.toExpNeg,e)),n};x.toSignificantDigits=x.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ve(e,1,it),t===void 0?t=n.rounding:ve(t,0,8)),L(new n(r),e,t)};x.toString=x.valueOf=x.val=x.toJSON=x[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=K(e),r=e.constructor;return Ue(e,t<=r.toExpNeg||t>=r.toExpPos)};function Rm(e,t){var r,n,i,s,a,o,u,c,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),N?L(t,f):t;if(u=e.d,c=t.d,a=e.e,i=t.e,u=u.slice(),s=a-i,s){for(s<0?(n=u,s=-s,o=c.length):(n=c,i=a,o=u.length),a=Math.ceil(f/B),o=a>o?a+1:o+1,s>o&&(s=o,n.length=1),n.reverse();s--;)n.push(0);n.reverse()}for(o=u.length,s=c.length,o-s<0&&(s=o,n=c,c=u,u=n),r=0;s;)r=(u[--s]=u[s]+c[s]+r)/z|0,u[s]%=z;for(r&&(u.unshift(r),++i),o=u.length;u[--o]==0;)u.pop();return t.d=u,t.e=i,N?L(t,f):t}function ve(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ne+e)}function me(e){var t,r,n,i=e.length-1,s="",a=e[0];if(i>0){for(s+=a,t=1;t<i;t++)n=e[t]+"",r=B-n.length,r&&(s+=Pe(r)),s+=n;a=e[t],n=a+"",r=B-n.length,r&&(s+=Pe(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return s+a}var Se=(function(){function e(n,i){var s,a=0,o=n.length;for(n=n.slice();o--;)s=n[o]*i+a,n[o]=s%z|0,a=s/z|0;return a&&n.unshift(a),n}function t(n,i,s,a){var o,u;if(s!=a)u=s>a?1:-1;else for(o=u=0;o<s;o++)if(n[o]!=i[o]){u=n[o]>i[o]?1:-1;break}return u}function r(n,i,s){for(var a=0;s--;)n[s]-=a,a=n[s]<i[s]?1:0,n[s]=a*z+n[s]-i[s];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,s,a){var o,u,c,l,f,h,p,y,m,d,g,v,b,T,S,_,A,R,q=n.constructor,E=n.s==i.s?1:-1,w=n.d,M=i.d;if(!n.s)return new q(n);if(!i.s)throw Error(ue+"Division by zero");for(u=n.e-i.e,A=M.length,S=w.length,p=new q(E),y=p.d=[],c=0;M[c]==(w[c]||0);)++c;if(M[c]>(w[c]||0)&&--u,s==null?v=s=q.precision:a?v=s+(K(n)-K(i))+1:v=s,v<0)return new q(0);if(v=v/B+2|0,c=0,A==1)for(l=0,M=M[0],v++;(c<S||l)&&v--;c++)b=l*z+(w[c]||0),y[c]=b/M|0,l=b%M|0;else{for(l=z/(M[0]+1)|0,l>1&&(M=e(M,l),w=e(w,l),A=M.length,S=w.length),T=A,m=w.slice(0,A),d=m.length;d<A;)m[d++]=0;R=M.slice(),R.unshift(0),_=M[0],M[1]>=z/2&&++_;do l=0,o=t(M,m,A,d),o<0?(g=m[0],A!=d&&(g=g*z+(m[1]||0)),l=g/_|0,l>1?(l>=z&&(l=z-1),f=e(M,l),h=f.length,d=m.length,o=t(f,m,h,d),o==1&&(l--,r(f,A<h?R:M,h))):(l==0&&(o=l=1),f=M.slice()),h=f.length,h<d&&f.unshift(0),r(m,f,d),o==-1&&(d=m.length,o=t(M,m,A,d),o<1&&(l++,r(m,A<d?R:M,d))),d=m.length):o===0&&(l++,m=[0]),y[c++]=l,o&&m[0]?m[d++]=w[T]||0:(m=[w[T]],d=1);while((T++<S||m[0]!==void 0)&&v--)}return y[0]||y.shift(),p.e=u,L(p,a?s+K(p)+1:s)}})();function Em(e,t){var r,n,i,s,a,o,u=0,c=0,l=e.constructor,f=l.precision;if(K(e)>16)throw Error($o+K(e));if(!e.s)return new l(ne);for(N=!1,o=f,a=new l(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(n=Math.log(je(2,c))/Math.LN10*2+5|0,o+=n,r=i=s=new l(ne),l.precision=o;;){if(i=L(i.times(e),o),r=r.times(++u),a=s.plus(Se(i,r,o)),me(a.d).slice(0,o)===me(s.d).slice(0,o)){for(;c--;)s=L(s.times(s),o);return l.precision=f,t==null?(N=!0,L(s,f)):s}s=a}}function K(e){for(var t=e.e*B,r=e.d[0];r>=10;r/=10)t++;return t}function $s(e,t,r){if(t>e.LN10.sd())throw N=!0,r&&(e.precision=r),Error(ue+"LN10 precision limit exceeded");return L(new e(e.LN10),t)}function Pe(e){for(var t="";e--;)t+="0";return t}function St(e,t){var r,n,i,s,a,o,u,c,l,f=1,h=10,p=e,y=p.d,m=p.constructor,d=m.precision;if(p.s<1)throw Error(ue+(p.s?"NaN":"-Infinity"));if(p.eq(ne))return new m(0);if(t==null?(N=!1,c=d):c=t,p.eq(10))return t==null&&(N=!0),$s(m,c);if(c+=h,m.precision=c,r=me(y),n=r.charAt(0),s=K(p),Math.abs(s)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=me(p.d),n=r.charAt(0),f++;s=K(p),n>1?(p=new m("0."+r),s++):p=new m(n+"."+r.slice(1))}else return u=$s(m,c+2,d).times(s+""),p=St(new m(n+"."+r.slice(1)),c-h).plus(u),m.precision=d,t==null?(N=!0,L(p,d)):p;for(o=a=p=Se(p.minus(ne),p.plus(ne),c),l=L(p.times(p),c),i=3;;){if(a=L(a.times(l),c),u=o.plus(Se(a,new m(i),c)),me(u.d).slice(0,c)===me(o.d).slice(0,c))return o=o.times(2),s!==0&&(o=o.plus($s(m,c+2,d).times(s+""))),o=Se(o,new m(f),c),m.precision=d,t==null?(N=!0,L(o,d)):o;o=u,i+=2}}function Sh(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=st(r/B),e.d=[],n=(r+1)%B,r<0&&(n+=B),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=B;n<i;)e.d.push(+t.slice(n,n+=B));t=t.slice(n),n=B-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),N&&(e.e>Qt||e.e<-Qt))throw Error($o+r)}else e.s=0,e.e=0,e.d=[0];return e}function L(e,t,r){var n,i,s,a,o,u,c,l,f=e.d;for(a=1,s=f[0];s>=10;s/=10)a++;if(n=t-a,n<0)n+=B,i=t,c=f[l=0];else{if(l=Math.ceil((n+1)/B),s=f.length,l>=s)return e;for(c=s=f[l],a=1;s>=10;s/=10)a++;n%=B,i=n-B+a}if(r!==void 0&&(s=je(10,a-i-1),o=c/s%10|0,u=t<0||f[l+1]!==void 0||c%s,u=r<4?(o||u)&&(r==0||r==(e.s<0?3:2)):o>5||o==5&&(r==4||u||r==6&&(n>0?i>0?c/je(10,a-i):0:f[l-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return u?(s=K(e),f.length=1,t=t-s-1,f[0]=je(10,(B-t%B)%B),e.e=st(-t/B)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=l,s=1,l--):(f.length=l+1,s=je(10,B-n),f[l]=i>0?(c/je(10,a-i)%je(10,i)|0)*s:0),u)for(;;)if(l==0){(f[0]+=s)==z&&(f[0]=1,++e.e);break}else{if(f[l]+=s,f[l]!=z)break;f[l--]=0,s=1}for(n=f.length;f[--n]===0;)f.pop();if(N&&(e.e>Qt||e.e<-Qt))throw Error($o+K(e));return e}function Cm(e,t){var r,n,i,s,a,o,u,c,l,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),N?L(t,p):t;if(u=e.d,f=t.d,n=t.e,c=e.e,u=u.slice(),a=c-n,a){for(l=a<0,l?(r=u,a=-a,o=f.length):(r=f,n=c,o=u.length),i=Math.max(Math.ceil(p/B),o)+2,a>i&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for(i=u.length,o=f.length,l=i<o,l&&(o=i),i=0;i<o;i++)if(u[i]!=f[i]){l=u[i]<f[i];break}a=0}for(l&&(r=u,u=f,f=r,t.s=-t.s),o=u.length,i=f.length-o;i>0;--i)u[o++]=0;for(i=f.length;i>a;){if(u[--i]<f[i]){for(s=i;s&&u[--s]===0;)u[s]=z-1;--u[s],u[i]+=z}u[i]-=f[i]}for(;u[--o]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=n,N?L(t,p):t):new h(0)}function Ue(e,t,r){var n,i=K(e),s=me(e.d),a=s.length;return t?(r&&(n=r-a)>0?s=s.charAt(0)+"."+s.slice(1)+Pe(n):a>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(i<0?"e":"e+")+i):i<0?(s="0."+Pe(-i-1)+s,r&&(n=r-a)>0&&(s+=Pe(n))):i>=a?(s+=Pe(i+1-a),r&&(n=r-i-1)>0&&(s=s+"."+Pe(n))):((n=i+1)<a&&(s=s.slice(0,n)+"."+s.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(s+="."),s+=Pe(n))),e.s<0?"-"+s:s}function _h(e,t){if(e.length>t)return e.length=t,!0}function Mm(e){var t,r,n;function i(s){var a=this;if(!(a instanceof i))return new i(s);if(a.constructor=i,s instanceof i){a.s=s.s,a.e=s.e,a.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(Ne+s);if(s>0)a.s=1;else if(s<0)s=-s,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(s===~~s&&s<1e7){a.e=0,a.d=[s];return}return Sh(a,s.toString())}else if(typeof s!="string")throw Error(Ne+s);if(s.charCodeAt(0)===45?(s=s.slice(1),a.s=-1):a.s=1,pS.test(s))Sh(a,s);else throw Error(Ne+s)}if(i.prototype=x,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Mm,i.config=i.set=mS,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function mS(e){if(!e||typeof e!="object")throw Error(ue+"Object expected");var t,r,n,i=["precision",1,it,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(st(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Ne+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ne+r+": "+n);return this}var Wo=Mm(dS);ne=new Wo(1);const V=Wo;function yS(e){return TS(e)||bS(e)||vS(e)||gS()}function gS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
10
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vS(e,t){if(e){if(typeof e=="string")return Ga(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ga(e,t)}}function bS(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function TS(e){if(Array.isArray(e))return Ga(e)}function Ga(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var SS=function(t){return t},qm={},Om=function(t){return t===qm},Ah=function(t){return function r(){return arguments.length===0||arguments.length===1&&Om(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},_S=function e(t,r){return t===1?r:Ah(function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];var a=i.filter(function(o){return o!==qm}).length;return a>=t?r.apply(void 0,i):e(t-a,Ah(function(){for(var o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];var l=i.map(function(f){return Om(f)?u.shift():f});return r.apply(void 0,yS(l).concat(u))}))})},yr=function(t){return _S(t.length,t)},$a=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},AS=yr(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),wS=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return SS;var i=r.reverse(),s=i[0],a=i.slice(1);return function(){return a.reduce(function(o,u){return u(o)},s.apply(void 0,arguments))}},Wa=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Im=function(t){var r=null,n=null;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return r&&s.every(function(o,u){return o===r[u]})||(r=s,n=t.apply(void 0,s)),n}};function xS(e){var t;return e===0?t=1:t=Math.floor(new V(e).abs().log(10).toNumber())+1,t}function PS(e,t,r){for(var n=new V(e),i=0,s=[];n.lt(t)&&i<1e5;)s.push(n.toNumber()),n=n.add(r),i++;return s}var RS=yr(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),ES=yr(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),CS=yr(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const gr={rangeStep:PS,getDigitCount:xS,interpolateNumber:RS,uninterpolateNumber:ES,uninterpolateTruncation:CS};function Ka(e){return OS(e)||qS(e)||Dm(e)||MS()}function MS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
11
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qS(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function OS(e){if(Array.isArray(e))return Ha(e)}function _t(e,t){return VS(e)||DS(e,t)||Dm(e,t)||IS()}function IS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dm(e,t){if(e){if(typeof e=="string")return Ha(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ha(e,t)}}function Ha(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function DS(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,s=void 0;try{for(var a=e[Symbol.iterator](),o;!(n=(o=a.next()).done)&&(r.push(o.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,s=u}finally{try{!n&&a.return!=null&&a.return()}finally{if(i)throw s}}return r}}function VS(e){if(Array.isArray(e))return e}function Vm(e){var t=_t(e,2),r=t[0],n=t[1],i=r,s=n;return r>n&&(i=n,s=r),[i,s]}function jm(e,t,r){if(e.lte(0))return new V(0);var n=gr.getDigitCount(e.toNumber()),i=new V(10).pow(n),s=e.div(i),a=n!==1?.05:.1,o=new V(Math.ceil(s.div(a).toNumber())).add(r).mul(a),u=o.mul(i);return t?u:new V(Math.ceil(u))}function jS(e,t,r){var n=1,i=new V(e);if(!i.isint()&&r){var s=Math.abs(e);s<1?(n=new V(10).pow(gr.getDigitCount(e)-1),i=new V(Math.floor(i.div(n).toNumber())).mul(n)):s>1&&(i=new V(Math.floor(e)))}else e===0?i=new V(Math.floor((t-1)/2)):r||(i=new V(Math.floor(e)));var a=Math.floor((t-1)/2),o=wS(AS(function(u){return i.add(new V(u-a).mul(n)).toNumber()}),$a);return o(0,t)}function Lm(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new V(0),tickMin:new V(0),tickMax:new V(0)};var s=jm(new V(t).sub(e).div(r-1),n,i),a;e<=0&&t>=0?a=new V(0):(a=new V(e).add(t).div(2),a=a.sub(new V(a).mod(s)));var o=Math.ceil(a.sub(e).div(s).toNumber()),u=Math.ceil(new V(t).sub(a).div(s).toNumber()),c=o+u+1;return c>r?Lm(e,t,r,n,i+1):(c<r&&(u=t>0?u+(r-c):u,o=t>0?o:o+(r-c)),{step:s,tickMin:a.sub(new V(o).mul(s)),tickMax:a.add(new V(u).mul(s))})}function LS(e){var t=_t(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),o=Vm([r,n]),u=_t(o,2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var f=l===1/0?[c].concat(Ka($a(0,i-1).map(function(){return 1/0}))):[].concat(Ka($a(0,i-1).map(function(){return-1/0})),[l]);return r>n?Wa(f):f}if(c===l)return jS(c,i,s);var h=Lm(c,l,a,s),p=h.step,y=h.tickMin,m=h.tickMax,d=gr.rangeStep(y,m.add(new V(.1).mul(p)),p);return r>n?Wa(d):d}function FS(e,t){var r=_t(e,2),n=r[0],i=r[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Vm([n,i]),o=_t(a,2),u=o[0],c=o[1];if(u===-1/0||c===1/0)return[n,i];if(u===c)return[u];var l=Math.max(t,2),f=jm(new V(c).sub(u).div(l-1),s,0),h=[].concat(Ka(gr.rangeStep(new V(u),new V(c).sub(new V(.99).mul(f)),f)),[c]);return n>i?Wa(h):h}var Aw=Im(LS),ww=Im(FS),BS="Invariant failed";function xw(e,t){throw new Error(BS)}var Ws,wh;function kS(){if(wh)return Ws;wh=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Ws=e,Ws}var NS=kS();const Pw=F(NS);var Ks={exports:{}},Hs,xh;function US(){if(xh)return Hs;xh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Hs=e,Hs}var zs,Ph;function GS(){if(Ph)return zs;Ph=1;var e=US();function t(){}function r(){}return r.resetWarningCache=t,zs=function(){function n(a,o,u,c,l,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},zs}var Rh;function $S(){return Rh||(Rh=1,Ks.exports=GS()()),Ks.exports}var WS=$S();const D=F(WS),{getOwnPropertyNames:KS,getOwnPropertySymbols:HS}=Object,{hasOwnProperty:zS}=Object.prototype;function Xs(e,t){return function(n,i,s){return e(n,i,s)&&t(n,i,s)}}function jt(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:s}=i,a=s.get(r),o=s.get(n);if(a&&o)return a===n&&o===r;s.set(r,n),s.set(n,r);const u=e(r,n,i);return s.delete(r),s.delete(n),u}}function XS(e){return e!=null?e[Symbol.toStringTag]:void 0}function Eh(e){return KS(e).concat(HS(e))}const YS=Object.hasOwn||((e,t)=>zS.call(e,t));function $e(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const ZS="__v",JS="__o",QS="_owner",{getOwnPropertyDescriptor:Ch,keys:Mh}=Object;function e_(e,t){return e.byteLength===t.byteLength&&er(new Uint8Array(e),new Uint8Array(t))}function t_(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function r_(e,t){return e.byteLength===t.byteLength&&er(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function n_(e,t){return $e(e.getTime(),t.getTime())}function i_(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function s_(e,t){return e===t}function qh(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),s=e.entries();let a,o,u=0;for(;(a=s.next())&&!a.done;){const c=t.entries();let l=!1,f=0;for(;(o=c.next())&&!o.done;){if(i[f]){f++;continue}const h=a.value,p=o.value;if(r.equals(h[0],p[0],u,f,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){l=i[f]=!0;break}f++}if(!l)return!1;u++}return!0}const a_=$e;function o_(e,t,r){const n=Mh(e);let i=n.length;if(Mh(t).length!==i)return!1;for(;i-- >0;)if(!Fm(e,t,r,n[i]))return!1;return!0}function ot(e,t,r){const n=Eh(e);let i=n.length;if(Eh(t).length!==i)return!1;let s,a,o;for(;i-- >0;)if(s=n[i],!Fm(e,t,r,s)||(a=Ch(e,s),o=Ch(t,s),(a||o)&&(!a||!o||a.configurable!==o.configurable||a.enumerable!==o.enumerable||a.writable!==o.writable)))return!1;return!0}function u_(e,t){return $e(e.valueOf(),t.valueOf())}function c_(e,t){return e.source===t.source&&e.flags===t.flags}function Oh(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),s=e.values();let a,o;for(;(a=s.next())&&!a.done;){const u=t.values();let c=!1,l=0;for(;(o=u.next())&&!o.done;){if(!i[l]&&r.equals(a.value,o.value,a.value,o.value,e,t,r)){c=i[l]=!0;break}l++}if(!c)return!1}return!0}function er(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function l_(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Fm(e,t,r,n){return(n===QS||n===JS||n===ZS)&&(e.$$typeof||t.$$typeof)?!0:YS(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const f_="[object ArrayBuffer]",h_="[object Arguments]",d_="[object Boolean]",p_="[object DataView]",m_="[object Date]",y_="[object Error]",g_="[object Map]",v_="[object Number]",b_="[object Object]",T_="[object RegExp]",S_="[object Set]",__="[object String]",A_={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},w_="[object URL]",x_=Object.prototype.toString;function P_({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:a,areNumbersEqual:o,areObjectsEqual:u,arePrimitiveWrappersEqual:c,areRegExpsEqual:l,areSetsEqual:f,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:y}){return function(d,g,v){if(d===g)return!0;if(d==null||g==null)return!1;const b=typeof d;if(b!==typeof g)return!1;if(b!=="object")return b==="number"?o(d,g,v):b==="function"?s(d,g,v):!1;const T=d.constructor;if(T!==g.constructor)return!1;if(T===Object)return u(d,g,v);if(Array.isArray(d))return t(d,g,v);if(T===Date)return n(d,g,v);if(T===RegExp)return l(d,g,v);if(T===Map)return a(d,g,v);if(T===Set)return f(d,g,v);const S=x_.call(d);if(S===m_)return n(d,g,v);if(S===T_)return l(d,g,v);if(S===g_)return a(d,g,v);if(S===S_)return f(d,g,v);if(S===b_)return typeof d.then!="function"&&typeof g.then!="function"&&u(d,g,v);if(S===w_)return p(d,g,v);if(S===y_)return i(d,g,v);if(S===h_)return u(d,g,v);if(A_[S])return h(d,g,v);if(S===f_)return e(d,g,v);if(S===p_)return r(d,g,v);if(S===d_||S===v_||S===__)return c(d,g,v);if(y){let _=y[S];if(!_){const A=XS(d);A&&(_=y[A])}if(_)return _(d,g,v)}return!1}}function R_({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:e_,areArraysEqual:r?ot:t_,areDataViewsEqual:r_,areDatesEqual:n_,areErrorsEqual:i_,areFunctionsEqual:s_,areMapsEqual:r?Xs(qh,ot):qh,areNumbersEqual:a_,areObjectsEqual:r?ot:o_,arePrimitiveWrappersEqual:u_,areRegExpsEqual:c_,areSetsEqual:r?Xs(Oh,ot):Oh,areTypedArraysEqual:r?Xs(er,ot):er,areUrlsEqual:l_,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=jt(n.areArraysEqual),s=jt(n.areMapsEqual),a=jt(n.areObjectsEqual),o=jt(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:a,areSetsEqual:o})}return n}function E_(e){return function(t,r,n,i,s,a,o){return e(t,r,o)}}function C_({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(o,u){const{cache:c=e?new WeakMap:void 0,meta:l}=r();return t(o,u,{cache:c,equals:n,meta:l,strict:i})};if(e)return function(o,u){return t(o,u,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const s={cache:void 0,equals:n,meta:void 0,strict:i};return function(o,u){return t(o,u,s)}}const M_=Oe();Oe({strict:!0});Oe({circular:!0});Oe({circular:!0,strict:!0});Oe({createInternalComparator:()=>$e});Oe({strict:!0,createInternalComparator:()=>$e});Oe({circular:!0,createInternalComparator:()=>$e});Oe({circular:!0,createInternalComparator:()=>$e,strict:!0});function Oe(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,s=R_(e),a=P_(s),o=r?r(a):E_(a);return C_({circular:t,comparator:a,createState:n,equals:o,strict:i})}function q_(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Ih(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(s){r<0&&(r=s),s-r>t?(e(s),r=-1):q_(i)};requestAnimationFrame(n)}function za(e){"@babel/helpers - typeof";return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},za(e)}function O_(e){return j_(e)||V_(e)||D_(e)||I_()}function I_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D_(e,t){if(e){if(typeof e=="string")return Dh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dh(e,t)}}function Dh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function V_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function j_(e){if(Array.isArray(e))return e}function L_(){var e={},t=function(){return null},r=!1,n=function i(s){if(!r){if(Array.isArray(s)){if(!s.length)return;var a=s,o=O_(a),u=o[0],c=o.slice(1);if(typeof u=="number"){Ih(i.bind(null,c),u);return}i(u),Ih(i.bind(null,c));return}za(s)==="object"&&(e=s,t(e)),typeof s=="function"&&s()}};return{stop:function(){r=!0},start:function(s){r=!1,n(s)},subscribe:function(s){return t=s,function(){t=function(){return null}}}}}function At(e){"@babel/helpers - typeof";return At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},At(e)}function Vh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vh(Object(r),!0).forEach(function(n){Bm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bm(e,t,r){return t=F_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F_(e){var t=B_(e,"string");return At(t)==="symbol"?t:String(t)}function B_(e,t){if(At(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(At(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var k_=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(s){return i.includes(s)})})},N_=function(t){return t},U_=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},yt=function(t,r){return Object.keys(r).reduce(function(n,i){return jh(jh({},n),{},Bm({},i,t(i,r[i])))},{})},Lh=function(t,r,n){return t.map(function(i){return"".concat(U_(i)," ").concat(r,"ms ").concat(n)}).join(",")};function G_(e,t){return K_(e)||W_(e,t)||km(e,t)||$_()}function $_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W_(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,s,a,o=[],u=!0,c=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(u=(n=s.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}function K_(e){if(Array.isArray(e))return e}function H_(e){return Y_(e)||X_(e)||km(e)||z_()}function z_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
15
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function km(e,t){if(e){if(typeof e=="string")return Xa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xa(e,t)}}function X_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Y_(e){if(Array.isArray(e))return Xa(e)}function Xa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var tr=1e-4,Nm=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},Um=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Fh=function(t,r){return function(n){var i=Nm(t,r);return Um(i,n)}},Z_=function(t,r){return function(n){var i=Nm(t,r),s=[].concat(H_(i.map(function(a,o){return a*o}).slice(1)),[0]);return Um(s,n)}},Bh=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],s=r[1],a=r[2],o=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,s=0,a=1,o=1;break;case"ease":i=.25,s=.1,a=.25,o=1;break;case"ease-in":i=.42,s=0,a=1,o=1;break;case"ease-out":i=.42,s=0,a=.58,o=1;break;case"ease-in-out":i=0,s=0,a=.58,o=1;break;default:{var u=r[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var c=u[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),l=G_(c,4);i=l[0],s=l[1],a=l[2],o=l[3]}}}var f=Fh(i,a),h=Fh(s,o),p=Z_(i,a),y=function(g){return g>1?1:g<0?0:g},m=function(g){for(var v=g>1?1:g,b=v,T=0;T<8;++T){var S=f(b)-v,_=p(b);if(Math.abs(S-v)<tr||_<tr)return h(b);b=y(b-S/_)}return h(b)};return m.isStepper=!1,m},J_=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,s=i===void 0?8:i,a=t.dt,o=a===void 0?17:a,u=function(l,f,h){var p=-(l-f)*n,y=h*s,m=h+(p-y)*o/1e3,d=h*o/1e3+l;return Math.abs(d-f)<tr&&Math.abs(m)<tr?[f,0]:[d,m]};return u.isStepper=!0,u.dt=o,u},Q_=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Bh(i);case"spring":return J_();default:if(i.split("(")[0]==="cubic-bezier")return Bh(i)}return typeof i=="function"?i:null};function wt(e){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wt(e)}function kh(e){return rA(e)||tA(e)||Gm(e)||eA()}function eA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tA(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rA(e){if(Array.isArray(e))return Za(e)}function Nh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nh(Object(r),!0).forEach(function(n){Ya(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ya(e,t,r){return t=nA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nA(e){var t=iA(e,"string");return wt(t)==="symbol"?t:String(t)}function iA(e,t){if(wt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sA(e,t){return uA(e)||oA(e,t)||Gm(e,t)||aA()}function aA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
17
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gm(e,t){if(e){if(typeof e=="string")return Za(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Za(e,t)}}function Za(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function oA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,s,a,o=[],u=!0,c=!1;try{if(s=(r=r.call(e)).next,t!==0)for(;!(u=(n=s.call(r)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}function uA(e){if(Array.isArray(e))return e}var rr=function(t,r,n){return t+(r-t)*n},Ja=function(t){var r=t.from,n=t.to;return r!==n},cA=function e(t,r,n){var i=yt(function(s,a){if(Ja(a)){var o=t(a.from,a.to,a.velocity),u=sA(o,2),c=u[0],l=u[1];return Y(Y({},a),{},{from:c,velocity:l})}return a},r);return n<1?yt(function(s,a){return Ja(a)?Y(Y({},a),{},{velocity:rr(a.velocity,i[s].velocity,n),from:rr(a.from,i[s].from,n)}):a},r):e(t,i,n-1)};const lA=(function(e,t,r,n,i){var s=k_(e,t),a=s.reduce(function(d,g){return Y(Y({},d),{},Ya({},g,[e[g],t[g]]))},{}),o=s.reduce(function(d,g){return Y(Y({},d),{},Ya({},g,{from:e[g],velocity:0,to:t[g]}))},{}),u=-1,c,l,f=function(){return null},h=function(){return yt(function(g,v){return v.from},o)},p=function(){return!Object.values(o).filter(Ja).length},y=function(g){c||(c=g);var v=g-c,b=v/r.dt;o=cA(r,o,b),i(Y(Y(Y({},e),t),h())),c=g,p()||(u=requestAnimationFrame(f))},m=function(g){l||(l=g);var v=(g-l)/n,b=yt(function(S,_){return rr.apply(void 0,kh(_).concat([r(v)]))},a);if(i(Y(Y(Y({},e),t),b)),v<1)u=requestAnimationFrame(f);else{var T=yt(function(S,_){return rr.apply(void 0,kh(_).concat([r(1)]))},a);i(Y(Y(Y({},e),t),T))}};return f=r.isStepper?y:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(u)}}});function Je(e){"@babel/helpers - typeof";return Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Je(e)}var fA=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function hA(e,t){if(e==null)return{};var r=dA(e,t),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dA(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Ys(e){return gA(e)||yA(e)||mA(e)||pA()}function pA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mA(e,t){if(e){if(typeof e=="string")return Qa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qa(e,t)}}function yA(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gA(e){if(Array.isArray(e))return Qa(e)}function Qa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Uh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uh(Object(r),!0).forEach(function(n){ft(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ft(e,t,r){return t=$m(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$m(n.key),n)}}function TA(e,t,r){return t&&bA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $m(e){var t=SA(e,"string");return Je(t)==="symbol"?t:String(t)}function SA(e,t){if(Je(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Je(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _A(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eo(e,t)}function eo(e,t){return eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eo(e,t)}function AA(e){var t=wA();return function(){var n=nr(e),i;if(t){var s=nr(this).constructor;i=Reflect.construct(n,arguments,s)}else i=n.apply(this,arguments);return to(this,i)}}function to(e,t){if(t&&(Je(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ro(e)}function ro(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wA(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nr(e){return nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nr(e)}var Ko=(function(e){_A(r,e);var t=AA(r);function r(n,i){var s;vA(this,r),s=t.call(this,n,i);var a=s.props,o=a.isActive,u=a.attributeName,c=a.from,l=a.to,f=a.steps,h=a.children,p=a.duration;if(s.handleStyleChange=s.handleStyleChange.bind(ro(s)),s.changeStyle=s.changeStyle.bind(ro(s)),!o||p<=0)return s.state={style:{}},typeof h=="function"&&(s.state={style:l}),to(s);if(f&&f.length)s.state={style:f[0].style};else if(c){if(typeof h=="function")return s.state={style:c},to(s);s.state={style:u?ft({},u,c):c}}else s.state={style:{}};return s}return TA(r,[{key:"componentDidMount",value:function(){var i=this.props,s=i.isActive,a=i.canBegin;this.mounted=!0,!(!s||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var s=this.props,a=s.isActive,o=s.canBegin,u=s.attributeName,c=s.shouldReAnimate,l=s.to,f=s.from,h=this.state.style;if(o){if(!a){var p={style:u?ft({},u,l):l};this.state&&h&&(u&&h[u]!==l||!u&&h!==l)&&this.setState(p);return}if(!(M_(i.to,l)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||c?f:i.to;if(this.state&&h){var d={style:u?ft({},u,m):m};(u&&h[u]!==m||!u&&h!==m)&&this.setState(d)}this.runAnimation(le(le({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var s=this,a=i.from,o=i.to,u=i.duration,c=i.easing,l=i.begin,f=i.onAnimationEnd,h=i.onAnimationStart,p=lA(a,o,Q_(c),u,this.changeStyle),y=function(){s.stopJSAnimation=p()};this.manager.start([h,l,y,u,f])}},{key:"runStepAnimation",value:function(i){var s=this,a=i.steps,o=i.begin,u=i.onAnimationStart,c=a[0],l=c.style,f=c.duration,h=f===void 0?0:f,p=function(m,d,g){if(g===0)return m;var v=d.duration,b=d.easing,T=b===void 0?"ease":b,S=d.style,_=d.properties,A=d.onAnimationEnd,R=g>0?a[g-1]:d,q=_||Object.keys(S);if(typeof T=="function"||T==="spring")return[].concat(Ys(m),[s.runJSAnimation.bind(s,{from:R.style,to:S,duration:v,easing:T}),v]);var E=Lh(q,v,T),w=le(le(le({},R.style),S),{},{transition:E});return[].concat(Ys(m),[w,v,A]).filter(N_)};return this.manager.start([u].concat(Ys(a.reduce(p,[l,Math.max(h,o)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=L_());var s=i.begin,a=i.duration,o=i.attributeName,u=i.to,c=i.easing,l=i.onAnimationStart,f=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var m=o?ft({},o,u):u,d=Lh(Object.keys(m),a,c);y.start([l,s,le(le({},m),{},{transition:d}),a,f])}},{key:"render",value:function(){var i=this.props,s=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var o=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=hA(i,fA),c=C.Children.count(s),l=this.state.style;if(typeof s=="function")return s(l);if(!o||c===0||a<=0)return s;var f=function(p){var y=p.props,m=y.style,d=m===void 0?{}:m,g=y.className,v=C.cloneElement(p,le(le({},u),{},{style:le(le({},d),l),className:g}));return v};return c===1?f(C.Children.only(s)):Hm.createElement("div",null,C.Children.map(s,function(h){return f(h)}))}}]),r})(C.PureComponent);Ko.displayName="Animate";Ko.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ko.propTypes={from:D.oneOfType([D.object,D.string]),to:D.oneOfType([D.object,D.string]),attributeName:D.string,duration:D.number,begin:D.number,easing:D.oneOfType([D.string,D.func]),steps:D.arrayOf(D.shape({duration:D.number.isRequired,style:D.object.isRequired,easing:D.oneOfType([D.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),D.func]),properties:D.arrayOf("string"),onAnimationEnd:D.func})),children:D.oneOfType([D.node,D.func]),isActive:D.bool,canBegin:D.bool,onAnimationEnd:D.func,shouldReAnimate:D.bool,onAnimationStart:D.func,onAnimationReStart:D.func};var Zs,Gh;function xA(){if(Gh)return Zs;Gh=1;var e=mr(),t=wm(),r=Te();function n(i,s){return i&&i.length?e(i,r(s,2),t):void 0}return Zs=n,Zs}var PA=xA();const Rw=F(PA);var Js,$h;function RA(){if($h)return Js;$h=1;var e=mr(),t=Te(),r=xm();function n(i,s){return i&&i.length?e(i,t(s,2),r):void 0}return Js=n,Js}var EA=RA();const Ew=F(EA);var Qs,Wh;function CA(){if(Wh)return Qs;Wh=1;var e=pm(),t=e(Object.getPrototypeOf,Object);return Qs=t,Qs}var ea,Kh;function MA(){if(Kh)return ea;Kh=1;var e=_e(),t=CA(),r=Ae(),n="[object Object]",i=Function.prototype,s=Object.prototype,a=i.toString,o=s.hasOwnProperty,u=a.call(Object);function c(l){if(!r(l)||e(l)!=n)return!1;var f=t(l);if(f===null)return!0;var h=o.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&a.call(h)==u}return ea=c,ea}var qA=MA();const Cw=F(qA);var ta,Hh;function OA(){if(Hh)return ta;Hh=1;var e=_e(),t=Ae(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return ta=n,ta}var IA=OA();const Mw=F(IA);var ra,zh;function DA(){if(zh)return ra;zh=1;var e=Math.ceil,t=Math.max;function r(n,i,s,a){for(var o=-1,u=t(e((i-n)/(s||1)),0),c=Array(u);u--;)c[a?u:++o]=n,n+=s;return c}return ra=r,ra}var na,Xh;function Wm(){if(Xh)return na;Xh=1;var e=Am(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var s=i<0?-1:1;return s*r}return i===i?i:0}return na=n,na}var ia,Yh;function VA(){if(Yh)return ia;Yh=1;var e=DA(),t=pr(),r=Wm();function n(i){return function(s,a,o){return o&&typeof o!="number"&&t(s,a,o)&&(a=o=void 0),s=r(s),a===void 0?(a=s,s=0):a=r(a),o=o===void 0?s<a?1:-1:r(o),e(s,a,o,i)}}return ia=n,ia}var sa,Zh;function jA(){if(Zh)return sa;Zh=1;var e=VA(),t=e();return sa=t,sa}var LA=jA();const qw=F(LA);var aa,Jh;function FA(){if(Jh)return aa;Jh=1;var e=Go();function t(r,n){var i;return e(r,function(s,a,o){return i=n(s,a,o),!i}),!!i}return aa=t,aa}var oa,Qh;function BA(){if(Qh)return oa;Qh=1;var e=om(),t=Te(),r=FA(),n=re(),i=pr();function s(a,o,u){var c=n(a)?e:r;return u&&i(a,o,u)&&(o=void 0),c(a,t(o,3))}return oa=s,oa}var kA=BA();const Ow=F(kA);var ua,ed;function NA(){if(ed)return ua;ed=1;var e=_m();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return ua=t,ua}var ca,td;function UA(){if(td)return ca;td=1;var e=NA(),t=Tm(),r=Te();function n(i,s){var a={};return s=r(s,3),t(i,function(o,u,c){e(a,u,s(o,u,c))}),a}return ca=n,ca}var GA=UA();const Iw=F(GA);var la,rd;function $A(){if(rd)return la;rd=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return la=e,la}var fa,nd;function WA(){if(nd)return fa;nd=1;var e=Go();function t(r,n){var i=!0;return e(r,function(s,a,o){return i=!!n(s,a,o),i}),i}return fa=t,fa}var ha,id;function KA(){if(id)return ha;id=1;var e=$A(),t=WA(),r=Te(),n=re(),i=pr();function s(a,o,u){var c=n(a)?e:t;return u&&i(a,o,u)&&(o=void 0),c(a,r(o,3))}return ha=s,ha}var HA=KA();const Dw=F(HA);var da,sd;function zA(){if(sd)return da;sd=1;var e=Te(),t=Mt(),r=dr();function n(i){return function(s,a,o){var u=Object(s);if(!t(s)){var c=e(a,3);s=r(s),a=function(f){return c(u[f],f,u)}}var l=i(s,a,o);return l>-1?u[c?s[l]:l]:void 0}}return da=n,da}var pa,ad;function XA(){if(ad)return pa;ad=1;var e=Wm();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return pa=t,pa}var ma,od;function YA(){if(od)return ma;od=1;var e=vm(),t=Te(),r=XA(),n=Math.max;function i(s,a,o){var u=s==null?0:s.length;if(!u)return-1;var c=o==null?0:r(o);return c<0&&(c=n(u+c,0)),e(s,t(a,3),c)}return ma=i,ma}var ya,ud;function ZA(){if(ud)return ya;ud=1;var e=zA(),t=YA(),r=e(t);return ya=r,ya}ZA();var JA=Qp();const Vw=F(JA);var ga={exports:{}},cd;function QA(){return cd||(cd=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(u,c,l){this.fn=u,this.context=c,this.once=l||!1}function s(u,c,l,f,h){if(typeof l!="function")throw new TypeError("The listener must be a function");var p=new i(l,f||u,h),y=r?r+c:c;return u._events[y]?u._events[y].fn?u._events[y]=[u._events[y],p]:u._events[y].push(p):(u._events[y]=p,u._eventsCount++),u}function a(u,c){--u._eventsCount===0?u._events=new n:delete u._events[c]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],l,f;if(this._eventsCount===0)return c;for(f in l=this._events)t.call(l,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(l)):c},o.prototype.listeners=function(c){var l=r?r+c:c,f=this._events[l];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,y=new Array(p);h<p;h++)y[h]=f[h].fn;return y},o.prototype.listenerCount=function(c){var l=r?r+c:c,f=this._events[l];return f?f.fn?1:f.length:0},o.prototype.emit=function(c,l,f,h,p,y){var m=r?r+c:c;if(!this._events[m])return!1;var d=this._events[m],g=arguments.length,v,b;if(d.fn){switch(d.once&&this.removeListener(c,d.fn,void 0,!0),g){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,l),!0;case 3:return d.fn.call(d.context,l,f),!0;case 4:return d.fn.call(d.context,l,f,h),!0;case 5:return d.fn.call(d.context,l,f,h,p),!0;case 6:return d.fn.call(d.context,l,f,h,p,y),!0}for(b=1,v=new Array(g-1);b<g;b++)v[b-1]=arguments[b];d.fn.apply(d.context,v)}else{var T=d.length,S;for(b=0;b<T;b++)switch(d[b].once&&this.removeListener(c,d[b].fn,void 0,!0),g){case 1:d[b].fn.call(d[b].context);break;case 2:d[b].fn.call(d[b].context,l);break;case 3:d[b].fn.call(d[b].context,l,f);break;case 4:d[b].fn.call(d[b].context,l,f,h);break;default:if(!v)for(S=1,v=new Array(g-1);S<g;S++)v[S-1]=arguments[S];d[b].fn.apply(d[b].context,v)}}return!0},o.prototype.on=function(c,l,f){return s(this,c,l,f,!1)},o.prototype.once=function(c,l,f){return s(this,c,l,f,!0)},o.prototype.removeListener=function(c,l,f,h){var p=r?r+c:c;if(!this._events[p])return this;if(!l)return a(this,p),this;var y=this._events[p];if(y.fn)y.fn===l&&(!h||y.once)&&(!f||y.context===f)&&a(this,p);else{for(var m=0,d=[],g=y.length;m<g;m++)(y[m].fn!==l||h&&!y[m].once||f&&y[m].context!==f)&&d.push(y[m]);d.length?this._events[p]=d.length===1?d[0]:d:a(this,p)}return this},o.prototype.removeAllListeners=function(c){var l;return c?(l=r?r+c:c,this._events[l]&&a(this,l)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,e.exports=o})(ga)),ga.exports}var ew=QA();const jw=F(ew);export{Ko as A,Dw as B,Iw as C,Vw as D,Ow as E,jw as F,iw as G,vw as I,dw as a,hw as b,ow as c,lw as d,cw as e,sw as f,aw as g,mw as h,uw as i,xw as j,Sw as k,bw as l,Tw as m,_w as n,Aw as o,ww as p,Pw as q,fw as r,yw as s,gw as t,pw as u,Rw as v,Ew as w,Cw as x,Mw as y,qw as z};
19
- //# sourceMappingURL=vendor-CH80ylbS.js.map