Files
onnx-voice-changer/frontend/_next/static/chunks/01yjdu1pd4sew.js
T
akukanara 9d876de930 feat: refactor and optimize frontend with Next.js App Router, TypeScript, and Tailwind CSS
- Complete refactoring of old frontend into Next.js App Router workspace
- Redesigned sidebar collapsing animation with absolute toggle positioning
- Resolved visual canvas bleed transitions between light/dark themes
- Added custom dark theme variant for toggle switch buttons
- Implemented full localization across Indonesian, English, Spanish, Japanese, and Chinese
- Synchronized HTML document themes to apply dark mode styles to portals/overlays
2026-05-31 16:46:57 +07:00

9 lines
245 KiB
JavaScript

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52683,e=>{"use strict";let t,i,r;var n,s=e.i(43476),a=e.i(71645);let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],l=new Set([...o,"pathRotation"]),c=(e,t,i)=>i>t?t:i<e?e:i,d={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},u={...d,transform:e=>c(0,1,e)},h={...d,default:1},p=e=>Math.round(1e5*e)/1e5,m=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,f=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g=(e,t)=>i=>!!("string"==typeof i&&f.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),x=(e,t,i)=>r=>{if("string"!=typeof r)return r;let[n,s,a,o]=r.match(m);return{[e]:parseFloat(n),[t]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},v={...d,transform:e=>Math.round(c(0,255,e))},b={test:g("rgb","red"),parse:x("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:r=1})=>"rgba("+v.transform(e)+", "+v.transform(t)+", "+v.transform(i)+", "+p(u.transform(r))+")"},y={test:g("#"),parse:function(e){let t="",i="",r="",n="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),r=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),r=e.substring(3,4),n=e.substring(4,5),t+=t,i+=i,r+=r,n+=n),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:b.transform},k=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),w=k("deg"),j=k("%"),S=k("px"),z=k("vh"),C=k("vw"),P={...j,parse:e=>j.parse(e)/100,transform:e=>j.transform(100*e)},T={test:g("hsl","hue"),parse:x("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:r=1})=>"hsla("+Math.round(e)+", "+j.transform(p(t))+", "+j.transform(p(i))+", "+p(u.transform(r))+")"},M={test:e=>b.test(e)||y.test(e)||T.test(e),parse:e=>b.test(e)?b.parse(e):T.test(e)?T.parse(e):y.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?b.transform(e):T.transform(e),getAnimatableNone:e=>{let t=M.parse(e);return t.alpha=0,M.transform(t)}},N=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,A="number",E="color",D=/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 V(e){let t=e.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,a=t.replace(D,e=>(M.test(e)?(r.color.push(s),n.push(E),i.push(M.parse(e))):e.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(e)):(r.number.push(s),n.push(A),i.push(parseFloat(e))),++s,"${}")).split("${}");return{values:i,split:a,indexes:r,types:n}}function L({split:e,types:t}){let i=e.length;return r=>{let n="";for(let s=0;s<i;s++)if(n+=e[s],void 0!==r[s]){let e=t[s];e===A?n+=p(r[s]):e===E?n+=M.transform(r[s]):n+=r[s]}return n}}let R={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(m)?.length||0)+(e.match(N)?.length||0)>0},parse:function(e){return V(e).values},createTransformer:function(e){return L(V(e))},getAnimatableNone:function(e){let t=V(e);return L(t)(t.values.map((e,i)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:M.test(e)?M.getAnimatableNone(e):e)(e,t.split[i])))}},I=new Set(["brightness","contrast","saturate","opacity"]);function F(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=i.match(m)||[];if(!r)return e;let n=i.replace(r,""),s=+!!I.has(t);return r!==i&&(s*=100),t+"("+s+n+")"}let B=/\b([a-z-]*)\(.*?\)/gu,O={...R,getAnimatableNone:e=>{let t=e.match(B);return t?t.map(F).join(" "):e}},_={...R,getAnimatableNone:e=>{let t=R.parse(e);return R.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},$={...d,transform:Math.round},W={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,rotate:w,pathRotation:w,rotateX:w,rotateY:w,rotateZ:w,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:w,skewX:w,skewY:w,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:u,originX:P,originY:P,originZ:S,zIndex:$,fillOpacity:u,strokeOpacity:u,numOctaves:$},U={...W,color:M,backgroundColor:M,outlineColor:M,fill:M,stroke:M,borderColor:M,borderTopColor:M,borderRightColor:M,borderBottomColor:M,borderLeftColor:M,filter:O,WebkitFilter:O,mask:_,WebkitMask:_},G=e=>U[e],H=()=>({translate:0,scale:1,origin:0,originPoint:0}),X=()=>({x:H(),y:H()}),q=()=>({min:0,max:0}),K=()=>({x:q(),y:q()}),Y=e=>!!(e&&e.getVelocity),Z=new Set(["width","height","top","left","right","bottom",...o]),J=e=>t=>t.test(e),Q=[d,S,j,w,C,z,{test:e=>"auto"===e,parse:e=>e}],ee=e=>Q.find(J(e));var et=e.i(47167);let ei=()=>{},er=()=>{};et.default;let en=e=>t=>"string"==typeof t&&t.startsWith(e),es=en("--"),ea=en("var(--"),eo=e=>!!ea(e)&&el.test(e.split("/*")[0].trim()),el=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ec(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let ed=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eu=e=>180*e/Math.PI,eh=e=>em(eu(Math.atan2(e[1],e[0]))),ep={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:eh,rotateZ:eh,skewX:e=>eu(Math.atan(e[1])),skewY:e=>eu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},em=e=>((e%=360)<0&&(e+=360),e),ef=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ex={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ef,scaleY:eg,scale:e=>(ef(e)+eg(e))/2,rotateX:e=>em(eu(Math.atan2(e[6],e[5]))),rotateY:e=>em(eu(Math.atan2(-e[2],e[0]))),rotateZ:eh,rotate:eh,skewX:e=>eu(Math.atan(e[4])),skewY:e=>eu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ev(e){return+!!e.includes("scale")}function eb(e,t){let i,r;if(!e||"none"===e)return ev(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=ex,r=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=ep,r=t}if(!r)return ev(t);let s=i[t],a=r[1].split(",").map(ey);return"function"==typeof s?s(a):a[s]}function ey(e){return parseFloat(e.trim())}let ek=e=>e===d||e===S,ew=new Set(["x","y","z"]),ej=o.filter(e=>!ew.has(e)),eS={width:({x:e},{paddingLeft:t="0",paddingRight:i="0",boxSizing:r})=>{let n=e.max-e.min;return"border-box"===r?n:n-parseFloat(t)-parseFloat(i)},height:({y:e},{paddingTop:t="0",paddingBottom:i="0",boxSizing:r})=>{let n=e.max-e.min;return"border-box"===r?n:n-parseFloat(t)-parseFloat(i)},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})=>eb(t,"x"),y:(e,{transform:t})=>eb(t,"y")};eS.translateX=eS.x,eS.translateY=eS.y;let ez=e=>e,eC={},eP=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eT(e,t){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,a=eP.reduce((e,i)=>(e[i]=function(e,t){let i=new Set,r=new Set,n=!1,s=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function c(t){a.has(t)&&(d.schedule(t),e()),l++,t(o)}let d={schedule:(e,t=!1,s=!1)=>{let o=s&&n?i:r;return t&&a.add(e),o.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(o=e,n){s=!0;return}n=!0;let a=i;i=r,r=a,i.forEach(c),t,l=0,i.clear(),n=!1,s&&(s=!1,d.process(e))}};return d}(s,t?i:void 0),e),{}),{setup:o,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:p,postRender:m}=a,f=()=>{let s=eC.useManualTiming,a=s?n.timestamp:performance.now();i=!1,s||(n.delta=r?1e3/60:Math.max(Math.min(a-n.timestamp,40),1)),n.timestamp=a,n.isProcessing=!0,o.process(n),l.process(n),c.process(n),d.process(n),u.process(n),h.process(n),p.process(n),m.process(n),n.isProcessing=!1,i&&t&&(r=!1,e(f))};return{schedule:eP.reduce((t,s)=>{let o=a[s];return t[s]=(t,s=!1,a=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||e(f)),o.schedule(t,s,a)),t},{}),cancel:e=>{for(let t=0;t<eP.length;t++)a[eP[t]].cancel(e)},state:n,steps:a}}let{schedule:eM,cancel:eN,state:eA,steps:eE}=eT("u">typeof requestAnimationFrame?requestAnimationFrame:ez,!0),eD=new Set,eV=!1,eL=!1,eR=!1;function eI(){if(eL){let e=Array.from(eD).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,r=(t=[],ej.forEach(i=>{let r=e.getValue(i);void 0!==r&&(t.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),t);r.length&&(i.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eL=!1,eV=!1,eD.forEach(e=>e.complete(eR)),eD.clear()}function eF(){eD.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eL=!0)})}class eB{constructor(e,t,i,r,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(eD.add(this),eV||(eV=!0,eM.read(eF),eM.resolveKeyframes(eI))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:r}=this;if(null===e[0]){let n=r?.get(),s=e[e.length-1];if(void 0!==n)e[0]=n;else if(i&&t){let r=i.readValue(t,s);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===n&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eD.delete(this)}cancel(){"scheduled"===this.state&&(eD.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eO=new Set([O,_]);function e_(e,t){let i=G(e);return eO.has(i)||(i=R),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let e$=new Set(["auto","none","0"]);class eW extends eB{constructor(e,t,i,r,n){super(e,t,i,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let r=e[i];if("string"==typeof r&&eo(r=r.trim())){let n=function e(t,i,r=1){er(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,s]=function(e){let t=ed.exec(e);if(!t)return[,];let[,i,r,n]=t;return[`--${i??r}`,n]}(t);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return eo(s)?e(s,i,r+1):s}(r,t.current);void 0!==n&&(e[i]=n),i===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Z.has(i)||2!==e.length)return;let[r,n]=e,s=ee(r),a=ee(n);if(ec(r)!==ec(n)&&eS[i]){this.needsMeasurement=!0;return}if(s!==a)if(ek(s)&&ek(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else eS[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&i.push(t);i.length&&function(e,t,i){let r,n=0;for(;n<e.length&&!r;){let t=e[n];"string"==typeof t&&!e$.has(t)&&V(t).values.length&&(r=e[n]),n++}if(r&&i)for(let n of t)e[n]=e_(i,r)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eS[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(i,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let n=i.length-1,s=i[n];i[n]=eS[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let eU=e=>1e3*e;function eG(e,t){-1===e.indexOf(t)&&e.push(t)}function eH(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class eX{constructor(){this.subscriptions=[]}add(e){return eG(this.subscriptions,e),()=>eH(this.subscriptions,e)}notify(e,t,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eq(e,t,i){t.startsWith("--")?e.style.setProperty(t,i):e.style[t]=i}function eK(e){let t;return()=>(void 0===t&&(t=e()),t)}let eY={};function eZ(e,t){let i=eK(e);return()=>eY[t]??i()}let eJ=eZ(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),eQ=e=>null!==e;function e0(e,{repeat:t,repeatType:i="loop"},r,n=1){let s=e.filter(eQ),a=n<0||t&&"loop"!==i&&t%2==1?0:s.length-1;return a&&void 0!==r?r:s[a]}class e1{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e2={layout:0,mainThread:0,waapi:0},e5=e=>Array.isArray(e)&&"number"==typeof e[0],e4=eZ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),e3=(e,t,i=10)=>{let r="",n=Math.max(Math.round(t/i),2);for(let t=0;t<n;t++)r+=Math.round(1e4*e(t/(n-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},e8=([e,t,i,r])=>`cubic-bezier(${e}, ${t}, ${i}, ${r})`,e6={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e8([0,.65,.55,1]),circOut:e8([.55,0,1,.45]),backIn:e8([.31,.01,.66,-.59]),backOut:e8([.33,1.53,.69,.99])};function e9(e){return"function"==typeof e&&"applyToOptions"in e}class e7 extends e1{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:i,keyframes:r,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=e,er("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return e9(e)&&e4()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},c){let d={[t]:i};l&&(d.offset=l);let u=function e(t,i){if(t)return"function"==typeof t?e4()?e3(t,i):"ease-out":e5(t)?e8(t):Array.isArray(t)?t.map(t=>e(t,i)||e6.easeOut):e6[t]}(o,n);Array.isArray(u)&&(d.easing=u);let h={delay:r,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};c&&(h.pseudoElement=c);let p=e.animate(d,h);return p}(t,i,r,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let e=e0(r,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),eq(t,i,e),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=eU(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:i,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&eJ())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),i&&(this.animation.rangeEnd=i),ez):r(this)}}let te=new Set(["opacity","clipPath","filter","transform"]),{schedule:tt}=eT(queueMicrotask,!1);function ti(){t=void 0}let tr={now:()=>(void 0===t&&tr.set(eA.isProcessing||eC.useManualTiming?eA.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(ti)}},tn=(e,t)=>t?1e3/t*e:0,ts;class ta{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tr.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tr.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eX);let i=this.events[e].add(t);return"change"===e?()=>{i(),eM.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return ts&&ts.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=tr.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tn(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function to(e,t){return new ta(e,t)}let tl=[...Q,M,R],tc=new WeakMap;function td(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tu(e){return"string"==typeof e||Array.isArray(e)}let th=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tp=["initial",...th];function tm(e){return td(e.animate)||tp.some(t=>tu(e[t]))}function tf(e){return!!(tm(e)||e.variants)}let tg={current:null},tx={current:!1},tv="u">typeof window;function tb(e){let t=[{},{}];return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function ty(e,t,i,r){if("function"==typeof t){let[n,s]=tb(r);t=t(void 0!==i?i:e.custom,n,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,s]=tb(r);t=t(void 0!==i?i:e.custom,n,s)}return t}let tk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tw={};class tj{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:r,skipAnimations:n,blockInitialAnimation:s,visualState:a},o={}){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=eB,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=()=>{let e=tr.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eM.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=n,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=tm(t),this.isVariantNode=tf(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==l[e]&&Y(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,tc.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tx.current||function(){if(tx.current=!0,tv)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tg.current=e.matches;e.addEventListener("change",t),t()}else tg.current=!1}(),this.shouldReduceMotion=tg.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eN(this.notifyUpdate),eN(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&te.has(e)&&this.current instanceof HTMLElement){let{factory:i,keyframes:r,times:n,ease:s,duration:a}=t.accelerate,o=new e7({element:this.current,name:e,keyframes:r,times:n,ease:s,duration:eU(a)}),l=i(o);this.valueSubscriptions.set(e,()=>{l(),o.cancel()});return}let r=l.has(e);r&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eM.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),i&&i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tw){let t=tw[e];if(!t)continue;let{isEnabled:i,Feature:r}=t;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tk.length;t++){let i=tk[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=e["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(e,t,i){for(let r in t){let n=t[r],s=i[r];if(Y(n))e.addValue(r,n);else if(Y(s))e.addValue(r,to(n,{owner:e}));else if(s!==n)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(r);e.addValue(r,to(void 0!==t?t:n,{owner:e}))}}for(let r in i)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=to(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){let r,n;if("string"==typeof i&&(r=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let r;r=i,!tl.find(J(r))&&R.test(t)&&(i=e_(e,t))}this.setBaseTarget(e,Y(i)?i.get():i)}return Y(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=ty(this.props,i,this.presenceContext?.custom);r&&(t=r[e])}if(i&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||Y(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new eX),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){tt.render(this.render)}}class tS extends tj{constructor(){super(...arguments),this.KeyframeResolver=eW}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let i=e.style;return i?i[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Y(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tz(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tC=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tT=o.length;function tM(e,t,i){let{style:r,vars:n,transformOrigin:s}=e,a=!1,c=!1;for(let e in t){let i=t[e];if(l.has(e)){a=!0;continue}if(es(e)){n[e]=i;continue}{let t=tC(i,W[e]);e.startsWith("origin")?(c=!0,s[e]=t):r[e]=t}}if(!t.transform&&(a||i?r.transform=function(e,t,i){let r="",n=!0;for(let s=0;s<tT;s++){let a=o[s],l=e[a];if(void 0===l)continue;let c=!0;if("number"==typeof l)c=l===+!!a.startsWith("scale");else{let e=parseFloat(l);c=a.startsWith("scale")?1===e:0===e}if(!c||i){let e=tC(l,W[a]);if(!c){n=!1;let t=tP[a]||a;r+=`${t}(${e}) `}i&&(t[a]=e)}}let s=e.pathRotation;return s&&(n=!1,r+=`rotate(${tC(s,W.pathRotation)}) `),r=r.trim(),i?r=i(t,n?"":r):n&&(r="none"),r}(t,e.transform,i):r.transform&&(r.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:i=0}=s;r.transformOrigin=`${e} ${t} ${i}`}}let tN={offset:"stroke-dashoffset",array:"stroke-dasharray"},tA={offset:"strokeDashoffset",array:"strokeDasharray"},tE=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tD(e,{attrX:t,attrY:i,attrScale:r,pathLength:n,pathSpacing:s=1,pathOffset:a=0,...o},l,c,d){if(tM(e,o,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:u,style:h}=e;for(let e of(u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete u.transformBox),tE))void 0!==u[e]&&(h[e]=u[e],delete u[e]);void 0!==t&&(u.x=t),void 0!==i&&(u.y=i),void 0!==r&&(u.scale=r),void 0!==n&&function(e,t,i=1,r=0,n=!0){e.pathLength=1;let s=n?tN:tA;e[s.offset]=`${-r}`,e[s.array]=`${t} ${i}`}(u,n,s,a,!1)}let tV=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"]),tL=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tR(e,{style:t,vars:i},r,n){let s,a=e.style;for(s in t)a[s]=t[s];for(s in n?.applyProjectionStyles(a,r),i)a.setProperty(s,i[s])}function tI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tF={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!S.test(e))return e;else e=parseFloat(e);let i=tI(e,t.target.x),r=tI(e,t.target.y);return`${i}% ${r}%`}},tB=(e,t,i)=>e+(t-e)*i,tO={borderRadius:{...tF,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tF,borderTopRightRadius:tF,borderBottomLeftRadius:tF,borderBottomRightRadius:tF,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let r=R.parse(e);if(r.length>5)return e;let n=R.createTransformer(e),s=+("number"!=typeof r[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;r[0+s]/=a,r[1+s]/=o;let l=tB(a,o,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}};function t_(e,{layout:t,layoutId:i}){return l.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!tO[e]||"opacity"===e)}function t$(e,t,i){let r=e.style,n=t?.style,s={};if(!r)return s;for(let t in r)(Y(r[t])||n&&Y(n[t])||t_(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(s[t]=r[t]);return s}function tW(e,t,i){let r=t$(e,t,i);for(let i in e)(Y(e[i])||Y(t[i]))&&(r[-1!==o.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return r}class tU extends tS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(l.has(t)){let e=G(t);return e&&e.default||0}return t=tV.has(t)?t:tz(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return tW(e,t,i)}build(e,t,i){tD(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,r){for(let i in tR(e,t,void 0,r),t.attrs)e.setAttribute(tV.has(i)?i:tz(i),t.attrs[i])}mount(e){this.isSVGTag=tL(e.tagName),super.mount(e)}}function tG({top:e,left:t,right:i,bottom:r}){return{x:{min:t,max:i},y:{min:e,max:r}}}function tH(e){return void 0===e||1===e}function tX({scale:e,scaleX:t,scaleY:i}){return!tH(e)||!tH(t)||!tH(i)}function tq(e){return tX(e)||tK(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tK(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function tY(e,t,i,r,n){return void 0!==n&&(e=r+n*(e-r)),r+i*(e-r)+t}function tZ(e,t=0,i=1,r,n){e.min=tY(e.min,t,i,r,n),e.max=tY(e.max,t,i,r,n)}function tJ(e,{x:t,y:i}){tZ(e.x,t.translate,t.scale,t.originPoint),tZ(e.y,i.translate,i.scale,i.originPoint)}function tQ(e,t){e.min+=t,e.max+=t}function t0(e,t,i,r,n=.5){let s=tB(e.min,e.max,n);tZ(e,t,i,s,r)}function t1(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function t2(e,t,i){let r=i??e;t0(e.x,t1(t.x,r.x),t.scaleX,t.scale,t.originX),t0(e.y,t1(t.y,r.y),t.scaleY,t.scale,t.originY)}function t5(e,t){return tG(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class t4 extends tS{constructor(){super(...arguments),this.type="html",this.renderInstance=tR}readValueFromInstance(e,t){if(l.has(t))return this.projection?.isProjecting?ev(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return eb(i,t)})(e,t);{let i=window.getComputedStyle(e),r=(es(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t5(e,t)}build(e,t,i){tM(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return t$(e,t,i)}}let t3=["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 t8(e){if("string"!=typeof e||e.includes("-"));else if(t3.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let t6=(0,a.createContext)({}),t9=(0,a.createContext)({strict:!1}),t7=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ie=(0,a.createContext)({});function it(e){return Array.isArray(e)?e.join(" "):e}let ii=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ir(e,t,i){for(let r in t)Y(t[r])||t_(r,i)||(e[r]=t[r])}let is=()=>({...ii(),attrs:{}}),ia=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 io(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ia.has(e)}let il=e=>!io(e);try{n=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof n&&(il=e=>e.startsWith("on")?!io(e):n(e))}catch{}function ic(e){return Y(e)?e.get():e}let id=(0,a.createContext)(null);function iu(e){let t=(0,a.useRef)(null);return null===t.current&&(t.current=e()),t.current}let ih=e=>(t,i)=>{let r=(0,a.useContext)(ie),n=(0,a.useContext)(id),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,r,n){return{latestValues:function(e,t,i,r){let n={},s=r(e,{});for(let e in s)n[e]=ic(s[e]);let{initial:a,animate:o}=e,l=tm(e),c=tf(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let d=!!i&&!1===i.initial,u=(d=d||!1===a)?o:a;if(u&&"boolean"!=typeof u&&!td(u)){let t=Array.isArray(u)?u:[u];for(let i=0;i<t.length;i++){let r=ty(e,t[i]);if(r){let{transitionEnd:e,transition:t,...i}=r;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(n[e]=t)}for(let t in e)n[t]=e[t]}}}return n}(i,r,n,e),renderState:t()}})(e,t,r,n);return i?s():iu(s)},ip=ih({scrapeMotionValuesFromProps:t$,createRenderState:ii}),im=ih({scrapeMotionValuesFromProps:tW,createRenderState:is}),ig={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"]},ix=!1;function iv(){return!function(){if(ix)return;let e={};for(let t in ig)e[t]={isEnabled:e=>ig[t].some(t=>!!e[t])};tw=e,ix=!0}(),tw}let ib=Symbol.for("motionComponentSymbol"),iy="data-"+tz("framerAppearId"),ik=(0,a.createContext)({});function iw(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let ij="u">typeof window?a.useLayoutEffect:a.useEffect;function iS(e,{forwardMotionProps:t=!1,type:i}={},r,n){r&&function(e){let t=iv();for(let i in e)t[i]={...t[i],...e[i]};tw=t}(r);let o=i?"svg"===i:t8(e),l=o?im:ip;function c(i,r){var c;let d,u,h,p={...(0,a.useContext)(t7),...i,layoutId:function({layoutId:e}){let t=(0,a.useContext)(t6).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:m}=p,f=function(e){let{initial:t,animate:i}=function(e,t){if(tm(e)){let{initial:t,animate:i}=e;return{initial:!1===t||tu(t)?t:void 0,animate:tu(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(ie));return(0,a.useMemo)(()=>({initial:t,animate:i}),[it(t),it(i)])}(i),g=l(i,m);if(!m&&"u">typeof window){(0,a.useContext)(t9).strict;let t=function(e){let{drag:t,layout:i}=iv();if(!t&&!i)return{};let r={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(p);d=t.MeasureLayout,f.visualElement=function(e,t,i,r,n,s){let{visualElement:o}=(0,a.useContext)(ie),l=(0,a.useContext)(t9),c=(0,a.useContext)(id),d=(0,a.useContext)(t7),u=d.reducedMotion,h=d.skipAnimations,p=(0,a.useRef)(null),m=(0,a.useRef)(!1);r=r||l.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:o,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:u,skipAnimations:h,isSVG:s}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let f=p.current,g=(0,a.useContext)(ik);f&&!f.projection&&n&&("html"===f.type||"svg"===f.type)&&function(e,t,i,r){let{layoutId:n,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:c,layoutAnchor:d,layoutCrossfade:u}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!a||o&&iw(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c,layoutAnchor:d})}(p.current,i,n,g);let x=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{f&&x.current&&f.update(i,c)});let v=i[iy],b=(0,a.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return ij(()=>{m.current=!0,f&&(x.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),b.current&&f.animationState&&f.animationState.animateChanges())}),(0,a.useEffect)(()=>{f&&(!b.current&&f.animationState&&f.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),f.enteringChildren=void 0)}),f}(e,g,p,n,t.ProjectionNode,o)}return(0,s.jsxs)(ie.Provider,{value:f,children:[d&&f.visualElement?(0,s.jsx)(d,{visualElement:f.visualElement,...p}):null,function(e,t,i,{latestValues:r},n,s=!1,o){let l=(o??t8(e)?function(e,t,i,r){let n=(0,a.useMemo)(()=>{let i=is();return tD(i,t,tL(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};ir(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let i,r,n={},s=(i=e.style||{},ir(r={},i,e),Object.assign(r,function({transformTemplate:e},t){return(0,a.useMemo)(()=>{let i=ii();return tM(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n})(t,r,n,e),c=function(e,t,i){let r={};for(let n in e)("values"!==n||"object"!=typeof e.values)&&!Y(e[n])&&(il(n)||!0===i&&io(n)||!t&&!io(n)||e.draggable&&n.startsWith("onDrag"))&&(r[n]=e[n]);return r}(t,"string"==typeof e,s),d=e!==a.Fragment?{...c,...l,ref:i}:{},{children:u}=t,h=(0,a.useMemo)(()=>Y(u)?u.get():u,[u]);return(0,a.createElement)(e,{...d,children:h})}(e,i,(c=f.visualElement,u=(0,a.useRef)(r),(0,a.useInsertionEffect)(()=>{u.current=r}),h=(0,a.useRef)(null),(0,a.useCallback)(e=>{e&&g.onMount?.(e),c&&(e?c.mount(e):c.unmount());let t=u.current;if("function"==typeof t)if(e){let i=t(e);"function"==typeof i&&(h.current=i)}else h.current?(h.current(),h.current=null):t(e);else t&&(t.current=e)},[c])),g,m,t,o)]})}c.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let d=(0,a.forwardRef)(c);return d[ib]=e,d}class iz{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iC(e,t,i){let r=e.getProps();return ty(r,t,void 0!==i?i:r.custom,e)}function iP(e,t){if(e?.inherit&&t){let{inherit:i,...r}=e;return{...t,...r}}return e}function iT(e,t){let i=e?.[t]??e?.default??e;return i!==e?iP(i,e):i}let iM=e=>Array.isArray(e);function iN(e,t){let i=e.getValue("willChange");if(Y(i)&&i.add)return i.add(t);if(!i&&eC.WillChange){let i=new eC.WillChange("auto");e.addValue("willChange",i),i.add(t)}}let iA=(...e)=>e.reduce((e,t)=>i=>t(e(i)));function iE(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function iD(e,t){return i=>i>0?t:e}let iV=(e,t,i)=>{let r=e*e,n=i*(t*t-r)+r;return n<0?0:Math.sqrt(n)},iL=[y,b,T];function iR(e){let t=iL.find(t=>t.test(e));if(ei(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===T&&(i=function({hue:e,saturation:t,lightness:i,alpha:r}){e/=360,i/=100;let n=0,s=0,a=0;if(t/=100){let r=i<.5?i*(1+t):i+t-i*t,o=2*i-r;n=iE(o,r,e+1/3),s=iE(o,r,e),a=iE(o,r,e-1/3)}else n=s=a=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*a),alpha:r}}(i)),i}let iI=(e,t)=>{let i=iR(e),r=iR(t);if(!i||!r)return iD(e,t);let n={...i};return e=>(n.red=iV(i.red,r.red,e),n.green=iV(i.green,r.green,e),n.blue=iV(i.blue,r.blue,e),n.alpha=tB(i.alpha,r.alpha,e),b.transform(n))},iF=new Set(["none","hidden"]);function iB(e,t){return i=>tB(e,t,i)}function iO(e){return"number"==typeof e?iB:"string"==typeof e?eo(e)?iD:M.test(e)?iI:iW:Array.isArray(e)?i_:"object"==typeof e?M.test(e)?iI:i$:iD}function i_(e,t){let i=[...e],r=i.length,n=e.map((e,i)=>iO(e)(e,t[i]));return e=>{for(let t=0;t<r;t++)i[t]=n[t](e);return i}}function i$(e,t){let i={...e,...t},r={};for(let n in i)void 0!==e[n]&&void 0!==t[n]&&(r[n]=iO(e[n])(e[n],t[n]));return e=>{for(let t in r)i[t]=r[t](e);return i}}let iW=(e,t)=>{let i=R.createTransformer(t),r=V(e),n=V(t);if(!(r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length))return ei(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iD(e,t);if(iF.has(e)&&!n.values.length||iF.has(t)&&!r.values.length)return iF.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return iA(i_(function(e,t){let i=[],r={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let s=t.types[n],a=e.indexes[s][r[s]],o=e.values[a]??0;i[n]=o,r[s]++}return i}(r,n),n.values),i)};function iU(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?tB(e,t,i):iO(e)(e,t)}let iG=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eM.update(t,e),stop:()=>eN(t),now:()=>eA.isProcessing?eA.timestamp:tr.now()}};function iH(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}let iX=.01,iq=2,iK=.005,iY=.5;function iZ(e,t){return e*Math.sqrt(1-t*t)}let iJ=["duration","bounce"],iQ=["stiffness","damping","mass"];function i0(e,t){return t.some(t=>void 0!==e[t])}function i1(e=.3,t=.3){let i,r,n,s,a,o,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:d,restDelta:u}=l,h=l.keyframes[0],p=l.keyframes[l.keyframes.length-1],m={done:!1,value:h},{stiffness:f,damping:g,mass:x,duration:v,velocity:b,isResolvedFromDuration:y}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!i0(e,iQ)&&i0(e,iJ))if(t.velocity=0,e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),r=i*i,n=2*c(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:n}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:r=1}){let n,s;ei(e<=eU(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=c(.05,1,a),e=c(.01,10,e/1e3),a<1?(n=t=>{let r=t*a,n=r*e;return .001-(r-i)/iZ(t,a)*Math.exp(-n)},s=t=>{let r=t*a*e,s=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-r),l=iZ(Math.pow(t,2),a);return(r*i+i-s)*o*(-n(t)+.001>0?-1:1)/l}):(n=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),s=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let r=i;for(let i=1;i<12;i++)r-=e(r)/t(r);return r}(n,s,5/e);if(e=eU(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),k=b||0,w=g/(2*Math.sqrt(f*x)),j=p-h,S=Math.sqrt(f/x)/1e3,z=5>Math.abs(j);if(d||(d=z?iX:iq),u||(u=z?iK:iY),w<1)n=iZ(S,w),s=(k+w*S*j)/n,i=e=>p-Math.exp(-w*S*e)*(s*Math.sin(n*e)+j*Math.cos(n*e)),a=w*S*s+j*n,o=w*S*j-s*n,r=e=>Math.exp(-w*S*e)*(a*Math.sin(n*e)+o*Math.cos(n*e));else if(1===w){i=e=>p-Math.exp(-S*e)*(j+(k+S*j)*e);let e=k+S*j;r=t=>Math.exp(-S*t)*(S*e*t-k)}else{let e=S*Math.sqrt(w*w-1);i=t=>{let i=Math.exp(-w*S*t),r=Math.min(e*t,300);return p-i*((k+w*S*j)*Math.sinh(r)+e*j*Math.cosh(r))/e};let t=(k+w*S*j)/e,n=w*S*t-j*e,s=w*S*j-t*e;r=t=>{let i=Math.exp(-w*S*t),r=Math.min(e*t,300);return i*(n*Math.sinh(r)+s*Math.cosh(r))}}let C={calculatedDuration:y&&v||null,velocity:e=>eU(r(e)),next:e=>{if(!y&&w<1){let t=Math.exp(-w*S*e),i=Math.sin(n*e),r=Math.cos(n*e),l=p-t*(s*i+j*r);return m.done=Math.abs(eU(t*(a*i+o*r)))<=d&&Math.abs(p-l)<=u,m.value=m.done?p:l,m}let t=i(e);return y?m.done=e>=v:m.done=Math.abs(eU(r(e)))<=d&&Math.abs(p-t)<=u,m.value=m.done?p:t,m},toString:()=>{let e=Math.min(iH(C),2e4),t=e3(t=>C.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return C}function i2(e,t,i){let r=Math.max(t-5,0);return tn(i-e(r),t-r)}function i5({keyframes:e,velocity:t=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:c=.5,restSpeed:d}){let u,h,p=e[0],m={done:!1,value:p},f=i*t,g=p+f,x=void 0===a?g:a(g);x!==g&&(f=x-p);let v=e=>-f*Math.exp(-e/r),b=e=>x+v(e),y=e=>{let t=v(e),i=b(e);m.done=Math.abs(t)<=c,m.value=m.done?x:i},k=e=>{let t;if(t=m.value,void 0!==o&&t<o||void 0!==l&&t>l){var i;u=e,h=i1({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:i2(b,e,m.value),damping:n,stiffness:s,restDelta:c,restSpeed:d})}};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==u||(t=!0,y(e),k(e)),void 0!==u&&e>=u)?h.next(e-u):(t||y(e),m)}}}i1.applyToOptions=e=>{let t=function(e,t=100,i){let r=i({...e,keyframes:[0,t]}),n=Math.min(iH(r),2e4);return{type:"keyframes",ease:e=>r.next(n*e).value/t,duration:n/1e3}}(e,100,i1);return e.ease=t.ease,e.duration=eU(t.duration),e.type="keyframes",e};let i4=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function i3(e,t,i,r){return e===t&&i===r?ez:n=>0===n||1===n?n:i4(function(e,t,i,r,n){let s,a,o=0;do(s=i4(a=t+(i-t)/2,r,n)-e)>0?i=a:t=a;while(Math.abs(s)>1e-7&&++o<12)return a}(n,0,1,e,i),t,r)}let i8=i3(.42,0,1,1),i6=i3(0,0,.58,1),i9=i3(.42,0,.58,1),i7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,re=e=>t=>1-e(1-t),rt=i3(.33,1.53,.69,.99),ri=re(rt),rr=i7(ri),rn=e=>e>=1?1:(e*=2)<1?.5*ri(e):.5*(2-Math.pow(2,-10*(e-1))),rs=e=>1-Math.sin(Math.acos(e)),ra=re(rs),ro=i7(rs),rl={linear:ez,easeIn:i8,easeInOut:i9,easeOut:i6,circIn:rs,circInOut:ro,circOut:ra,backIn:ri,backInOut:rr,backOut:rt,anticipate:rn},rc=e=>{if(e5(e)){er(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,r,n]=e;return i3(t,i,r,n)}return"string"==typeof e?(er(void 0!==rl[e],`Invalid easing type '${e}'`,"invalid-easing-type"),rl[e]):e},rd=(e,t,i)=>{let r=t-e;return r?(i-e)/r:1};function ru({duration:e=300,keyframes:t,times:i,ease:r="easeInOut"}){var n;let s,a=Array.isArray(r)&&"number"!=typeof r[0]?r.map(rc):rc(r),o={done:!1,value:t[0]},l=function(e,t,{clamp:i=!0,ease:r,mixer:n}={}){let s=e.length;if(er(s===t.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,i){let r=[],n=i||eC.mix||iU,s=e.length-1;for(let i=0;i<s;i++){let s=n(e[i],e[i+1]);t&&(s=iA(Array.isArray(t)?t[i]||ez:t,s)),r.push(s)}return r}(t,r,n),l=o.length,d=i=>{if(a&&i<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(i<e[r+1]);r++);let n=rd(e[r],e[r+1],i);return o[r](n)};return i?t=>d(c(e[0],e[s-1],t)):d}((n=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let r=1;r<=t;r++){let n=rd(0,t,r);e.push(tB(i,1,n))}}(s=[0],t.length-1),s),n.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||i9).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let rh={decay:i5,inertia:i5,tween:ru,keyframes:ru,spring:i1};function rp(e){"string"==typeof e.type&&(e.type=rh[e.type])}let rm=e=>e/100;class rf extends e1{constructor(e){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=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tr.now()&&this.tick(tr.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},e2.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;rp(e);let{type:t=ru,repeat:i=0,repeatDelay:r=0,repeatType:n,velocity:s=0}=e,{keyframes:a}=e,o=t||ru;o!==ru&&"number"!=typeof a[0]&&(this.mixKeyframes=iA(rm,iU(a[0],a[1])),a=[0,100]);let l=o({...e,keyframes:a});"mirror"===n&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iH(l));let{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let i,{generator:r,totalDuration:n,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return r.next(0);let{delay:d=0,keyframes:u,repeat:h,repeatType:p,repeatDelay:m,type:f,onUpdate:g,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-d*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let y=this.currentTime,k=r;if(h){let e=Math.min(this.currentTime,n)/o,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,h+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/o)):"mirror"===p&&(k=a)),y=c(0,1,i)*o}b?(this.delayState.value=u[0],i=this.delayState):i=k.next(y),s&&!b&&(i.value=s(i.value));let{done:w}=i;b||null===l||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return j&&f!==i5&&(i.value=e0(u,this.options,x,this.speed)),g&&g(i.value),j&&this.finish(),i}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=eU(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return i2(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tr.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=iG,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tr.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,e2.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let rg={anticipate:rn,backInOut:rr,circInOut:ro};class rx extends e7{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in rg&&(e.ease=rg[e.ease])}(e),rp(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:r,element:n,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new rf({...s,autoplay:!1}),o=Math.max(10,tr.now()-this.startTime),l=c(0,10,o-10),d=a.sample(o).value,{name:u}=this.options;n&&u&&eq(n,u,d),t.setWithVelocity(a.sample(Math.max(0,o-l)).value,d,l),a.stop()}}let rv=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(R.test(e)||"0"===e)&&!e.startsWith("url("));function rb(e){e.duration=0,e.type="keyframes"}let ry=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,rk=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rw=eK(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rj extends e1{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tr.now();const u={autoplay:e,delay:t,type:i,repeat:r,repeatDelay:n,repeatType:s,name:o,motionValue:l,element:c,...d},h=c?.KeyframeResolver||eB;this.keyframeResolver=new h(a,(e,t,i)=>this.onKeyframesResolved(e,t,u,!i),o,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,r){let n;this.keyframeResolver=void 0;let{name:s,type:a,velocity:o,delay:l,isHandoff:c,onUpdate:d}=i;this.resolvedAt=tr.now();let u=!0;!function(e,t,i,r){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],a=rv(n,t),o=rv(s,t);return ei(a===o,`You are trying to animate ${t} from "${n}" to "${s}". "${a?s:n}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||e9(i))&&r)}(e,s,a,o)&&(u=!1,(eC.instantAnimations||!l)&&d?.(e0(e,i,t)),e[0]=e[e.length-1],rb(i),i.repeat=0);let h={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},p=u&&!c&&function(e){let{motionValue:t,name:i,repeatDelay:r,repeatType:n,damping:s,type:a,keyframes:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:c}=t.owner.getProps();return rw()&&i&&(te.has(i)||rk.has(i)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&ry.test(e[t]))return!0;return!1}(o))&&("transform"!==i||!c)&&!l&&!r&&"mirror"!==n&&0!==s&&"inertia"!==a}(h),m=h.motionValue?.owner?.current;if(p)try{n=new rx({...h,element:m})}catch{n=new rf(h)}else n=new rf(h);n.finished.then(()=>{this.notifyFinished()}).catch(ez),this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eR=!0,eF(),eI(),eR=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rS={type:"spring",stiffness:500,damping:25,restSpeed:10},rz={type:"keyframes",duration:.8},rC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rP=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),rT=(e,t,i,r={},n,s)=>a=>{let o=iT(r,e)||{},c=o.delay||r.delay||0,{elapsed:d=0}=r;d-=eU(c);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-d,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:n};!function(e){for(let t in e)if(!rP.has(t))return!0;return!1}(o)&&Object.assign(u,((e,{keyframes:t})=>t.length>2?rz:l.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rS:rC)(e,u)),u.duration&&(u.duration=eU(u.duration)),u.repeatDelay&&(u.repeatDelay=eU(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let h=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(rb(u),0===u.delay&&(h=!0)),(eC.instantAnimations||eC.skipAnimations||n?.shouldSkipAnimations||o.skipAnimations)&&(h=!0,rb(u),u.delay=0),u.allowFlatten=!o.type&&!o.ease,h&&!s&&void 0!==t.get()){let e=e0(u.keyframes,o);if(void 0!==e)return void eM.update(()=>{u.onUpdate(e),u.onComplete()})}return o.isSync?new rf(u):new rj(u)};function rM(e,t,{delay:i=0,transitionOverride:r,type:n}={}){let{transition:s,transitionEnd:a,...o}=t,l=e.getDefaultTransition();s=s?iP(s,l):l;let c=s?.reduceMotion,d=s?.skipAnimations;r&&(s=r);let u=[],h=n&&e.animationState&&e.animationState.getState()[n],p=s?.path;for(let t in p&&p.animateVisualElement(e,o,s,i,u),o){let r=e.getValue(t,e.latestValues[t]??null),n=o[t];if(void 0===n||h&&function({protectedKeys:e,needsAnimating:t},i){let r=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,r}(h,t))continue;let a={delay:i,...iT(s||{},t)};d&&(a.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(n)&&n===l&&!a.velocity){eM.update(()=>r.set(n));continue}let p=!1;if(window.MotionHandoffAnimation){let i=e.props[iy];if(i){let e=window.MotionHandoffAnimation(i,t,eM);null!==e&&(a.startTime=e,p=!0)}}iN(e,t);let m=c??e.shouldReduceMotion;r.start(rT(t,r,n,m&&Z.has(t)?{type:!1}:a,e,p));let f=r.animation;f&&u.push(f)}if(a){let t=()=>eM.update(()=>{a&&function(e,t){let{transitionEnd:i={},transition:r={},...n}=iC(e,t)||{};for(let t in n={...n,...i}){var s;let i=iM(s=n[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,to(i))}}(e,a)});u.length?Promise.all(u).then(t):t()}return u}function rN(e,t,i,r=0,n=1){let s=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*r;return"function"==typeof i?i(s,a):1===n?s*r:o-s*r}function rA(e,t,i={}){let r=iC(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let s=r?()=>Promise.all(rM(e,r,i)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=n;return function(e,t,i=0,r=0,n=0,s=1,a){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(rA(l,t,{...a,delay:i+("function"==typeof r?0:r)+rN(e.variantChildren,l,r,n,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,r,s,a,o,i)}:()=>Promise.resolve(),{when:o}=n;if(!o)return Promise.all([s(),a(i.delay)]);{let[e,t]="beforeChildren"===o?[s,a]:[a,s];return e().then(()=>t())}}let rE=tp.length;function rD(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let r=0;r<i;r++)if(t[r]!==e[r])return!1;return!0}let rV=[...th].reverse(),rL=th.length;function rR(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rI(){return{animate:rR(!0),whileInView:rR(),whileHover:rR(),whileTap:rR(),whileDrag:rR(),whileFocus:rR(),exit:rR()}}let rF=0;function rB(e){return[e("x"),e("y")]}function rO(e,t,i,r={passive:!0}){return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i)}let r_={x:!1,y:!1};function r$(e){return e.max-e.min}function rW(e,t,i,r=.5){e.origin=r,e.originPoint=tB(t.min,t.max,e.origin),e.scale=r$(i)/r$(t),e.translate=tB(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rU(e,t,i,r){rW(e.x,t.x,i.x,r?r.originX:void 0),rW(e.y,t.y,i.y,r?r.originY:void 0)}function rG(e,t,i,r=0){e.min=(r?tB(i.min,i.max,r):i.min)+t.min,e.max=e.min+r$(t)}function rH(e,t,i,r=0){let n=r?tB(i.min,i.max,r):i.min;e.min=t.min-n,e.max=e.min+r$(t)}function rX(e,t,i,r){rH(e.x,t.x,i.x,r?.x),rH(e.y,t.y,i.y,r?.y)}let rq=e=>"object"==typeof e&&null!==e;function rK(e){return rq(e)&&"ownerSVGElement"in e}function rY(e,t,i){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let n=i?.[e]??r.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(e=>null!=e)}let rZ=new WeakMap,rJ=(e,t,i)=>(r,n)=>n&&n[0]?n[0][e+"Size"]:rK(r)&&"getBBox"in r?r.getBBox()[t]:r[i],rQ=rJ("inline","width","offsetWidth"),r0=rJ("block","height","offsetHeight");function r1({target:e,borderBoxSize:t}){rZ.get(e)?.forEach(i=>{i(e,{get width(){return rQ(e,t)},get height(){return r0(e,t)}})})}function r2(e){e.forEach(r1)}let r5=new Set;function r4(e,t){let n;return"function"==typeof e?(r5.add(e),r||(r=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};r5.forEach(t=>t(e))},window.addEventListener("resize",r)),()=>{r5.delete(e),r5.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(r2)),(n=rY(e)).forEach(e=>{let r=rZ.get(e);r||(r=new Set,rZ.set(e,r)),r.add(t),i?.observe(e)}),()=>{n.forEach(e=>{let r=rZ.get(e);r?.delete(t),r?.size||i?.unobserve(e)})})}let r3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),r8=new Set(["INPUT","SELECT","TEXTAREA"]),r6=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function r9(e){return{point:{x:e.pageX,y:e.pageY}}}function r7(e,t,i,r){return rO(e,t,e=>r6(e)&&i(e,r9(e)),r)}let ne=({current:e})=>e?e.ownerDocument.defaultView:null,nt=(e,t)=>Math.abs(e-t),ni=new Set(["auto","scroll"]);class nr{constructor(e,t,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:n=!1,distanceThreshold:s=3,element:a}={}){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=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nn(this.lastRawMoveEventInfo,this.transformPagePoint));let i=na(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(e=i.offset,t={x:0,y:0},Math.sqrt(nt(e.x,t.x)**2+nt(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!n)return;let{point:s}=i,{timestamp:a}=eA;this.history.push({...s,timestamp:a});let{onStart:o,onMove:l}=this.handlers;r||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=nn(t,this.transformPagePoint),eM.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=na("pointercancel"===e.type?this.lastMoveEventInfo:nn(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),r&&r(e,s)},!r6(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=r||window;const o=nn(r9(e),this.transformPagePoint),{point:l}=o,{timestamp:c}=eA;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=t;d&&d(e,na(o,this.history)),this.removeListeners=iA(r7(this.contextWindow,"pointermove",this.handlePointerMove),r7(this.contextWindow,"pointerup",this.handlePointerUp),r7(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ni.has(e.overflowX)||ni.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.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(e){let t=this.scrollPositions.get(e);if(!t)return;let i=e===window,r=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},n={x:r.x-t.x,y:r.y-t.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(e,r),eM.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eN(this.updatePoint)}}function nn(e,t){return t?{point:t(e.point)}:e}function ns(e,t){return{x:e.x-t.x,y:e.y-t.y}}function na({point:e},t){return{point:e,delta:ns(e,no(t)),offset:ns(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,r=no(e);for(;t>=0&&(i=e[t],!(r.timestamp-i.timestamp>eU(.1)));)t--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&r.timestamp-i.timestamp>2*eU(.1)&&(i=e[1]);let n=(r.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let s={x:(r.x-i.x)/n,y:(r.y-i.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t)}}function no(e){return e[e.length-1]}function nl(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function nc(e,t){let i=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,r]=[r,i]),{min:i,max:r}}function nd(e,t,i){return{min:nu(e,t),max:nu(e,i)}}function nu(e,t){return"number"==typeof e?e:e[t]||0}let nh=new WeakMap;class np{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=K(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let n=e=>{t&&this.snapToCursor(r9(e).point),this.stopAnimation()},s=(e,t)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(r_[e])return null;else return r_[e]=!0,()=>{r_[e]=!1};return r_.x||r_.y?null:(r_.x=r_.y=!0,()=>{r_.x=r_.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rB(e=>{let t=this.getAxisMotionValue(e).get()||0;if(j.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[e];r&&(t=r$(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&eM.update(()=>n(e,t),!1,!0),iN(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&eM.update(()=>s(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new nr(e,{onSessionStart:n,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:ne(this.visualElement),element:this.visualElement.current})}stop(e,t){let i=e||this.latestPointerEvent,r=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!r||!i)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:a}=this.getProps();a&&eM.postRender(()=>a(i,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,i){let{drag:r}=this.getProps();if(!i||!nf(e,r,this.currentDirection))return;let n=this.getAxisMotionValue(e),s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:i},r){return void 0!==t&&e<t?e=r?tB(t,e,r.min):Math.max(e,t):void 0!==i&&e>i&&(e=r?tB(i,e,r.max):Math.min(e,i)),e}(s,this.constraints[e],this.elastic[e])),n.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&iw(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:r,right:n}){return{x:nl(e.x,i,n),y:nl(e.y,t,r)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nd(e,"left","right"),y:nd(e,"top","bottom")}}(t),r!==this.constraints&&!iw(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&rB(e=>{var t,r;let n;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],r=this.constraints[e],n={},void 0!==r.min&&(n.min=r.min-t.min),void 0!==r.max&&(n.max=r.max-t.min),n))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!iw(t))return!1;let r=t.current;er(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());let s=function(e,t,i){let r=t5(e,i),{scroll:n}=t;return n&&(tQ(r.x,n.offset.x),tQ(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),a=(e=n.layout.layoutBox,{x:nc(e.x,s.x),y:nc(e.y,s.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=tG(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(rB(a=>{if(!nf(a,t,this.currentDirection))return;let l=o&&o[a]||{};(!0===s||s===a)&&(l={min:0,max:0});let c={type:"inertia",velocity:i?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,c)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return iN(this.visualElement,e),i.start(rT(e,i,0,t,this.visualElement,!1))}stopAnimation(){rB(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){rB(t=>{let{drag:i}=this.getProps();if(!nf(t,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(t);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[t],a=n.get()||0;n.set(e[t]-tB(i,s,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!iw(t)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rB(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,n;let s,a,o,l=t.get();r[e]=(i={min:l,max:l},n=this.constraints[e],s=.5,a=r$(i),(o=r$(n))>a?s=rd(n.min,n.max-a,i.min):a>o&&(s=rd(i.min,i.max-o,n.min)),c(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),rB(t=>{if(!nf(t,e,null))return;let i=this.getAxisMotionValue(t),{min:n,max:s}=this.constraints[t];i.set(tB(n,s,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;nh.set(this.visualElement,this);let t=this.visualElement.current,i=r7(t,"pointerdown",e=>{let{drag:i,dragListener:r=!0}=this.getProps(),n=e.target,s=n!==t&&(r8.has(n.tagName)||!0===n.isContentEditable);i&&r&&!s&&this.start(e)}),r=()=>{var i,r,n;let s,a,{dragConstraints:o}=this.getProps();iw(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),e||(i=t,r=o.current,s=r4(i,nm(n=()=>this.scalePositionWithinConstraints())),a=r4(r,nm(n)),e=()=>{s(),a()}))},{projection:n}=this.visualElement,s=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),eM.read(r);let a=rO(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rB(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),i(),s(),o&&o(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:a}}}function nm(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function nf(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let ng=e=>(t,i)=>{e&&eM.update(()=>e(t,i),!1,!0)},nx={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nv=a;function nb(e=!0){let t=(0,a.useContext)(id);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=t,s=(0,a.useId)();(0,a.useEffect)(()=>{if(e)return n(s)},[e]);let o=(0,a.useCallback)(()=>e&&r&&r(s),[s,r,e]);return!i&&r?[!1,o]:[!0]}let ny=!1;class nk extends nv.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),i&&i.register&&r&&i.register(n),ny&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nx.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:r,isPresent:n}=this.props,{projection:s}=i;return s&&(s.isPresent=n,e.layoutDependency!==t&&s.setOptions({...s.options,layoutDependency:t}),ny=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==n?s.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?s.promote():s.relegate()||eM.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=t,i.root.didUpdate(),tt.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:r}=e;ny=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nw(e){let[t,i]=nb(),r=(0,nv.useContext)(t6);return(0,s.jsx)(nk,{...e,layoutGroup:r,switchLayoutGroup:(0,nv.useContext)(ik),isPresent:t,safeToRemove:i})}let nj=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nS=nj.length,nz=e=>"string"==typeof e?parseFloat(e):e,nC=e=>"number"==typeof e||S.test(e);function nP(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nT=nN(0,.5,ra),nM=nN(.5,.95,ez);function nN(e,t,i){return r=>r<e?0:r>t?1:i(rd(e,t,r))}function nA(e,t){e.min=t.min,e.max=t.max}function nE(e,t){nA(e.x,t.x),nA(e.y,t.y)}function nD(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nV(e,t,i,r,n){return e-=t,e=r+1/i*(e-r),void 0!==n&&(e=r+1/n*(e-r)),e}function nL(e,t,[i,r,n],s,a){!function(e,t=0,i=1,r=.5,n,s=e,a=e){if(j.test(t)&&(t=parseFloat(t),t=tB(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=tB(s.min,s.max,r);e===s&&(o-=t),e.min=nV(e.min,t,i,o,n),e.max=nV(e.max,t,i,o,n)}(e,t[i],t[r],t[n],t.scale,s,a)}let nR=["x","scaleX","originX"],nI=["y","scaleY","originY"];function nF(e,t,i,r){nL(e.x,t,nR,i?i.x:void 0,r?r.x:void 0),nL(e.y,t,nI,i?i.y:void 0,r?r.y:void 0)}function nB(e){return 0===e.translate&&1===e.scale}function nO(e){return nB(e.x)&&nB(e.y)}function n_(e,t){return e.min===t.min&&e.max===t.max}function n$(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nW(e,t){return n$(e.x,t.x)&&n$(e.y,t.y)}function nU(e){return r$(e.x)/r$(e.y)}function nG(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nH{constructor(){this.members=[]}add(e){eG(this.members,e);for(let t=this.members.length-1;t>=0;t--){let i=this.members[t];if(i===e||i===this.lead||i===this.prevLead)continue;let r=i.instance;r&&!1!==r.isConnected||i.snapshot||(eH(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(eH(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=i.options,{layoutDependency:n}=e.options;(void 0===r||r!==n)&&(e.resumeFrom=i,t&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let nX=(e,t)=>e.depth-t.depth;class nq{constructor(){this.children=[],this.isDirty=!1}add(e){eG(this.children,e),this.isDirty=!0}remove(e){eH(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nX),this.isDirty=!1,this.children.forEach(e)}}let nK=["","X","Y","Z"],nY=0;function nZ(e,t,i,r){let{latestValues:n}=t;n[e]&&(i[e]=n[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nJ({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(e={},i=t?.()){this.id=nY++,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(n1),this.nodes.forEach(se),this.nodes.forEach(st),this.nodes.forEach(n2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nq)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eX),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=rK(t)&&!(rK(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||i)&&(this.isLayoutDirty=!0),e){let i,r=0,n=()=>this.root.updateBlockedByResize=!1;eM.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,s;r=e,this.root.updateBlockedByResize=!0,i&&i(),t=tr.now(),s=({timestamp:e})=>{let i=e-t;i>=250&&(eN(s),n(i-250))},eM.setup(s,!0),i=()=>eN(s),nx.hasAnimatedSinceResize&&(nx.hasAnimatedSinceResize=!1,this.nodes.forEach(n7))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||so,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!nW(this.targetLayout,r),c=!t&&i;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iT(s,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c,t.path)}else t||n7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eN(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(si),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let r=i.props[iy];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",eM,!(e||i))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(n3),this.nodes.forEach(n4);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(n8);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(n6),this.nodes.forEach(n9),this.nodes.forEach(nQ),this.nodes.forEach(n0)):this.nodes.forEach(n8),this.clearAllSnapshots();let e=tr.now();eA.delta=c(0,1e3/60,e-eA.timestamp),eA.timestamp=e,eA.isProcessing=!0,eE.update.process(eA),eE.preRender.process(eA),eE.render.process(eA),eA.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tt.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n5),this.sharedNodes.forEach(sr)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eM.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eM.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||r$(this.snapshot.measuredBox.x)||r$(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=K()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nO(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||tq(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),r=this.removeElementScroll(i);return e&&(r=this.removeTransform(r)),sd((t=r).x),sd(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return K();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sh))){let{scroll:e}=this.root;e&&(tQ(t.x,e.offset.x),tQ(t.y,e.offset.y))}return t}removeElementScroll(e){let t=K();if(nE(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&nE(t,e),tQ(t.x,n.offset.x),tQ(t.y,n.offset.y))}return t}applyTransform(e,t=!1,i){let r=i||K();nE(r,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(tQ(r.x,-i.scroll.offset.x),tQ(r.y,-i.scroll.offset.y)),tq(i.latestValues)&&t2(r,i.latestValues,i.layout?.layoutBox)}return tq(this.latestValues)&&t2(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=K();nE(t,e);for(let e=0;e<this.path.length;e++){let i,r=this.path[e];tq(r.latestValues)&&(r.instance&&(tX(r.latestValues)&&r.updateSnapshot(),nE(i=K(),r.measurePageBox())),nF(t,r.latestValues,r.snapshot?.layoutBox,i))}return tq(this.latestValues)&&nF(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}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!==eA.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:n}=this.options;if(!this.layout||!(r||n))return;this.resolvedRelativeTargetAt=eA.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=K(),this.targetWithTransforms=K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l,c;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,c=this.options.layoutAnchor||void 0,rG(a.x,o.x,l.x,c?.x),rG(a.y,o.y,l.y,c?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nE(this.target,this.layout.layoutBox),tJ(this.target,this.targetDelta)):nE(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||tX(this.parent.latestValues)||tK(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,i){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=K(),this.relativeTargetOrigin=K(),rX(this.relativeTargetOrigin,t,i,this.options.layoutAnchor||void 0),nE(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===eA.timestamp&&(i=!1),i)return;let{layout:r,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||n))return;nE(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,i,r=!1){let n,s,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){s=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(tQ(e.x,-n.scroll.offset.x),tQ(e.y,-n.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,tJ(e,s)),r&&tq(n.latestValues)&&t2(e,n.latestValues,n.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=K());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nD(this.prevProjectionDelta.x,this.projectionDelta.x),nD(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rU(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&nG(this.projectionDelta.x,this.prevProjectionDelta.x)&&nG(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=X(),this.projectionDelta=X(),this.projectionDeltaWithTransform=X()}setAnimationOrigin(e,t=!1,i){let r,n=this.snapshot,s=n?n.latestValues:{},a={...this.latestValues},o=X();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=K(),c=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),d=this.getStack(),u=!d||d.members.length<=1,h=!!(c&&!u&&!0===this.options.crossfade&&!this.path.some(sa));this.animationProgress=0;let p=i?.interpolateProjection(e);this.mixTargetDelta=t=>{let i=t/1e3,n=p?.(i);if(n?(o.x.translate=n.x,o.x.scale=tB(e.x.scale,1,i),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=n.y,o.y.scale=tB(e.y.scale,1,i),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(sn(o.x,e.x,i),sn(o.y,e.y,i)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var d,m,f,g,x,v;rX(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,x=l,v=i,ss(f.x,g.x,x.x,v),ss(f.y,g.y,x.y,v),r&&(d=this.relativeTarget,m=r,n_(d.x,m.x)&&n_(d.y,m.y))&&(this.isProjectionDirty=!1),r||(r=K()),nE(r,this.relativeTarget)}c&&(this.animationValues=a,function(e,t,i,r,n,s){n?(e.opacity=tB(0,i.opacity??1,nT(r)),e.opacityExit=tB(t.opacity??1,0,nM(r))):s&&(e.opacity=tB(t.opacity??1,i.opacity??1,r));for(let n=0;n<nS;n++){let s=nj[n],a=nP(t,s),o=nP(i,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||nC(a)===nC(o)?(e[s]=Math.max(tB(nz(a),nz(o),r),0),(j.test(o)||j.test(a))&&(e[s]+="%")):e[s]=o)}(t.rotate||i.rotate)&&(e.rotate=tB(t.rotate||0,i.rotate||0,r))}(a,s,this.latestValues,i,h,u)),n&&void 0!==n.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=n.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eN(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eM.update(()=>{var t,i,r;let n;nx.hasAnimatedSinceResize=!0,e2.layout++,this.motionValue||(this.motionValue=to(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,i=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{e2.layout--},onComplete:()=>{e2.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(n=Y(t)?t:to(t)).start(rT("",n,i,r)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:r,latestValues:n}=e;if(t&&i&&r){if(this!==e&&this.layout&&r&&su(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||K();let t=r$(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let r=r$(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+r}nE(t,i),t2(t,n),rU(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nH),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let r={};i.z&&nZ("z",e,r,this.animationValues);for(let t=0;t<nK.length;t++)nZ(`rotate${nK[t]}`,e,r,this.animationValues),nZ(`skew${nK[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=ic(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ic(t?.pointerEvents)||""),this.hasProjected&&!tq(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let n=r.animationValues||r.latestValues;this.applyTransformsToTarget();let s=function(e,t,i){let r="",n=e.x.translate/t.x,s=e.y.translate/t.y,a=i?.z||0;if((n||s||a)&&(r=`translate3d(${n}px, ${s}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,pathRotation:n,rotateX:s,rotateY:a,skewX:o,skewY:l}=i;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),n&&(r+=`rotate(${n}deg) `),s&&(r+=`rotateX(${s}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),l&&(r+=`skewY(${l}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(r+=`scale(${o}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(s=i(n,s)),e.transform=s;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,r.animationValues?e.opacity=r===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:e.opacity=r===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,tO){if(void 0===n[t])continue;let{correct:i,applyTo:a,isCSSVariable:o}=tO[t],l="none"===s?n[t]:i(n[t],r);if(a){let t=a.length;for(let i=0;i<t;i++)e[a[i]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?ic(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(n4),this.root.sharedNodes.clear()}}}function nQ(e){e.updateLayout()}function n0(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=e.layout,{animationType:n}=e.options,s=t.source!==e.layout.source;if("size"===n)rB(e=>{let r=s?t.measuredBox[e]:t.layoutBox[e],n=r$(r);r.min=i[e].min,r.max=r.min+n});else if("x"===n||"y"===n){let e="x"===n?"y":"x";nA(s?t.measuredBox[e]:t.layoutBox[e],i[e])}else su(n,t.layoutBox,i)&&rB(r=>{let n=s?t.measuredBox[r]:t.layoutBox[r],a=r$(i[r]);n.max=n.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=X();rU(a,i,t.layoutBox);let o=X();s?rU(o,e.applyTransform(r,!0),t.measuredBox):rU(o,i,t.layoutBox);let l=!nO(a),c=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let a=e.options.layoutAnchor||void 0,o=K();rX(o,t.layoutBox,n.layoutBox,a);let l=K();rX(l,i,s.layoutBox,a),nW(o,l)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function n1(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 n2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function n5(e){e.clearSnapshot()}function n4(e){e.clearMeasurements()}function n3(e){e.isLayoutDirty=!0,e.updateLayout()}function n8(e){e.isLayoutDirty=!1}function n6(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function n9(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function n7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function se(e){e.resolveTargetDelta()}function st(e){e.calcProjection()}function si(e){e.resetSkewAndRotation()}function sr(e){e.removeLeadSnapshot()}function sn(e,t,i){e.translate=tB(t.translate,0,i),e.scale=tB(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function ss(e,t,i,r){e.min=tB(t.min,i.min,r),e.max=tB(t.max,i.max,r)}function sa(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let so={duration:.45,ease:[.4,0,.1,1]},sl=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sc=sl("applewebkit/")&&!sl("chrome/")?Math.round:ez;function sd(e){e.min=sc(e.min),e.max=sc(e.max)}function su(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(nU(t)-nU(i)))}function sh(e){return e!==e.root&&e.scroll?.wasRoot}let sp=nJ({attachResizeListener:(e,t)=>rO(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sm={current:void 0},sf=nJ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sm.current){let e=new sp({});e.mount(window),e.setOptions({layoutScroll:!0}),sm.current=e}return sm.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function sg(e,t){let i=rY(e),r=new AbortController;return[i,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function sx(e,t,i){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&eM.postRender(()=>n(t,r9(t)))}function sv(e){return rq(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}let sb=(e,t)=>!!t&&(e===t||sb(e,t.parentElement)),sy=new WeakSet;function sk(e){return t=>{"Enter"===t.key&&e(t)}}function sw(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function sj(e){return r6(e)&&!(r_.x||r_.y)}let sS=new WeakSet;function sz(e,t,i){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&eM.postRender(()=>n(t,r9(t)))}let sC=new WeakMap,sP=new WeakMap,sT=e=>{let t=sC.get(e.target);t&&t(e)},sM=e=>{e.forEach(sT)},sN={some:0,all:1},sA=function(e,t){if("u"<typeof Proxy)return iS;let i=new Map,r=(i,r)=>iS(i,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(n,s)=>"create"===s?r:(i.has(s)||i.set(s,iS(s,void 0,e,t)),i.get(s))})}({animation:{Feature:class extends iz{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rA(e,t,i)));else if("string"==typeof t)r=rA(e,t,i);else{let n="function"==typeof t?iC(e,t,i.custom):t;r=Promise.all(rM(e,n,i))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=rI(),r=!0,n=!1,s=t=>(i,r)=>{let n=iC(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(n){let{transition:e,transitionEnd:t,...r}=n;i={...i,...r,...t}}return i};function a(a){let{props:o}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<rE;e++){let r=tp[e],n=t.props[r];(tu(n)||!1===n)&&(i[r]=n)}return i}(e.parent)||{},c=[],d=new Set,u={},h=1/0;for(let t=0;t<rL;t++){var p,m;let f=rV[t],g=i[f],x=void 0!==o[f]?o[f]:l[f],v=tu(x),b=f===a?g.isActive:null;!1===b&&(h=t);let y=x===l[f]&&x!==o[f]&&v;if(y&&(r||n)&&e.manuallyAnimateOnMount&&(y=!1),g.protectedKeys={...u},!g.isActive&&null===b||!x&&!g.prevProp||td(x)||"boolean"==typeof x)continue;if("exit"===f&&g.isActive&&!0!==b){g.prevResolvedValues&&(u={...u,...g.prevResolvedValues});continue}let k=(p=g.prevProp,"string"==typeof(m=x)?m!==p:!!Array.isArray(m)&&!rD(m,p)),w=k||f===a&&g.isActive&&!y&&v||t>h&&v,j=!1,S=Array.isArray(x)?x:[x],z=S.reduce(s(f),{});!1===b&&(z={});let{prevResolvedValues:C={}}=g,P={...C,...z},T=t=>{w=!0,d.has(t)&&(j=!0,d.delete(t)),g.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in P){let t=z[e],i=C[e];if(!u.hasOwnProperty(e))(iM(t)&&iM(i)?!rD(t,i)||k:t!==i)?null!=t?T(e):d.add(e):void 0!==t&&d.has(e)?T(e):g.protectedKeys[e]=!0}g.prevProp=x,g.prevResolvedValues=z,g.isActive&&(u={...u,...z}),(r||n)&&e.blockInitialAnimation&&(w=!1);let M=y&&k,N=!M||j;w&&N&&c.push(...S.map(t=>{let i={type:f};if("string"==typeof t&&(r||n)&&!M&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,n=iC(r,t);if(r.enteringChildren&&n){let{delayChildren:t}=n.transition||{};i.delay=rN(r.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(d.size){let t={};if("boolean"!=typeof o.initial){let i=iC(e,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(t.transition=i.transition)}d.forEach(i=>{let r=e.getBaseTarget(i),n=e.getValue(i);n&&(n.liveStyle=!0),t[i]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,n=!1,f?t(c):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){if(i[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),i[t].isActive=r;let n=a(t);for(let e in i)i[e].protectedKeys={};return n},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=rI(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();td(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iz{constructor(){super(...arguments),this.id=rF++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&!1===i){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let i=iC(this.node,e,t);if(i){let{transition:e,transitionEnd:t,...r}=i;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends iz{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:a}=i,o={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:sN[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=t?i:r;n&&n(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let i=e||document;sP.has(i)||sP.set(i,{});let r=sP.get(i),n=JSON.stringify(t);return r[n]||(r[n]=new IntersectionObserver(sM,{root:e,...t})),r[n]}(o),sC.set(e,l),t.observe(e),()=>{sC.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iz{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:i}=this.node.props;this.unmount=function(e,t,i={}){let[r,n,s]=sg(e,i),a=e=>{let r=e.currentTarget;if(!sj(e)||sS.has(e))return;sy.add(r),i.stopPropagation&&sS.add(e);let s=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),sy.has(r)&&sy.delete(r),sj(e)&&"function"==typeof s&&s(e,{success:t})},o=e=>{a(e,r===window||r===document||i.useGlobalTarget||sb(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",l,n)};return r.forEach(e=>{((i.useGlobalTarget?window:e).addEventListener("pointerdown",a,n),sv(e))&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let r=sk(()=>{if(sy.has(i))return;sw(i,"down");let e=sk(()=>{sw(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>sw(i,"cancel"),t)});i.addEventListener("keydown",r,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),t)})(e,n)),r3.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(sz(this.node,t,"Start"),(e,{success:t})=>sz(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iz{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iA(rO(this.node.current,"focus",()=>this.onFocus()),rO(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iz{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[r,n,s]=sg(e,i);return r.forEach(e=>{let i,r=!1,s=!1,a=t=>{i&&(i(t),i=void 0),e.removeEventListener("pointerleave",l)},o=e=>{r=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),s&&(s=!1,a(e))},l=e=>{if("touch"!==e.pointerType){if(r){s=!0;return}a(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||r_.x||r_.y)return;s=!1;let a=t(e,r);"function"==typeof a&&(i=a,e.addEventListener("pointerleave",l,n))},n),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",o,n)},n)}),s}(e,(e,t)=>(sx(this.node,t,"Start"),e=>sx(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends iz{constructor(){super(...arguments),this.removePointerDownListener=ez}onPointerDown(e){this.session=new nr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ne(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:ng(e),onStart:ng(t),onMove:ng(i),onEnd:(e,t)=>{delete this.session,r&&eM.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=r7(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iz{constructor(e){super(e),this.removeGroupControls=ez,this.removeListeners=ez,this.controls=new np(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ez}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:sf,MeasureLayout:nw},layout:{ProjectionNode:sf,MeasureLayout:nw}},(e,t)=>t.isSVG??t8(e)?new tU(t):new t4(t,{allowProjection:e!==a.Fragment}));var sE=a;function sD(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class sV extends sE.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(sv(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,i=sv(e)&&e.offsetWidth||0,r=sv(e)&&e.offsetHeight||0,n=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(n.height),s.width=parseFloat(n.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=i-s.width-s.left,s.bottom=r-s.height-s.top,s.direction=n.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function sL({children:e,isPresent:t,anchorX:i,anchorY:r,root:n,pop:o}){let l=(0,sE.useId)(),c=(0,sE.useRef)(null),d=(0,sE.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,sE.useContext)(t7),h=function(...e){return a.useCallback(function(...e){return t=>{let i=!1,r=e.map(e=>{let r=sD(e,t);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let t=0;t<r.length;t++){let i=r[t];"function"==typeof i?i():sD(e[t],null)}}}}(...e),e)}(c,e.props?.ref??e?.ref);return(0,sE.useInsertionEffect)(()=>{let{width:e,height:s,top:a,left:h,right:p,bottom:m,direction:f}=d.current;if(t||!1===o||!c.current||!e||!s)return;let g="rtl"===f,x="left"===i?g?`right: ${p}`:`left: ${h}`:g?`left: ${h}`:`right: ${p}`,v="bottom"===r?`bottom: ${m}`:`top: ${a}`;c.current.dataset.motionPopId=l;let b=document.createElement("style");u&&(b.nonce=u);let y=n??document.head;return y.appendChild(b),b.sheet&&b.sheet.insertRule(`
[data-motion-pop-id="${l}"] {
position: absolute !important;
width: ${e}px !important;
height: ${s}px !important;
${x}px !important;
${v}px !important;
}
`),()=>{c.current?.removeAttribute("data-motion-pop-id"),y.contains(b)&&y.removeChild(b)}},[t]),(0,s.jsx)(sV,{isPresent:t,childRef:c,sizeRef:d,pop:o,children:!1===o?e:sE.cloneElement(e,{ref:h})})}let sR=({children:e,initial:t,isPresent:i,onExitComplete:r,custom:n,presenceAffectsLayout:o,mode:l,anchorX:c,anchorY:d,root:u})=>{let h=iu(sI),p=(0,a.useId)(),m=!0,f=(0,a.useMemo)(()=>(m=!1,{id:p,initial:t,isPresent:i,custom:n,onExitComplete:e=>{for(let t of(h.set(e,!0),h.values()))if(!t)return;r&&r()},register:e=>(h.set(e,!1),()=>h.delete(e))}),[i,h,r]);return o&&m&&(f={...f}),(0,a.useMemo)(()=>{h.forEach((e,t)=>h.set(t,!1))},[i]),a.useEffect(()=>{i||h.size||!r||r()},[i]),e=(0,s.jsx)(sL,{pop:"popLayout"===l,isPresent:i,anchorX:c,anchorY:d,root:u,children:e}),(0,s.jsx)(id.Provider,{value:f,children:e})};function sI(){return new Map}let sF=e=>e.key||"";function sB(e){let t=[];return a.Children.forEach(e,e=>{(0,a.isValidElement)(e)&&t.push(e)}),t}let sO=({children:e,custom:t,initial:i=!0,onExitComplete:r,presenceAffectsLayout:n=!0,mode:o="sync",propagate:l=!1,anchorX:c="left",anchorY:d="top",root:u})=>{let[h,p]=nb(l),m=(0,a.useMemo)(()=>sB(e),[e]),f=l&&!h?[]:m.map(sF),g=(0,a.useRef)(!0),x=(0,a.useRef)(m),v=iu(()=>new Map),b=(0,a.useRef)(new Set),[y,k]=(0,a.useState)(m),[w,j]=(0,a.useState)(m);ij(()=>{g.current=!1,x.current=m;for(let e=0;e<w.length;e++){let t=sF(w[e]);f.includes(t)?(v.delete(t),b.current.delete(t)):!0!==v.get(t)&&v.set(t,!1)}},[w,f.length,f.join("-")]);let S=[];if(m!==y){let e=[...m];for(let t=0;t<w.length;t++){let i=w[t],r=sF(i);f.includes(r)||(e.splice(t,0,i),S.push(i))}return"wait"===o&&S.length&&(e=S),j(sB(e)),k(m),null}let{forceRender:z}=(0,a.useContext)(t6);return(0,s.jsx)(s.Fragment,{children:w.map(e=>{let a=sF(e),y=(!l||!!h)&&(m===w||f.includes(a));return(0,s.jsx)(sR,{isPresent:y,initial:(!g.current||!!i)&&void 0,custom:t,presenceAffectsLayout:n,mode:o,root:u,onExitComplete:y?void 0:()=>{if(b.current.has(a)||!v.has(a))return;b.current.add(a),v.set(a,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(z?.(),j(x.current),l&&p?.(),r&&r())},anchorX:c,anchorY:d,children:e},a)})})},s_=(...e)=>e.filter((e,t,i)=>!!e&&""!==e.trim()&&i.indexOf(e)===t).join(" ").trim(),s$=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var sW={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let sU=(0,a.createContext)({}),sG=(0,a.forwardRef)(({color:e,size:t,strokeWidth:i,absoluteStrokeWidth:r,className:n="",children:s,iconNode:o,...l},c)=>{let{size:d=24,strokeWidth:u=2,absoluteStrokeWidth:h=!1,color:p="currentColor",className:m=""}=(0,a.useContext)(sU)??{},f=r??h?24*Number(i??u)/Number(t??d):i??u;return(0,a.createElement)("svg",{ref:c,...sW,width:t??d??sW.width,height:t??d??sW.height,stroke:e??p,strokeWidth:f,className:s_("lucide",m,n),...!s&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(l)&&{"aria-hidden":"true"},...l},[...o.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(s)?s:[s]])}),sH=(e,t)=>{let i=(0,a.forwardRef)(({className:i,...r},n)=>(0,a.createElement)(sG,{ref:n,iconNode:t,className:s_(`lucide-${s$(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...r}));return i.displayName=s$(e),i},sX=sH("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),sq=sH("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]),sK=sH("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]),sY=sH("wifi-off",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),sZ=sH("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]),sJ=sH("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),sQ=sH("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),s0=sH("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),s1=sH("monitor-play",[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z",key:"vbtd3f"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]]),s2=sH("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]),s5=sH("keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]),s4=sH("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),s3=sH("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),s8=sH("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),s6=sH("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),s9=sH("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]),s7=sH("user-check",[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),ae=sH("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]),at=[{code:"en",label:"English",flag:"🇺🇸"},{code:"id",label:"Bahasa Indonesia",flag:"🇮🇩"},{code:"ja",label:"日本語",flag:"🇯🇵"},{code:"zh",label:"简体中文",flag:"🇨🇳"},{code:"es",label:"Español",flag:"🇪🇸"}],ai={en:{appTitle:"🎙️ ONNX VC",appSubtitle:"Low-latency real-time AI voice conversion powered by ONNX Runtime acceleration.",wsServerUrl:"WebSocket Server URL",wsPlaceholder:"ws://localhost:8765",connectionStatus:"Connection Status",disconnected:"Disconnected",connecting:"Connecting",connected:"Connected",connect:"Connect Server",disconnect:"Disconnect Server",startChanger:"Start Voice Changer",stopChanger:"Stop Voice Changer",listeningActive:"Listening: ACTIVE",listeningMute:"Listening: MUTED",tabDashboard:"Workspace",tabModel:"Model Settings",tabDsp:"Audio DSP",tabShortcuts:"Shortcuts",modelConfigTitle:"Model & Device Configuration",quickPresets:"Quick Presets (Performance Profile)",latencyPreset:"⚡ Instant Response (PM)",qualityPreset:"🎙️ High Fidelity (RMVPE)",selectModel:"Select Character Model (RVC ONNX)",executionProvider:"Execution Provider (GPU Acceleration)",routingMode:"Audio Routing Mode",clientMode:"Client Mode (Browser Streaming)",serverMode:"Server Mode (Direct Sounddevice)",serverInput:"Server Input Microphone",serverOutput:"Server Output Speaker",pitchMethod:"Pitch Extraction Method",transpose:"Transpose (Pitch Modifier)",transposeMale:"-24 (Male Pitch)",transposeNormal:"0 (Original)",transposeFemale:"+24 (Female/Anime Pitch)",dspTitle:"Audio Processing Settings (DSP)",noiseGate:"Noise Gate (Threshold)",noiseGateSens:"-60 dB (Sensitive)",noiseGateDefault:"-40 dB (Default)",noiseGateStrict:"-10 dB (Strict)",inputGain:"Input Gain (Microphone)",outputGain:"Output Gain (AI Volume)",noiseCancel:"Noise Cancellation (Filter)",noiseCancelDesc:"Filters browser echo & background hum",bufferSize:"Buffer Size (Chunk Size - Latency vs Stability)",visualizerTitle:"Real-Time Audio Visualizer",micSignal:"Microphone Input Signal",aiSignal:"AI Voice Output Signal",activeSignal:"Active Signal",pipStream:"PiP Waveform",pipClose:"Close PiP",hudLatency:"RTT Latency",hudInference:"Inference Speed",hudDetector:"Voice Detector",hudTalking:"Speaking",hudSilent:"Silent",hudSr:"Model Frequency",hudHelp:"Press ? to view hotkeys menu",shortcutsTitle:"Keyboard Shortcuts Guide",shortcutsDesc:"Use these keyboard shortcuts to navigate the dashboard without a mouse:",shortcutsClose:"Close",shortcutConnect:"Connect / Disconnect WebSocket Server",shortcutStream:"Start / Stop AI Voice Changer",shortcutMute:"Mute / Unmute Output Audio Local Listening",shortcutPreset1:"Apply Preset: Instant Response (PM)",shortcutPreset2:"Apply Preset: High Fidelity (RMVPE)",shortcutHelp:"Open / Close Shortcuts Help Dialog",characterCardTitle:"Active Voice Character",characterAvatarDesc:"Currently loaded voice weight profile.",welcomeBack:"Real-Time Audio Control Center",currentLang:"Language",themeSettings:"Interface Theme & Accent",themeMode:"Theme Mode",themeDark:"Dark Mode",themeLight:"Light Mode",accentColorLabel:"Global Accent Color",tabCredits:"Credits",creditsTitle:"💖 Open Source Credits",creditsDescription:"ONNX VC is made possible thanks to the following incredible open-source projects and libraries:",liveTuningTitle:"Live Settings Tuning",customCanvasTitle:"Custom Canvas Visualizer",showMicInput:"Show Mic Input",showAiOutput:"Show AI Output",lineWidthLabel:"Line Width",traceDecayLabel:"Trace Decay (Fading)",inputLineColorLabel:"Input Line Color",outputLineColorLabel:"Output Line Color",creditCreatorTitle:"Creator & Integrator",creditNeuralTitle:"Neural Conversion",creditEngineTitle:"Inference Engine",creditPitchTitle:"Pitch Extraction",creditPipelineTitle:"Streaming Pipeline",creditFrameworkTitle:"Frontend Framework",creditDesignTitle:"Design & Animation",creditCreatorDesc:"Creators of the ONNX VC client interface and low-latency audio control workspace integration layer.",creditNeuralDesc:"The core neural network architecture for real-time voice feature retrieval and vocal conversion.",creditEngineDesc:"Cross-platform accelerator for machine learning models running on CPU, NVIDIA CUDA, and DirectML GPU backends.",creditPitchDesc:"Robust Minimum Vocal Pitch Estimation model providing highly accurate vocals pitch tracking under ambient noise.",creditPipelineDesc:"High-speed binary data transfer loops passing raw PCM float32 frames between the client browser and backend.",creditFrameworkDesc:"Modern web framework compiling React client-side components to statically optimized static exports.",creditDesignDesc:"Utility-first styling utility and fluid declarative animation libraries for interactive visual user interfaces."},id:{appTitle:"🎙️ ONNX VC",appSubtitle:"Pengubah suara real-time berbasis AI berlatensi ultra-rendah dengan akselerasi ONNX Runtime.",wsServerUrl:"URL Server WebSocket",wsPlaceholder:"ws://localhost:8765",connectionStatus:"Status Koneksi",disconnected:"Terputus",connecting:"Menghubungkan",connected:"Terhubung",connect:"Hubungkan Server",disconnect:"Putuskan Server",startChanger:"Mulai Mengubah Suara",stopChanger:"Hentikan Mengubah",listeningActive:"Mendengarkan: AKTIF",listeningMute:"Mendengarkan: SENYAP",tabDashboard:"Ruang Kerja",tabModel:"Setelan Model",tabDsp:"Audio DSP",tabShortcuts:"Shortcut",modelConfigTitle:"Konfigurasi Model & Perangkat",quickPresets:"Quick Presets (Profil Performa)",latencyPreset:"⚡ Respon Kilat (PM)",qualityPreset:"🎙️ Kualitas Tinggi (RMVPE)",selectModel:"Pilih Model Suara (RVC ONNX)",executionProvider:"Execution Provider (Akselerasi GPU)",routingMode:"Mode Routing Audio",clientMode:"Client Mode (Streaming Browser)",serverMode:"Server Mode (Direct Sounddevice)",serverInput:"Input Mikrofon Server",serverOutput:"Output Speaker Server",pitchMethod:"Metode Deteksi Nada (Pitch Extraction)",transpose:"Transpose (Pengubah Nada)",transposeMale:"-24 (Pria Berat)",transposeNormal:"0 (Asli)",transposeFemale:"+24 (Wanita/Anime)",dspTitle:"Pemrosesan Audio (DSP)",noiseGate:"Noise Gate (Threshold)",noiseGateSens:"-60 dB (Sensitif)",noiseGateDefault:"-40 dB (Default)",noiseGateStrict:"-10 dB (Ketat)",inputGain:"Input Gain (Microphone)",outputGain:"Output Gain (Volume AI)",noiseCancel:"Peredam Bising (Noise Cancel)",noiseCancelDesc:"Filter gema & desah di browser",bufferSize:"Ukuran Buffer (Chunk Size - Latensi vs Stabilitas)",visualizerTitle:"Visualisasi Waveform Live",micSignal:"Sinyal Mikrofon (Input)",aiSignal:"Hasil AI Voice (Output)",activeSignal:"Signal Aktif",pipStream:"PiP Waveform",pipClose:"Batal PiP",hudLatency:"Latensi Bulat (RTT)",hudInference:"Kecepatan Inference",hudDetector:"Detektor Suara",hudTalking:"Bicara",hudSilent:"Berdiam",hudSr:"Frekuensi Model",hudHelp:"Tekan ? untuk melihat menu hotkey",shortcutsTitle:"Panduan Keyboard Shortcut",shortcutsDesc:"Gunakan keyboard shortcuts berikut untuk navigasi dashboard tanpa mouse:",shortcutsClose:"Tutup",shortcutConnect:"Hubungkan / Putuskan Server WebSocket",shortcutStream:"Mulai / Hentikan Pengubah Suara AI",shortcutMute:"Bungkam / Dengarkan Audio Output Lokal",shortcutPreset1:"Terapkan Profil: Respon Kilat (PM)",shortcutPreset2:"Terapkan Profil: Kualitas Tinggi (RMVPE)",shortcutHelp:"Buka / Tutup Dialog Panduan Shortcut",characterCardTitle:"Karakter Suara Aktif",characterAvatarDesc:"Profil bobot suara yang sedang dimuat saat ini.",welcomeBack:"Pusat Kontrol Audio Real-Time",currentLang:"Bahasa",themeSettings:"Tema Antarmuka & Aksen",themeMode:"Mode Tema",themeDark:"Mode Gelap",themeLight:"Mode Terang",accentColorLabel:"Warna Aksen Global",tabCredits:"Kredit Open Source",creditsTitle:"💖 Kredit Lisensi & Open Source",creditsDescription:"ONNX VC dimungkinkan berkat proyek dan pustaka open source luar biasa berikut:",liveTuningTitle:"Setelan Cepat Pemrosesan",customCanvasTitle:"Kustomisasi Canvas Visualizer",showMicInput:"Tampilkan Input Mic",showAiOutput:"Tampilkan Output AI",lineWidthLabel:"Ketebalan Garis",traceDecayLabel:"Intensitas Ekor (Trail Fading)",inputLineColorLabel:"Warna Garis Input",outputLineColorLabel:"Warna Garis Output",creditCreatorTitle:"Pencipta & Integrator",creditNeuralTitle:"Konversi Neural",creditEngineTitle:"Mesin Inferensi",creditPitchTitle:"Ekstraksi Nada Vokal",creditPipelineTitle:"Streaming Pipeline",creditFrameworkTitle:"Framework Frontend",creditDesignTitle:"Desain & Animasi",creditCreatorDesc:"Pengembang antarmuka audio ONNX VC dan pengintegrasi workspace kontrol audio real-time berlatensi ultra-rendah.",creditNeuralDesc:"Kerangka kerja pengubah suara berbasis AI yang menggunakan fitur retrieval untuk transfer karakter suara berlatensi rendah.",creditEngineDesc:"Mesin akselerasi inferensi model lintas platform untuk CPU, CUDA GPU, dan Windows DirectML GPU.",creditPitchDesc:"Model deteksi pitch vokal berkinerja tinggi yang presisi terhadap desau latar belakang.",creditPipelineDesc:"Pipa transfer data audio biner mentah PCM float32 yang berjalan lancar antara peramban dan server python.",creditFrameworkDesc:"Kerangka kerja aplikasi web terstruktur yang dikompilasi ke statik HTML ekspor.",creditDesignDesc:"Mesin animasi layout deklaratif dan utilitas CSS presisi untuk tampilan premium."},ja:{appTitle:"🎙️ ONNX VC",appSubtitle:"ONNX Runtime高速化による低遅延リアルタイムAI音声変換システム。",wsServerUrl:"WebSocketサーバーURL",wsPlaceholder:"ws://localhost:8765",connectionStatus:"接続状態",disconnected:"切断",connecting:"接続中...",connected:"接続完了",connect:"サーバー接続",disconnect:"接続解除",startChanger:"音声変換開始",stopChanger:"音声変換停止",listeningActive:"モニター音:ON",listeningMute:"モニター音:OFF",tabDashboard:"ワークスペース",tabModel:"モデル設定",tabDsp:"オーディオDSP",tabShortcuts:"ショートカット",modelConfigTitle:"モデルとデバイスの構成",quickPresets:"クイックプリセット (パフォーマンス)",latencyPreset:"⚡ 低遅延優先 (PM)",qualityPreset:"🎙️ 高音質優先 (RMVPE)",selectModel:"キャラクターモデルの選択 (RVC ONNX)",executionProvider:"実行プロバイダー (GPUアクセラレーション)",routingMode:"音声ルーティングモード",clientMode:"クライアントモード (ブラウザ再生)",serverMode:"サーバーモード (ハードウェア直結)",serverInput:"サーバー入力マイク",serverOutput:"サーバー出力スピーカー",pitchMethod:"ピッチ検出アルゴリズム",transpose:"ピッチ変換 (トランスポーズ)",transposeMale:"-24 (男声向け)",transposeNormal:"0 (原音)",transposeFemale:"+24 (女声/アニメ声)",dspTitle:"オーディオ処理設定 (DSP)",noiseGate:"ノイズゲート (閾値)",noiseGateSens:"-60 dB (高感度)",noiseGateDefault:"-40 dB (推奨)",noiseGateStrict:"-10 dB (厳格)",inputGain:"入力ゲイン (マイク)",outputGain:"出力ゲイン (AI音量)",noiseCancel:"ノイズキャンセリング",noiseCancelDesc:"ブラウザのエコーと環境音を除去します",bufferSize:"バッファサイズ (遅延時間 vs 安定性)",visualizerTitle:"リアルタイム波形表示",micSignal:"マイク入力信号",aiSignal:"AI音声出力信号",activeSignal:"音声検出中",pipStream:"PiP波形ウィンドウ",pipClose:"PiPを閉じる",hudLatency:"応答速度 (RTT)",hudInference:"推論速度",hudDetector:"音声検出",hudTalking:"発話中",hudSilent:"無音",hudSr:"モデルサンプリングレート",hudHelp:"?キーでショートカットヘルプを表示",shortcutsTitle:"キーボードショートカット一覧",shortcutsDesc:"キーボードを使ってマウスなしで素早く操作できます:",shortcutsClose:"閉じる",shortcutConnect:"WebSocketサーバーの接続 / 切断",shortcutStream:"AI音声変換の開始 / 停止",shortcutMute:"ローカル出力のミュート / 解除",shortcutPreset1:"プリセット適用:低遅延優先 (PM)",shortcutPreset2:"プリセット適用:高音質優先 (RMVPE)",shortcutHelp:"ショートカット一覧の表示 / 非表示",characterCardTitle:"現在のボイスモデル",characterAvatarDesc:"現在ロードされている音声のキャラクタープロファイルです。",welcomeBack:"リアルタイムオーディオコントロールセンター",currentLang:"言語",themeSettings:"テーマとアクセント",themeMode:"テーマモード",themeDark:"ダークモード",themeLight:"ライトモード",accentColorLabel:"グローバルアクセントカラー",tabCredits:"オープンソース",creditsTitle:"💖 オープンソースクレジット",creditsDescription:"ONNX VCは、以下の素晴らしいオープンソースプロジェクトとライブラリのおかげで実現しました。",liveTuningTitle:"常用パラメータ微調整",customCanvasTitle:"カスタムビジュアライザ",showMicInput:"マイク入力を表示",showAiOutput:"AI出力を表示",lineWidthLabel:"線の太さ",traceDecayLabel:"残像フェード率",inputLineColorLabel:"入力線の色",outputLineColorLabel:"出力線の色",creditCreatorTitle:"開発・統合元",creditNeuralTitle:"ニューラル音声変換",creditEngineTitle:"推推論エンジン",creditPitchTitle:"ピッチ検出",creditPipelineTitle:"ストリーミング・パイプライン",creditFrameworkTitle:"フロントエンドフレームワーク",creditDesignTitle:"デザインとアニメーション",creditCreatorDesc:"ONNX VCクライアントインターフェースおよび超低遅延リアルタイムオーディオ制御ワークスペースの統合開発チーム。",creditNeuralDesc:"リアルタイムの音声特徴抽出および声質変換のためのコアニューラルネットワークアーキテクチャ。",creditEngineDesc:"CPU、NVIDIA CUDA、およびWindows DirectML GPUバックエンド上で動作する、クロスプラットフォームの推論高速化エンジン。",creditPitchDesc:"周囲のノイズ下でも高精度にボーカルのピッチ追跡を行うことができる高性能ピッチ推定モデル。",creditPipelineDesc:"ブラウザクライアントとPythonサーバー間で生のPCM float32フレームを高速に送受信するバイナリデータパイプライン。",creditFrameworkDesc:"Reactクライアントコンポーネントを静的に最適化されたHTMLにエクスポートするモダンウェブフレームワーク。",creditDesignDesc:"インタラクティブで高品質なUIデザインのための、ユーティリティ優先CSSおよび宣言的アニメーションライブラリ。"},zh:{appTitle:"🎙️ ONNX VC",appSubtitle:"基于 ONNX 运行时加速的低延迟实时 AI 变声器系统。",wsServerUrl:"WebSocket 服务器地址",wsPlaceholder:"ws://localhost:8765",connectionStatus:"连接状态",disconnected:"已断开",connecting:"连接中...",connected:"已连接",connect:"连接服务器",disconnect:"断开连接",startChanger:"开启变声",stopChanger:"停止变声",listeningActive:"声音监听:开启",listeningMute:"声音监听:静音",tabDashboard:"控制工作台",tabModel:"模型设置",tabDsp:"音频 DSP",tabShortcuts:"快捷键",modelConfigTitle:"变声模型与硬件设备配置",quickPresets:"快速预设 (性能配置)",latencyPreset:"⚡ 极速响应 (PM)",qualityPreset:"🎙️ 高清音质 (RMVPE)",selectModel:"选择声音模型 (RVC ONNX)",executionProvider:"运行加速提供商 (GPU 加速)",routingMode:"音频路由模式",clientMode:"客户端模式 (浏览器音频流转换)",serverMode:"服务器模式 (直连服务端硬件)",serverInput:"服务器输入麦克风",serverOutput:"服务器输出扬声器",pitchMethod:"基频检测算法 (Pitch)",transpose:"变调参数 (Transpose)",transposeMale:"-24 (男声声调)",transposeNormal:"0 (原音)",transposeFemale:"+24 (女声/动漫声调)",dspTitle:"音频效果器配置 (DSP)",noiseGate:"噪声门限阈值 (Noise Gate)",noiseGateSens:"-60 dB (灵敏)",noiseGateDefault:"-40 dB (默认)",noiseGateStrict:"-10 dB (严格)",inputGain:"输入增益 (麦克风音量)",outputGain:"输出增益 (变声后音量)",noiseCancel:"回声抑噪过滤",noiseCancelDesc:"过滤浏览器的回声和杂音",bufferSize:"缓冲区大小 (延迟时间 vs 稳定性)",visualizerTitle:"实时音频波形图",micSignal:"麦克风输入波形",aiSignal:"AI变声输出波形",activeSignal:"正在输入",pipStream:"画中画波形图",pipClose:"关闭画中画",hudLatency:"双向延迟 (RTT)",hudInference:"推理用时",hudDetector:"声控指示器",hudTalking:"检测到讲话",hudSilent:"静音中",hudSr:"模型音频采样率",hudHelp:"按 ? 键打开快捷键指南",shortcutsTitle:"键盘快捷键指南",shortcutsDesc:"使用键盘快捷键可以在没有鼠标的情况下极速控制工作台:",shortcutsClose:"关闭",shortcutConnect:"连接 / 断开 WebSocket 服务器",shortcutStream:"开启 / 停止 AI 变声器",shortcutMute:"静音 / 开启本地输出监听",shortcutPreset1:"加载预设:极速响应 (PM)",shortcutPreset2:"加载预设:高清音质 (RMVPE)",shortcutHelp:"打开 / 关闭快捷键帮助面板",characterCardTitle:"当前声音人物",characterAvatarDesc:"当前正在承载的音频权重包与神经网络特征。",welcomeBack:"实时音频变声控制台",currentLang:"语言",themeSettings:"界面主题与强调色",themeMode:"主题模式",themeDark:"深色模式",themeLight:"浅色模式",accentColorLabel:"全局强调颜色",tabCredits:"开源鸣谢",creditsTitle:"💖 开源软件鸣谢",creditsDescription:"ONNX VC 的诞生离不开以下优秀的开源项目与函数库的支持:",liveTuningTitle:"常用变声微调",customCanvasTitle:"画布自定设置",showMicInput:"显示麦克风输入",showAiOutput:"显示AI变声输出",lineWidthLabel:"线条宽度",traceDecayLabel:"余晖消退率 (渐变)",inputLineColorLabel:"输入线颜色",outputLineColorLabel:"输出线颜色",creditCreatorTitle:"核心集成开发商",creditNeuralTitle:"声线转换算法",creditEngineTitle:"深度学习推理引擎",creditPitchTitle:"基频音高提取",creditPipelineTitle:"数据流通通道",creditFrameworkTitle:"前端应用框架",creditDesignTitle:"界面设计与动效",creditCreatorDesc:"ONNX VC 客户端界面设计与超低延迟音频控制工作台的集成开发者。",creditNeuralDesc:"基于检索的神经网络架构,用于实现低延迟的实时声音特征提取与音色转换。",creditEngineDesc:"跨平台的机器学习模型推理加速引擎,支持 CPU、NVIDIA CUDA 以及 Windows DirectML GPU 后端。",creditPitchDesc:"高性能人声基频检测模型,在背景嘈杂的环境下仍能提供极高精度的音高跟踪。",creditPipelineDesc:"在浏览器客户端与 Python 服务端之间高速传输原始 PCM Float32 音频帧的双向二进制数据通道。",creditFrameworkDesc:"现代网页开发框架,支持将 React 客户端组件编译并打包为高度优化的静态资源导出。",creditDesignDesc:"功能类优先 CSS 框架与流式声明式动画库,用以打造流畅的高级交互式视觉界面。"},es:{appTitle:"🎙️ ONNX VC",appSubtitle:"Modulador de voz por IA en tiempo real y baja latencia acelerado por ONNX Runtime.",wsServerUrl:"URL del Servidor WebSocket",wsPlaceholder:"ws://localhost:8765",connectionStatus:"Estado de la Conexión",disconnected:"Desconectado",connecting:"Conectando...",connected:"Conectado",connect:"Conectar Servidor",disconnect:"Desconectar Servidor",startChanger:"Iniciar Modulador",stopChanger:"Detener Modulador",listeningActive:"Escucha: ACTIVA",listeningMute:"Escucha: SILENCIADO",tabDashboard:"Espacio Trabajo",tabModel:"Ajustes Modelo",tabDsp:"Audio DSP",tabShortcuts:"Atajos Teclado",modelConfigTitle:"Configuración de Modelo y Dispositivo",quickPresets:"Ajustes Rápidos (Perfil de Rendimiento)",latencyPreset:"⚡ Respuesta Instantánea (PM)",qualityPreset:"🎙️ Alta Fidelidad (RMVPE)",selectModel:"Seleccionar Modelo de Voz (RVC ONNX)",executionProvider:"Proveedor de Ejecución (Aceleración GPU)",routingMode:"Modo de Ruta de Audio",clientMode:"Modo Cliente (Streaming en Navegador)",serverMode:"Modo Servidor (Sounddevice Directo)",serverInput:"Micrófono de Entrada del Servidor",serverOutput:"Altavoz de Salida del Servidor",pitchMethod:"Método de Extracción de Tono",transpose:"Transposición (Modificador de Tono)",transposeMale:"-24 (Tono Grave Masculino)",transposeNormal:"0 (Original)",transposeFemale:"+24 (Tono Agudo/Anime)",dspTitle:"Configuración de Procesamiento de Audio (DSP)",noiseGate:"Puerta de Ruido (Umbral)",noiseGateSens:"-60 dB (Sensible)",noiseGateDefault:"-40 dB (Predeterminado)",noiseGateStrict:"-10 dB (Estricto)",inputGain:"Ganancia de Entrada (Micrófono)",outputGain:"Ganancia de Salida (Volumen IA)",noiseCancel:"Cancelación de Ruido (Filtro)",noiseCancelDesc:"Filtra el eco y el zumbido de fondo",bufferSize:"Tamaño de Búfer (Tamaño de Chunk - Latencia vs Estabilidad)",visualizerTitle:"Visualizador de Ondas de Audio",micSignal:"Señal de Entrada del Micrófono",aiSignal:"Señal de Salida de Voz IA",activeSignal:"Señal Activa",pipStream:"Forma de Onda PiP",pipClose:"Cerrar PiP",hudLatency:"Latencia RTT",hudInference:"Velocidad de Inferencia",hudDetector:"Detector de Voz",hudTalking:"Hablando",hudSilent:"Silencio",hudSr:"Frecuencia del Modelo",hudHelp:"Presione ? para ver el menú de atajos",shortcutsTitle:"Guía de Atajos de Teclado",shortcutsDesc:"Utilice los siguientes atajos para controlar el panel de control sin el mouse:",shortcutsClose:"Cerrar",shortcutConnect:"Conectar / Desconectar Servidor WebSocket",shortcutStream:"Iniciar / Detener Modulador de Voz IA",shortcutMute:"Silenciar / Activar Escucha Local de Salida",shortcutPreset1:"Cargar Ajuste: Respuesta Instantánea (PM)",shortcutPreset2:"Cargar Ajuste: Alta Fidelidad (RMVPE)",shortcutHelp:"Abrir / Cerrar Diálogo de Ayuda de Atajos",characterCardTitle:"Voz del Personaje Activo",characterAvatarDesc:"Perfil de pesos de voz cargado actualmente.",welcomeBack:"Centro de Control de Audio en Tiempo Real",currentLang:"Idioma",themeSettings:"Tema de Interfaz y Acento",themeMode:"Modo de Tema",themeDark:"Modo Oscuro",themeLight:"Modo Claro",accentColorLabel:"Color de Acento Global",tabCredits:"Créditos",creditsTitle:"💖 Créditos de Código Abierto",creditsDescription:"ONNX VC es posible gracias a los siguientes increíbles proyectos y bibliotecas de código abierto:",liveTuningTitle:"Ajustes en Vivo",customCanvasTitle:"Ajustes de Canvas",showMicInput:"Mostrar Entrada Mic",showAiOutput:"Mostrar Salida IA",lineWidthLabel:"Grosor de Línea",traceDecayLabel:"Decaimiento del Trazo",inputLineColorLabel:"Color de Línea de Entrada",outputLineColorLabel:"Color de Línea de Salida",creditCreatorTitle:"Creador e Integrador",creditNeuralTitle:"Conversión Neuronal",creditEngineTitle:"Motor de Inferencia",creditPitchTitle:"Extracción de Tono",creditPipelineTitle:"Línea de Transmisión",creditFrameworkTitle:"Marco Frontend",creditDesignTitle:"Diseño y Animación",creditCreatorDesc:"Creadores de la interfaz de cliente ONNX VC e integradores del entorno de control de audio en tiempo real.",creditNeuralDesc:"Arquitectura central de red neuronal para la extracción de características de voz y conversión vocal.",creditEngineDesc:"Acelerador multiplataforma de inferencia de modelos de IA para CPU, GPU CUDA y GPU DirectML de Windows.",creditPitchDesc:"Modelo robusto de estimación de tono mínimo para un seguimiento de tono vocal de alta precisión.",creditPipelineDesc:"Tubería binaria de alta velocidad para la transferencia de tramas PCM float32 nativas entre el cliente y el servidor.",creditFrameworkDesc:"Marco de desarrollo web moderno que compila componentes de React para exportaciones estáticas optimizadas.",creditDesignDesc:"Utilidad de estilos CSS y librerías de animación declarativa para interfaces de usuario interactivas de primera calidad."}},ar=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),an=[],as=(e,t,i)=>{if(0==e.length-t)return i.classGroupId;let r=e[t],n=i.nextPart.get(r);if(n){let i=as(e,t+1,n);if(i)return i}let s=i.validators;if(null===s)return;let a=0===t?e.join("-"):e.slice(t).join("-"),o=s.length;for(let e=0;e<o;e++){let t=s[e];if(t.validator(a))return t.classGroupId}},aa=(e,t)=>{let i=ar();for(let r in e)ao(e[r],i,r,t);return i},ao=(e,t,i,r)=>{let n=e.length;for(let s=0;s<n;s++)al(e[s],t,i,r)},al=(e,t,i,r)=>{"string"==typeof e?ac(e,t,i):"function"==typeof e?ad(e,t,i,r):au(e,t,i,r)},ac=(e,t,i)=>{(""===e?t:ah(t,e)).classGroupId=i},ad=(e,t,i,r)=>{ap(e)?ao(e(r),t,i,r):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:i,validator:e}))},au=(e,t,i,r)=>{let n=Object.entries(e),s=n.length;for(let e=0;e<s;e++){let[s,a]=n[e];ao(a,ah(t,s),i,r)}},ah=(e,t)=>{let i=e,r=t.split("-"),n=r.length;for(let e=0;e<n;e++){let t=r[e],n=i.nextPart.get(t);n||(n=ar(),i.nextPart.set(t,n)),i=n}return i},ap=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,am=[],af=(e,t,i,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:r,isExternal:n}),ag=/\s+/,ax=e=>{let t;if("string"==typeof e)return e;let i="";for(let r=0;r<e.length;r++)e[r]&&(t=ax(e[r]))&&(i&&(i+=" "),i+=t);return i},av=[],ab=e=>{let t=t=>t[e]||av;return t.isThemeGetter=!0,t},ay=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ak=/^\((?:(\w[\w-]*):)?(.+)\)$/i,aw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,aj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,aS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,az=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,aC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,aT=e=>aw.test(e),aM=e=>!!e&&!Number.isNaN(Number(e)),aN=e=>!!e&&Number.isInteger(Number(e)),aA=e=>e.endsWith("%")&&aM(e.slice(0,-1)),aE=e=>aj.test(e),aD=()=>!0,aV=e=>aS.test(e)&&!az.test(e),aL=()=>!1,aR=e=>aC.test(e),aI=e=>aP.test(e),aF=e=>!a_(e)&&!aK(e),aB=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),aO=e=>a5(e,a6,aL),a_=e=>ay.test(e),a$=e=>a5(e,a9,aV),aW=e=>a5(e,a7,aM),aU=e=>a5(e,ot,aD),aG=e=>a5(e,oe,aL),aH=e=>a5(e,a3,aL),aX=e=>a5(e,a8,aI),aq=e=>a5(e,oi,aR),aK=e=>ak.test(e),aY=e=>a4(e,a9),aZ=e=>a4(e,oe),aJ=e=>a4(e,a3),aQ=e=>a4(e,a6),a0=e=>a4(e,a8),a1=e=>a4(e,oi,!0),a2=e=>a4(e,ot,!0),a5=(e,t,i)=>{let r=ay.exec(e);return!!r&&(r[1]?t(r[1]):i(r[2]))},a4=(e,t,i=!1)=>{let r=ak.exec(e);return!!r&&(r[1]?t(r[1]):i)},a3=e=>"position"===e||"percentage"===e,a8=e=>"image"===e||"url"===e,a6=e=>"length"===e||"size"===e||"bg-size"===e,a9=e=>"length"===e,a7=e=>"number"===e,oe=e=>"family-name"===e,ot=e=>"number"===e||"weight"===e,oi=e=>"shadow"===e,or=((e,...t)=>{let i,r,n,s,a=e=>{let t=r(e);if(t)return t;let s=((e,t)=>{let{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s,postfixLookupClassGroupIds:a}=t,o=[],l=e.trim().split(ag),c="";for(let e=l.length-1;e>=0;e-=1){let t,d=l[e],{isExternal:u,modifiers:h,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:f}=i(d);if(u){c=d+(c.length>0?" "+c:c);continue}let g=!!f;if(g){let e=(t=r(m.substring(0,f)))&&a[t]?r(m):void 0;e&&e!==t&&(t=e,g=!1)}else t=r(m);if(!t){if(!g||!(t=r(m))){c=d+(c.length>0?" "+c:c);continue}g=!1}let x=0===h.length?"":1===h.length?h[0]:s(h).join(":"),v=p?x+"!":x,b=v+t;if(o.indexOf(b)>-1)continue;o.push(b);let y=n(t,g);for(let e=0;e<y.length;++e){let t=y[e];o.push(v+t)}c=d+(c.length>0?" "+c:c)}return c})(e,i);return n(e,s),s};return s=o=>{var l;let c;return r=(i={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,i=Object.create(null),r=Object.create(null),n=(n,s)=>{i[n]=s,++t>e&&(t=0,r=i,i=Object.create(null))};return{get(e){let t=i[e];return void 0!==t?t:void 0!==(t=r[e])?(n(e,t),t):void 0},set(e,t){e in i?i[e]=t:n(e,t)}}})((l=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:i}=e,r=e=>{let t,i=[],r=0,n=0,s=0,a=e.length;for(let o=0;o<a;o++){let a=e[o];if(0===r&&0===n){if(":"===a){i.push(e.slice(s,o)),s=o+1;continue}if("/"===a){t=o;continue}}"["===a?r++:"]"===a?r--:"("===a?n++:")"===a&&n--}let o=0===i.length?e:e.slice(s),l=o,c=!1;return o.endsWith("!")?(l=o.slice(0,-1),c=!0):o.startsWith("!")&&(l=o.slice(1),c=!0),af(i,c,l,t&&t>s?t-s:void 0)};if(t){let e=t+":",i=r;r=t=>t.startsWith(e)?i(t.slice(e.length)):af(am,!1,t,void 0,!0)}if(i){let e=r;r=t=>i({className:t,parseClassName:e})}return r})(l),sortModifiers:(c=new Map,l.orderSensitiveModifiers.forEach((e,t)=>{c.set(e,1e6+t)}),e=>{let t=[],i=[];for(let r=0;r<e.length;r++){let n=e[r],s="["===n[0],a=c.has(n);s||a?(i.length>0&&(i.sort(),t.push(...i),i=[]),t.push(n)):i.push(n)}return i.length>0&&(i.sort(),t.push(...i)),t}),postfixLookupClassGroupIds:(e=>{let t=Object.create(null),i=e.postfixLookupClassGroups;if(i)for(let e=0;e<i.length;e++)t[i[e]]=!0;return t})(l),...(e=>{let t=(e=>{let{theme:t,classGroups:i}=e;return aa(i,t)})(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var i;let t,r,n;return -1===(i=e).slice(1,-1).indexOf(":")?void 0:(r=(t=i.slice(1,-1)).indexOf(":"),(n=t.slice(0,r))?"arbitrary.."+n:void 0)}let r=e.split("-"),n=+(""===r[0]&&r.length>1);return as(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],n=i[e];if(t){if(n){let e=Array(n.length+t.length);for(let t=0;t<n.length;t++)e[t]=n[t];for(let i=0;i<t.length;i++)e[n.length+i]=t[i];return e}return t}return n||an}return i[e]||an}}})(l)}).cache.get,n=i.cache.set,s=a,a(o)},(...e)=>s(((...e)=>{let t,i,r=0,n="";for(;r<e.length;)(t=e[r++])&&(i=ax(t))&&(n&&(n+=" "),n+=i);return n})(...e))})(()=>{let e=ab("color"),t=ab("font"),i=ab("text"),r=ab("font-weight"),n=ab("tracking"),s=ab("leading"),a=ab("breakpoint"),o=ab("container"),l=ab("spacing"),c=ab("radius"),d=ab("shadow"),u=ab("inset-shadow"),h=ab("text-shadow"),p=ab("drop-shadow"),m=ab("blur"),f=ab("perspective"),g=ab("aspect"),x=ab("ease"),v=ab("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...y(),aK,a_],w=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],S=()=>[aK,a_,l],z=()=>[aT,"full","auto",...S()],C=()=>[aN,"none","subgrid",aK,a_],P=()=>["auto",{span:["full",aN,aK,a_]},aN,aK,a_],T=()=>[aN,"auto",aK,a_],M=()=>["auto","min","max","fr",aK,a_],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],A=()=>["start","end","center","stretch","center-safe","end-safe"],E=()=>["auto",...S()],D=()=>[aT,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],V=()=>[aT,"screen","full","dvw","lvw","svw","min","max","fit",...S()],L=()=>[aT,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],R=()=>[e,aK,a_],I=()=>[...y(),aJ,aH,{position:[aK,a_]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],B=()=>["auto","cover","contain",aQ,aO,{size:[aK,a_]}],O=()=>[aA,aY,a$],_=()=>["","none","full",c,aK,a_],$=()=>["",aM,aY,a$],W=()=>["solid","dashed","dotted","double"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[aM,aA,aJ,aH],H=()=>["","none",m,aK,a_],X=()=>["none",aM,aK,a_],q=()=>["none",aM,aK,a_],K=()=>[aM,aK,a_],Y=()=>[aT,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[aE],breakpoint:[aE],color:[aD],container:[aE],"drop-shadow":[aE],ease:["in","out","in-out"],font:[aF],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[aE],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[aE],shadow:[aE],spacing:["px",aM],text:[aE],"text-shadow":[aE],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",aT,a_,aK,g]}],container:["container"],"container-type":[{"@container":["","normal","size",aK,a_]}],"container-named":[aB],columns:[{columns:[aM,a_,aK,o]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[aN,"auto",aK,a_]}],basis:[{basis:[aT,"full","auto",o,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[aM,aT,"auto","initial","none",a_]}],grow:[{grow:["",aM,aK,a_]}],shrink:[{shrink:["",aM,aK,a_]}],order:[{order:[aN,"first","last","none",aK,a_]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:P()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:P()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...A(),"normal"]}],"justify-self":[{"justify-self":["auto",...A()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...A(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...A(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...A(),"baseline"]}],"place-self":[{"place-self":["auto",...A()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],"inline-size":[{inline:["auto",...V()]}],"min-inline-size":[{"min-inline":["auto",...V()]}],"max-inline-size":[{"max-inline":["none",...V()]}],"block-size":[{block:["auto",...L()]}],"min-block-size":[{"min-block":["auto",...L()]}],"max-block-size":[{"max-block":["none",...L()]}],w:[{w:[o,"screen",...D()]}],"min-w":[{"min-w":[o,"screen","none",...D()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[a]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",i,aY,a$]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,a2,aU]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",aA,a_]}],"font-family":[{font:[aZ,aG,t]}],"font-features":[{"font-features":[a_]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,aK,a_]}],"line-clamp":[{"line-clamp":[aM,"none",aK,aW]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",aK,a_]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",aK,a_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[aM,"from-font","auto",aK,a$]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[aM,"auto",aK,a_]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"tab-size":[{tab:[aN,aK,a_]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",aK,a_]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",aK,a_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},aN,aK,a_],radial:["",aK,a_],conic:[aN,aK,a_]},a0,aX]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:O()}],"gradient-via-pos":[{via:O()}],"gradient-to-pos":[{to:O()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-bs":[{"border-bs":$()}],"border-w-be":[{"border-be":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-bs":[{"border-bs":R()}],"border-color-be":[{"border-be":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[aM,aK,a_]}],"outline-w":[{outline:["",aM,aY,a$]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",d,a1,aq]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",u,a1,aq]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[aM,a$]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",h,a1,aq]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[aM,aK,a_]}],"mix-blend":[{"mix-blend":[...U(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":U()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[aM]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[aK,a_]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[aM]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",aK,a_]}],filter:[{filter:["","none",aK,a_]}],blur:[{blur:H()}],brightness:[{brightness:[aM,aK,a_]}],contrast:[{contrast:[aM,aK,a_]}],"drop-shadow":[{"drop-shadow":["","none",p,a1,aq]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",aM,aK,a_]}],"hue-rotate":[{"hue-rotate":[aM,aK,a_]}],invert:[{invert:["",aM,aK,a_]}],saturate:[{saturate:[aM,aK,a_]}],sepia:[{sepia:["",aM,aK,a_]}],"backdrop-filter":[{"backdrop-filter":["","none",aK,a_]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[aM,aK,a_]}],"backdrop-contrast":[{"backdrop-contrast":[aM,aK,a_]}],"backdrop-grayscale":[{"backdrop-grayscale":["",aM,aK,a_]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[aM,aK,a_]}],"backdrop-invert":[{"backdrop-invert":["",aM,aK,a_]}],"backdrop-opacity":[{"backdrop-opacity":[aM,aK,a_]}],"backdrop-saturate":[{"backdrop-saturate":[aM,aK,a_]}],"backdrop-sepia":[{"backdrop-sepia":["",aM,aK,a_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",aK,a_]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[aM,"initial",aK,a_]}],ease:[{ease:["linear","initial",x,aK,a_]}],delay:[{delay:[aM,aK,a_]}],animate:[{animate:["none",v,aK,a_]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,aK,a_]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:K()}],"skew-x":[{"skew-x":K()}],"skew-y":[{"skew-y":K()}],transform:[{transform:[aK,a_,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Y()}],"translate-x":[{"translate-x":Y()}],"translate-y":[{"translate-y":Y()}],"translate-z":[{"translate-z":Y()}],"translate-none":["translate-none"],zoom:[{zoom:[aN,aK,a_]}],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",aK,a_]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":R()}],"scrollbar-track-color":[{"scrollbar-track":R()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",aK,a_]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[aM,aY,a$,aW]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),on=a.forwardRef(({className:e,variant:t="primary",size:i="default",...r},n)=>(0,s.jsx)("button",{ref:n,className:or("inline-flex items-center justify-center font-medium rounded-xl transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-lime-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 active:scale-[0.98] cursor-pointer","default"===i&&"h-11 px-5 py-2.5 text-sm","sm"===i&&"h-9 px-3.5 text-xs rounded-lg","lg"===i&&"h-12 px-7 py-3 text-base rounded-2xl","icon"===i&&"h-10 w-10 rounded-xl","primary"===t&&"bg-[var(--accent-color)] hover:bg-[var(--accent-hover)] text-white shadow-sm shadow-lime-500/10 font-semibold","secondary"===t&&"bg-[var(--accent-soft)] hover:bg-[var(--accent-soft)]/80 text-[var(--accent-text)] font-semibold","accent"===t&&"bg-zinc-900 dark:bg-[var(--accent-color)] hover:bg-zinc-850 dark:hover:bg-[var(--accent-hover)] text-white dark:text-zinc-950 shadow-sm font-semibold","outline"===t&&"border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-900 hover:bg-zinc-50 dark:hover:bg-zinc-800 text-zinc-700 dark:text-zinc-300","ghost"===t&&"hover:bg-zinc-50 dark:hover:bg-zinc-800 text-zinc-700 dark:text-zinc-300","success"===t&&"bg-[#10b981] hover:bg-[#059669] text-white shadow-sm font-semibold","danger"===t&&"bg-red-500 hover:bg-red-600 text-white shadow-sm font-semibold",e),...r}));on.displayName="Button";let os=a.forwardRef(({className:e,value:t,min:i,max:r,step:n=1,onValueChange:a,...o},l)=>{let c=(t-i)/(r-i)*100;return(0,s.jsx)("div",{className:"relative w-full flex items-center select-none group",children:(0,s.jsx)("input",{type:"range",ref:l,min:i,max:r,step:n,value:t,onChange:e=>a?.(parseFloat(e.target.value)),className:or("w-full h-2 rounded-lg bg-zinc-200 dark:bg-zinc-800 appearance-none cursor-pointer outline-none focus:outline-none","[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-[var(--accent-color)] [&::-webkit-slider-thumb]:shadow-md [&::-webkit-slider-thumb]:transition-all [&::-webkit-slider-thumb]:active:scale-110","[&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-white [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-[var(--accent-color)] [&::-moz-range-thumb]:shadow-md [&::-moz-range-thumb]:transition-all [&::-moz-range-thumb]:active:scale-110",e),style:{background:`linear-gradient(to right, var(--accent-color) 0%, var(--accent-color) ${c}%, var(--track-bg, #e4e4e7) ${c}%, var(--track-bg, #e4e4e7) 100%)`},...o})})});os.displayName="Slider";let oa=a.forwardRef(({className:e,options:t,...i},r)=>(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsx)("select",{ref:r,className:or("w-full h-11 px-4 text-sm bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-xl focus:outline-none focus:ring-2 focus:ring-[var(--accent-color)] focus:border-[var(--accent-color)] transition-all cursor-pointer appearance-none text-zinc-800 dark:text-zinc-100 pr-10",e),...i,children:t.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,s.jsx)("div",{className:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 flex items-center justify-center text-zinc-400",children:(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})})]}));oa.displayName="Select";let oo=a.forwardRef(({className:e,checked:t,onCheckedChange:i,label:r,variant:n="default",...a},o)=>(0,s.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer select-none group",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{type:"checkbox",ref:o,checked:t,onChange:e=>i?.(e.target.checked),className:"sr-only",...a}),(0,s.jsx)("div",{className:or("w-10 h-6 bg-zinc-200 dark:bg-zinc-800 rounded-full transition-all duration-200 group-focus-within:ring-2 group-focus-within:ring-offset-2","dark"===n?"group-focus-within:ring-zinc-500":"group-focus-within:ring-[var(--accent-color)]",t&&("dark"===n?"bg-zinc-800 dark:bg-zinc-700 border border-zinc-700/50 dark:border-zinc-650/80":"bg-[var(--accent-color)]"),e)}),(0,s.jsx)("div",{className:or("absolute left-0.5 top-0.5 w-5 h-5 bg-white dark:bg-zinc-900 rounded-full transition-all duration-200 shadow-sm border border-zinc-200/50 dark:border-zinc-800/80",t&&"translate-x-4",t&&("dark"===n?"border-zinc-500":"border-[var(--accent-color)]"))})]}),r&&(0,s.jsx)("span",{className:"text-sm font-medium text-zinc-700 dark:text-zinc-300 select-none",children:r})]}));oo.displayName="Switch";let ol=a.forwardRef(({className:e,variant:t="default",...i},r)=>(0,s.jsx)("span",{ref:r,className:or("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold select-none border tracking-wide uppercase","default"===t&&"bg-[var(--accent-color)] text-white border-transparent","secondary"===t&&"bg-[var(--accent-soft)] text-[var(--accent-text)] border-transparent","success"===t&&"bg-[#10b981]/10 text-[#059669] border-[#10b981]/20","warning"===t&&"bg-amber-500/10 text-amber-700 border-amber-500/20","danger"===t&&"bg-red-500/10 text-red-700 border-red-500/20","info"===t&&"bg-sky-500/10 text-sky-700 border-sky-500/20","outline"===t&&"text-zinc-600 dark:text-zinc-400 border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-900",e),...i}));ol.displayName="Badge";let oc=sH("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),od=({isOpen:e,onClose:t,title:i,children:r,className:n})=>(a.useEffect(()=>{if(!e)return;let i=e=>{"Escape"===e.key&&t()};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[e,t]),(0,s.jsx)(sO,{children:e&&(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,s.jsx)(sA.div,{className:"fixed inset-0 bg-zinc-950/40 backdrop-blur-sm",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t}),(0,s.jsxs)(sA.div,{className:or("relative bg-white dark:bg-zinc-900 w-full max-w-lg rounded-2xl p-6 shadow-xl border border-zinc-200/50 dark:border-zinc-800/80 z-10 overflow-hidden flex flex-col max-h-[85vh] text-zinc-800 dark:text-zinc-100",n),initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.2,ease:"easeOut"},children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mb-4 pb-2 border-b border-zinc-100 dark:border-zinc-800",children:[(0,s.jsx)("h2",{className:"text-lg font-bold text-zinc-900 dark:text-zinc-100 leading-none",children:i}),(0,s.jsx)("button",{onClick:t,className:"p-1.5 rounded-lg text-zinc-400 dark:text-zinc-500 hover:bg-zinc-50 dark:hover:bg-zinc-800 hover:text-zinc-700 dark:hover:text-zinc-300 transition-colors focus:outline-none focus:ring-2 focus:ring-[var(--accent-color)] cursor-pointer",children:(0,s.jsx)(oc,{className:"w-4 h-4"})})]}),(0,s.jsx)("div",{className:"overflow-y-auto pr-1 flex-1",children:r})]})]})})),ou=sH("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),oh=sH("monitor-off",[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826",key:"cv7jms"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["path",{d:"M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042",key:"z8ni2w"}]]),op=({title:e,buffer:t,strokeColor:i,isTalking:r=!1,lineWidth:n=2,traceFade:o=.4,isDark:l=!1,lang:c="en"})=>{var d;let u,h,p,m,f=ai[c],{canvasRef:g,updateData:x}=(d={strokeColor:i,fillColor:l?`rgba(9, 9, 11, ${o})`:`rgba(255, 255, 255, ${o})`,scaleAmplitude:2,lineWidth:n},u=(0,a.useRef)(null),h=(0,a.useRef)(null),p=(0,a.useRef)(null),m=(0,a.useCallback)(e=>{p.current=e},[]),(0,a.useEffect)(()=>{let e=u.current;if(!e)return;let t=e.getContext("2d");if(!t)return;let i=()=>{let i=e.getBoundingClientRect();e.width=i.width*window.devicePixelRatio,e.height=i.height*window.devicePixelRatio,t.fillStyle=(d.fillColor||"rgba(10, 10, 10, 0.4)").replace(/[\d.]+\)$/,"1)"),t.fillRect(0,0,e.width,e.height)};i(),window.addEventListener("resize",i),t.fillStyle=(d.fillColor||"rgba(10, 10, 10, 0.4)").replace(/[\d.]+\)$/,"1)"),t.fillRect(0,0,e.width,e.height);let r=()=>{let i=e.width,n=e.height,s=p.current;if(t.fillStyle=d.fillColor||"rgba(10, 10, 10, 0.4)",t.fillRect(0,0,i,n),s&&s.length>0){t.lineWidth=(d.lineWidth??2)*window.devicePixelRatio,t.strokeStyle=d.strokeColor,t.lineJoin="round",t.beginPath();let e=i/s.length,r=0;for(let i=0;i<s.length;i++){let a=n/2*(s[i]*(d.scaleAmplitude??1.5))+n/2;0===i?t.moveTo(r,a):t.lineTo(r,a),r+=e}t.lineTo(i,n/2),t.stroke()}t.strokeStyle=d.fillColor?.includes("255")?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.06)",t.lineWidth=1,t.beginPath(),t.moveTo(0,n/2),t.lineTo(i,n/2),t.stroke(),h.current=requestAnimationFrame(r)};return h.current=requestAnimationFrame(r),()=>{window.removeEventListener("resize",i),h.current&&cancelAnimationFrame(h.current)}},[d.strokeColor,d.fillColor,d.scaleAmplitude,d.lineWidth]),{canvasRef:u,updateData:m}),{togglePip:v,isPipActive:b,isSupported:y}=(()=>{let[e,t]=(0,a.useState)(!1),i=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=document.createElement("video");e.muted=!0,e.playsInline=!0,i.current=e;let r=()=>{t(!1)};return e.addEventListener("leavepictureinpicture",r),()=>{e.removeEventListener("leavepictureinpicture",r),document.pictureInPictureElement===e&&document.exitPictureInPicture().catch(()=>{})}},[]),{togglePip:(0,a.useCallback)(async e=>{if(!e||!i.current)return;let r=i.current;try{if(document.pictureInPictureElement===r)await document.exitPictureInPicture(),t(!1);else{let i=e.captureStream?e.captureStream(30):e.mozCaptureStream?e.mozCaptureStream(30):null;if(!i)throw Error("Canvas.captureStream() is not supported on this browser.");r.srcObject=i,await new Promise(e=>{r.onloadedmetadata=()=>{r.play().then(()=>e())}}),await r.requestPictureInPicture(),t(!0)}}catch(e){console.error("Picture-in-Picture failed:",e),alert("Picture-in-Picture error: "+(e instanceof Error?e.message:String(e)))}},[]),isPipActive:e,isSupported:"pictureInPictureEnabled"in document}})();return(0,a.useEffect)(()=>{let e=!0,i=()=>{e&&(x(t.current),requestAnimationFrame(i))};return i(),()=>{e=!1}},[t,x]),(0,s.jsxs)(sA.div,{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-5 relative overflow-hidden flex flex-col h-full transition-colors",initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.4},children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[r&&(0,s.jsx)(sA.span,{className:"w-2.5 h-2.5 rounded-full bg-[var(--accent-color)]",animate:{scale:[1,1.4,1],opacity:[1,.4,1]},transition:{repeat:1/0,duration:1.2}}),(0,s.jsxs)("h3",{className:"font-bold text-zinc-800 dark:text-zinc-200 text-xs tracking-wider uppercase flex items-center gap-1.5",children:[(0,s.jsx)(s4,{className:"w-4 h-4 text-[var(--accent-color)]"}),e]})]}),y&&(0,s.jsx)(on,{variant:"outline",size:"sm",onClick:()=>v(g.current),className:"text-[10px] h-8 px-2.5 flex items-center gap-1 border-zinc-200 dark:border-zinc-800 hover:bg-[var(--accent-soft)] dark:hover:bg-[var(--accent-soft)]/20 hover:text-[var(--accent-text)] dark:hover:text-[var(--accent-color)] text-zinc-700 dark:text-zinc-300 transition-colors",children:b?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(oh,{className:"w-3 h-3"}),f.pipClose]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ou,{className:"w-3 h-3"}),f.pipStream]})})]}),(0,s.jsxs)("div",{className:"relative flex-1 min-h-[140px] bg-zinc-50 dark:bg-zinc-950 border border-zinc-100 dark:border-zinc-900 rounded-xl overflow-hidden shadow-inner transition-colors",children:[(0,s.jsx)("canvas",{ref:g,className:"w-full h-full block cursor-pointer"}),(0,s.jsx)(sO,{children:r&&(0,s.jsx)(sA.div,{className:"absolute top-2.5 right-2.5 bg-[var(--accent-color)]/90 text-white text-[9px] font-bold px-2 py-0.5 rounded-full shadow-sm uppercase tracking-wider backdrop-blur-sm",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},children:f.activeSignal})})]})]})},om=[{value:"HuTao",label:"HuTao (Genshin Impact)"},{value:"HuoHuo",label:"HuoHuo (Honkai Star Rail)"}],of=[{value:"cpu",label:"CPU (Sangat Stabil)"},{value:"cuda",label:"CUDA (NVIDIA GPU - Cepat)"},{value:"dml",label:"DirectML (AMD/Intel GPU Windows)"}],og=[{value:"browser",label:"Client Mode (Browser Streaming)"},{value:"hardware",label:"Server Mode (Hardware Direct)"}],ox=[{value:"pm",label:"PM (Paling Cepat)"},{value:"dio",label:"DIO (Ringan)"},{value:"harvest",label:"Harvest (Presisi)"},{value:"rmvpe",label:"RMVPE (Kualitas Tinggi)"}],ov=[{value:"8192",label:"8192 sampel (~170ms | Rekomendasi)"},{value:"12288",label:"12288 sampel (~250ms | Halus)"},{value:"16384",label:"16384 sampel (~340ms | Kualitas Studio)"},{value:"24576",label:"24576 sampel (~510ms | Kokoh)"},{value:"32768",label:"32768 sampel (~680ms | Fidelitas)"},{value:"65536",label:"65536 sampel (~1.3 detik | Maksimal)"}],ob=[{name:"lime",color:"#84cc16",hover:"#65a30d",soft:"#d9f99d",text:"#4d7c0f"},{name:"cyan",color:"#06b6d4",hover:"#0891b2",soft:"#cffafe",text:"#0e7490"},{name:"emerald",color:"#10b981",hover:"#059669",soft:"#d1fae5",text:"#047857"},{name:"rose",color:"#f43f5e",hover:"#e11d48",soft:"#ffe4e6",text:"#be123c"},{name:"amber",color:"#f59e0b",hover:"#d97706",soft:"#fef3c7",text:"#b45309"},{name:"violet",color:"#8b5cf6",hover:"#7c3aed",soft:"#ede9fe",text:"#6d28d9"}];e.s(["default",0,function(){let[e,t]=(0,a.useState)(!1),[i,r]=(0,a.useState)("en"),[n,o]=(0,a.useState)("changer"),[l,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)("ws://127.0.0.1:8765"),[h,p]=(0,a.useState)(!1),[m,f]=(0,a.useState)(2),[g,x]=(0,a.useState)(.4),[v,b]=(0,a.useState)("#84cc16"),[y,k]=(0,a.useState)("#22d3ee"),[w,j]=(0,a.useState)(!0),[S,z]=(0,a.useState)(!0),[C,P]=(0,a.useState)(!1),[T,M]=(0,a.useState)("lime"),[N,A]=(0,a.useState)(!1),[E,D]=(0,a.useState)({model_name:"HuTao",device:"cuda",f0_method:"pm",f0_up_key:0,noise_gate:-40,input_gain:1,output_gain:1,input_sr:44100,routing_mode:"browser",input_device:null,output_device:null,chunk_size:8192}),[V,L]=(0,a.useState)([]),[R,I]=(0,a.useState)(44100),{status:F,rtt:B,processingTime:O,isTalking:_,isStreaming:$,playOutput:W,setPlayOutput:U,connect:G,disconnect:H,startStream:X,stopStream:q,inputBuffer:K,outputBuffer:Y}=((e,t,i)=>{let[r,n]=(0,a.useState)("disconnected"),[s,o]=(0,a.useState)(null),[l,c]=(0,a.useState)(null),[d,u]=(0,a.useState)(!1),[h,p]=(0,a.useState)(!1),[m,f]=(0,a.useState)(!0),g=(0,a.useRef)(null),x=(0,a.useRef)(null),v=(0,a.useRef)(null),b=(0,a.useRef)(null),y=(0,a.useRef)(null),k=(0,a.useRef)(4e4),w=(0,a.useRef)(new Float32Array(4096)),j=(0,a.useRef)(new Float32Array(4096)),S=(0,a.useRef)(new Float32Array(0)),z=(0,a.useRef)([]),C=(0,a.useRef)(0),P=(0,a.useRef)([]),T=(0,a.useCallback)(()=>{let e=g.current;e&&e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"config",model_name:t.model_name,device:t.device,f0_method:t.f0_method,f0_up_key:t.f0_up_key,noise_gate:t.noise_gate,input_gain:t.input_gain,output_gain:t.output_gain,input_sr:x.current?x.current.sampleRate:44100,routing_mode:t.routing_mode,input_device:t.input_device,output_device:t.output_device,chunk_size:t.chunk_size}))},[t]),M=(0,a.useCallback)(e=>{if(!x.current)return;let t=performance.now();if(z.current.length>0){let e=z.current.shift();e&&o(Math.round(t-e.sent))}let i=new Float32Array(e),r=i[0],n=i.subarray(1);c(Math.max(0,Math.round(r)));let s=x.current,a=s.createBuffer(1,n.length,k.current);a.getChannelData(0).set(n);let l=s.createBufferSource();l.buffer=a,m&&l.connect(s.destination);let d=s.currentTime,u=a.duration,h=Math.min(2.5*u,.5);C.current<d?C.current=d+h:C.current>d+5*u&&(C.current=d+h);let p=C.current;for(l.start(p),C.current+=u,P.current.push({data:n,startTime:p});P.current.length>0;){let e=P.current[0];if(e.startTime+e.data.length/k.current<s.currentTime-2)P.current.shift();else break}let f=j.current;n.length>=4096?f.set(n.slice(n.length-4096)):(f.copyWithin(0,n.length),f.set(n,4096-n.length))},[m]),N=(0,a.useCallback)(()=>{if(g.current){try{g.current.close()}catch(e){}g.current=null}n("disconnected")},[]),A=(0,a.useCallback)(()=>{N(),n("connecting");try{let t=new WebSocket(e);t.binaryType="arraybuffer",t.onopen=()=>{n("connected"),g.current=t,T()},t.onclose=()=>{n("disconnected"),g.current=null},t.onerror=()=>{n("disconnected"),g.current=null},t.onmessage=e=>{if("string"==typeof e.data)try{let t=JSON.parse(e.data);"config_success"===t.type?k.current=t.target_sr:"init_devices"===t.type?i(t.target_sr||4e4,t.devices||[]):"visualizer"===t.type&&(w.current.set(new Float32Array(t.input)),j.current.set(new Float32Array(t.output)))}catch(e){console.error("WS JSON parse error:",e)}else e.data instanceof ArrayBuffer&&M(e.data)}}catch(e){console.error("WS Connection failed:",e),n("disconnected")}},[e,T,M,i,N]),E=(0,a.useCallback)(()=>{if(p(!1),u(!1),"hardware"===t.routing_mode){let e=g.current;e&&e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"config",routing_mode:"browser"}))}v.current&&(v.current.getTracks().forEach(e=>e.stop()),v.current=null),b.current&&(b.current.disconnect(),b.current=null),y.current&&(y.current.disconnect(),y.current=null),S.current=new Float32Array(0),o(null),c(null)},[t.routing_mode]),D=(0,a.useCallback)(async()=>{if("hardware"===t.routing_mode){p(!0),T();return}x.current||(x.current=new(window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"}));let e=x.current;"suspended"===e.state&&await e.resume();try{v.current=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}}),b.current=e.createMediaStreamSource(v.current),y.current=e.createScriptProcessor(4096,1,1),y.current.onaudioprocess=e=>{let i=e.inputBuffer.getChannelData(0),r=w.current;r.copyWithin(0,i.length),r.set(i,r.length-i.length);let n=new Float32Array(S.current.length+i.length);n.set(S.current),n.set(i,S.current.length),S.current=n;let s=t.chunk_size;for(;S.current.length>=s;){let e=S.current.slice(0,s);S.current=S.current.slice(s);let t=0;for(let i=0;i<e.length;i++)t+=e[i]*e[i];let i=Math.sqrt(t/e.length);u(i>.005);let r=g.current;if(r&&r.readyState===WebSocket.OPEN){let t=performance.now();z.current.push({id:t,sent:t}),r.send(e.buffer)}}},b.current.connect(y.current),y.current.connect(e.destination),C.current=0,p(!0)}catch(e){console.error("Failed to start microphone streaming:",e),alert("Microphone access failed: "+(e instanceof Error?e.message:String(e))),E()}},[t.routing_mode,t.chunk_size,T,E]);return(0,a.useEffect)(()=>{T()},[t,T]),(0,a.useEffect)(()=>()=>{N(),E(),x.current&&x.current.close().catch(()=>{})},[N,E]),{status:r,rtt:s,processingTime:l,isTalking:d,isStreaming:h,playOutput:m,setPlayOutput:f,connect:A,disconnect:N,startStream:D,stopStream:E,inputBuffer:w,outputBuffer:j}})(d,E,(e,t)=>{I(e),L(t),t.length>0&&D(e=>({...e,input_device:e.input_device??t.find(e=>e.max_input_channels>0)?.id??0,output_device:e.output_device??t.find(e=>e.max_output_channels>0)?.id??0}))}),Z=V.filter(e=>e.max_input_channels>0).map(e=>({value:String(e.id),label:`[ID ${e.id}] ${e.name}`})),J=V.filter(e=>e.max_output_channels>0).map(e=>({value:String(e.id),label:`[ID ${e.id}] ${e.name}`}));(0,a.useEffect)(()=>{t(!0);let e=localStorage.getItem("omni_ws_url");e&&u(e);let i=localStorage.getItem("omni_lang");i&&r(i);let n=localStorage.getItem("omni_play_output");null!==n&&U("true"===n);let s=localStorage.getItem("omni_config");if(s)try{let e=JSON.parse(s);D(t=>({...t,...e}))}catch(e){console.error("Failed to parse saved config",e)}let a=localStorage.getItem("omni_vis_line_width");a&&f(parseInt(a));let o=localStorage.getItem("omni_vis_trace_fade");o&&x(parseFloat(o));let l=localStorage.getItem("omni_vis_color_input");l&&b(l);let c=localStorage.getItem("omni_vis_color_output");c&&k(c);let d=localStorage.getItem("omni_show_input");null!==d&&j("true"===d);let h=localStorage.getItem("omni_show_output");null!==h&&z("true"===h);let p=localStorage.getItem("omni_dark_mode");null!==p&&P("true"===p);let m=localStorage.getItem("omni_accent_color");m&&M(m);let g=localStorage.getItem("omni_sidebar_collapsed");null!==g&&A("true"===g)},[U]),(0,a.useEffect)(()=>{e&&localStorage.setItem("omni_ws_url",d)},[d,e]),(0,a.useEffect)(()=>{e&&localStorage.setItem("omni_lang",i)},[i,e]),(0,a.useEffect)(()=>{e&&localStorage.setItem("omni_play_output",String(W))},[W,e]),(0,a.useEffect)(()=>{e&&localStorage.setItem("omni_config",JSON.stringify(E))},[E,e]),(0,a.useEffect)(()=>{e&&(localStorage.setItem("omni_dark_mode",String(C)),C?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"))},[C,e]),(0,a.useEffect)(()=>{e&&localStorage.setItem("omni_accent_color",T)},[T,e]),(0,a.useEffect)(()=>{e&&localStorage.setItem("omni_sidebar_collapsed",String(N))},[N,e]),(0,a.useEffect)(()=>{e&&localStorage.setItem("omni_vis_line_width",String(m))},[m,e]),(0,a.useEffect)(()=>{e&&localStorage.setItem("omni_vis_trace_fade",String(g))},[g,e]),(0,a.useEffect)(()=>{e&&localStorage.setItem("omni_vis_color_input",v)},[v,e]),(0,a.useEffect)(()=>{e&&localStorage.setItem("omni_vis_color_output",y)},[y,e]),(0,a.useEffect)(()=>{e&&localStorage.setItem("omni_show_input",String(w))},[w,e]),(0,a.useEffect)(()=>{e&&localStorage.setItem("omni_show_output",String(S))},[S,e]);let Q=()=>{"connected"===F||"connecting"===F?H():G()},ee=()=>{$?q():X()},et=e=>{"latency"===e?D(e=>({...e,f0_method:"pm",chunk_size:8192})):D(e=>({...e,f0_method:"rmvpe",chunk_size:16384}))},ei=ai[i]||ai.en,er=[{keys:"c",description:ei.shortcutConnect,action:Q},{keys:"Space",description:ei.shortcutStream,action:ee},{keys:"m",description:ei.shortcutMute,action:()=>U(e=>!e)},{keys:"1",description:ei.shortcutPreset1,action:()=>et("latency")},{keys:"2",description:ei.shortcutPreset2,action:()=>et("quality")},{keys:"Shift+?",description:ei.shortcutHelp,action:()=>c(e=>!e)}];if(((e,t=!0)=>{let i=(0,a.useRef)(e);(0,a.useEffect)(()=>{i.current=e},[e]);let r=(0,a.useCallback)(e=>{if(!t)return;let r=document.activeElement;if(r){let e=r.tagName.toLowerCase();if("input"===e||"textarea"===e||"true"===r.getAttribute("contenteditable"))return}let n=e.key.toLowerCase(),s=e.ctrlKey||e.metaKey,a=e.altKey,o=e.shiftKey;for(let t of i.current){let i=t.keys.toLowerCase().split("+"),r=i.includes("control")||i.includes("ctrl"),l=i.includes("alt"),c=i.includes("shift"),d=i.filter(e=>!["control","ctrl","alt","shift"].includes(e))[0],u=l?a:!a,h=c?o:!o,p=n===("space"===d?" ":d);if((r?s:!s)&&u&&h&&p){e.preventDefault(),t.action();break}}},[t]);(0,a.useEffect)(()=>(window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}),[r])})(er,!0),!e)return(0,s.jsx)("div",{className:"min-h-screen bg-[#fafafa] flex items-center justify-center",children:(0,s.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,s.jsx)("div",{className:"w-10 h-10 rounded-full border-4 border-zinc-200 border-t-[#84cc16] animate-spin"}),(0,s.jsx)("span",{className:"text-xs font-bold uppercase tracking-wider text-zinc-400",children:"Loading Workspace..."})]})});let en=ob.find(e=>e.name===T)||ob[0],es={"--accent-color":en.color,"--accent-hover":en.hover,"--accent-soft":en.soft,"--accent-text":en.text};return(0,s.jsxs)("div",{className:`relative min-h-screen flex w-screen overflow-hidden transition-colors duration-200 ${C?"dark bg-zinc-950 text-zinc-100":"bg-[#fafafa] text-zinc-800"}`,style:es,children:[(0,s.jsx)("div",{className:"glow-backdrop dark:opacity-20"}),(0,s.jsxs)("aside",{className:`bg-white dark:bg-zinc-900 border-r border-zinc-200/50 dark:border-zinc-800/80 flex flex-col justify-between z-10 transition-all duration-300 relative ${N?"w-20":"w-72"}`,children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:`border-b border-zinc-100 dark:border-zinc-800 flex items-center transition-all duration-300 relative ${N?"justify-center py-6 px-4":"p-6"}`,children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-10 h-10 rounded-xl bg-[var(--accent-color)] flex items-center justify-center shadow-md text-white font-black text-xl shrink-0",children:"🎙️"}),(0,s.jsxs)("div",{className:`transition-all duration-300 ease-in-out origin-left flex flex-col ${N?"opacity-0 w-0 max-w-0 pointer-events-none overflow-hidden":"opacity-100 max-w-xs"}`,children:[(0,s.jsx)("h1",{className:"text-sm font-black tracking-wider text-zinc-900 dark:text-zinc-100 leading-none",children:"ONNX VC"}),(0,s.jsx)("span",{className:"text-[10px] font-bold text-zinc-400 dark:text-zinc-500 uppercase tracking-widest block mt-1 whitespace-nowrap",children:"AI AUDIO LAB"})]})]}),(0,s.jsx)("button",{onClick:()=>A(!N),className:"absolute -right-3 top-7 bg-white dark:bg-zinc-900 border border-zinc-200/80 dark:border-zinc-800 rounded-full shadow-md z-50 w-6 h-6 flex items-center justify-center text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-250 hover:scale-110 active:scale-95 transition-all duration-300 cursor-pointer",title:N?"Expand Sidebar":"Collapse Sidebar",children:N?(0,s.jsx)(s8,{className:"w-3.5 h-3.5"}):(0,s.jsx)(s6,{className:"w-3.5 h-3.5"})})]}),(0,s.jsx)("div",{className:`transition-all duration-305 ${N?"px-2 py-4":"p-6"} border-b border-zinc-100 dark:border-zinc-800`,children:(0,s.jsx)("div",{className:`rounded-2xl border border-zinc-100 dark:border-zinc-800 bg-zinc-50/50 dark:bg-zinc-800/30 relative overflow-hidden group transition-all duration-300 ${N?"p-2":"p-4"}`,children:(0,s.jsxs)("div",{className:`flex items-center transition-all duration-300 ${N?"justify-center gap-0":"gap-4"}`,children:[(0,s.jsxs)("div",{className:`rounded-xl border-2 transition-all duration-305 relative flex items-center justify-center p-1 bg-white dark:bg-zinc-900 shrink-0 ${N?"w-10 h-10":"w-14 h-14"} ${_&&$?"border-[var(--accent-color)] shadow-lg scale-105":"border-zinc-200 dark:border-zinc-800"}`,children:["HuTao"===E.model_name?(0,s.jsxs)("svg",{viewBox:"0 0 100 100",className:"w-full h-full text-rose-500 fill-rose-500/10",children:[(0,s.jsx)("circle",{cx:"50",cy:"50",r:"45",stroke:"currentColor",strokeWidth:"2"}),(0,s.jsx)("path",{d:"M50 25c-8 0-14 6-14 14 0 6 5 11 11 13v6h6v-6c6-2 11-7 11-13 0-8-6-14-14-14z",stroke:"currentColor",strokeWidth:"2"}),(0,s.jsx)("path",{d:"M35 70c0-10 7-15 15-15s15 5 15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,s.jsx)("circle",{cx:"43",cy:"38",r:"3",fill:"currentColor"}),(0,s.jsx)("circle",{cx:"57",cy:"38",r:"3",fill:"currentColor"}),(0,s.jsx)("path",{d:"M47 45q3 2 6 0",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})]}):(0,s.jsxs)("svg",{viewBox:"0 0 100 100",className:"w-full h-full text-emerald-500 fill-emerald-500/10",children:[(0,s.jsx)("circle",{cx:"50",cy:"50",r:"45",stroke:"currentColor",strokeWidth:"2"}),(0,s.jsx)("path",{d:"M38 30l4 8-8 2 12 4-2 10 10-6 4 10 4-10 10 6-2-10 12-4-8-2 4-8-12 4v-8h-6v8l-12-4z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M33 72c0-8 8-12 17-12s17 4 17 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,s.jsx)("circle",{cx:"44",cy:"46",r:"3.5",fill:"currentColor"}),(0,s.jsx)("circle",{cx:"56",cy:"46",r:"3.5",fill:"currentColor"}),(0,s.jsx)("path",{d:"M48 51h4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),_&&$&&(0,s.jsx)(sA.div,{className:"absolute -top-1.5 -right-1.5 w-4.5 h-4.5 bg-[var(--accent-color)] rounded-full flex items-center justify-center shadow border border-white dark:border-zinc-900",animate:{scale:[1,1.2,1]},transition:{repeat:1/0,duration:1},children:(0,s.jsx)(s4,{className:"w-2.5 h-2.5 text-white"})})]}),(0,s.jsxs)("div",{className:`transition-all duration-300 ease-in-out origin-left flex-1 min-w-0 ${N?"opacity-0 w-0 max-w-0 pointer-events-none overflow-hidden":"opacity-100 max-w-xs"}`,children:[(0,s.jsx)("span",{className:"text-[10px] font-bold text-zinc-400 dark:text-zinc-500 uppercase tracking-wider block",children:ei.characterCardTitle}),(0,s.jsx)("span",{className:"text-sm font-black text-zinc-800 dark:text-zinc-100 tracking-tight truncate block mt-0.5",children:"HuTao"===E.model_name?"HuTao (Genshin)":"HuoHuo (HSR)"}),(0,s.jsxs)("span",{className:"text-[9px] font-semibold text-zinc-500 dark:text-zinc-400 block truncate mt-0.5",children:[E.device.toUpperCase()," ACCELERATION"]})]})]})})}),(0,s.jsxs)("nav",{className:`space-y-1 transition-all duration-305 ${N?"p-2":"p-4"}`,children:[(0,s.jsxs)("button",{onClick:()=>o("changer"),className:`w-full flex items-center transition-all duration-200 cursor-pointer rounded-xl text-sm font-semibold ${N?"justify-center p-3":"justify-between px-4 py-3"} ${"changer"===n?"bg-[var(--accent-soft)] text-[var(--accent-text)]":"text-zinc-600 dark:text-zinc-400 hover:bg-zinc-50 dark:hover:bg-zinc-800"}`,title:N?ei.tabDashboard:void 0,children:[(0,s.jsxs)("span",{className:`flex items-center transition-all duration-300 ${N?"gap-0 w-full justify-center":"gap-3"}`,children:[(0,s.jsx)(sZ,{className:`w-4 h-4 shrink-0 transition-colors duration-200 ${"changer"===n?"text-[var(--accent-color)]":"text-zinc-400 dark:text-zinc-500"}`}),(0,s.jsx)("span",{className:`transition-all duration-300 ease-in-out origin-left ${N?"opacity-0 w-0 max-w-0 pointer-events-none overflow-hidden":"opacity-100 max-w-xs"} whitespace-nowrap`,children:ei.tabDashboard})]}),(0,s.jsx)(s8,{className:`transition-all duration-300 ease-in-out shrink-0 ${N?"opacity-0 w-0 max-w-0 scale-75 overflow-hidden":"w-4 h-4 opacity-50"}`})]}),(0,s.jsxs)("button",{onClick:()=>o("model"),className:`w-full flex items-center transition-all duration-200 cursor-pointer rounded-xl text-sm font-semibold ${N?"justify-center p-3":"justify-between px-4 py-3"} ${"model"===n?"bg-[var(--accent-soft)] text-[var(--accent-text)]":"text-zinc-600 dark:text-zinc-400 hover:bg-zinc-50 dark:hover:bg-zinc-800"}`,title:N?ei.tabModel:void 0,children:[(0,s.jsxs)("span",{className:`flex items-center transition-all duration-300 ${N?"gap-0 w-full justify-center":"gap-3"}`,children:[(0,s.jsx)(sX,{className:`w-4 h-4 shrink-0 transition-colors duration-200 ${"model"===n?"text-[var(--accent-color)]":"text-zinc-400 dark:text-zinc-500"}`}),(0,s.jsx)("span",{className:`transition-all duration-300 ease-in-out origin-left ${N?"opacity-0 w-0 max-w-0 pointer-events-none overflow-hidden":"opacity-100 max-w-xs"} whitespace-nowrap`,children:ei.tabModel})]}),(0,s.jsx)(s8,{className:`transition-all duration-300 ease-in-out shrink-0 ${N?"opacity-0 w-0 max-w-0 scale-75 overflow-hidden":"w-4 h-4 opacity-50"}`})]}),(0,s.jsxs)("button",{onClick:()=>o("dsp"),className:`w-full flex items-center transition-all duration-200 cursor-pointer rounded-xl text-sm font-semibold ${N?"justify-center p-3":"justify-between px-4 py-3"} ${"dsp"===n?"bg-[var(--accent-soft)] text-[var(--accent-text)]":"text-zinc-600 dark:text-zinc-400 hover:bg-zinc-50 dark:hover:bg-zinc-800"}`,title:N?ei.tabDsp:void 0,children:[(0,s.jsxs)("span",{className:`flex items-center transition-all duration-300 ${N?"gap-0 w-full justify-center":"gap-3"}`,children:[(0,s.jsx)(s9,{className:`w-4 h-4 shrink-0 transition-colors duration-200 ${"dsp"===n?"text-[var(--accent-color)]":"text-zinc-400 dark:text-zinc-500"}`}),(0,s.jsx)("span",{className:`transition-all duration-300 ease-in-out origin-left ${N?"opacity-0 w-0 max-w-0 pointer-events-none overflow-hidden":"opacity-100 max-w-xs"} whitespace-nowrap`,children:ei.tabDsp})]}),(0,s.jsx)(s8,{className:`transition-all duration-300 ease-in-out shrink-0 ${N?"opacity-0 w-0 max-w-0 scale-75 overflow-hidden":"w-4 h-4 opacity-50"}`})]}),(0,s.jsxs)("button",{onClick:()=>o("shortcuts"),className:`w-full flex items-center transition-all duration-200 cursor-pointer rounded-xl text-sm font-semibold ${N?"justify-center p-3":"justify-between px-4 py-3"} ${"shortcuts"===n?"bg-[var(--accent-soft)] text-[var(--accent-text)]":"text-zinc-600 dark:text-zinc-400 hover:bg-zinc-50 dark:hover:bg-zinc-800"}`,title:N?ei.tabShortcuts:void 0,children:[(0,s.jsxs)("span",{className:`flex items-center transition-all duration-300 ${N?"gap-0 w-full justify-center":"gap-3"}`,children:[(0,s.jsx)(s5,{className:`w-4 h-4 shrink-0 transition-colors duration-200 ${"shortcuts"===n?"text-[var(--accent-color)]":"text-zinc-400 dark:text-zinc-500"}`}),(0,s.jsx)("span",{className:`transition-all duration-300 ease-in-out origin-left ${N?"opacity-0 w-0 max-w-0 pointer-events-none overflow-hidden":"opacity-100 max-w-xs"} whitespace-nowrap`,children:ei.tabShortcuts})]}),(0,s.jsx)(s8,{className:`transition-all duration-300 ease-in-out shrink-0 ${N?"opacity-0 w-0 max-w-0 scale-75 overflow-hidden":"w-4 h-4 opacity-50"}`})]}),(0,s.jsxs)("button",{onClick:()=>o("credits"),className:`w-full flex items-center transition-all duration-200 cursor-pointer rounded-xl text-sm font-semibold ${N?"justify-center p-3":"justify-between px-4 py-3"} ${"credits"===n?"bg-[var(--accent-soft)] text-[var(--accent-text)]":"text-zinc-600 dark:text-zinc-400 hover:bg-zinc-50 dark:hover:bg-zinc-800"}`,title:N?ei.tabCredits:void 0,children:[(0,s.jsxs)("span",{className:`flex items-center transition-all duration-300 ${N?"gap-0 w-full justify-center":"gap-3"}`,children:[(0,s.jsx)(ae,{className:`w-4 h-4 shrink-0 transition-colors duration-200 ${"credits"===n?"text-[var(--accent-color)]":"text-zinc-400 dark:text-zinc-500"}`}),(0,s.jsx)("span",{className:`transition-all duration-300 ease-in-out origin-left ${N?"opacity-0 w-0 max-w-0 pointer-events-none overflow-hidden":"opacity-100 max-w-xs"} whitespace-nowrap`,children:ei.tabCredits})]}),(0,s.jsx)(s8,{className:`transition-all duration-300 ease-in-out shrink-0 ${N?"opacity-0 w-0 max-w-0 scale-75 overflow-hidden":"w-4 h-4 opacity-50"}`})]})]})]}),(0,s.jsxs)("div",{className:`border-t border-zinc-100 dark:border-zinc-800 relative transition-all duration-300 ${N?"p-3":"p-6"}`,children:[(0,s.jsx)("div",{className:`transition-all duration-300 ease-in-out ${N?"opacity-0 h-0 overflow-hidden mb-0":"opacity-100 h-4 mb-2"} flex justify-between items-center text-xs font-semibold text-zinc-500 dark:text-zinc-400`,children:(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(s2,{className:"w-3.5 h-3.5 text-zinc-400 dark:text-zinc-500"}),ei.currentLang]})}),(0,s.jsxs)("button",{onClick:()=>p(!h),className:`flex items-center transition-all duration-200 cursor-pointer ${N?"justify-center p-2.5 h-10 w-10 mx-auto":"w-full justify-between h-10 px-3.5"} rounded-xl border border-zinc-200 dark:border-zinc-800 hover:bg-zinc-50 dark:hover:bg-zinc-850 text-xs font-bold text-zinc-800 dark:text-zinc-200 bg-white dark:bg-zinc-900`,title:N?ei.currentLang:void 0,children:[(0,s.jsxs)("span",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{children:at.find(e=>e.code===i)?.flag}),(0,s.jsx)("span",{className:`transition-all duration-300 ease-in-out ${N?"opacity-0 w-0 max-w-0 overflow-hidden pointer-events-none":"opacity-100 w-auto"} whitespace-nowrap`,children:at.find(e=>e.code===i)?.label})]}),(0,s.jsx)("span",{className:`text-zinc-400 transition-all duration-300 ${N?"opacity-0 w-0 scale-75 overflow-hidden":"w-auto opacity-100"}`,children:"▼"})]}),(0,s.jsx)(sO,{children:h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"fixed inset-0 z-10",onClick:()=>p(!1)}),(0,s.jsx)(sA.div,{className:`absolute ${N?"bottom-16 left-12 w-48":"bottom-18 left-6 right-6"} bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-xl shadow-lg z-20 p-1.5 max-h-56 overflow-y-auto`,initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0,y:5},transition:{duration:.15},children:at.map(e=>(0,s.jsxs)("button",{onClick:()=>{r(e.code),p(!1)},className:`w-full flex items-center justify-between px-3 py-2 rounded-lg text-left text-xs font-bold cursor-pointer transition-colors ${i===e.code?"bg-[var(--accent-soft)] text-[var(--accent-text)]":"text-zinc-600 dark:text-zinc-400 hover:bg-zinc-50 dark:hover:bg-zinc-850"}`,children:[(0,s.jsxs)("span",{className:"flex items-center gap-2.5",children:[(0,s.jsx)("span",{children:e.flag}),(0,s.jsx)("span",{children:e.label})]}),i===e.code&&(0,s.jsx)(s3,{className:"w-3.5 h-3.5 text-[var(--accent-color)]"})]},e.code))})]})}),(0,s.jsx)("div",{className:"mt-4 pt-4 border-t border-zinc-100 dark:border-zinc-800 flex items-center justify-center text-[10px] font-bold text-zinc-400 dark:text-zinc-500 uppercase tracking-widest select-none min-h-[1.5rem]",children:(0,s.jsxs)("span",{className:`transition-all duration-300 flex items-center gap-1 justify-center whitespace-nowrap overflow-hidden ${N?"w-6":"w-full"}`,children:[(0,s.jsx)("span",{className:`transition-all duration-300 ${N?"opacity-0 w-0 overflow-hidden":"opacity-100"}`,children:"Made With"}),(0,s.jsx)("span",{className:"text-red-500 animate-pulse text-xs",children:"❤️"}),(0,s.jsx)("span",{className:`transition-all duration-300 text-zinc-600 dark:text-zinc-400 ${N?"opacity-0 w-0 overflow-hidden":"opacity-100"}`,children:"Kanara Technology"})]})})]})]}),(0,s.jsxs)("div",{className:"flex-1 flex flex-col h-screen overflow-hidden relative",children:[(0,s.jsxs)("header",{className:"h-20 bg-white dark:bg-zinc-900 border-b border-zinc-200/50 dark:border-zinc-800/80 px-8 flex items-center justify-between z-10 transition-colors",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsx)(ol,{variant:"connected"===F?"success":"connecting"===F?"warning":"danger",children:"connected"===F?ei.connected:"connecting"===F?ei.connecting:ei.disconnected}),(0,s.jsxs)("div",{className:"hidden sm:flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-[10px] font-bold text-zinc-400 dark:text-zinc-500 uppercase tracking-wider",children:"WebSocket:"}),(0,s.jsx)("span",{className:"text-xs font-bold text-zinc-700 dark:text-zinc-300",children:d})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(on,{variant:"connected"===F?"outline":"primary",size:"sm",onClick:Q,className:"text-xs font-bold flex items-center gap-1.5 h-9",children:"connected"===F?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(sY,{className:"w-3.5 h-3.5"}),ei.disconnect]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(sK,{className:"w-3.5 h-3.5"}),ei.connect]})}),(0,s.jsx)(on,{variant:"accent",size:"sm",disabled:"connected"!==F,onClick:ee,className:"text-xs font-bold flex items-center gap-1.5 h-9",children:$?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(sQ,{className:"w-3.5 h-3.5 text-red-400 fill-red-400"}),ei.stopChanger]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(sJ,{className:"w-3.5 h-3.5 text-[#d9f99d] fill-[#d9f99d]"}),ei.startChanger]})})]})]}),(0,s.jsx)("main",{className:"flex-1 overflow-y-auto p-8 pb-32",children:(0,s.jsxs)(sO,{mode:"wait",children:["changer"===n&&(0,s.jsxs)(sA.div,{initial:{opacity:0,x:10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{duration:.2},className:"space-y-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-xl font-black tracking-tight text-zinc-900 dark:text-zinc-50",children:ei.welcomeBack}),(0,s.jsx)("p",{className:"text-xs text-zinc-500 dark:text-zinc-400 mt-1 uppercase tracking-wider font-bold",children:ei.appSubtitle})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-12 gap-8 items-start",children:[(0,s.jsxs)("div",{className:"col-span-1 xl:col-span-5 space-y-6",children:[(0,s.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-5 space-y-4 transition-colors",children:[(0,s.jsx)("div",{className:"flex items-center justify-between border-b border-zinc-100 dark:border-zinc-800/60 pb-3",children:(0,s.jsxs)("h3",{className:"font-bold text-xs uppercase tracking-wider text-zinc-400 dark:text-zinc-500 flex items-center gap-1.5",children:[(0,s.jsx)(s7,{className:"w-4 h-4 text-[var(--accent-color)]"}),ei.selectModel]})}),(0,s.jsx)(oa,{options:om,value:E.model_name,onChange:e=>D(t=>({...t,model_name:e.target.value}))})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-5 space-y-5 transition-colors",children:[(0,s.jsx)("div",{className:"flex items-center justify-between border-b border-zinc-100 dark:border-zinc-800/60 pb-3",children:(0,s.jsxs)("h3",{className:"font-bold text-xs uppercase tracking-wider text-zinc-400 dark:text-zinc-500 flex items-center gap-1.5",children:[(0,s.jsx)(s9,{className:"w-4 h-4 text-[var(--accent-color)]"}),ei.liveTuningTitle]})}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center text-xs font-semibold",children:[(0,s.jsx)("span",{className:"text-zinc-500 dark:text-zinc-400",children:ei.transpose}),(0,s.jsxs)("span",{className:"text-zinc-800 dark:text-zinc-200 bg-zinc-100 dark:bg-zinc-800 px-1.5 py-0.5 rounded font-bold",children:[E.f0_up_key>=0?"+":"",E.f0_up_key," semitone"]})]}),(0,s.jsx)(os,{min:-24,max:24,step:1,value:E.f0_up_key,onValueChange:e=>D(t=>({...t,f0_up_key:e}))})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center text-xs font-semibold",children:[(0,s.jsx)("span",{className:"text-zinc-500 dark:text-zinc-400",children:ei.outputGain}),(0,s.jsxs)("span",{className:"text-[var(--accent-text)] dark:text-[var(--accent-color)] bg-[var(--accent-soft)] dark:bg-[var(--accent-color)]/10 px-1.5 py-0.5 rounded font-black",children:[E.output_gain.toFixed(1),"x"]})]}),(0,s.jsx)(os,{min:0,max:3,step:.1,value:E.output_gain,onValueChange:e=>D(t=>({...t,output_gain:e}))})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center text-xs font-semibold",children:[(0,s.jsx)("span",{className:"text-zinc-500 dark:text-zinc-400",children:ei.noiseGate}),(0,s.jsxs)("span",{className:"text-zinc-800 dark:text-zinc-200 bg-zinc-100 dark:bg-zinc-800 px-1.5 py-0.5 rounded font-bold",children:[E.noise_gate," dB"]})]}),(0,s.jsx)(os,{min:-60,max:-10,step:1,value:E.noise_gate,onValueChange:e=>D(t=>({...t,noise_gate:e}))})]})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-5 space-y-3 transition-colors",children:[(0,s.jsx)("h3",{className:"font-bold text-xs uppercase tracking-wider text-zinc-400 dark:text-zinc-500",children:ei.quickPresets}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsx)(on,{variant:"outline",onClick:()=>et("latency"),className:"text-[11px] h-9.5 justify-center gap-1.5 bg-zinc-50 dark:bg-zinc-800 hover:bg-[var(--accent-soft)] dark:hover:bg-[var(--accent-soft)]/20 hover:text-[var(--accent-text)] dark:hover:text-[var(--accent-color)] border-zinc-200 dark:border-zinc-800 text-zinc-700 dark:text-zinc-300",children:"⚡ Latency (PM)"}),(0,s.jsx)(on,{variant:"outline",onClick:()=>et("quality"),className:"text-[11px] h-9.5 justify-center gap-1.5 bg-zinc-50 dark:bg-zinc-800 hover:bg-[var(--accent-soft)] dark:hover:bg-[var(--accent-soft)]/20 hover:text-[var(--accent-text)] dark:hover:text-[var(--accent-color)] border-zinc-200 dark:border-zinc-800 text-zinc-700 dark:text-zinc-300",children:"🎙️ Quality (RMVPE)"})]})]}),"browser"===E.routing_mode&&(0,s.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-5 flex items-center justify-between transition-colors",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-bold text-zinc-700 dark:text-zinc-200 uppercase tracking-wider",children:W?ei.listeningActive:ei.listeningMute}),(0,s.jsx)("p",{className:"text-[9px] text-zinc-400 dark:text-zinc-500 font-bold uppercase tracking-wider mt-0.5",children:"Speaker output monitoring"})]}),(0,s.jsx)(oo,{checked:W,disabled:"connected"!==F,onCheckedChange:e=>U(e)})]})]}),(0,s.jsxs)("div",{className:"col-span-1 xl:col-span-7 space-y-6",children:[(0,s.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-5 space-y-5 transition-colors",children:[(0,s.jsx)("div",{className:"flex items-center justify-between border-b border-zinc-100 dark:border-zinc-800/60 pb-3",children:(0,s.jsxs)("h3",{className:"font-bold text-xs uppercase tracking-wider text-zinc-400 dark:text-zinc-500 flex items-center gap-1.5",children:[(0,s.jsx)(s1,{className:"w-4 h-4 text-[var(--accent-color)]"}),ei.customCanvasTitle]})}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-6",children:[(0,s.jsx)(oo,{checked:w,onCheckedChange:j,label:ei.showMicInput}),(0,s.jsx)(oo,{checked:S,onCheckedChange:z,label:ei.showAiOutput})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5 pt-1",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center text-xs font-semibold text-zinc-500 dark:text-zinc-400",children:[(0,s.jsx)("span",{children:ei.lineWidthLabel}),(0,s.jsxs)("span",{className:"text-zinc-800 dark:text-zinc-200",children:[m," px"]})]}),(0,s.jsx)(os,{min:1,max:5,step:1,value:m,onValueChange:f})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center text-xs font-semibold text-zinc-500 dark:text-zinc-400",children:[(0,s.jsx)("span",{children:ei.traceDecayLabel}),(0,s.jsxs)("span",{className:"text-zinc-800 dark:text-zinc-200",children:[Math.round((1-g)*100),"%"]})]}),(0,s.jsx)(os,{min:.05,max:.8,step:.05,value:g,onValueChange:x})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 pt-1",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500 block",children:ei.inputLineColorLabel}),(0,s.jsx)("div",{className:"flex items-center gap-2",children:["#84cc16","#22d3ee","#f43f5e","#eab308","#10b981"].map(e=>(0,s.jsx)("button",{onClick:()=>b(e),className:`w-6 h-6 rounded-full border transition-all cursor-pointer ${v===e?"ring-2 ring-zinc-800 dark:ring-zinc-200 scale-110 border-transparent shadow":"border-zinc-200 dark:border-zinc-850 hover:scale-105"}`,style:{backgroundColor:e}},e))})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500 block",children:ei.outputLineColorLabel}),(0,s.jsx)("div",{className:"flex items-center gap-2",children:["#84cc16","#22d3ee","#f43f5e","#eab308","#10b981"].map(e=>(0,s.jsx)("button",{onClick:()=>k(e),className:`w-6 h-6 rounded-full border transition-all cursor-pointer ${y===e?"ring-2 ring-zinc-800 dark:ring-zinc-200 scale-110 border-transparent shadow":"border-zinc-200 dark:border-zinc-850 hover:scale-105"}`,style:{backgroundColor:e}},e))})]})]}),(0,s.jsxs)("div",{className:"border-t border-zinc-100 dark:border-zinc-800/80 pt-4 space-y-4",children:[(0,s.jsx)("h4",{className:"font-bold text-xs uppercase tracking-wider text-zinc-400 dark:text-zinc-500",children:ei.themeSettings}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5 items-center",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between bg-zinc-50/50 dark:bg-zinc-800/20 p-3 rounded-xl border border-zinc-100 dark:border-zinc-800/50",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-xs font-bold text-zinc-700 dark:text-zinc-200 block",children:ei.themeMode}),(0,s.jsx)("span",{className:"text-[10px] text-zinc-400 dark:text-zinc-500 font-bold uppercase tracking-wider block mt-0.5",children:C?ei.themeDark:ei.themeLight})]}),(0,s.jsx)(oo,{checked:C,onCheckedChange:P,variant:"dark"})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500 block",children:ei.accentColorLabel}),(0,s.jsx)("div",{className:"flex items-center gap-2",children:ob.map(e=>(0,s.jsx)("button",{onClick:()=>M(e.name),className:`w-6 h-6 rounded-full border transition-all cursor-pointer relative ${T===e.name?"ring-2 ring-[var(--accent-color)] dark:ring-white scale-110 border-transparent shadow":"border-zinc-200 dark:border-zinc-850 hover:scale-105"}`,style:{backgroundColor:e.color},title:e.name.toUpperCase(),children:T===e.name&&(0,s.jsx)("span",{className:"absolute inset-0 flex items-center justify-center text-[10px] text-white font-bold select-none",children:"✓"})},e.name))})]})]})]})]}),(0,s.jsxs)("div",{className:`grid gap-6 ${w&&S?"grid-cols-1 md:grid-cols-2":"grid-cols-1"}`,children:[w&&(0,s.jsx)("div",{className:"h-52",children:(0,s.jsx)(op,{title:ei.micSignal,buffer:K,strokeColor:v,isTalking:_&&$,lineWidth:m,traceFade:g,isDark:C,lang:i})}),S&&(0,s.jsx)("div",{className:"h-52",children:(0,s.jsx)(op,{title:ei.aiSignal,buffer:Y,strokeColor:y,isTalking:_&&$,lineWidth:m,traceFade:g,isDark:C,lang:i})})]})]})]})]},"changer"),"model"===n&&(0,s.jsxs)(sA.div,{initial:{opacity:0,x:10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{duration:.2},className:"space-y-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-xl font-black tracking-tight text-zinc-900 dark:text-zinc-50",children:ei.modelConfigTitle}),(0,s.jsx)("p",{className:"text-xs text-zinc-500 dark:text-zinc-400 mt-1 uppercase tracking-wider font-bold",children:"Adjust execution backends, voice character weights, and local latency presets."})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-6 space-y-6 transition-colors",children:[(0,s.jsxs)("div",{className:"space-y-2.5",children:[(0,s.jsxs)("label",{className:"text-xs font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500 flex items-center gap-1.5",children:[(0,s.jsx)(s0,{className:"w-3.5 h-3.5 text-[var(--accent-color)]"}),ei.quickPresets]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[(0,s.jsx)(on,{variant:"outline",onClick:()=>et("latency"),className:"text-xs justify-center gap-1.5 h-10 bg-zinc-50 dark:bg-zinc-850 hover:bg-[var(--accent-soft)] dark:hover:bg-[var(--accent-soft)]/20 hover:text-[var(--accent-text)] dark:hover:text-[var(--accent-color)] border-zinc-200 dark:border-zinc-800 text-zinc-700 dark:text-zinc-300 hover:border-[var(--accent-hover)] transition-colors",children:ei.latencyPreset}),(0,s.jsx)(on,{variant:"outline",onClick:()=>et("quality"),className:"text-xs justify-center gap-1.5 h-10 bg-zinc-50 dark:bg-zinc-850 hover:bg-[var(--accent-soft)] dark:hover:bg-[var(--accent-soft)]/20 hover:text-[var(--accent-text)] dark:hover:text-[var(--accent-color)] border-zinc-200 dark:border-zinc-800 text-zinc-700 dark:text-zinc-300 hover:border-[var(--accent-hover)] transition-colors",children:ei.qualityPreset})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"text-xs font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500",children:ei.selectModel}),(0,s.jsx)(oa,{options:om,value:E.model_name,onChange:e=>D(t=>({...t,model_name:e.target.value}))})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"text-xs font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500",children:ei.executionProvider}),(0,s.jsx)(oa,{options:of,value:E.device,onChange:e=>D(t=>({...t,device:e.target.value}))})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"text-xs font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500",children:ei.routingMode}),(0,s.jsx)(oa,{options:og,value:E.routing_mode,onChange:e=>D(t=>({...t,routing_mode:e.target.value}))})]}),"hardware"===E.routing_mode&&(0,s.jsxs)(sA.div,{className:"space-y-4 p-4 rounded-xl border border-[var(--accent-soft)]/50 dark:border-[var(--accent-color)]/20 bg-[var(--accent-soft)]/5 dark:bg-[var(--accent-color)]/5 shadow-inner",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{duration:.2},children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("label",{className:"text-xs font-bold uppercase tracking-wider text-[var(--accent-text)] dark:text-[var(--accent-color)] flex items-center gap-1",children:["🎙️ ",ei.serverInput]}),(0,s.jsx)(oa,{options:Z.length>0?Z:[{value:"none",label:"No devices found"}],value:null!==E.input_device?String(E.input_device):"",onChange:e=>D(t=>({...t,input_device:"none"!==e.target.value?parseInt(e.target.value):null})),className:"bg-white dark:bg-zinc-900 border-[var(--accent-soft)] text-[var(--accent-text)] dark:text-[var(--accent-color)]"})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("label",{className:"text-xs font-bold uppercase tracking-wider text-[var(--accent-text)] dark:text-[var(--accent-color)] flex items-center gap-1",children:["🔊 ",ei.serverOutput]}),(0,s.jsx)(oa,{options:J.length>0?J:[{value:"none",label:"No devices found"}],value:null!==E.output_device?String(E.output_device):"",onChange:e=>D(t=>({...t,output_device:"none"!==e.target.value?parseInt(e.target.value):null})),className:"bg-white dark:bg-zinc-900 border-[var(--accent-soft)] text-[var(--accent-text)] dark:text-[var(--accent-color)]"})]})]}),(0,s.jsxs)("div",{className:"space-y-2.5",children:[(0,s.jsx)("label",{className:"text-xs font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500",children:ei.pitchMethod}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-3",children:ox.map(e=>(0,s.jsxs)("label",{className:`flex items-center gap-3 p-3.5 rounded-xl border transition-all cursor-pointer ${E.f0_method===e.value?"border-[var(--accent-color)] bg-[var(--accent-soft)]/10 text-[var(--accent-text)] dark:text-[var(--accent-color)] font-bold":"border-zinc-200 dark:border-zinc-800 hover:bg-zinc-50 dark:hover:bg-zinc-800/50 text-zinc-600 dark:text-zinc-400"}`,children:[(0,s.jsx)("input",{type:"radio",name:"f0_method",value:e.value,checked:E.f0_method===e.value,onChange:()=>D(t=>({...t,f0_method:e.value})),className:"sr-only"}),(0,s.jsx)("div",{className:`w-4 h-4 rounded-full border-2 flex items-center justify-center ${E.f0_method===e.value?"border-[var(--accent-color)]":"border-zinc-400 dark:border-zinc-650"}`,children:E.f0_method===e.value&&(0,s.jsx)("div",{className:"w-2 h-2 rounded-full bg-[var(--accent-color)]"})}),(0,s.jsx)("span",{className:"text-xs font-semibold",children:e.label})]},e.value))})]}),(0,s.jsxs)("div",{className:"space-y-3 pt-2",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center text-sm font-medium",children:[(0,s.jsx)("label",{className:"text-xs font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500",children:ei.transpose}),(0,s.jsxs)("span",{className:"text-xs font-black text-zinc-800 dark:text-zinc-200 bg-zinc-100 dark:bg-zinc-800 px-2 py-0.5 rounded-md",children:[E.f0_up_key>=0?"+":"",E.f0_up_key," semitone"]})]}),(0,s.jsx)(os,{min:-24,max:24,step:1,value:E.f0_up_key,onValueChange:e=>D(t=>({...t,f0_up_key:e}))}),(0,s.jsxs)("div",{className:"flex justify-between text-[9px] text-zinc-400 dark:text-zinc-500 font-bold uppercase tracking-wider px-0.5",children:[(0,s.jsx)("span",{children:ei.transposeMale}),(0,s.jsx)("span",{children:ei.transposeNormal}),(0,s.jsx)("span",{children:ei.transposeFemale})]})]})]})]},"model"),"dsp"===n&&(0,s.jsxs)(sA.div,{initial:{opacity:0,x:10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{duration:.2},className:"space-y-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-xl font-black tracking-tight text-zinc-900 dark:text-zinc-50",children:ei.dspTitle}),(0,s.jsx)("p",{className:"text-xs text-zinc-500 dark:text-zinc-400 mt-1 uppercase tracking-wider font-bold",children:"Filter out background noise, stage microphone digital volume, and buffer packets."})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-6 space-y-6 transition-colors",children:[(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center text-sm font-medium",children:[(0,s.jsx)("label",{className:"text-xs font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500",children:ei.noiseGate}),(0,s.jsxs)("span",{className:"text-xs font-black text-zinc-800 dark:text-zinc-200 bg-zinc-100 dark:bg-zinc-800 px-2 py-0.5 rounded-md",children:[E.noise_gate," dB"]})]}),(0,s.jsx)(os,{min:-60,max:-10,step:1,value:E.noise_gate,onValueChange:e=>D(t=>({...t,noise_gate:e}))}),(0,s.jsxs)("div",{className:"flex justify-between text-[9px] text-zinc-400 dark:text-zinc-500 font-bold uppercase tracking-wider px-0.5",children:[(0,s.jsx)("span",{children:ei.noiseGateSens}),(0,s.jsx)("span",{children:ei.noiseGateDefault}),(0,s.jsx)("span",{children:ei.noiseGateStrict})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:[(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center text-sm font-medium",children:[(0,s.jsx)("label",{className:"text-xs font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500",children:ei.inputGain}),(0,s.jsxs)("span",{className:"text-xs font-black text-[var(--accent-text)] dark:text-[var(--accent-color)] bg-[var(--accent-soft)] dark:bg-[var(--accent-color)]/10 px-2 py-0.5 rounded-md",children:[E.input_gain.toFixed(1),"x"]})]}),(0,s.jsx)(os,{min:0,max:3,step:.1,value:E.input_gain,onValueChange:e=>D(t=>({...t,input_gain:e}))})]}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center text-sm font-medium",children:[(0,s.jsx)("label",{className:"text-xs font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500",children:ei.outputGain}),(0,s.jsxs)("span",{className:"text-xs font-black text-[var(--accent-text)] dark:text-[var(--accent-color)] bg-[var(--accent-soft)] dark:bg-[var(--accent-color)]/10 px-2 py-0.5 rounded-md",children:[E.output_gain.toFixed(1),"x"]})]}),(0,s.jsx)(os,{min:0,max:3,step:.1,value:E.output_gain,onValueChange:e=>D(t=>({...t,output_gain:e}))})]})]}),"browser"===E.routing_mode&&(0,s.jsxs)("div",{className:"p-4 rounded-xl border border-zinc-200/50 dark:border-zinc-800/60 bg-zinc-50 dark:bg-zinc-800/20 flex items-center justify-between transition-colors",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(sq,{className:"w-5 h-5 text-zinc-400 dark:text-zinc-500"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-bold uppercase tracking-wider text-zinc-700 dark:text-zinc-200",children:ei.noiseCancel}),(0,s.jsx)("p",{className:"text-[10px] text-zinc-400 dark:text-zinc-500 font-bold uppercase tracking-wider mt-0.5",children:ei.noiseCancelDesc})]})]}),(0,s.jsx)(oo,{checked:!0,onCheckedChange:()=>{}})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"text-xs font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500",children:ei.bufferSize}),(0,s.jsx)(oa,{options:ov,value:String(E.chunk_size),onChange:e=>D(t=>({...t,chunk_size:parseInt(e.target.value)}))})]})]})]},"dsp"),"shortcuts"===n&&(0,s.jsxs)(sA.div,{initial:{opacity:0,x:10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{duration:.2},className:"space-y-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-xl font-black tracking-tight text-zinc-900 dark:text-zinc-50",children:ei.shortcutsTitle}),(0,s.jsx)("p",{className:"text-xs text-zinc-500 dark:text-zinc-400 mt-1 uppercase tracking-wider font-bold",children:ei.shortcutsDesc})]}),(0,s.jsx)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-6 overflow-hidden transition-colors",children:(0,s.jsx)("div",{className:"divide-y divide-zinc-100 dark:divide-zinc-800",children:er.map(e=>(0,s.jsxs)("div",{className:"flex justify-between items-center py-4 first:pt-0 last:pb-0 hover:bg-zinc-50/50 dark:hover:bg-zinc-800/30 px-3 rounded-lg transition-colors",children:[(0,s.jsx)("span",{className:"text-sm font-semibold text-zinc-700 dark:text-zinc-300",children:e.description}),(0,s.jsx)("kbd",{className:"px-3 py-1.5 bg-zinc-100 dark:bg-zinc-800 border border-zinc-200/80 dark:border-zinc-750 rounded-xl shadow-sm text-xs font-black text-zinc-800 dark:text-zinc-200 tabular-nums",children:e.keys})]},e.keys))})})]},"shortcuts"),"credits"===n&&(0,s.jsxs)(sA.div,{initial:{opacity:0,x:10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{duration:.2},className:"space-y-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-xl font-black tracking-tight text-zinc-900 dark:text-zinc-50",children:ei.creditsTitle}),(0,s.jsx)("p",{className:"text-xs text-zinc-500 dark:text-zinc-400 mt-1 uppercase tracking-wider font-bold",children:ei.creditsDescription})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,s.jsxs)("div",{className:"col-span-1 md:col-span-2 bg-[var(--accent-soft)]/10 dark:bg-[var(--accent-color)]/5 border border-[var(--accent-soft)]/50 dark:border-[var(--accent-color)]/20 shadow-sm rounded-2xl p-6 space-y-2 hover:border-[var(--accent-hover)] transition-all group relative overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute top-0 right-0 bg-[var(--accent-color)] text-white text-[9px] font-black px-3 py-1 rounded-bl-xl uppercase tracking-wider",children:"Developer"}),(0,s.jsx)("span",{className:"text-[10px] font-bold text-[var(--accent-text)] dark:text-[var(--accent-color)] uppercase tracking-wider block",children:ei.creditCreatorTitle}),(0,s.jsx)("h3",{className:"text-sm font-black text-zinc-800 dark:text-zinc-150 tracking-tight flex items-center justify-between",children:"Kanara Technology"}),(0,s.jsx)("p",{className:"text-xs text-zinc-600 dark:text-zinc-300 leading-relaxed max-w-[90%]",children:ei.creditCreatorDesc})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-5 space-y-2 hover:border-[var(--accent-color)]/50 transition-all group",children:[(0,s.jsx)("span",{className:"text-[10px] font-bold text-[var(--accent-text)] dark:text-[var(--accent-color)] uppercase tracking-wider block",children:ei.creditNeuralTitle}),(0,s.jsxs)("h3",{className:"text-sm font-black text-zinc-800 dark:text-zinc-200 tracking-tight flex items-center justify-between",children:["Retrieval-based Voice Conversion (RVC)",(0,s.jsx)("span",{className:"text-[10px] font-semibold text-zinc-400 group-hover:text-[var(--accent-color)] transition-colors",children:"MIT License"})]}),(0,s.jsx)("p",{className:"text-xs text-zinc-500 dark:text-zinc-400 leading-relaxed",children:ei.creditNeuralDesc})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-5 space-y-2 hover:border-[var(--accent-color)]/50 transition-all group",children:[(0,s.jsx)("span",{className:"text-[10px] font-bold text-[var(--accent-text)] dark:text-[var(--accent-color)] uppercase tracking-wider block",children:ei.creditEngineTitle}),(0,s.jsxs)("h3",{className:"text-sm font-black text-zinc-800 dark:text-zinc-200 tracking-tight flex items-center justify-between",children:["ONNX Runtime",(0,s.jsx)("span",{className:"text-[10px] font-semibold text-zinc-400 group-hover:text-[var(--accent-color)] transition-colors",children:"MIT License"})]}),(0,s.jsx)("p",{className:"text-xs text-zinc-500 dark:text-zinc-400 leading-relaxed",children:ei.creditEngineDesc})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-5 space-y-2 hover:border-[var(--accent-color)]/50 transition-all group",children:[(0,s.jsx)("span",{className:"text-[10px] font-bold text-[var(--accent-text)] dark:text-[var(--accent-color)] uppercase tracking-wider block",children:ei.creditPitchTitle}),(0,s.jsxs)("h3",{className:"text-sm font-black text-zinc-800 dark:text-zinc-200 tracking-tight flex items-center justify-between",children:["RMVPE Model",(0,s.jsx)("span",{className:"text-[10px] font-semibold text-zinc-400 group-hover:text-[var(--accent-color)] transition-colors",children:"MIT License"})]}),(0,s.jsx)("p",{className:"text-xs text-zinc-500 dark:text-zinc-400 leading-relaxed",children:ei.creditPitchDesc})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-5 space-y-2 hover:border-[var(--accent-color)]/50 transition-all group",children:[(0,s.jsx)("span",{className:"text-[10px] font-bold text-[var(--accent-text)] dark:text-[var(--accent-color)] uppercase tracking-wider block",children:ei.creditPipelineTitle}),(0,s.jsxs)("h3",{className:"text-sm font-black text-zinc-800 dark:text-zinc-200 tracking-tight flex items-center justify-between",children:["Web Audio API & WebSockets",(0,s.jsx)("span",{className:"text-[10px] font-semibold text-zinc-400 group-hover:text-[var(--accent-color)] transition-colors",children:"W3C Standard"})]}),(0,s.jsx)("p",{className:"text-xs text-zinc-500 dark:text-zinc-400 leading-relaxed",children:ei.creditPipelineDesc})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-5 space-y-2 hover:border-[var(--accent-color)]/50 transition-all group",children:[(0,s.jsx)("span",{className:"text-[10px] font-bold text-[var(--accent-text)] dark:text-[var(--accent-color)] uppercase tracking-wider block",children:ei.creditFrameworkTitle}),(0,s.jsxs)("h3",{className:"text-sm font-black text-zinc-800 dark:text-zinc-200 tracking-tight flex items-center justify-between",children:["React 19 & Next.js 16",(0,s.jsx)("span",{className:"text-[10px] font-semibold text-zinc-400 group-hover:text-[var(--accent-color)] transition-colors",children:"MIT License"})]}),(0,s.jsx)("p",{className:"text-xs text-zinc-500 dark:text-zinc-400 leading-relaxed",children:ei.creditFrameworkDesc})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200/50 dark:border-zinc-800/80 shadow-sm rounded-2xl p-5 space-y-2 hover:border-[var(--accent-color)]/50 transition-all group",children:[(0,s.jsx)("span",{className:"text-[10px] font-bold text-[var(--accent-text)] dark:text-[var(--accent-color)] uppercase tracking-wider block",children:ei.creditDesignTitle}),(0,s.jsxs)("h3",{className:"text-sm font-black text-zinc-800 dark:text-zinc-200 tracking-tight flex items-center justify-between",children:["Tailwind CSS & Framer Motion",(0,s.jsx)("span",{className:"text-[10px] font-semibold text-zinc-400 group-hover:text-[var(--accent-color)] transition-colors",children:"MIT License"})]}),(0,s.jsx)("p",{className:"text-xs text-zinc-500 dark:text-zinc-400 leading-relaxed",children:ei.creditDesignDesc})]})]})]},"credits")]})}),(0,s.jsx)(sA.div,{className:"absolute bottom-6 left-1/2 -translate-x-1/2 bg-zinc-900/95 dark:bg-zinc-950/95 backdrop-blur-md text-white border border-zinc-800/80 dark:border-zinc-800/50 shadow-2xl rounded-full px-6 py-3.5 z-40 max-w-[90%] sm:max-w-max transition-colors",initial:{y:80,opacity:0},animate:{y:0,opacity:1},transition:{delay:.1,duration:.3},children:(0,s.jsxs)("div",{className:"flex items-center gap-5 flex-wrap justify-center text-xs",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("span",{className:"text-[10px] font-bold text-zinc-500 uppercase tracking-widest",children:[ei.hudLatency,":"]}),(0,s.jsx)("span",{className:"font-black text-[var(--accent-color)] tabular-nums",children:null!==B?`${B} ms`:"-- ms"})]}),(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-zinc-700"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("span",{className:"text-[10px] font-bold text-zinc-500 uppercase tracking-widest",children:[ei.hudInference,":"]}),(0,s.jsx)("span",{className:"font-black text-cyan-400 tabular-nums",children:null!==O?`${O} ms`:"-- ms"})]}),(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-zinc-700"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("span",{className:"text-[10px] font-bold text-zinc-500 uppercase tracking-widest",children:[ei.hudDetector,":"]}),(0,s.jsx)("span",{className:`px-2 py-0.5 rounded-full text-[9px] font-bold uppercase tracking-wider transition-colors ${_&&$?"bg-[var(--accent-color)]/20 text-[var(--accent-color)] border border-[var(--accent-color)]/30":"bg-zinc-800 text-zinc-500 border border-zinc-700"}`,children:_&&$?ei.hudTalking:ei.hudSilent})]}),(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-zinc-700"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("span",{className:"text-[10px] font-bold text-zinc-500 uppercase tracking-widest",children:[ei.hudSr,":"]}),(0,s.jsxs)("span",{className:"font-black text-zinc-300 tabular-nums",children:[R," Hz"]})]})]})})]}),(0,s.jsx)(od,{isOpen:l,onClose:()=>c(!1),title:ei.shortcutsTitle,children:(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("p",{className:"text-xs font-bold uppercase tracking-wider text-zinc-400 dark:text-zinc-500 border-b border-zinc-100 dark:border-zinc-800 pb-2",children:ei.shortcutsDesc}),(0,s.jsx)("div",{className:"space-y-3",children:er.map(e=>(0,s.jsxs)("div",{className:"flex justify-between items-center py-2 border-b border-zinc-100 dark:border-zinc-800 last:border-b-0",children:[(0,s.jsx)("span",{className:"text-xs font-medium text-zinc-700 dark:text-zinc-300",children:e.description}),(0,s.jsx)("kbd",{className:"px-2 py-1 bg-zinc-100 dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-lg text-xs font-bold text-zinc-800 dark:text-zinc-200",children:e.keys})]},e.keys))})]})})]})}],52683)}]);