soro-2-api / _next /static /chunks /c7c8fae8c1bef5d2.js
jiames1969's picture
Add 42 files
021514f verified
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36523,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:n,blurDataURL:o,objectFit:a}){let l=r?40*r:e,i=n?40*n:t,s=l&&i?`viewBox='0 0 ${l} ${i}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${s}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${s?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${o}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},52245,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return a},imageConfigDefault:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["default","imgix","cloudinary","akamai","custom"],l={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},17022,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return s}}),e.r(87035);let n=e.r(36523),o=e.r(52245),a=["-moz-initial","fill","none","scale-down",void 0];function l(e){return void 0!==e.default}function i(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s({src:e,sizes:t,unoptimized:r=!1,priority:s=!1,preload:d=!1,loading:c,className:u,quality:f,width:p,height:m,fill:h=!1,style:g,overrideSrc:v,onLoad:b,onLoadingComplete:x,placeholder:y="empty",blurDataURL:w,fetchPriority:k,decoding:j="async",layout:S,objectFit:N,objectPosition:C,lazyBoundary:E,lazyRoot:R,...P},z){var L;let _,O,A,{imgConf:M,showAltText:T,blurComplete:I,defaultLoader:D}=z,$=M||o.imageConfigDefault;if("allSizes"in $)_=$;else{let e=[...$.deviceSizes,...$.imageSizes].sort((e,t)=>e-t),t=$.deviceSizes.sort((e,t)=>e-t),r=$.qualities?.sort((e,t)=>e-t);_={...$,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===D)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let F=P.loader||D;delete P.loader,delete P.srcSet;let W="__next_img_default"in F;if(W){if("custom"===_.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=F;F=t=>{let{config:r,...n}=t;return e(n)}}if(S){"fill"===S&&(h=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[S];e&&(g={...g,...e});let r={responsive:"100vw",fill:"100vw"}[S];r&&!t&&(t=r)}let H="",V=i(p),B=i(m);if((L=e)&&"object"==typeof L&&(l(L)||void 0!==L.src)){let t=l(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(O=t.blurWidth,A=t.blurHeight,w=w||t.blurDataURL,H=t.src,!h)if(V||B){if(V&&!B){let e=V/t.width;B=Math.round(t.height*e)}else if(!V&&B){let e=B/t.height;V=Math.round(t.width*e)}}else V=t.width,B=t.height}let q=!s&&!d&&("lazy"===c||void 0===c);(!(e="string"==typeof e?e:H)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,q=!1),_.unoptimized&&(r=!0),W&&!_.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let U=i(f),K=Object.assign(h?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:N,objectPosition:C}:{},T?{}:{color:"transparent"},g),G=I||"empty"===y?null:"blur"===y?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:V,heightInt:B,blurWidth:O,blurHeight:A,blurDataURL:w||"",objectFit:K.objectFit})}")`:`url("${y}")`,X=a.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,Y=G?{backgroundSize:X,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:G}:{},Z=function({config:e,src:t,unoptimized:r,width:n,quality:o,sizes:a,loader:l}){if(r)return{src:t,srcSet:void 0,sizes:void 0};let{widths:i,kind:s}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,o=[];for(let e;e=r.exec(n);)o.push(parseInt(e[2]));if(o.length){let r=.01*Math.min(...o);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,n,a),d=i.length-1;return{sizes:a||"w"!==s?a:"100vw",srcSet:i.map((r,n)=>`${l({config:e,src:t,quality:o,width:r})} ${"w"===s?r:n+1}${s}`).join(", "),src:l({config:e,src:t,quality:o,width:i[d]})}}({config:_,src:e,unoptimized:r,width:V,quality:U,sizes:t,loader:F}),J=q?"lazy":c;return{props:{...P,loading:J,fetchPriority:k,width:V,height:B,decoding:j,className:u,style:{...K,...Y},sizes:Z.sizes,srcSet:Z.srcSet,src:v||Z.src},meta:{unoptimized:r,preload:d||s,placeholder:y,fill:h}}}},87096,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let n=e.r(45456),o="undefined"==typeof window,a=o?()=>{}:n.useLayoutEffect,l=o?()=>{}:n.useEffect;function i(e){let{headManager:t,reduceComponentsToState:r}=e;function i(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return o&&(t?.mountedInstances?.add(e.children),i()),a(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),a(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},24179,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return h},defaultHead:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(81258),l=e.r(44066),i=e.r(78042),s=l._(e.r(45456)),d=a._(e.r(87096)),c=e.r(55481);function u(){return[(0,i.jsx)("meta",{charSet:"utf-8"},"charset"),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===s.default.Fragment?e.concat(s.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(87035);let p=["name","httpEquiv","charSet","itemProp"];function m(e){let t,r,n,o;return e.reduce(f,[]).reverse().concat(u().reverse()).filter((t=new Set,r=new Set,n=new Set,o={},e=>{let a=!0,l=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){l=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?a=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?a=!1:r.add(e.type);break;case"meta":for(let t=0,r=p.length;t<r;t++){let r=p[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?a=!1:n.add(r);else{let t=e.props[r],n=o[r]||new Set;("name"!==r||!l)&&n.has(t)?a=!1:(n.add(t),o[r]=n)}}}return a})).reverse().map((e,t)=>{let r=e.key||t;return s.default.cloneElement(e,{key:r})})}let h=function({children:e}){let t=(0,s.useContext)(c.HeadManagerContext);return(0,i.jsx)(d.default,{reduceComponentsToState:m,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},2263,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=e.r(81258)._(e.r(45456)),o=e.r(52245),a=n.default.createContext(o.imageConfigDefault)},47118,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(81258)._(e.r(45456)).default.createContext(null)},67308,(e,t,r)=>{"use strict";function n(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,0):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},57089,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let n=e.r(67308);function o({config:e,src:t,width:r,quality:o}){if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let a=(0,n.findClosestQuality)(o,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${a}${t.startsWith("/_next/static/media/"),""}`}o.__next_img_default=!0;let a=o},94400,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(45456);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},36454,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return y}});let n=e.r(81258),o=e.r(44066),a=e.r(78042),l=o._(e.r(45456)),i=n._(e.r(25640)),s=n._(e.r(24179)),d=e.r(17022),c=e.r(52245),u=e.r(2263);e.r(87035);let f=e.r(47118),p=n._(e.r(57089)),m=e.r(94400),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(e,t,r,n,o,a,l){let i=e?.src;e&&e["data-loaded-src"]!==i&&(e["data-loaded-src"]=i,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function v(e){return l.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let b=(0,l.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:o,decoding:i,className:s,style:d,fetchPriority:c,placeholder:u,loading:f,unoptimized:p,fill:h,onLoadRef:b,onLoadingCompleteRef:x,setBlurComplete:y,setShowAltText:w,sizesInput:k,onLoad:j,onError:S,...N},C)=>{let E=(0,l.useCallback)(e=>{e&&(S&&(e.src=e.src),e.complete&&g(e,u,b,x,y,p,k))},[e,u,b,x,y,S,p,k]),R=(0,m.useMergedRef)(C,E);return(0,a.jsx)("img",{...N,...v(c),loading:f,width:o,height:n,decoding:i,"data-nimg":h?"fill":"1",className:s,style:d,sizes:r,srcSet:t,src:e,ref:R,onLoad:e=>{g(e.currentTarget,u,b,x,y,p,k)},onError:e=>{w(!0),"empty"!==u&&y(!0),S&&S(e)}})});function x({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...v(t.fetchPriority)};return e&&i.default.preload?(i.default.preload(t.src,r),null):(0,a.jsx)(s.default,{children:(0,a.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let y=(0,l.forwardRef)((e,t)=>{let r=(0,l.useContext)(f.RouterContext),n=(0,l.useContext)(u.ImageConfigContext),o=(0,l.useMemo)(()=>{let e=h||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),o=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:o,localPatterns:"undefined"==typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:i,onLoadingComplete:s}=e,m=(0,l.useRef)(i);(0,l.useEffect)(()=>{m.current=i},[i]);let g=(0,l.useRef)(s);(0,l.useEffect)(()=>{g.current=s},[s]);let[v,y]=(0,l.useState)(!1),[w,k]=(0,l.useState)(!1),{props:j,meta:S}=(0,d.getImgProps)(e,{defaultLoader:p.default,imgConf:o,blurComplete:v,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b,{...j,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:y,setShowAltText:k,sizesInput:e.sizes,ref:t}),S.preload?(0,a.jsx)(x,{isAppRouter:!r,imgAttributes:j}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},65817,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return c},getImageProps:function(){return d}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(81258),l=e.r(17022),i=e.r(36454),s=a._(e.r(57089));function d(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=i.Image},61450,(e,t,r)=>{t.exports=e.r(65817)},31713,e=>{"use strict";let t,r,n,o,a,l;var i,s,d,c,u,f,p,m,h=e.i(78042),g=e.i(61450),v=e.i(45456);function b(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function x(...e){return t=>{let r=!1,n=e.map(e=>{let n=b(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():b(e[t],null)}}}}function y(...e){return v.useCallback(x(...e),e)}var w=Symbol.for("react.lazy"),k=v[" use ".trim().toString()];function j(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===w&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var S=((a=v.forwardRef((e,t)=>{let{children:r,...n}=e;if(j(r)&&"function"==typeof k&&(r=k(r._payload)),v.isValidElement(r)){var o;let e,a,l=(o=r,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),i=function(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==v.Fragment&&(i.ref=t?x(t,l):l),v.cloneElement(r,i)}return v.Children.count(r)>1?v.Children.only(null):null})).displayName="Slot.SlotClone",t=a,(r=v.forwardRef((e,r)=>{let{children:n,...o}=e;j(n)&&"function"==typeof k&&(n=k(n._payload));let a=v.Children.toArray(n),l=a.find(C);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null);return(0,h.jsx)(t,{...o,ref:r,children:v.isValidElement(e)?v.cloneElement(e,void 0,n):null})}return(0,h.jsx)(t,{...o,ref:r,children:n})})).displayName="Slot.Slot",r),N=Symbol("radix.slottable");function C(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===N}function E(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(n&&(n+=" "),n+=t);return n}let R=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,P=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),z=[],L=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],o=r.nextPart.get(n);if(o){let r=L(e,t+1,o);if(r)return r}let a=r.validators;if(null===a)return;let l=0===t?e.join("-"):e.slice(t).join("-"),i=a.length;for(let e=0;e<i;e++){let t=a[e];if(t.validator(l))return t.classGroupId}},_=(e,t)=>{let r=P();for(let n in e)O(e[n],r,n,t);return r},O=(e,t,r,n)=>{let o=e.length;for(let a=0;a<o;a++)A(e[a],t,r,n)},A=(e,t,r,n)=>{"string"==typeof e?M(e,t,r):"function"==typeof e?T(e,t,r,n):I(e,t,r,n)},M=(e,t,r)=>{(""===e?t:D(t,e)).classGroupId=r},T=(e,t,r,n)=>{$(e)?O(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},I=(e,t,r,n)=>{let o=Object.entries(e),a=o.length;for(let e=0;e<a;e++){let[a,l]=o[e];O(l,D(t,a),r,n)}},D=(e,t)=>{let r=e,n=t.split("-"),o=n.length;for(let e=0;e<o;e++){let t=n[e],o=r.nextPart.get(t);o||(o=P(),r.nextPart.set(t,o)),r=o}return r},$=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,F=[],W=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),H=/\s+/,V=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=V(e[n]))&&(r&&(r+=" "),r+=t);return r},B=[],q=e=>{let t=t=>t[e]||B;return t.isThemeGetter=!0,t},U=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,K=/^\((?:(\w[\w-]*):)?(.+)\)$/i,G=/^\d+\/\d+$/,X=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Y=/\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$/,Z=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,J=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Q=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ee=e=>G.test(e),et=e=>!!e&&!Number.isNaN(Number(e)),er=e=>!!e&&Number.isInteger(Number(e)),en=e=>e.endsWith("%")&&et(e.slice(0,-1)),eo=e=>X.test(e),ea=()=>!0,el=e=>Y.test(e)&&!Z.test(e),ei=()=>!1,es=e=>J.test(e),ed=e=>Q.test(e),ec=e=>!ef(e)&&!eb(e),eu=e=>eN(e,eP,ei),ef=e=>U.test(e),ep=e=>eN(e,ez,el),em=e=>eN(e,eL,et),eh=e=>eN(e,eE,ei),eg=e=>eN(e,eR,ed),ev=e=>eN(e,eO,es),eb=e=>K.test(e),ex=e=>eC(e,ez),ey=e=>eC(e,e_),ew=e=>eC(e,eE),ek=e=>eC(e,eP),ej=e=>eC(e,eR),eS=e=>eC(e,eO,!0),eN=(e,t,r)=>{let n=U.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},eC=(e,t,r=!1)=>{let n=K.exec(e);return!!n&&(n[1]?t(n[1]):r)},eE=e=>"position"===e||"percentage"===e,eR=e=>"image"===e||"url"===e,eP=e=>"length"===e||"size"===e||"bg-size"===e,ez=e=>"length"===e,eL=e=>"number"===e,e_=e=>"family-name"===e,eO=e=>"shadow"===e,eA=((e,...t)=>{let r,n,o,a,l=e=>{let t=n(e);if(t)return t;let a=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,l=[],i=e.trim().split(H),s="";for(let e=i.length-1;e>=0;e-=1){let t=i[e],{isExternal:d,modifiers:c,hasImportantModifier:u,baseClassName:f,maybePostfixModifierPosition:p}=r(t);if(d){s=t+(s.length>0?" "+s:s);continue}let m=!!p,h=n(m?f.substring(0,p):f);if(!h){if(!m||!(h=n(f))){s=t+(s.length>0?" "+s:s);continue}m=!1}let g=0===c.length?"":1===c.length?c[0]:a(c).join(":"),v=u?g+"!":g,b=v+h;if(l.indexOf(b)>-1)continue;l.push(b);let x=o(h,m);for(let e=0;e<x.length;++e){let t=x[e];l.push(v+t)}s=t+(s.length>0?" "+s:s)}return s})(e,r);return o(e,a),a};return a=i=>{var s;let d;return n=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),o=(o,a)=>{r[o]=a,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}})((s=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,o=0,a=0,l=e.length;for(let i=0;i<l;i++){let l=e[i];if(0===n&&0===o){if(":"===l){r.push(e.slice(a,i)),a=i+1;continue}if("/"===l){t=i;continue}}"["===l?n++:"]"===l?n--:"("===l?o++:")"===l&&o--}let i=0===r.length?e:e.slice(a),s=i,d=!1;return i.endsWith("!")?(s=i.slice(0,-1),d=!0):i.startsWith("!")&&(s=i.slice(1),d=!0),W(r,d,s,t&&t>a?t-a:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):W(F,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(s),sortModifiers:(d=new Map,s.orderSensitiveModifiers.forEach((e,t)=>{d.set(e,1e6+t)}),e=>{let t=[],r=[];for(let n=0;n<e.length;n++){let o=e[n],a="["===o[0],l=d.has(o);a||l?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(o)):r.push(o)}return r.length>0&&(r.sort(),t.push(...r)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return _(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,n,o;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(n=(t=r.slice(1,-1)).indexOf(":"),(o=t.slice(0,n))?"arbitrary.."+o:void 0)}let n=e.split("-"),o=+(""===n[0]&&n.length>1);return L(n,o,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=n[e],o=r[e];if(t){if(o){let e=Array(o.length+t.length);for(let t=0;t<o.length;t++)e[t]=o[t];for(let r=0;r<t.length;r++)e[o.length+r]=t[r];return e}return t}return o||z}return r[e]||z}}})(s)}).cache.get,o=r.cache.set,a=l,l(i)},(...e)=>a(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=V(t))&&(o&&(o+=" "),o+=r);return o})(...e))})(()=>{let e=q("color"),t=q("font"),r=q("text"),n=q("font-weight"),o=q("tracking"),a=q("leading"),l=q("breakpoint"),i=q("container"),s=q("spacing"),d=q("radius"),c=q("shadow"),u=q("inset-shadow"),f=q("text-shadow"),p=q("drop-shadow"),m=q("blur"),h=q("perspective"),g=q("aspect"),v=q("ease"),b=q("animate"),x=()=>["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"],w=()=>[...y(),eb,ef],k=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],S=()=>[eb,ef,s],N=()=>[ee,"full","auto",...S()],C=()=>[er,"none","subgrid",eb,ef],E=()=>["auto",{span:["full",er,eb,ef]},er,eb,ef],R=()=>[er,"auto",eb,ef],P=()=>["auto","min","max","fr",eb,ef],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...S()],O=()=>[ee,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],A=()=>[e,eb,ef],M=()=>[...y(),ew,eh,{position:[eb,ef]}],T=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",ek,eu,{size:[eb,ef]}],D=()=>[en,ex,ep],$=()=>["","none","full",d,eb,ef],F=()=>["",et,ex,ep],W=()=>["solid","dashed","dotted","double"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>[et,en,ew,eh],B=()=>["","none",m,eb,ef],U=()=>["none",et,eb,ef],K=()=>["none",et,eb,ef],G=()=>[et,eb,ef],X=()=>[ee,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[eo],breakpoint:[eo],color:[ea],container:[eo],"drop-shadow":[eo],ease:["in","out","in-out"],font:[ec],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[eo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[eo],shadow:[eo],spacing:["px",et],text:[eo],"text-shadow":[eo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ee,ef,eb,g]}],container:["container"],columns:[{columns:[et,ef,eb,i]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:w()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[er,"auto",eb,ef]}],basis:[{basis:[ee,"full","auto",i,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[et,ee,"auto","initial","none",ef]}],grow:[{grow:["",et,eb,ef]}],shrink:[{shrink:["",et,eb,ef]}],order:[{order:[er,"first","last","none",eb,ef]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[i,"screen",...O()]}],"min-w":[{"min-w":[i,"screen","none",...O()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",r,ex,ep]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,eb,em]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",en,ef]}],"font-family":[{font:[ey,ef,t]}],"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:[o,eb,ef]}],"line-clamp":[{"line-clamp":[et,"none",eb,em]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":["none",eb,ef]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",eb,ef]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[et,"from-font","auto",eb,ep]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[et,"auto",eb,ef]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",eb,ef]}],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",eb,ef]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:T()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},er,eb,ef],radial:["",eb,ef],conic:[er,eb,ef]},ej,eg]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],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:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[et,eb,ef]}],"outline-w":[{outline:["",et,ex,ep]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",c,eS,ev]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",u,eS,ev]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[et,ep]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",f,eS,ev]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[et,eb,ef]}],"mix-blend":[{"mix-blend":[...H(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":H()}],"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":[et]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[eb,ef]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":[et]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:T()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",eb,ef]}],filter:[{filter:["","none",eb,ef]}],blur:[{blur:B()}],brightness:[{brightness:[et,eb,ef]}],contrast:[{contrast:[et,eb,ef]}],"drop-shadow":[{"drop-shadow":["","none",p,eS,ev]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",et,eb,ef]}],"hue-rotate":[{"hue-rotate":[et,eb,ef]}],invert:[{invert:["",et,eb,ef]}],saturate:[{saturate:[et,eb,ef]}],sepia:[{sepia:["",et,eb,ef]}],"backdrop-filter":[{"backdrop-filter":["","none",eb,ef]}],"backdrop-blur":[{"backdrop-blur":B()}],"backdrop-brightness":[{"backdrop-brightness":[et,eb,ef]}],"backdrop-contrast":[{"backdrop-contrast":[et,eb,ef]}],"backdrop-grayscale":[{"backdrop-grayscale":["",et,eb,ef]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[et,eb,ef]}],"backdrop-invert":[{"backdrop-invert":["",et,eb,ef]}],"backdrop-opacity":[{"backdrop-opacity":[et,eb,ef]}],"backdrop-saturate":[{"backdrop-saturate":[et,eb,ef]}],"backdrop-sepia":[{"backdrop-sepia":["",et,eb,ef]}],"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",eb,ef]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[et,"initial",eb,ef]}],ease:[{ease:["linear","initial",v,eb,ef]}],delay:[{delay:[et,eb,ef]}],animate:[{animate:["none",b,eb,ef]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,eb,ef]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:K()}],"scale-x":[{"scale-x":K()}],"scale-y":[{"scale-y":K()}],"scale-z":[{"scale-z":K()}],"scale-3d":["scale-3d"],skew:[{skew:G()}],"skew-x":[{"skew-x":G()}],"skew-y":[{"skew-y":G()}],transform:[{transform:[eb,ef,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:X()}],"translate-x":[{"translate-x":X()}],"translate-y":[{"translate-y":X()}],"translate-z":[{"translate-z":X()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"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",eb,ef]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"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-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-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",eb,ef]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[et,ex,ep,em]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function eM(...e){return eA(E(e))}let eT=(n="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",o={variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}},e=>{var t;if((null==o?void 0:o.variants)==null)return E(n,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:r,defaultVariants:a}=o,l=Object.keys(r).map(t=>{let n=null==e?void 0:e[t],o=null==a?void 0:a[t];if(null===n)return null;let l=R(n)||R(o);return r[t][l]}),i=e&&Object.entries(e).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return E(n,l,null==o||null==(t=o.compoundVariants)?void 0:t.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...i}[t]):({...a,...i})[t]===r})?[...e,r,n]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)});function eI({className:e,variant:t,size:r,asChild:n=!1,...o}){return(0,h.jsx)(n?S:"button",{"data-slot":"button",className:eM(eT({variant:t,size:r,className:e})),...o})}let eD=v.forwardRef(({className:e,...t},r)=>(0,h.jsx)("div",{ref:r,className:eM("rounded-2xl border bg-white/80 backdrop-blur shadow-sm transition hover:shadow-md dark:bg-neutral-900",e),...t}));eD.displayName="Card";let e$=v.forwardRef(({className:e,...t},r)=>(0,h.jsx)("div",{ref:r,className:eM("flex flex-col gap-1.5 p-6",e),...t}));e$.displayName="CardHeader";let eF=v.forwardRef(({className:e,...t},r)=>(0,h.jsx)("h3",{ref:r,className:eM("text-lg font-semibold leading-none tracking-tight",e),...t}));eF.displayName="CardTitle";let eW=v.forwardRef(({className:e,...t},r)=>(0,h.jsx)("p",{ref:r,className:eM("text-sm text-neutral-500 dark:text-neutral-400",e),...t}));eW.displayName="CardDescription";let eH=v.forwardRef(({className:e,...t},r)=>(0,h.jsx)("div",{ref:r,className:eM("p-6 pt-0",e),...t}));eH.displayName="CardContent";let eV=v.forwardRef(({className:e,type:t="text",...r},n)=>(0,h.jsx)("input",{type:t,className:eM("flex h-11 w-full rounded-xl border border-neutral-200 bg-white px-3 py-2 text-sm shadow-inner transition placeholder:text-neutral-400 focus:border-neutral-400 focus:outline-none focus:ring-2 focus:ring-neutral-200 disabled:cursor-not-allowed disabled:opacity-60 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100",e),ref:n,...r}));eV.displayName="Input";let eB=v.forwardRef(({className:e,...t},r)=>(0,h.jsx)("label",{ref:r,className:eM("text-sm font-medium text-neutral-700 dark:text-neutral-200",e),...t}));eB.displayName="Label";var eq=e.i(25640);function eU(e,[t,r]){return Math.min(r,Math.max(t,e))}function eK(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function eG(e,t=[]){let r=[],n=()=>{let t=r.map(e=>v.createContext(e));return function(r){let n=r?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let o=v.createContext(n),a=r.length;r=[...r,n];let l=t=>{let{scope:r,children:n,...l}=t,i=r?.[e]?.[a]||o,s=v.useMemo(()=>l,Object.values(l));return(0,h.jsx)(i.Provider,{value:s,children:n})};return l.displayName=t+"Provider",[l,function(r,l){let i=l?.[e]?.[a]||o,s=v.useContext(i);if(s)return s;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}function eX(e){var t;let r,n=(t=e,(r=v.forwardRef((e,t)=>{let{children:r,...n}=e;if(v.isValidElement(r)){var o;let e,a,l=(o=r,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),i=function(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==v.Fragment&&(i.ref=t?x(t,l):l),v.cloneElement(r,i)}return v.Children.count(r)>1?v.Children.only(null):null})).displayName=`${t}.SlotClone`,r),o=v.forwardRef((e,t)=>{let{children:r,...o}=e,a=v.Children.toArray(r),l=a.find(eZ);if(l){let e=l.props.children,r=a.map(t=>t!==l?t:v.Children.count(e)>1?v.Children.only(null):v.isValidElement(e)?e.props.children:null);return(0,h.jsx)(n,{...o,ref:t,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return(0,h.jsx)(n,{...o,ref:t,children:r})});return o.displayName=`${e}.Slot`,o}"undefined"!=typeof window&&window.document&&window.document.createElement;var eY=Symbol("radix.slottable");function eZ(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eY}var eJ=new WeakMap;function eQ(e,t){var r,n;let o,a,l;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let i=(r=e,n=t,o=r.length,(l=(a=e0(n))>=0?a:o+a)<0||l>=o?-1:l);return -1===i?void 0:e[i]}function e0(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],eJ.set(this,!0)}set(e,t){return eJ.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,o=this.has(t),a=this.#e.length,l=e0(e),i=l>=0?l:a+l,s=i<0||i>=a?-1:i;if(s===this.size||o&&s===this.size-1||-1===s)return this.set(t,r),this;let d=this.size+ +!o;l<0&&i++;let c=[...this.#e],u=!1;for(let e=i;e<d;e++)if(i===e){let a=c[e];c[e]===t&&(a=c[e+1]),o&&this.delete(t),n=this.get(a),this.set(t,r)}else{u||c[e-1]!==t||(u=!0);let r=c[u?e:e-1],o=n;n=this.get(r),this.delete(r),this.set(r,o)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=eQ(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=eQ(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return eQ(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(...e){let[t,r]=e,n=0,o=r??this.at(0);for(let r of this)o=0===n&&1===e.length?r:Reflect.apply(t,this,[o,r,n,this]),n++;return o}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let o=this.at(r);n=r===this.size-1&&1===e.length?o:Reflect.apply(t,this,[n,o,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}});var e1=v.createContext(void 0),e2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=eX(`Primitive.${t}`),n=v.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,h.jsx)(o?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function e5(e){let t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...e)=>t.current?.(...e),[])}var e4="dismissableLayer.update",e3=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),e6=v.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:l,onDismiss:i,...s}=e,d=v.useContext(e3),[c,u]=v.useState(null),f=c?.ownerDocument??globalThis?.document,[,m]=v.useState({}),g=y(t,e=>u(e)),b=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=b.indexOf(x),k=c?b.indexOf(c):-1,j=d.layersWithOutsidePointerEventsDisabled.size>0,S=k>=w,N=function(e,t=globalThis?.document){let r=e5(e),n=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){e7("dismissableLayer.pointerDownOutside",r,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));S&&!r&&(o?.(e),l?.(e),e.defaultPrevented||i?.())},f),C=function(e,t=globalThis?.document){let r=e5(e),n=v.useRef(!1);return v.useEffect(()=>{let e=e=>{e.target&&!n.current&&e7("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;![...d.branches].some(e=>e.contains(t))&&(a?.(e),l?.(e),e.defaultPrevented||i?.())},f);return!function(e,t=globalThis?.document){let r=e5(e);v.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{k===d.layers.size-1&&(n?.(e),!e.defaultPrevented&&i&&(e.preventDefault(),i()))},f),v.useEffect(()=>{if(c)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(p=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(c)),d.layers.add(c),e8(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=p)}},[c,f,r,d]),v.useEffect(()=>()=>{c&&(d.layers.delete(c),d.layersWithOutsidePointerEventsDisabled.delete(c),e8())},[c,d]),v.useEffect(()=>{let e=()=>m({});return document.addEventListener(e4,e),()=>document.removeEventListener(e4,e)},[]),(0,h.jsx)(e2.div,{...s,ref:g,style:{pointerEvents:j?S?"auto":"none":void 0,...e.style},onFocusCapture:eK(e.onFocusCapture,C.onFocusCapture),onBlurCapture:eK(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:eK(e.onPointerDownCapture,N.onPointerDownCapture)})});function e8(){let e=new CustomEvent(e4);document.dispatchEvent(e)}function e7(e,t,r,{discrete:n}){let o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});if(t&&o.addEventListener(e,t,{once:!0}),n)o&&eq.flushSync(()=>o.dispatchEvent(a));else o.dispatchEvent(a)}e6.displayName="DismissableLayer",v.forwardRef((e,t)=>{let r=v.useContext(e3),n=v.useRef(null),o=y(t,n);return v.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,h.jsx)(e2.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var e9=0;function te(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var tt="focusScope.autoFocusOnMount",tr="focusScope.autoFocusOnUnmount",tn={bubbles:!1,cancelable:!0},to=v.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...l}=e,[i,s]=v.useState(null),d=e5(o),c=e5(a),u=v.useRef(null),f=y(t,e=>s(e)),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(n){let e=function(e){if(p.paused||!i)return;let t=e.target;i.contains(t)?u.current=t:ti(u.current,{select:!0})},t=function(e){if(p.paused||!i)return;let t=e.relatedTarget;null!==t&&(i.contains(t)||ti(u.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ti(i)});return i&&r.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,i,p.paused]),v.useEffect(()=>{if(i){ts.add(p);let e=document.activeElement;if(!i.contains(e)){let t=new CustomEvent(tt,tn);i.addEventListener(tt,d),i.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(ti(n,{select:t}),document.activeElement!==r)return}(ta(i).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&ti(i))}return()=>{i.removeEventListener(tt,d),setTimeout(()=>{let t=new CustomEvent(tr,tn);i.addEventListener(tr,c),i.dispatchEvent(t),t.defaultPrevented||ti(e??document.body,{select:!0}),i.removeEventListener(tr,c),ts.remove(p)},0)}}},[i,d,c,p]);let m=v.useCallback(e=>{if(!r&&!n||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){var a;let t,n=e.currentTarget,[l,i]=[tl(t=ta(a=n),a),tl(t.reverse(),a)];l&&i?e.shiftKey||o!==i?e.shiftKey&&o===l&&(e.preventDefault(),r&&ti(i,{select:!0})):(e.preventDefault(),r&&ti(l,{select:!0})):o===n&&e.preventDefault()}},[r,n,p.paused]);return(0,h.jsx)(e2.div,{tabIndex:-1,...l,ref:f,onKeyDown:m})});function ta(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function tl(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function ti(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}to.displayName="FocusScope";var ts=(l=[],{add(e){let t=l[0];e!==t&&t?.pause(),(l=td(l,e)).unshift(e)},remove(e){l=td(l,e),l[0]?.resume()}});function td(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var tc=globalThis?.document?v.useLayoutEffect:()=>{},tu=v[" useId ".trim().toString()]||(()=>void 0),tf=0;function tp(e){let[t,r]=v.useState(tu());return tc(()=>{e||r(e=>e??String(tf++))},[e]),e||(t?`radix-${t}`:"")}let tm=["top","right","bottom","left"],th=Math.min,tg=Math.max,tv=Math.round,tb=Math.floor,tx=e=>({x:e,y:e}),ty={left:"right",right:"left",bottom:"top",top:"bottom"},tw={start:"end",end:"start"};function tk(e,t){return"function"==typeof e?e(t):e}function tj(e){return e.split("-")[0]}function tS(e){return e.split("-")[1]}function tN(e){return"x"===e?"y":"x"}function tC(e){return"y"===e?"height":"width"}let tE=new Set(["top","bottom"]);function tR(e){return tE.has(tj(e))?"y":"x"}function tP(e){return e.replace(/start|end/g,e=>tw[e])}let tz=["left","right"],tL=["right","left"],t_=["top","bottom"],tO=["bottom","top"];function tA(e){return e.replace(/left|right|bottom|top/g,e=>ty[e])}function tM(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function tT(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function tI(e,t,r){let n,{reference:o,floating:a}=e,l=tR(t),i=tN(tR(t)),s=tC(i),d=tj(t),c="y"===l,u=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,p=o[s]/2-a[s]/2;switch(d){case"top":n={x:u,y:o.y-a.height};break;case"bottom":n={x:u,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:f};break;case"left":n={x:o.x-a.width,y:f};break;default:n={x:o.x,y:o.y}}switch(tS(t)){case"start":n[i]-=p*(r&&c?-1:1);break;case"end":n[i]+=p*(r&&c?-1:1)}return n}let tD=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:l}=r,i=a.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),d=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=tI(d,n,s),f=n,p={},m=0;for(let r=0;r<i.length;r++){let{name:a,fn:h}=i[r],{x:g,y:v,data:b,reset:x}=await h({x:c,y:u,initialPlacement:n,placement:f,strategy:o,middlewareData:p,rects:d,platform:l,elements:{reference:e,floating:t}});c=null!=g?g:c,u=null!=v?v:u,p={...p,[a]:{...p[a],...b}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(d=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:c,y:u}=tI(d,f,s)),r=-1)}return{x:c,y:u,placement:f,strategy:o,middlewareData:p}};async function t$(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:a,rects:l,elements:i,strategy:s}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:f=!1,padding:p=0}=tk(t,e),m=tM(p),h=i[f?"floating"===u?"reference":"floating":u],g=tT(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(h)))||r?h:h.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:c,strategy:s})),v="floating"===u?{x:n,y:o,width:l.floating.width,height:l.floating.height}:l.reference,b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(i.floating)),x=await (null==a.isElement?void 0:a.isElement(b))&&await (null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},y=tT(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:b,strategy:s}):v);return{top:(g.top-y.top+m.top)/x.y,bottom:(y.bottom-g.bottom+m.bottom)/x.y,left:(g.left-y.left+m.left)/x.x,right:(y.right-g.right+m.right)/x.x}}function tF(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tW(e){return tm.some(t=>e[t]>=0)}let tH=new Set(["left","top"]);async function tV(e,t){let{placement:r,platform:n,elements:o}=e,a=await (null==n.isRTL?void 0:n.isRTL(o.floating)),l=tj(r),i=tS(r),s="y"===tR(r),d=tH.has(l)?-1:1,c=a&&s?-1:1,u=tk(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&"number"==typeof m&&(p="end"===i?-1*m:m),s?{x:p*c,y:f*d}:{x:f*d,y:p*c}}function tB(){return"undefined"!=typeof window}function tq(e){return tG(e)?(e.nodeName||"").toLowerCase():"#document"}function tU(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function tK(e){var t;return null==(t=(tG(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function tG(e){return!!tB()&&(e instanceof Node||e instanceof tU(e).Node)}function tX(e){return!!tB()&&(e instanceof Element||e instanceof tU(e).Element)}function tY(e){return!!tB()&&(e instanceof HTMLElement||e instanceof tU(e).HTMLElement)}function tZ(e){return!!tB()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof tU(e).ShadowRoot)}let tJ=new Set(["inline","contents"]);function tQ(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=re(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!tJ.has(o)}let t0=new Set(["table","td","th"]),t1=[":popover-open",":modal"];function t2(e){return t1.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let t5=["transform","translate","scale","rotate","perspective"],t4=["transform","translate","scale","rotate","perspective","filter"],t3=["paint","layout","strict","content"];function t6(e){let t=t8(),r=tX(e)?re(e):e;return t5.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||t4.some(e=>(r.willChange||"").includes(e))||t3.some(e=>(r.contain||"").includes(e))}function t8(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let t7=new Set(["html","body","#document"]);function t9(e){return t7.has(tq(e))}function re(e){return tU(e).getComputedStyle(e)}function rt(e){return tX(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rr(e){if("html"===tq(e))return e;let t=e.assignedSlot||e.parentNode||tZ(e)&&e.host||tK(e);return tZ(t)?t.host:t}function rn(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=rr(t);return t9(r)?t.ownerDocument?t.ownerDocument.body:t.body:tY(r)&&tQ(r)?r:e(r)}(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),l=tU(o);if(a){let e=ro(l);return t.concat(l,l.visualViewport||[],tQ(o)?o:[],e&&r?rn(e):[])}return t.concat(o,rn(o,[],r))}function ro(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ra(e){let t=re(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=tY(e),a=o?e.offsetWidth:r,l=o?e.offsetHeight:n,i=tv(r)!==a||tv(n)!==l;return i&&(r=a,n=l),{width:r,height:n,$:i}}function rl(e){return tX(e)?e:e.contextElement}function ri(e){let t=rl(e);if(!tY(t))return tx(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:a}=ra(t),l=(a?tv(r.width):r.width)/n,i=(a?tv(r.height):r.height)/o;return l&&Number.isFinite(l)||(l=1),i&&Number.isFinite(i)||(i=1),{x:l,y:i}}let rs=tx(0);function rd(e){let t=tU(e);return t8()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:rs}function rc(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let a=e.getBoundingClientRect(),l=rl(e),i=tx(1);t&&(n?tX(n)&&(i=ri(n)):i=ri(e));let s=(void 0===(o=r)&&(o=!1),n&&(!o||n===tU(l))&&o)?rd(l):tx(0),d=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,f=a.height/i.y;if(l){let e=tU(l),t=n&&tX(n)?tU(n):n,r=e,o=ro(r);for(;o&&n&&t!==r;){let e=ri(o),t=o.getBoundingClientRect(),n=re(o),a=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;d*=e.x,c*=e.y,u*=e.x,f*=e.y,d+=a,c+=l,o=ro(r=tU(o))}}return tT({width:u,height:f,x:d,y:c})}function ru(e,t){let r=rt(e).scrollLeft;return t?t.left+r:rc(tK(e)).left+r}function rf(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ru(e,r),y:r.top+t.scrollTop}}let rp=new Set(["absolute","fixed"]);function rm(e,t,r){var n;let o;if("viewport"===t)o=function(e,t){let r=tU(e),n=tK(e),o=r.visualViewport,a=n.clientWidth,l=n.clientHeight,i=0,s=0;if(o){a=o.width,l=o.height;let e=t8();(!e||e&&"fixed"===t)&&(i=o.offsetLeft,s=o.offsetTop)}let d=ru(n);if(d<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,l=Math.abs(n.clientWidth-t.clientWidth-o);l<=25&&(a-=l)}else d<=25&&(a+=d);return{width:a,height:l,x:i,y:s}}(e,r);else if("document"===t){let t,r,a,l,i,s,d;n=tK(e),t=tK(n),r=rt(n),a=n.ownerDocument.body,l=tg(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=tg(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),s=-r.scrollLeft+ru(n),d=-r.scrollTop,"rtl"===re(a).direction&&(s+=tg(t.clientWidth,a.clientWidth)-l),o={width:l,height:i,x:s,y:d}}else if(tX(t)){let e,n,a,l,i,s;n=(e=rc(t,!0,"fixed"===r)).top+t.clientTop,a=e.left+t.clientLeft,l=tY(t)?ri(t):tx(1),i=t.clientWidth*l.x,s=t.clientHeight*l.y,o={width:i,height:s,x:a*l.x,y:n*l.y}}else{let r=rd(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return tT(o)}function rh(e){return"static"===re(e).position}function rg(e,t){if(!tY(e)||"fixed"===re(e).position)return null;if(t)return t(e);let r=e.offsetParent;return tK(e)===r&&(r=r.ownerDocument.body),r}function rv(e,t){var r;let n=tU(e);if(t2(e))return n;if(!tY(e)){let t=rr(e);for(;t&&!t9(t);){if(tX(t)&&!rh(t))return t;t=rr(t)}return n}let o=rg(e,t);for(;o&&(r=o,t0.has(tq(r)))&&rh(o);)o=rg(o,t);return o&&t9(o)&&rh(o)&&!t6(o)?n:o||function(e){let t=rr(e);for(;tY(t)&&!t9(t);){if(t6(t))return t;if(t2(t))break;t=rr(t)}return null}(e)||n}let rb=async function(e){let t=this.getOffsetParent||rv,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=tY(t),o=tK(t),a="fixed"===r,l=rc(e,!0,a,t),i={scrollLeft:0,scrollTop:0},s=tx(0);if(n||!n&&!a)if(("body"!==tq(t)||tQ(o))&&(i=rt(t)),n){let e=rc(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ru(o));a&&!n&&o&&(s.x=ru(o));let d=!o||n||a?tx(0):rf(o,i);return{x:l.left+i.scrollLeft-s.x-d.x,y:l.top+i.scrollTop-s.y-d.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},rx={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,a="fixed"===o,l=tK(n),i=!!t&&t2(t.floating);if(n===l||i&&a)return r;let s={scrollLeft:0,scrollTop:0},d=tx(1),c=tx(0),u=tY(n);if((u||!u&&!a)&&(("body"!==tq(n)||tQ(l))&&(s=rt(n)),tY(n))){let e=rc(n);d=ri(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let f=!l||u||a?tx(0):rf(l,s);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-s.scrollLeft*d.x+c.x+f.x,y:r.y*d.y-s.scrollTop*d.y+c.y+f.y}},getDocumentElement:tK,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,a=[..."clippingAncestors"===r?t2(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=rn(e,[],!1).filter(e=>tX(e)&&"body"!==tq(e)),o=null,a="fixed"===re(e).position,l=a?rr(e):e;for(;tX(l)&&!t9(l);){let t=re(l),r=t6(l);r||"fixed"!==t.position||(o=null),(a?!r&&!o:!r&&"static"===t.position&&!!o&&rp.has(o.position)||tQ(l)&&!r&&function e(t,r){let n=rr(t);return!(n===r||!tX(n)||t9(n))&&("fixed"===re(n).position||e(n,r))}(e,l))?n=n.filter(e=>e!==l):o=t,l=rr(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=a[0],i=a.reduce((e,r)=>{let n=rm(t,r,o);return e.top=tg(n.top,e.top),e.right=th(n.right,e.right),e.bottom=th(n.bottom,e.bottom),e.left=tg(n.left,e.left),e},rm(t,l,o));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:rv,getElementRects:rb,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ra(e);return{width:t,height:r}},getScale:ri,isElement:tX,isRTL:function(e){return"rtl"===re(e).direction}};function ry(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let rw=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:a,platform:l,elements:i,middlewareData:s}=t,{element:d,padding:c=0}=tk(e,t)||{};if(null==d)return{};let u=tM(c),f={x:r,y:n},p=tN(tR(o)),m=tC(p),h=await l.getDimensions(d),g="y"===p,v=g?"clientHeight":"clientWidth",b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],y=await (null==l.getOffsetParent?void 0:l.getOffsetParent(d)),w=y?y[v]:0;w&&await (null==l.isElement?void 0:l.isElement(y))||(w=i.floating[v]||a.floating[m]);let k=w/2-h[m]/2-1,j=th(u[g?"top":"left"],k),S=th(u[g?"bottom":"right"],k),N=w-h[m]-S,C=w/2-h[m]/2+(b/2-x/2),E=tg(j,th(C,N)),R=!s.arrow&&null!=tS(o)&&C!==E&&a.reference[m]/2-(C<j?j:S)-h[m]/2<0,P=R?C<j?C-j:C-N:0;return{[p]:f[p]+P,data:{[p]:E,centerOffset:C-E-P,...R&&{alignmentOffset:P}},reset:R}}});var rk="undefined"!=typeof document?v.useLayoutEffect:function(){};function rj(e,t){let r,n,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!rj(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if(("_owner"!==r||!e.$$typeof)&&!rj(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function rS(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rN(e,t){let r=rS(e);return Math.round(t*r)/r}function rC(e){let t=v.useRef(e);return rk(()=>{t.current=e}),t}var rE=v.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...a}=e;return(0,h.jsx)(e2.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,h.jsx)("polygon",{points:"0,0 30,0 15,10"})})});rE.displayName="Arrow";var rR="Popper",[rP,rz]=eG(rR),[rL,r_]=rP(rR),rO=e=>{let{__scopePopper:t,children:r}=e,[n,o]=v.useState(null);return(0,h.jsx)(rL,{scope:t,anchor:n,onAnchorChange:o,children:r})};rO.displayName=rR;var rA="PopperAnchor",rM=v.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...o}=e,a=r_(rA,r),l=v.useRef(null),i=y(t,l),s=v.useRef(null);return v.useEffect(()=>{let e=s.current;s.current=n?.current||l.current,e!==s.current&&a.onAnchorChange(s.current)}),n?null:(0,h.jsx)(e2.div,{...o,ref:i})});rM.displayName=rA;var rT="PopperContent",[rI,rD]=rP(rT),r$=v.forwardRef((e,t)=>{var r,n,o,a,l,i,s,d,c,u,f,p,m,g,b,x,w,k,j,S,N;let{__scopePopper:C,side:E="bottom",sideOffset:R=0,align:P="center",alignOffset:z=0,arrowPadding:L=0,avoidCollisions:_=!0,collisionBoundary:O=[],collisionPadding:A=0,sticky:M="partial",hideWhenDetached:T=!1,updatePositionStrategy:I="optimized",onPlaced:D,...$}=e,F=r_(rT,C),[W,H]=v.useState(null),V=y(t,e=>H(e)),[B,q]=v.useState(null),U=function(e){let[t,r]=v.useState(void 0);return tc(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(B),K=U?.width??0,G=U?.height??0,X="number"==typeof A?A:{top:0,right:0,bottom:0,left:0,...A},Y=Array.isArray(O)?O:[O],Z=Y.length>0,J={padding:X,boundary:Y.filter(rV),altBoundary:Z},{refs:Q,floatingStyles:ee,placement:et,isPositioned:er,middlewareData:en}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:l}={},transform:i=!0,whileElementsMounted:s,open:d}=e,[c,u]=v.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(n);rj(f,n)||p(n);let[m,h]=v.useState(null),[g,b]=v.useState(null),x=v.useCallback(e=>{e!==j.current&&(j.current=e,h(e))},[]),y=v.useCallback(e=>{e!==S.current&&(S.current=e,b(e))},[]),w=a||m,k=l||g,j=v.useRef(null),S=v.useRef(null),N=v.useRef(c),C=null!=s,E=rC(s),R=rC(o),P=rC(d),z=v.useCallback(()=>{var e,n;let o,a,l;if(!j.current||!S.current)return;let i={placement:t,strategy:r,middleware:f};R.current&&(i.platform=R.current),(e=j.current,n=S.current,o=new Map,l={...(a={platform:rx,...i}).platform,_c:o},tD(e,n,{...a,platform:l})).then(e=>{let t={...e,isPositioned:!1!==P.current};L.current&&!rj(N.current,t)&&(N.current=t,eq.flushSync(()=>{u(t)}))})},[f,t,r,R,P]);rk(()=>{!1===d&&N.current.isPositioned&&(N.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[d]);let L=v.useRef(!1);rk(()=>(L.current=!0,()=>{L.current=!1}),[]),rk(()=>{if(w&&(j.current=w),k&&(S.current=k),w&&k){if(E.current)return E.current(w,k,z);z()}},[w,k,z,E,C]);let _=v.useMemo(()=>({reference:j,floating:S,setReference:x,setFloating:y}),[x,y]),O=v.useMemo(()=>({reference:w,floating:k}),[w,k]),A=v.useMemo(()=>{let e={position:r,left:0,top:0};if(!O.floating)return e;let t=rN(O.floating,c.x),n=rN(O.floating,c.y);return i?{...e,transform:"translate("+t+"px, "+n+"px)",...rS(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,i,O.floating,c.x,c.y]);return v.useMemo(()=>({...c,update:z,refs:_,elements:O,floatingStyles:A}),[c,z,_,O,A])}({strategy:"fixed",placement:E+("center"!==P?"-"+P:""),whileElementsMounted:(...e)=>(function(e,t,r,n){let o;void 0===n&&(n={});let{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=n,c=rl(e),u=a||l?[...c?rn(c):[],...rn(t)]:[];u.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),l&&e.addEventListener("resize",r)});let f=c&&s?function(e,t){let r,n=null,o=tK(e);function a(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function l(i,s){void 0===i&&(i=!1),void 0===s&&(s=1),a();let d=e.getBoundingClientRect(),{left:c,top:u,width:f,height:p}=d;if(i||t(),!f||!p)return;let m={rootMargin:-tb(u)+"px "+-tb(o.clientWidth-(c+f))+"px "+-tb(o.clientHeight-(u+p))+"px "+-tb(c)+"px",threshold:tg(0,th(1,s))||1},h=!0;function g(t){let n=t[0].intersectionRatio;if(n!==s){if(!h)return l();n?l(!1,n):r=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==n||ry(d,e.getBoundingClientRect())||l(),h=!1}try{n=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(g,m)}n.observe(e)}(!0),a}(c,r):null,p=-1,m=null;i&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),c&&!d&&m.observe(c),m.observe(t));let h=d?rc(e):null;return d&&function t(){let n=rc(e);h&&!ry(h,n)&&r(),h=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{a&&e.removeEventListener("scroll",r),l&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,d&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===I}),elements:{reference:F.anchor},middleware:[{...{name:"offset",options:o=r={mainAxis:R+G,alignmentAxis:z},async fn(e){var t,r;let{x:n,y:a,placement:l,middlewareData:i}=e,s=await tV(e,o);return l===(null==(t=i.offset)?void 0:t.placement)&&null!=(r=i.arrow)&&r.alignmentOffset?{}:{x:n+s.x,y:a+s.y,data:{...s,placement:l}}}},options:[r,n]},_&&{...{name:"shift",options:c=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===M?{...(void 0===(i=a)&&(i={}),{options:i,fn(e){let{x:t,y:r,placement:n,rects:o,middlewareData:a}=e,{offset:l=0,mainAxis:s=!0,crossAxis:d=!0}=tk(i,e),c={x:t,y:r},u=tR(n),f=tN(u),p=c[f],m=c[u],h=tk(l,e),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){let e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+g.mainAxis,r=o.reference[f]+o.reference[e]-g.mainAxis;p<t?p=t:p>r&&(p=r)}if(d){var v,b;let e="y"===f?"width":"height",t=tH.has(tj(n)),r=o.reference[u]-o.floating[e]+(t&&(null==(v=a.offset)?void 0:v[u])||0)+(t?0:g.crossAxis),l=o.reference[u]+o.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[u])||0)-(t?g.crossAxis:0);m<r?m=r:m>l&&(m=l)}return{[f]:p,[u]:m}}}),options:[a,l]}:void 0,...J},async fn(e){let{x:t,y:r,placement:n}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...i}=tk(c,e),s={x:t,y:r},d=await t$(e,i),u=tR(tj(n)),f=tN(u),p=s[f],m=s[u];if(o){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=p+d[e],n=p-d[t];p=tg(r,th(p,n))}if(a){let e="y"===u?"top":"left",t="y"===u?"bottom":"right",r=m+d[e],n=m-d[t];m=tg(r,th(m,n))}let h=l.fn({...e,[f]:p,[u]:m});return{...h,data:{x:h.x-t,y:h.y-r,enabled:{[f]:o,[u]:a}}}}},options:[s,d]},_&&{...{name:"flip",options:p=u={...J},async fn(e){var t,r,n,o,a,l,i,s;let d,c,u,{placement:f,middlewareData:m,rects:h,initialPlacement:g,platform:v,elements:b}=e,{mainAxis:x=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:S=!0,...N}=tk(p,e);if(null!=(t=m.arrow)&&t.alignmentOffset)return{};let C=tj(f),E=tR(g),R=tj(g)===g,P=await (null==v.isRTL?void 0:v.isRTL(b.floating)),z=w||(R||!S?[tA(g)]:(d=tA(g),[tP(g),d,tP(d)])),L="none"!==j;!w&&L&&z.push(...(c=tS(g),u=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?tL:tz;return t?tz:tL;case"left":case"right":return t?t_:tO;default:return[]}}(tj(g),"start"===j,P),c&&(u=u.map(e=>e+"-"+c),S&&(u=u.concat(u.map(tP)))),u));let _=[g,...z],O=await t$(e,N),A=[],M=(null==(r=m.flip)?void 0:r.overflows)||[];if(x&&A.push(O[C]),y){let e,t,r,n,o=(l=f,i=h,void 0===(s=P)&&(s=!1),e=tS(l),r=tC(t=tN(tR(l))),n="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",i.reference[r]>i.floating[r]&&(n=tA(n)),[n,tA(n)]);A.push(O[o[0]],O[o[1]])}if(M=[...M,{placement:f,overflows:A}],!A.every(e=>e<=0)){let e=((null==(n=m.flip)?void 0:n.index)||0)+1,t=_[e];if(t&&("alignment"!==y||E===tR(t)||M.every(e=>tR(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let r=null==(o=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(k){case"bestFit":{let e=null==(a=M.filter(e=>{if(L){let t=tR(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=g}if(f!==r)return{reset:{placement:r}}}return{}}},options:[u,f]},{...{name:"size",options:b=m={...J,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:o,height:a}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${r}px`),l.setProperty("--radix-popper-available-height",`${n}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(e){var t,r;let n,o,{placement:a,rects:l,platform:i,elements:s}=e,{apply:d=()=>{},...c}=tk(b,e),u=await t$(e,c),f=tj(a),p=tS(a),m="y"===tR(a),{width:h,height:g}=l.floating;"top"===f||"bottom"===f?(n=f,o=p===(await (null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(o=f,n="end"===p?"top":"bottom");let v=g-u.top-u.bottom,x=h-u.left-u.right,y=th(g-u[n],v),w=th(h-u[o],x),k=!e.middlewareData.shift,j=y,S=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(S=x),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(j=v),k&&!p){let e=tg(u.left,0),t=tg(u.right,0),r=tg(u.top,0),n=tg(u.bottom,0);m?S=h-2*(0!==e||0!==t?e+t:tg(u.left,u.right)):j=g-2*(0!==r||0!==n?r+n:tg(u.top,u.bottom))}await d({...e,availableWidth:S,availableHeight:j});let N=await i.getDimensions(s.floating);return h!==N.width||g!==N.height?{reset:{rects:!0}}:{}}},options:[m,g]},B&&{...{name:"arrow",options:k=x={element:B,padding:L},fn(e){let{element:t,padding:r}="function"==typeof k?k(e):k;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?rw({element:t.current,padding:r}).fn(e):{}:t?rw({element:t,padding:r}).fn(e):{}}},options:[x,w]},rB({arrowWidth:K,arrowHeight:G}),T&&{...{name:"hide",options:N=j={strategy:"referenceHidden",...J},async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...n}=tk(N,e);switch(r){case"referenceHidden":{let r=tF(await t$(e,{...n,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:tW(r)}}}case"escaped":{let r=tF(await t$(e,{...n,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:tW(r)}}}default:return{}}}},options:[j,S]}]}),[eo,ea]=rq(et),el=e5(D);tc(()=>{er&&el?.()},[er,el]);let ei=en.arrow?.x,es=en.arrow?.y,ed=en.arrow?.centerOffset!==0,[ec,eu]=v.useState();return tc(()=>{W&&eu(window.getComputedStyle(W).zIndex)},[W]),(0,h.jsx)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:er?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[en.transformOrigin?.x,en.transformOrigin?.y].join(" "),...en.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,h.jsx)(rI,{scope:C,placedSide:eo,onArrowChange:q,arrowX:ei,arrowY:es,shouldHideArrow:ed,children:(0,h.jsx)(e2.div,{"data-side":eo,"data-align":ea,...$,ref:V,style:{...$.style,animation:er?void 0:"none"}})})})});r$.displayName=rT;var rF="PopperArrow",rW={top:"bottom",right:"left",bottom:"top",left:"right"},rH=v.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=rD(rF,r),a=rW[o.placedSide];return(0,h.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,h.jsx)(rE,{...n,ref:t,style:{...n.style,display:"block"}})})});function rV(e){return null!==e}rH.displayName=rF;var rB=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,l=a?0:e.arrowWidth,i=a?0:e.arrowHeight,[s,d]=rq(r),c={start:"0%",center:"50%",end:"100%"}[d],u=(o.arrow?.x??0)+l/2,f=(o.arrow?.y??0)+i/2,p="",m="";return"bottom"===s?(p=a?c:`${u}px`,m=`${-i}px`):"top"===s?(p=a?c:`${u}px`,m=`${n.floating.height+i}px`):"right"===s?(p=`${-i}px`,m=a?c:`${f}px`):"left"===s&&(p=`${n.floating.width+i}px`,m=a?c:`${f}px`),{data:{x:p,y:m}}}});function rq(e){let[t,r="center"]=e.split("-");return[t,r]}var rU=v.forwardRef((e,t)=>{let{container:r,...n}=e,[o,a]=v.useState(!1);tc(()=>a(!0),[]);let l=r||o&&globalThis?.document?.body;return l?eq.default.createPortal((0,h.jsx)(e2.div,{...n,ref:t}),l):null});rU.displayName="Portal",v[" useEffectEvent ".trim().toString()],v[" useInsertionEffect ".trim().toString()];var rK=v[" useInsertionEffect ".trim().toString()]||tc;function rG({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[o,a,l]=function({defaultProp:e,onChange:t}){let[r,n]=v.useState(e),o=v.useRef(r),a=v.useRef(t);return rK(()=>{a.current=t},[t]),v.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}({defaultProp:t,onChange:r}),i=void 0!==e,s=i?e:o;{let t=v.useRef(void 0!==e);v.useEffect(()=>{let e=t.current;if(e!==i){let t=i?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=i},[i,n])}return[s,v.useCallback(t=>{if(i){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else a(t)},[i,e,a,l])]}Symbol("RADIX:SYNC_STATE");var rX=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});v.forwardRef((e,t)=>(0,h.jsx)(e2.span,{...e,ref:t,style:{...rX,...e.style}})).displayName="VisuallyHidden";var rY=new WeakMap,rZ=new WeakMap,rJ={},rQ=0,r0=function(e){return e&&(e.host||r0(e.parentNode))},r1=function(e,t,r,n){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=r0(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});rJ[r]||(rJ[r]=new WeakMap);var a=rJ[r],l=[],i=new Set,s=new Set(o),d=function(e){!e||i.has(e)||(i.add(e),d(e.parentNode))};o.forEach(d);var c=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(i.has(e))c(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,s=(rY.get(e)||0)+1,d=(a.get(e)||0)+1;rY.set(e,s),a.set(e,d),l.push(e),1===s&&o&&rZ.set(e,!0),1===d&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),i.clear(),rQ++,function(){l.forEach(function(e){var t=rY.get(e)-1,o=a.get(e)-1;rY.set(e,t),a.set(e,o),t||(rZ.has(e)||e.removeAttribute(n),rZ.delete(e)),o||e.removeAttribute(r)}),--rQ||(rY=new WeakMap,rY=new WeakMap,rZ=new WeakMap,rJ={})}},r2=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),r1(n,o,r,"aria-hidden")):function(){return null}},r5=function(){return(r5=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function r4(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var r3=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),r6="width-before-scroll-bar";function r8(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var r7="undefined"!=typeof window?v.useLayoutEffect:v.useEffect,r9=new WeakMap,ne=(void 0===i&&(i={}),(void 0===s&&(s=function(e){return e}),d=[],c=!1,u={read:function(){if(c)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return d.length?d[d.length-1]:null},useMedium:function(e){var t=s(e,c);return d.push(t),function(){d=d.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(c=!0;d.length;){var t=d;d=[],t.forEach(e)}d={push:function(t){return e(t)},filter:function(){return d}}},assignMedium:function(e){c=!0;var t=[];if(d.length){var r=d;d=[],r.forEach(e),t=d}var n=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(n)};o(),d={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),d}}}}).options=r5({async:!0,ssr:!1},i),u),nt=function(){},nr=v.forwardRef(function(e,t){var r,n,o,a,l=v.useRef(null),i=v.useState({onScrollCapture:nt,onWheelCapture:nt,onTouchMoveCapture:nt}),s=i[0],d=i[1],c=e.forwardProps,u=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,h=e.shards,g=e.sideCar,b=e.noRelative,x=e.noIsolation,y=e.inert,w=e.allowPinchZoom,k=e.as,j=e.gapMode,S=r4(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=(r=[l,t],n=function(e){return r.forEach(function(t){return r8(t,e)})},(o=(0,v.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=n,a=o.facade,r7(function(){var e=r9.get(a);if(e){var t=new Set(e),n=new Set(r),o=a.current;t.forEach(function(e){n.has(e)||r8(e,null)}),n.forEach(function(e){t.has(e)||r8(e,o)})}r9.set(a,r)},[r]),a),C=r5(r5({},S),s);return v.createElement(v.Fragment,null,m&&v.createElement(g,{sideCar:ne,removeScrollBar:p,shards:h,noRelative:b,noIsolation:x,inert:y,setCallbacks:d,allowPinchZoom:!!w,lockRef:l,gapMode:j}),c?v.cloneElement(v.Children.only(u),r5(r5({},C),{ref:N})):v.createElement(void 0===k?"div":k,r5({},C,{className:f,ref:N}),u))});nr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},nr.classNames={fullWidth:r6,zeroRight:r3};var nn=function(e){var t=e.sideCar,r=r4(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return v.createElement(n,r5({},r))};nn.isSideCarExport=!0;var no=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=m||("undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var n,o;(n=t).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},na=function(){var e=no();return function(t,r){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},nl=function(){var e=na();return function(t){return e(t.styles,t.dynamic),null}},ni={left:0,top:0,right:0,gap:0},ns=function(e){return parseInt(e||"",10)||0},nd=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ns(r),ns(n),ns(o)]},nc=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return ni;var t=nd(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},nu=nl(),nf="data-scroll-locked",np=function(e,t,r,n){var o=e.left,a=e.top,l=e.right,i=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(i,"px ").concat(n,";\n }\n body[").concat(nf,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(r3," {\n right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(r6," {\n margin-right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(r3," .").concat(r3," {\n right: 0 ").concat(n,";\n }\n \n .").concat(r6," .").concat(r6," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(nf,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},nm=function(){var e=parseInt(document.body.getAttribute(nf)||"0",10);return isFinite(e)?e:0},nh=function(){v.useEffect(function(){return document.body.setAttribute(nf,(nm()+1).toString()),function(){var e=nm()-1;e<=0?document.body.removeAttribute(nf):document.body.setAttribute(nf,e.toString())}},[])},ng=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;nh();var a=v.useMemo(function(){return nc(o)},[o]);return v.createElement(nu,{styles:np(a,!t,o,r?"":"!important")})},nv=!1;if("undefined"!=typeof window)try{var nb=Object.defineProperty({},"passive",{get:function(){return nv=!0,!0}});window.addEventListener("test",nb,nb),window.removeEventListener("test",nb,nb)}catch(e){nv=!1}var nx=!!nv&&{passive:!1},ny=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},nw=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),nk(e,n)){var o=nj(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},nk=function(e,t){return"v"===e?ny(t,"overflowY"):ny(t,"overflowX")},nj=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},nS=function(e,t,r,n,o){var a,l=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),i=l*n,s=r.target,d=t.contains(s),c=!1,u=i>0,f=0,p=0;do{if(!s)break;var m=nj(e,s),h=m[0],g=m[1]-m[2]-l*h;(h||g)&&nk(e,s)&&(f+=g,p+=h);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!d&&s!==document.body||d&&(t.contains(s)||t===s))return u&&(o&&1>Math.abs(f)||!o&&i>f)?c=!0:!u&&(o&&1>Math.abs(p)||!o&&-i>p)&&(c=!0),c},nN=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nC=function(e){return[e.deltaX,e.deltaY]},nE=function(e){return e&&"current"in e?e.current:e},nR=0,nP=[];let nz=(f=function(e){var t=v.useRef([]),r=v.useRef([0,0]),n=v.useRef(),o=v.useState(nR++)[0],a=v.useState(nl)[0],l=v.useRef(e);v.useEffect(function(){l.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(nE),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=v.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,a=nN(e),i=r.current,s="deltaX"in e?e.deltaX:i[0]-a[0],d="deltaY"in e?e.deltaY:i[1]-a[1],c=e.target,u=Math.abs(s)>Math.abs(d)?"h":"v";if("touches"in e&&"h"===u&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var m=nw(u,c);if(!m)return!0;if(m?o=u:(o="v"===u?"h":"v",m=nw(u,c)),!m)return!1;if(!n.current&&"changedTouches"in e&&(s||d)&&(n.current=o),!o)return!0;var h=n.current||o;return nS(h,t,e,"h"===h?s:d,!0)},[]),s=v.useCallback(function(e){if(nP.length&&nP[nP.length-1]===a){var r="deltaY"in e?nC(e):nN(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(l.current.shards||[]).map(nE).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?i(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=v.useCallback(function(e,r,n,o){var a={name:e,delta:r,target:n,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=v.useCallback(function(e){r.current=nN(e),n.current=void 0},[]),u=v.useCallback(function(t){d(t.type,nC(t),t.target,i(t,e.lockRef.current))},[]),f=v.useCallback(function(t){d(t.type,nN(t),t.target,i(t,e.lockRef.current))},[]);v.useEffect(function(){return nP.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:f}),document.addEventListener("wheel",s,nx),document.addEventListener("touchmove",s,nx),document.addEventListener("touchstart",c,nx),function(){nP=nP.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,nx),document.removeEventListener("touchmove",s,nx),document.removeEventListener("touchstart",c,nx)}},[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?v.createElement(ng,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},ne.useMedium(f),nn);var nL=v.forwardRef(function(e,t){return v.createElement(nr,r5({},e,{ref:t,sideCar:nz}))});nL.classNames=nr.classNames;var n_=[" ","Enter","ArrowUp","ArrowDown"],nO=[" ","Enter"],nA="Select",[nM,nT,nI]=function(e){let t=e+"CollectionProvider",[r,n]=eG(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:r}=e,n=v.default.useRef(null),a=v.default.useRef(new Map).current;return(0,h.jsx)(o,{scope:t,itemMap:a,collectionRef:n,children:r})};l.displayName=t;let i=e+"CollectionSlot",s=eX(i),d=v.default.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=y(t,a(i,r).collectionRef);return(0,h.jsx)(s,{ref:o,children:n})});d.displayName=i;let c=e+"CollectionItemSlot",u="data-radix-collection-item",f=eX(c),p=v.default.forwardRef((e,t)=>{let{scope:r,children:n,...o}=e,l=v.default.useRef(null),i=y(t,l),s=a(c,r);return v.default.useEffect(()=>(s.itemMap.set(l,{ref:l,...o}),()=>void s.itemMap.delete(l))),(0,h.jsx)(f,{...{[u]:""},ref:i,children:n})});return p.displayName=c,[{Provider:l,Slot:d,ItemSlot:p},function(t){let r=a(e+"CollectionConsumer",t);return v.default.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}(nA),[nD,n$]=eG(nA,[nI,rz]),nF=rz(),[nW,nH]=nD(nA),[nV,nB]=nD(nA),nq=e=>{let t,{__scopeSelect:r,children:n,open:o,defaultOpen:a,onOpenChange:l,value:i,defaultValue:s,onValueChange:d,dir:c,name:u,autoComplete:f,disabled:p,required:m,form:g}=e,b=nF(r),[x,y]=v.useState(null),[w,k]=v.useState(null),[j,S]=v.useState(!1),N=(t=v.useContext(e1),c||t||"ltr"),[C,E]=rG({prop:o,defaultProp:a??!1,onChange:l,caller:nA}),[R,P]=rG({prop:i,defaultProp:s,onChange:d,caller:nA}),z=v.useRef(null),L=!x||g||!!x.closest("form"),[_,O]=v.useState(new Set),A=Array.from(_).map(e=>e.props.value).join(";");return(0,h.jsx)(rO,{...b,children:(0,h.jsxs)(nW,{required:m,scope:r,trigger:x,onTriggerChange:y,valueNode:w,onValueNodeChange:k,valueNodeHasChildren:j,onValueNodeHasChildrenChange:S,contentId:tp(),value:R,onValueChange:P,open:C,onOpenChange:E,dir:N,triggerPointerDownPosRef:z,disabled:p,children:[(0,h.jsx)(nM.Provider,{scope:r,children:(0,h.jsx)(nV,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(e=>{O(t=>new Set(t).add(e))},[]),onNativeOptionRemove:v.useCallback(e=>{O(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:n})}),L?(0,h.jsxs)(oy,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:f,value:R,onChange:e=>P(e.target.value),disabled:p,form:g,children:[void 0===R?(0,h.jsx)("option",{value:""}):null,Array.from(_)]},A):null]})})};nq.displayName=nA;var nU="SelectTrigger",nK=v.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:n=!1,...o}=e,a=nF(r),l=nH(nU,r),i=l.disabled||n,s=y(t,l.onTriggerChange),d=nT(r),c=v.useRef("touch"),[u,f,p]=ok(e=>{let t=d().filter(e=>!e.disabled),r=t.find(e=>e.value===l.value),n=oj(t,e,r);void 0!==n&&l.onValueChange(n.value)}),m=e=>{i||(l.onOpenChange(!0),p()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,h.jsx)(rM,{asChild:!0,...a,children:(0,h.jsx)(e2.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":ow(l.value)?"":void 0,...o,ref:s,onClick:eK(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==c.current&&m(e)}),onPointerDown:eK(o.onPointerDown,e=>{c.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(m(e),e.preventDefault())}),onKeyDown:eK(o.onKeyDown,e=>{let t=""!==u.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||f(e.key),(!t||" "!==e.key)&&n_.includes(e.key)&&(m(),e.preventDefault())})})})});nK.displayName=nU;var nG="SelectValue",nX=v.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:o,children:a,placeholder:l="",...i}=e,s=nH(nG,r),{onValueNodeHasChildrenChange:d}=s,c=void 0!==a,u=y(t,s.onValueNodeChange);return tc(()=>{d(c)},[d,c]),(0,h.jsx)(e2.span,{...i,ref:u,style:{pointerEvents:"none"},children:ow(s.value)?(0,h.jsx)(h.Fragment,{children:l}):a})});nX.displayName=nG;var nY=v.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...o}=e;return(0,h.jsx)(e2.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});nY.displayName="SelectIcon";var nZ=e=>(0,h.jsx)(rU,{asChild:!0,...e});nZ.displayName="SelectPortal";var nJ="SelectContent",nQ=v.forwardRef((e,t)=>{let r=nH(nJ,e.__scopeSelect),[n,o]=v.useState();return(tc(()=>{o(new DocumentFragment)},[]),r.open)?(0,h.jsx)(n5,{...e,ref:t}):n?eq.createPortal((0,h.jsx)(n0,{scope:e.__scopeSelect,children:(0,h.jsx)(nM.Slot,{scope:e.__scopeSelect,children:(0,h.jsx)("div",{children:e.children})})}),n):null});nQ.displayName=nJ;var[n0,n1]=nD(nJ),n2=eX("SelectContent.RemoveScroll"),n5=v.forwardRef((e,t)=>{let{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:l,side:i,sideOffset:s,align:d,alignOffset:c,arrowPadding:u,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:g,avoidCollisions:b,...x}=e,w=nH(nJ,r),[k,j]=v.useState(null),[S,N]=v.useState(null),C=y(t,e=>j(e)),[E,R]=v.useState(null),[P,z]=v.useState(null),L=nT(r),[_,O]=v.useState(!1),A=v.useRef(!1);v.useEffect(()=>{if(k)return r2(k)},[k]),v.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??te()),document.body.insertAdjacentElement("beforeend",e[1]??te()),e9++,()=>{1===e9&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),e9--}},[]);let M=v.useCallback(e=>{let[t,...r]=L().map(e=>e.ref.current),[n]=r.slice(-1),o=document.activeElement;for(let r of e)if(r===o||(r?.scrollIntoView({block:"nearest"}),r===t&&S&&(S.scrollTop=0),r===n&&S&&(S.scrollTop=S.scrollHeight),r?.focus(),document.activeElement!==o))return},[L,S]),T=v.useCallback(()=>M([E,k]),[M,E,k]);v.useEffect(()=>{_&&T()},[_,T]);let{onOpenChange:I,triggerPointerDownPosRef:D}=w;v.useEffect(()=>{if(k){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(D.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(D.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():k.contains(r.target)||I(!1),document.removeEventListener("pointermove",t),D.current=null};return null!==D.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[k,I,D]),v.useEffect(()=>{let e=()=>I(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[I]);let[$,F]=ok(e=>{let t=L().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=oj(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),W=v.useCallback((e,t,r)=>{let n=!A.current&&!r;(void 0!==w.value&&w.value===t||n)&&(R(e),n&&(A.current=!0))},[w.value]),H=v.useCallback(()=>k?.focus(),[k]),V=v.useCallback((e,t,r)=>{let n=!A.current&&!r;(void 0!==w.value&&w.value===t||n)&&z(e)},[w.value]),B="popper"===n?n3:n4,q=B===n3?{side:i,sideOffset:s,align:d,alignOffset:c,arrowPadding:u,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:g,avoidCollisions:b}:{};return(0,h.jsx)(n0,{scope:r,content:k,viewport:S,onViewportChange:N,itemRefCallback:W,selectedItem:E,onItemLeave:H,itemTextRefCallback:V,focusSelectedItem:T,selectedItemText:P,position:n,isPositioned:_,searchRef:$,children:(0,h.jsx)(nL,{as:n2,allowPinchZoom:!0,children:(0,h.jsx)(to,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:eK(o,e=>{w.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,h.jsx)(e6,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:(0,h.jsx)(B,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:e=>e.preventDefault(),...x,...q,onPlaced:()=>O(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:eK(x.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>M(t)),e.preventDefault()}})})})})})})});n5.displayName="SelectContentImpl";var n4=v.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:n,...o}=e,a=nH(nJ,r),l=n1(nJ,r),[i,s]=v.useState(null),[d,c]=v.useState(null),u=y(t,e=>c(e)),f=nT(r),p=v.useRef(!1),m=v.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:x,focusSelectedItem:w}=l,k=v.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&d&&g&&b&&x){let e=a.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),r=a.valueNode.getBoundingClientRect(),o=x.getBoundingClientRect();if("rtl"!==a.dir){let n=o.left-t.left,a=r.left-n,l=e.left-a,s=e.width+l,d=Math.max(s,t.width),c=eU(a,[10,Math.max(10,window.innerWidth-10-d)]);i.style.minWidth=s+"px",i.style.left=c+"px"}else{let n=t.right-o.right,a=window.innerWidth-r.right-n,l=window.innerWidth-e.right-a,s=e.width+l,d=Math.max(s,t.width),c=eU(a,[10,Math.max(10,window.innerWidth-10-d)]);i.style.minWidth=s+"px",i.style.right=c+"px"}let l=f(),s=window.innerHeight-20,c=g.scrollHeight,u=window.getComputedStyle(d),m=parseInt(u.borderTopWidth,10),h=parseInt(u.paddingTop,10),v=parseInt(u.borderBottomWidth,10),y=m+h+c+parseInt(u.paddingBottom,10)+v,w=Math.min(5*b.offsetHeight,y),k=window.getComputedStyle(g),j=parseInt(k.paddingTop,10),S=parseInt(k.paddingBottom,10),N=e.top+e.height/2-10,C=b.offsetHeight/2,E=m+h+(b.offsetTop+C);if(E<=N){let e=l.length>0&&b===l[l.length-1].ref.current;i.style.bottom="0px";let t=Math.max(s-N,C+(e?S:0)+(d.clientHeight-g.offsetTop-g.offsetHeight)+v);i.style.height=E+t+"px"}else{let e=l.length>0&&b===l[0].ref.current;i.style.top="0px";let t=Math.max(N,m+g.offsetTop+(e?j:0)+C);i.style.height=t+(y-E)+"px",g.scrollTop=E-N+g.offsetTop}i.style.margin="10px 0",i.style.minHeight=w+"px",i.style.maxHeight=s+"px",n?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,i,d,g,b,x,a.dir,n]);tc(()=>k(),[k]);let[j,S]=v.useState();tc(()=>{d&&S(window.getComputedStyle(d).zIndex)},[d]);let N=v.useCallback(e=>{e&&!0===m.current&&(k(),w?.(),m.current=!1)},[k,w]);return(0,h.jsx)(n6,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:p,onScrollButtonChange:N,children:(0,h.jsx)("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:(0,h.jsx)(e2.div,{...o,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});n4.displayName="SelectItemAlignedPosition";var n3=v.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:o=10,...a}=e,l=nF(r);return(0,h.jsx)(r$,{...l,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});n3.displayName="SelectPopperPosition";var[n6,n8]=nD(nJ,{}),n7="SelectViewport",n9=v.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:n,...o}=e,a=n1(n7,r),l=n8(n7,r),i=y(t,a.onViewportChange),s=v.useRef(0);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,h.jsx)(nM.Slot,{scope:r,children:(0,h.jsx)(e2.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:eK(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=l;if(n?.current&&r){let e=Math.abs(s.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,o=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(o<n){let a=o+e,l=Math.min(n,a),i=a-l;r.style.height=l+"px","0px"===r.style.bottom&&(t.scrollTop=i>0?i:0,r.style.justifyContent="flex-end")}}}s.current=t.scrollTop})})})]})});n9.displayName=n7;var oe="SelectGroup",[ot,or]=nD(oe);v.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=tp();return(0,h.jsx)(ot,{scope:r,id:o,children:(0,h.jsx)(e2.div,{role:"group","aria-labelledby":o,...n,ref:t})})}).displayName=oe;var on="SelectLabel",oo=v.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=or(on,r);return(0,h.jsx)(e2.div,{id:o.id,...n,ref:t})});oo.displayName=on;var oa="SelectItem",[ol,oi]=nD(oa),os=v.forwardRef((e,t)=>{let{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...l}=e,i=nH(oa,r),s=n1(oa,r),d=i.value===n,[c,u]=v.useState(a??""),[f,p]=v.useState(!1),m=y(t,e=>s.itemRefCallback?.(e,n,o)),g=tp(),b=v.useRef("touch"),x=()=>{o||(i.onValueChange(n),i.onOpenChange(!1))};if(""===n)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,h.jsx)(ol,{scope:r,value:n,disabled:o,textId:g,isSelected:d,onItemTextChange:v.useCallback(e=>{u(t=>t||(e?.textContent??"").trim())},[]),children:(0,h.jsx)(nM.ItemSlot,{scope:r,value:n,disabled:o,textValue:c,children:(0,h.jsx)(e2.div,{role:"option","aria-labelledby":g,"data-highlighted":f?"":void 0,"aria-selected":d&&f,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:m,onFocus:eK(l.onFocus,()=>p(!0)),onBlur:eK(l.onBlur,()=>p(!1)),onClick:eK(l.onClick,()=>{"mouse"!==b.current&&x()}),onPointerUp:eK(l.onPointerUp,()=>{"mouse"===b.current&&x()}),onPointerDown:eK(l.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:eK(l.onPointerMove,e=>{b.current=e.pointerType,o?s.onItemLeave?.():"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:eK(l.onPointerLeave,e=>{e.currentTarget===document.activeElement&&s.onItemLeave?.()}),onKeyDown:eK(l.onKeyDown,e=>{(s.searchRef?.current===""||" "!==e.key)&&(nO.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});os.displayName=oa;var od="SelectItemText",oc=v.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:o,...a}=e,l=nH(od,r),i=n1(od,r),s=oi(od,r),d=nB(od,r),[c,u]=v.useState(null),f=y(t,e=>u(e),s.onItemTextChange,e=>i.itemTextRefCallback?.(e,s.value,s.disabled)),p=c?.textContent,m=v.useMemo(()=>(0,h.jsx)("option",{value:s.value,disabled:s.disabled,children:p},s.value),[s.disabled,s.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=d;return tc(()=>(g(m),()=>b(m)),[g,b,m]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(e2.span,{id:s.textId,...a,ref:f}),s.isSelected&&l.valueNode&&!l.valueNodeHasChildren?eq.createPortal(a.children,l.valueNode):null]})});oc.displayName=od;var ou="SelectItemIndicator",of=v.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return oi(ou,r).isSelected?(0,h.jsx)(e2.span,{"aria-hidden":!0,...n,ref:t}):null});of.displayName=ou;var op="SelectScrollUpButton",om=v.forwardRef((e,t)=>{let r=n1(op,e.__scopeSelect),n=n8(op,e.__scopeSelect),[o,a]=v.useState(!1),l=y(t,n.onScrollButtonChange);return tc(()=>{if(r.viewport&&r.isPositioned){let e=function(){a(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,h.jsx)(ov,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});om.displayName=op;var oh="SelectScrollDownButton",og=v.forwardRef((e,t)=>{let r=n1(oh,e.__scopeSelect),n=n8(oh,e.__scopeSelect),[o,a]=v.useState(!1),l=y(t,n.onScrollButtonChange);return tc(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,h.jsx)(ov,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});og.displayName=oh;var ov=v.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:n,...o}=e,a=n1("SelectScrollButton",r),l=v.useRef(null),i=nT(r),s=v.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return v.useEffect(()=>()=>s(),[s]),tc(()=>{let e=i().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[i]),(0,h.jsx)(e2.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:eK(o.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(n,50))}),onPointerMove:eK(o.onPointerMove,()=>{a.onItemLeave?.(),null===l.current&&(l.current=window.setInterval(n,50))}),onPointerLeave:eK(o.onPointerLeave,()=>{s()})})}),ob=v.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,h.jsx)(e2.div,{"aria-hidden":!0,...n,ref:t})});ob.displayName="SelectSeparator";var ox="SelectArrow";v.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=nF(r),a=nH(ox,r),l=n1(ox,r);return a.open&&"popper"===l.position?(0,h.jsx)(rH,{...o,...n,ref:t}):null}).displayName=ox;var oy=v.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{let o,a=v.useRef(null),l=y(n,a),i=(o=v.useRef({value:t,previous:t}),v.useMemo(()=>(o.current.value!==t&&(o.current.previous=o.current.value,o.current.value=t),o.current.previous),[t]));return v.useEffect(()=>{let e=a.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(i!==t&&r){let n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[i,t]),(0,h.jsx)(e2.select,{...r,style:{...rX,...r.style},ref:l,defaultValue:t})});function ow(e){return""===e||void 0===e}function ok(e){let t=e5(e),r=v.useRef(""),n=v.useRef(0),o=v.useCallback(e=>{let o=r.current+e;t(o),function e(t){r.current=t,window.clearTimeout(n.current),""!==t&&(n.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),a=v.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function oj(e,t,r){var n,o;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=r?e.indexOf(r):-1,i=(n=e,o=Math.max(l,0),n.map((e,t)=>n[(o+t)%n.length]));1===a.length&&(i=i.filter(e=>e!==r));let s=i.find(e=>e.textValue.toLowerCase().startsWith(a.toLowerCase()));return s!==r?s:void 0}oy.displayName="SelectBubbleInput";let oS=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},oN=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var oC={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 oE=(0,v.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},s)=>(0,v.createElement)("svg",{ref:s,...oC,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:oN("lucide",o),...!a&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(i)&&{"aria-hidden":"true"},...i},[...l.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(a)?a:[a]])),oR=(e,t)=>{let r=(0,v.forwardRef)(({className:r,...n},o)=>(0,v.createElement)(oE,{ref:o,iconNode:t,className:oN(`lucide-${oS(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...n}));return r.displayName=oS(e),r},oP=oR("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),oz=oR("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),oL=oR("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),o_=v.forwardRef(({className:e,children:t,...r},n)=>(0,h.jsxs)(nK,{ref:n,className:eM("flex h-11 w-full items-center justify-between rounded-xl border border-neutral-200 bg-white px-3 py-2 text-sm font-medium text-neutral-800 shadow-inner transition focus:border-neutral-400 focus:outline-none focus:ring-2 focus:ring-neutral-200 disabled:cursor-not-allowed disabled:opacity-60 data-[placeholder]:text-neutral-500 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100",e),...r,children:[t,(0,h.jsx)(nY,{asChild:!0,children:(0,h.jsx)(oz,{className:"size-4 text-neutral-500"})})]}));o_.displayName=nK.displayName;let oO=v.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>(0,h.jsx)(nZ,{children:(0,h.jsxs)(nQ,{ref:o,className:eM("relative z-50 max-h-60 min-w-[8rem] overflow-hidden rounded-xl border border-neutral-200 bg-white text-neutral-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100",e),position:r,...n,children:[(0,h.jsx)(om,{className:"flex cursor-default items-center justify-center py-1 text-neutral-600",children:(0,h.jsx)(oL,{className:"size-4"})}),(0,h.jsx)(n9,{className:eM("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,h.jsx)(og,{className:"flex cursor-default items-center justify-center py-1 text-neutral-600",children:(0,h.jsx)(oz,{className:"size-4"})})]})}));oO.displayName=nQ.displayName,v.forwardRef(({className:e,...t},r)=>(0,h.jsx)(oo,{ref:r,className:eM("px-2 py-1.5 text-xs font-semibold text-neutral-500",e),...t})).displayName=oo.displayName;let oA=v.forwardRef(({className:e,children:t,...r},n)=>(0,h.jsxs)(os,{ref:n,className:eM("relative flex w-full cursor-default select-none items-center rounded-lg py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800",e),...r,children:[(0,h.jsx)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:(0,h.jsx)(of,{children:(0,h.jsx)(oP,{className:"size-4 text-neutral-700"})})}),(0,h.jsx)(oc,{children:t})]}));oA.displayName=os.displayName,v.forwardRef(({className:e,...t},r)=>(0,h.jsx)(ob,{ref:r,className:eM("mx-2 my-1 h-px bg-neutral-200",e),...t})).displayName=ob.displayName;let oM=v.forwardRef(({className:e,...t},r)=>(0,h.jsx)("textarea",{className:eM("flex min-h-[120px] w-full rounded-xl border border-neutral-200 bg-white px-3 py-2 text-sm shadow-inner transition placeholder:text-neutral-400 focus:border-neutral-400 focus:outline-none focus:ring-2 focus:ring-neutral-200 disabled:cursor-not-allowed disabled:opacity-60 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100",e),ref:r,...t}));oM.displayName="Textarea";let oT=v.forwardRef(({className:e,src:t,alt:r="",fallback:n,...o},a)=>(0,h.jsx)("div",{ref:a,className:eM("relative flex size-11 items-center justify-center overflow-hidden rounded-full border border-neutral-200 bg-gradient-to-br from-amber-500/80 to-orange-600/80 text-sm font-semibold text-white shadow-sm dark:border-neutral-700",e),...o,children:t?(0,h.jsx)("img",{src:t,alt:r,className:"size-full object-cover",loading:"lazy"}):(0,h.jsx)("span",{children:n||r?.slice(0,1)?.toUpperCase?.()||"?"})}));oT.displayName="Avatar";let oI={"sora-2-text-to-video":"10","sora-2-image-to-video":"10","sora-2-text-to-video-stable":"10","sora-2-image-to-video-stable":"10","sora-2-pro-text-to-video":"10","sora-2-pro-image-to-video":"10","sora-2-pro-storyboard":"15"},oD={"sora-2-pro-text-to-video":"high","sora-2-pro-image-to-video":"standard"},o$={"sora-2-text-to-video":{10:8,15:12},"sora-2-image-to-video":{10:8,15:12},"sora-2-text-to-video-stable":{10:20,15:30},"sora-2-image-to-video-stable":{10:20,15:30},"sora-2-pro-text-to-video":{standard:{10:75,15:135},high:{10:165,15:315}},"sora-2-pro-image-to-video":{standard:{10:75,15:135},high:{10:165,15:315}},"sora-2-pro-storyboard":{10:75,15:135,25:135}},oF=["sora-2-text-to-video","sora-2-image-to-video","sora-2-text-to-video-stable","sora-2-image-to-video-stable"];function oW(e){return"sora-2-pro-text-to-video"===e||"sora-2-pro-image-to-video"===e}function oH(e){return Math.ceil(5*e)}let oV=oR("earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),oB=oR("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"}]]),oq=oR("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),oU=oR("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]),oK=oR("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),oG=oR("refresh-ccw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]),oX=oR("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),oY=oR("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]),oZ=oR("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),oJ=oR("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]),oQ={en:{brandName:"Sora2 Api",tagline:"Sora 2 / Sora 2 Pro Video Playground",heroTitle:"Video generation playground",heroCopy:"Enter a prompt, pick your ratio, and let the generator handle the rest.",promptLabel:"Describe your video",promptPlaceholder:"A cinematic shot of a futuristic city at sunset with flying cars gliding between glass towers.",modelLabel:"Model",aspectLabel:"Aspect ratio",frameLabel:"Duration (nFrames)",sizeLabel:"Quality size",visibilityLabel:"Visibility",watermarkLabel:"Watermark",imageLabel:"Reference image (optional, base64)",promptRequired:"Prompt is required for this model.",imageRequired:"Image is required for image-to-video models.",taskIdMissing:"Task created, but taskId was missing in response.",visibilityPublic:"Public",visibilityPrivate:"Private (VIP)",watermarkOn:"Remove watermark",watermarkOff:"Keep watermark",qualityStandard:"Standard",qualityHigh:"High",shotsLabel:"Storyboard shots",shotsPlaceholder:"One line per shot, format: Scene | duration\nExample: Aerial view of city skyline | 5",shotsRequired:"Storyboard model requires at least one shot.",shotsInvalid:"Invalid shot format. Use: Scene | duration (duration > 0).",estimatedCost:"Estimated cost",insufficientCredits:"Insufficient credits for current settings.",generate:"Generate video",generating:"Submitting...",needLogin:"Please sign in first (client login flow).",login:"Login",logout:"Logout",loginCta:"Authorize to sync tasks",userPanelTitle:"User",credits:"Credits",vip:"VIP",notVip:"Standard",language:"Language",status:"Status",idle:"Idle",running:"Running",success:"Finished",failed:"Failed",progress:"Progress",resultTitle:"Generation result",resultEmpty:"Results will appear here once the task finishes.",openResult:"Open video",checkResult:"Refresh status",quickExamples:"Quick presets",sample1:"Urban neon dream",sample2:"Ocean documentary",loginStatusConnecting:"Waiting for login approval...",loginStatusReady:"Login tab opened. Approve sign-in to continue.",loginStatusDone:"Token received.",loginStatusTimeout:"Login timed out. Please retry.",loginStatusError:"Login failed. Check network or token.",polling:"Polling task...",pollingError:"Polling failed. You can retry.",formInfo:"Submit text or image prompts and the app keeps checking until your clip is ready.",manualNote:"Recent updates stay visible so you can track progress.",pinnedLink:"Back to top",cached:"Saved locally",uploadHint:"Drop or paste a base64 data URL",recentNotes:"Recent updates",authNeeded:"Auth required",webLink:"Sora 2 Web",apiLink:"Sora 2 API",noticeTitle:"Heads up",noticeBody:"This app uses the sora2-api.com API. New users get 40+10 credits. $1 buys 1,000 credits (about 10 videos). API access supported.",noticeShowcaseCta:"View Sora2 showcase"},zh:{brandName:"Sora2 Api",tagline:"Sora 2 / Sora 2 Pro 视频生成 Playground",heroTitle:"快速生成一段有质感的 Sora 视频",heroCopy:"输入提示词、选择比例,生成过程自动跟进。",promptLabel:"视频描述",promptPlaceholder:"落日下的赛博朋克城市,飞行汽车穿梭在玻璃高楼之间,光影强烈。",modelLabel:"模型",aspectLabel:"画幅比例",frameLabel:"时长(nFrames)",sizeLabel:"画质规格",visibilityLabel:"可见性",watermarkLabel:"水印设置",imageLabel:"参考图(可选,base64)",promptRequired:"当前模型必须填写提示词。",imageRequired:"图生视频模型必须上传参考图。",taskIdMissing:"任务已创建,但返回中缺少 taskId。",visibilityPublic:"公开",visibilityPrivate:"私有(需 VIP)",watermarkOn:"去除水印",watermarkOff:"保留水印",qualityStandard:"标准",qualityHigh:"高",shotsLabel:"分镜镜头(shots)",shotsPlaceholder:"每行一个镜头,格式:Scene | duration\n示例:黄昏城市全景航拍 | 5",shotsRequired:"Storyboard 模型至少需要一个镜头。",shotsInvalid:"分镜格式无效,请使用:Scene | duration(duration > 0)。",estimatedCost:"预计消耗",insufficientCredits:"当前设置积分不足,请先充值或降低参数。",generate:"开始生成",generating:"提交中...",needLogin:"请先完成授权登录。",login:"登录",logout:"退出登录",loginCta:"授权后同步任务",userPanelTitle:"当前用户",credits:"积分",vip:"VIP",notVip:"普通",language:"语言",status:"状态",idle:"空闲",running:"运行中",success:"已完成",failed:"失败",progress:"进度",resultTitle:"生成结果",resultEmpty:"任务完成后这里会显示视频。",openResult:"打开视频",checkResult:"手动刷新",quickExamples:"示例文案",sample1:"霓虹都市梦",sample2:"海洋纪录片",loginStatusConnecting:"等待登录授权...",loginStatusReady:"已打开登录页,请完成授权。",loginStatusDone:"已获取 token。",loginStatusTimeout:"登录超时,请重试。",loginStatusError:"登录失败,请检查网络或 token。",polling:"轮询任务中...",pollingError:"轮询失败,可重试。",formInfo:"提交文本或图片提示语即可生成,页面会自动跟进进度。",manualNote:"界面保留最近的几条更新,便于查看状态。",pinnedLink:"返回顶部",cached:"已本地缓存",uploadHint:"可粘贴 dataURL 或上传图片转 base64",recentNotes:"最新记录",authNeeded:"需要先登录",webLink:"Sora 2 Web",apiLink:"Sora 2 API",noticeTitle:"提醒",noticeBody:"本应用使用 sora2-api.com 接口。新注册用户送 40+10 积分,$1 可购买 1000 积分,约可生成 10 个视频,支持 API 访问。",noticeShowcaseCta:"查看 sora2 showcase"}},o0="sora-lang",o1="sora-token",o2="sora-user",o5="https://sora2-api.com",o4="https://sora2-api.com/logo.png",o3=["veo3.1-pro","veo3.1-fast-1080p","veo3.1-fast-4k","veo3.1-fast","veo3.1-pro-1080p","veo3.1-pro-4k"],o6={"veo3.1-fast":24,"veo3.1-fast-1080p":32,"veo3.1-fast-4k":48,"veo3.1-pro":80,"veo3.1-pro-1080p":100,"veo3.1-pro-4k":140},o8=[{value:"en",label:"English"},{value:"zh",label:"中文"}],o7=[{value:"sora-2-text-to-video-stable",label:"sora-2-text-to-video-stable"},{value:"sora-2-image-to-video-stable",label:"sora-2-image-to-video-stable"},{value:"sora-2-pro-text-to-video",label:"sora-2-pro-text-to-video"},{value:"sora-2-pro-image-to-video",label:"sora-2-pro-image-to-video"},{value:"sora-2-pro-storyboard",label:"sora-2-pro-storyboard"},{value:"veo3.1-fast",label:"veo3.1-fast"},{value:"veo3.1-fast-1080p",label:"veo3.1-fast-1080p"},{value:"veo3.1-fast-4k",label:"veo3.1-fast-4k"},{value:"veo3.1-pro",label:"veo3.1-pro"},{value:"veo3.1-pro-1080p",label:"veo3.1-pro-1080p"},{value:"veo3.1-pro-4k",label:"veo3.1-pro-4k"}],o9=oQ.en.promptPlaceholder;function ae(e){return o3.includes(e)}function at(){let[e,t,r]=function(){let[e,t]=(0,v.useState)(()=>{let e=localStorage.getItem(o0);return"en"===e||"zh"===e?e:"en"});return(0,v.useEffect)(()=>{localStorage.setItem(o0,e)},[e]),[e,t,oQ[e]??oQ.en]}(),[n,o]=(0,v.useState)(null),[a,l]=(0,v.useState)(null),[i,s]=(0,v.useState)(!1),[d,c]=(0,v.useState)(""),[u,f]=(0,v.useState)(!1),[p,m]=(0,v.useState)("veo3.1-fast-1080p"),[b,x]=(0,v.useState)("landscape"),[y,w]=(0,v.useState)(oI["sora-2-pro-text-to-video"]),[k,j]=(0,v.useState)(oD["sora-2-pro-text-to-video"]),[S,N]=(0,v.useState)(!0),[C,E]=(0,v.useState)(!0),[R,P]=(0,v.useState)(o9),[z,L]=(0,v.useState)(""),[_,O]=(0,v.useState)(""),[A,M]=(0,v.useState)(!1),[T,I]=(0,v.useState)({status:"idle",progress:0,updates:[]}),D=(0,v.useRef)(null),$=(0,v.useRef)(null);(0,v.useEffect)(()=>{let e=localStorage.getItem(o1),t=localStorage.getItem(o2);if(e&&l(e),t)try{o(JSON.parse(t))}catch(e){console.warn("Failed to parse cached user",e)}},[]),(0,v.useEffect)(()=>{(R===oQ.en.promptPlaceholder||R===oQ.zh.promptPlaceholder)&&P(oQ[e].promptPlaceholder)},[e,R]),(0,v.useEffect)(()=>{a&&!n&&Y(a)},[a]),(0,v.useEffect)(()=>()=>{D.current&&clearInterval(D.current),$.current&&clearInterval($.current)},[]);let F=ae(p),W=!F&&p.includes("image-to-video"),H=!F&&"sora-2-pro-storyboard"===p,V=!F,B=!F&&oW(p),q=!F&&!p.includes("-stable")&&!H,U=(0,v.useMemo)(()=>F?[]:"sora-2-pro-storyboard"===p?["10","15","25"]:["10","15"],[p,F]);(0,v.useEffect)(()=>{!ae(p)&&(w(oI[p]),oW(p)&&j(oD[p]))},[p]);let K=(0,v.useMemo)(()=>ae(p)?o6[p]:function(e){let{model:t}=e,r=e.nFrames||oI[t];if(oF.includes(t))return oH(o$[t]["15"===r?"15":"10"]);if("sora-2-pro-storyboard"===t)return oH(o$[t]["25"===r?"25":"10"===r?"10":"15"]);if(oW(t)){let n=oD[t],o="standard"===e.size||"high"===e.size?e.size:n;return oH(o$[t][o]["15"===r?"15":"10"])}return oH(o$["sora-2-text-to-video"]["10"])}({model:p,nFrames:y,size:B?k:void 0}),[p,y,k,B]),G=(n?.credits?.left_credits??0)>=K,X=K.toLocaleString("zh"===e?"zh-CN":"en-US"),Y=async e=>{try{let t=await fetch(`${o5}/api/get-user-info`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});if(!t.ok)throw Error("Failed to fetch user");let r=await t.json();r?.data&&(o(r.data),localStorage.setItem(o2,JSON.stringify(r.data)))}catch(e){console.error(e),c(r.loginStatusError)}},Z=()=>{let e="undefined"!=typeof crypto&&"randomUUID"in crypto?`client-${crypto.randomUUID()}`:`client-${Date.now()}`,t=`${o5}/auth/signin?client_id=${e}&redirect_uri=chrome`;window.open(t,"_blank","width=520,height=720"),s(!0),c(r.loginStatusReady);let n=0,o=async()=>{n+=1;try{let t=await fetch(`${o5}/api/auth/client?client_id=${e}`,{cache:"no-store"});if(!t.ok)throw Error("poll failed");let n=await t.json();if(n?.code===0&&n?.data?.access_token){let e=n.data.access_token;l(e),localStorage.setItem(o1,e),s(!1),c(r.loginStatusDone),Y(e),D.current&&clearInterval(D.current)}else c(r.loginStatusConnecting)}catch{c(r.loginStatusConnecting)}n>=10&&D.current&&(clearInterval(D.current),s(!1),c(r.loginStatusTimeout))};o(),D.current=setInterval(o,3e3)},J=async e=>{let t;if(e.preventDefault(),!a){c(r.needLogin),I(e=>({...e,status:"failed",progress:0,message:r.needLogin,updates:[...e.updates,r.needLogin].slice(-4)}));return}let n=R.trim();if(!H&&!n)return void I(e=>({...e,status:"failed",progress:0,message:r.promptRequired,updates:[...e.updates,r.promptRequired].slice(-4)}));if(W&&!z)return void I(e=>({...e,status:"failed",progress:0,message:r.imageRequired,updates:[...e.updates,r.imageRequired].slice(-4)}));if(H){let e=_.split("\n").map(e=>e.trim()).filter(Boolean);if(0===e.length)return void I(e=>({...e,status:"failed",progress:0,message:r.shotsRequired,updates:[...e.updates,r.shotsRequired].slice(-4)}));let n=e.map(e=>{let[t,r]=e.split("|").map(e=>e?.trim()),n=Number(r);return t&&Number.isFinite(n)&&!(n<=0)?{Scene:t,duration:n}:null});if(n.some(e=>!e))return void I(e=>({...e,status:"failed",progress:0,message:r.shotsInvalid,updates:[...e.updates,r.shotsInvalid].slice(-4)}));t=n}M(!0),I({status:"loading",progress:8,updates:[r.formInfo]});let o=ae(p)?{model:p,prompt:n,aspectRatio:"portrait"===b?"9:16":"16:9",isPublic:C,...z?{firstFrameImageData:z}:{}}:{model:p,aspectRatio:b,nFrames:y,isPublic:C,...!H?{prompt:n}:{},...W&&z?{imageData:z}:{},...B?{size:k}:{},...q?{removeWatermark:S}:{},...H&&t?{shots:t}:{}};try{let e=ae(p)?"/api/v1/video/veo":"/api/v1/video/sora-pro",t=await fetch(`${o5}${e}`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify(o)}),n=await t.json();if(!t.ok||n?.code!==0){I(e=>({...e,status:"failed",message:n?.message||r.loginStatusError})),M(!1);return}let l=n?.data?.taskId||n?.data?.id;if(!l)return void I(e=>({...e,status:"failed",message:r.taskIdMissing,updates:[...e.updates,r.taskIdMissing].slice(-4)}));I({status:"running",progress:12,taskId:l,updates:[`${r.polling} (${l})`]}),Q(l)}catch{I(e=>({...e,status:"failed",message:r.loginStatusError}))}finally{M(!1)}},Q=e=>{$.current&&clearInterval($.current);let t=0,n=async()=>{t+=1;try{let n=await fetch(`${o5}/api/video-generations/check-result`,{method:"POST",headers:{"Content-Type":"application/json",...a?{Authorization:`Bearer ${a}`}:{}},body:JSON.stringify({taskId:e})});if(!n.ok)throw Error(`status ${n.status}`);let o=await n.json(),l=o?.data,i=l?.status||"running",s="succeeded"===i?"succeeded":"failed"===i||"cancelled"===i?"failed":"running",d=l?.progress??0,c=l?.result_url||l?.result_urls?.[0],u=l?.result_pid||l?.result_pids?.[0];I(t=>({...t,taskId:e,status:s,progress:d,resultUrl:c,resultPid:u,message:o?.message,updates:[...t.updates,`${r.status}: ${i} @${d}%`].slice(-4)}));let f=["succeeded","failed","cancelled"].includes(i);(f||t>=80)&&($.current&&clearInterval($.current),!f&&t>=80&&I(e=>({...e,status:"failed",message:r.pollingError})))}catch{var n;n=r.pollingError,I(e=>{let t=[...e.updates,n].slice(-4);return{...e,updates:t}})}};n(),$.current=setInterval(n,4e3)},ee=(0,v.useMemo)(()=>{switch(T.status){case"running":return r.running;case"succeeded":return r.success;case"failed":return r.failed;case"loading":return r.generating;default:return r.idle}},[T.status,r]),et=Math.min(100,Math.max(0,T.progress||0));return(0,h.jsx)("div",{id:"top",className:"min-h-screen bg-gradient-to-b from-amber-50 via-white to-slate-100 text-neutral-900",children:(0,h.jsxs)("div",{className:"mx-auto flex max-w-6xl flex-col gap-6 px-4 py-6 lg:py-10",children:[(0,h.jsx)("div",{className:"rounded-2xl border border-amber-200/80 bg-amber-50/80 px-4 py-3 text-sm text-amber-900 shadow-sm",children:(0,h.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,h.jsxs)("div",{className:"flex flex-wrap items-start gap-2",children:[(0,h.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-full bg-amber-100 px-3 py-1 text-xs font-semibold uppercase tracking-wide text-amber-800",children:[(0,h.jsx)(oX,{className:"size-4"}),r.noticeTitle]}),(0,h.jsx)("p",{className:"flex-1 text-sm leading-relaxed text-amber-900",children:r.noticeBody})]}),(0,h.jsx)(eI,{asChild:!0,size:"sm",variant:"outline",className:"border-amber-200 bg-white/80 text-amber-900 hover:border-amber-300 hover:text-amber-900",children:(0,h.jsx)("a",{href:"https://sora2-api.com/gallery",target:"_blank",rel:"noreferrer",children:r.noticeShowcaseCta})})]})}),(0,h.jsxs)("header",{className:"relative z-20 flex flex-col gap-4 rounded-2xl border border-neutral-200/80 bg-white/80 px-4 py-3 shadow-sm backdrop-blur-md md:flex-row md:items-center md:justify-between",children:[(0,h.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[(0,h.jsxs)("div",{className:"flex items-center gap-4",children:[(0,h.jsx)("div",{className:"relative h-11 w-11 overflow-hidden rounded-2xl border border-orange-100 bg-black shadow-md",children:(0,h.jsx)(g.default,{src:o4,alt:"Sora 2 Free logo",fill:!0,className:"object-contain p-1.5",priority:!0})}),(0,h.jsxs)("div",{className:"space-y-0.5",children:[(0,h.jsx)("p",{className:"text-lg font-semibold leading-none",children:r.brandName}),(0,h.jsx)("p",{className:"text-sm text-neutral-500",children:r.tagline})]})]}),(0,h.jsxs)("nav",{className:"flex w-full flex-wrap items-center gap-2 text-sm text-neutral-700 sm:w-auto",children:[(0,h.jsx)("a",{className:"rounded-full border border-neutral-200 px-3 py-1.5 font-medium hover:border-orange-300 hover:text-orange-700",href:"https://sora2-api.com/",target:"_blank",rel:"noreferrer",children:r.webLink}),(0,h.jsx)("a",{className:"rounded-full border border-neutral-200 px-3 py-1.5 font-medium hover:border-orange-300 hover:text-orange-700",href:"https://sora2-api.com/sora2-api",target:"_blank",rel:"noreferrer",children:r.apiLink})]})]}),(0,h.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,h.jsxs)("div",{className:"flex h-9 items-center gap-2 rounded-xl border border-neutral-200 bg-white px-2 text-sm shadow-inner",children:[(0,h.jsx)(oB,{className:"size-4 text-neutral-500"}),(0,h.jsxs)(nq,{value:e,onValueChange:e=>t(e),children:[(0,h.jsx)(o_,{"aria-label":r.language,className:"h-8 min-w-28 border-0 bg-transparent px-0 shadow-none focus:ring-0",children:(0,h.jsx)(nX,{})}),(0,h.jsx)(oO,{children:o8.map(e=>(0,h.jsx)(oA,{value:e.value,children:e.label},e.value))})]})]}),(0,h.jsx)("div",{className:"relative",children:n?(0,h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,h.jsxs)(eI,{variant:"outline",className:"flex items-center gap-2 rounded-full border-neutral-200 bg-white px-2 pr-3 shadow-sm",onClick:()=>f(e=>!e),children:[(0,h.jsx)(oT,{className:"size-6",src:n.avatar_url,alt:n.nickname||"user",fallback:(n.nickname||"U").slice(0,1)}),(0,h.jsx)("span",{className:"text-sm font-medium text-neutral-800",children:n.nickname||n.email||"User"})]}),u?(0,h.jsxs)("div",{className:"absolute right-0 top-12 z-30 w-64 rounded-xl border border-neutral-200 bg-white p-4 shadow-xl",children:[(0,h.jsxs)("div",{className:"flex items-center gap-3",children:[(0,h.jsx)(oT,{src:n.avatar_url,alt:n.nickname||"user",fallback:(n.nickname||"U").slice(0,1)}),(0,h.jsxs)("div",{className:"space-y-0.5",children:[(0,h.jsx)("p",{className:"text-sm font-semibold",children:n.nickname||n.email}),(0,h.jsx)("p",{className:"text-xs text-neutral-500",children:n.email})]})]}),(0,h.jsxs)("div",{className:"mt-3 flex items-center justify-between rounded-lg bg-neutral-50 px-3 py-2 text-xs text-neutral-600",children:[(0,h.jsx)("span",{children:r.credits}),(0,h.jsx)("span",{className:"font-semibold text-emerald-600",children:n.credits?.left_credits??0}),(0,h.jsx)("span",{className:"rounded-full bg-emerald-50 px-2 py-1 text-[11px] font-semibold text-emerald-700",children:n.credits?.is_vip||n.credits?.is_recharged?r.vip:r.notVip})]}),(0,h.jsxs)(eI,{variant:"ghost",className:"mt-3 w-full justify-start gap-2 text-sm text-neutral-700 hover:bg-neutral-100",onClick:()=>{l(null),o(null),c(""),localStorage.removeItem(o1),localStorage.removeItem(o2)},children:[(0,h.jsx)(oK,{className:"size-4"}),r.logout]})]}):null]}):(0,h.jsxs)(eI,{onClick:Z,disabled:i,className:"rounded-full bg-gradient-to-r from-orange-500 to-amber-600 px-4 shadow-lg",children:[i?(0,h.jsx)(oq,{className:"size-4 animate-spin"}):(0,h.jsx)(oU,{className:"size-4"}),(0,h.jsx)("span",{children:r.login})]})})]})]}),(0,h.jsxs)("main",{className:"grid gap-5 lg:grid-cols-[1.1fr_0.9fr]",children:[(0,h.jsxs)(eD,{className:"border-transparent bg-white/85 shadow-md",children:[(0,h.jsxs)(e$,{children:[(0,h.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm font-medium text-amber-700",children:[(0,h.jsx)(oY,{className:"size-4"}),r.heroTitle]}),(0,h.jsx)(eF,{className:"text-2xl lg:text-[26px]",children:r.heroCopy}),(0,h.jsx)(eW,{children:r.formInfo})]}),(0,h.jsx)(eH,{children:(0,h.jsxs)("form",{className:"space-y-4",onSubmit:J,children:[(0,h.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(eB,{htmlFor:"model",children:r.modelLabel}),(0,h.jsxs)(nq,{value:p,onValueChange:e=>m(e),children:[(0,h.jsx)(o_,{id:"model",children:(0,h.jsx)(nX,{})}),(0,h.jsx)(oO,{children:o7.map(e=>(0,h.jsx)(oA,{value:e.value,children:e.label},e.value))})]})]}),(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(eB,{htmlFor:"aspect",children:r.aspectLabel}),(0,h.jsxs)(nq,{value:b,onValueChange:e=>x(e),children:[(0,h.jsx)(o_,{id:"aspect",children:(0,h.jsx)(nX,{})}),(0,h.jsxs)(oO,{children:[(0,h.jsx)(oA,{value:"landscape",children:"landscape (16:9)"}),(0,h.jsx)(oA,{value:"portrait",children:"portrait (9:16)"})]})]})]})]}),(0,h.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[V?(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(eB,{htmlFor:"frames",children:r.frameLabel}),(0,h.jsxs)(nq,{value:y,onValueChange:e=>w(e),children:[(0,h.jsx)(o_,{id:"frames",children:(0,h.jsx)(nX,{})}),(0,h.jsx)(oO,{children:U.map(e=>(0,h.jsx)(oA,{value:e,children:e},e))})]})]}):(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(eB,{htmlFor:"visibility",children:r.visibilityLabel}),(0,h.jsxs)(nq,{value:C?"public":"private",onValueChange:e=>E("public"===e),children:[(0,h.jsx)(o_,{id:"visibility",children:(0,h.jsx)(nX,{})}),(0,h.jsxs)(oO,{children:[(0,h.jsx)(oA,{value:"public",children:r.visibilityPublic}),(0,h.jsx)(oA,{value:"private",children:r.visibilityPrivate})]})]})]}),B?(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(eB,{htmlFor:"size",children:r.sizeLabel}),(0,h.jsxs)(nq,{value:k,onValueChange:e=>j(e),children:[(0,h.jsx)(o_,{id:"size",children:(0,h.jsx)(nX,{})}),(0,h.jsxs)(oO,{children:[(0,h.jsx)(oA,{value:"standard",children:r.qualityStandard}),(0,h.jsx)(oA,{value:"high",children:r.qualityHigh})]})]})]}):V?(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(eB,{htmlFor:"visibility",children:r.visibilityLabel}),(0,h.jsxs)(nq,{value:C?"public":"private",onValueChange:e=>E("public"===e),children:[(0,h.jsx)(o_,{id:"visibility",children:(0,h.jsx)(nX,{})}),(0,h.jsxs)(oO,{children:[(0,h.jsx)(oA,{value:"public",children:r.visibilityPublic}),(0,h.jsx)(oA,{value:"private",children:r.visibilityPrivate})]})]})]}):(0,h.jsx)("div",{className:"space-y-2"})]}),(0,h.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[B?(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(eB,{htmlFor:"visibility-pro",children:r.visibilityLabel}),(0,h.jsxs)(nq,{value:C?"public":"private",onValueChange:e=>E("public"===e),children:[(0,h.jsx)(o_,{id:"visibility-pro",children:(0,h.jsx)(nX,{})}),(0,h.jsxs)(oO,{children:[(0,h.jsx)(oA,{value:"public",children:r.visibilityPublic}),(0,h.jsx)(oA,{value:"private",children:r.visibilityPrivate})]})]})]}):(0,h.jsx)("div",{className:"space-y-2"}),F?(0,h.jsx)("div",{className:"space-y-2"}):(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(eB,{htmlFor:"watermark",children:r.watermarkLabel}),(0,h.jsxs)(nq,{value:S?"remove":"keep",onValueChange:e=>N("remove"===e),disabled:!q,children:[(0,h.jsx)(o_,{id:"watermark",children:(0,h.jsx)(nX,{})}),(0,h.jsxs)(oO,{children:[(0,h.jsx)(oA,{value:"remove",children:r.watermarkOn}),(0,h.jsx)(oA,{value:"keep",children:r.watermarkOff})]})]})]})]}),(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(eB,{htmlFor:"prompt",children:r.promptLabel}),(0,h.jsx)(oM,{id:"prompt",value:R,onChange:e=>P(e.target.value),placeholder:r.promptPlaceholder}),(0,h.jsxs)("div",{className:"flex gap-2 text-xs text-neutral-500",children:[(0,h.jsx)(oJ,{className:"size-4"}),(0,h.jsx)("span",{children:r.manualNote})]})]}),H?(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(eB,{htmlFor:"shots",children:r.shotsLabel}),(0,h.jsx)(oM,{id:"shots",value:_,onChange:e=>O(e.target.value),placeholder:r.shotsPlaceholder})]}):null,(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsx)(eB,{htmlFor:"image",children:r.imageLabel}),(0,h.jsx)(eV,{id:"image",type:"file",accept:"image/*",onChange:e=>{let t=e.target.files?.[0];if(!t)return;let r=new FileReader;r.onload=()=>{L(r.result?.toString()??"")},r.readAsDataURL(t)}}),z?(0,h.jsx)("p",{className:"text-xs text-emerald-600",children:r.cached}):(0,h.jsx)("p",{className:"text-xs text-neutral-500",children:W?r.imageRequired:r.uploadHint})]}),(0,h.jsxs)("div",{className:"flex flex-wrap gap-2 text-xs text-neutral-600",children:[(0,h.jsx)("span",{className:"rounded-full bg-amber-100 px-3 py-1 font-semibold text-amber-800",children:r.quickExamples}),(0,h.jsx)("button",{type:"button",className:"rounded-full border border-neutral-200 bg-white px-3 py-1 transition hover:border-neutral-300 hover:shadow-sm",onClick:()=>P("A neon-lit rainy street with reflections, slow camera dolly forward, high contrast."),children:r.sample1}),(0,h.jsx)("button",{type:"button",className:"rounded-full border border-neutral-200 bg-white px-3 py-1 transition hover:border-neutral-300 hover:shadow-sm",onClick:()=>P("Underwater whale migration filmed in 4K with close-up textures and sunlight shafts."),children:r.sample2})]}),(0,h.jsxs)("div",{className:"flex flex-wrap items-center gap-2 rounded-xl border border-emerald-200 bg-emerald-50 px-3 py-2 text-sm text-emerald-900",children:[(0,h.jsx)(oX,{className:"size-4 text-emerald-700"}),(0,h.jsxs)("span",{className:"font-medium",children:[r.estimatedCost,": ",X," ",r.credits]}),n&&!G?(0,h.jsx)("span",{className:"rounded-full bg-amber-100 px-2 py-1 text-xs font-semibold text-amber-800",children:r.insufficientCredits}):null]}),(0,h.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,h.jsxs)("div",{className:"flex items-center gap-2 text-sm text-neutral-600",children:[(0,h.jsx)(oX,{className:"size-4 text-emerald-600"}),(0,h.jsx)("span",{children:r.loginCta}),!a&&(0,h.jsx)("span",{className:"rounded-full bg-neutral-100 px-2 py-1 text-xs font-semibold text-amber-700",children:r.authNeeded})]}),(0,h.jsxs)(eI,{type:"submit",disabled:A,className:"w-full rounded-full bg-gradient-to-r from-neutral-900 to-neutral-700 text-white shadow-lg sm:w-auto",children:[A?(0,h.jsx)(oq,{className:"size-4 animate-spin"}):(0,h.jsx)(oZ,{className:"size-4"}),A?r.generating:r.generate]})]})]})})]}),(0,h.jsxs)("div",{className:"space-y-4",children:[(0,h.jsxs)(eD,{className:"border-transparent bg-white/90 shadow-md",children:[(0,h.jsxs)(e$,{className:"pb-4",children:[(0,h.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold text-neutral-700",children:[(0,h.jsx)(oV,{className:"size-4"}),r.resultTitle]}),(0,h.jsx)(eF,{className:"text-xl",children:ee}),(0,h.jsx)(eW,{children:T.message||d||r.resultEmpty})]}),(0,h.jsxs)(eH,{className:"space-y-4",children:[(0,h.jsxs)("div",{className:"flex items-center justify-between text-sm font-medium text-neutral-700",children:[(0,h.jsxs)("span",{children:[r.progress,": ",et,"%"]}),(0,h.jsx)("span",{className:"rounded-full bg-neutral-100 px-3 py-1 text-xs font-semibold text-neutral-700",children:T.taskId?`Task: ${T.taskId}`:r.idle})]}),(0,h.jsx)("div",{className:"h-2 w-full overflow-hidden rounded-full bg-neutral-100",children:(0,h.jsx)("div",{className:"h-full rounded-full bg-gradient-to-r from-amber-500 to-orange-600 transition-all",style:{width:`${et}%`}})}),T.resultUrl?(0,h.jsxs)("div",{className:"overflow-hidden rounded-xl border border-neutral-200 bg-neutral-900 text-white shadow-inner",children:[(0,h.jsx)("video",{className:"h-64 w-full bg-black object-cover",src:T.resultUrl,controls:!0}),(0,h.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 text-xs",children:[(0,h.jsxs)("div",{className:"space-y-1 text-neutral-200",children:[(0,h.jsx)("p",{className:"font-semibold",children:T.resultPid||"PID"}),(0,h.jsx)("p",{className:"text-neutral-400",children:T.resultUrl})]}),(0,h.jsx)(eI,{asChild:!0,variant:"secondary",className:"rounded-full bg-white text-neutral-900",children:(0,h.jsx)("a",{href:T.resultUrl,target:"_blank",rel:"noreferrer",children:r.openResult})})]})]}):(0,h.jsxs)("div",{className:"flex h-32 flex-col items-center justify-center gap-2 rounded-xl border border-dashed border-neutral-200 bg-neutral-50 text-sm text-neutral-500",children:[(0,h.jsx)(oq,{className:"size-4 animate-spin text-neutral-400"}),r.resultEmpty]}),(0,h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,h.jsxs)(eI,{type:"button",variant:"outline",onClick:()=>{T.taskId&&Q(T.taskId)},disabled:!T.taskId,className:"gap-2 rounded-full",children:[(0,h.jsx)(oG,{className:"size-4"}),r.checkResult]}),T.taskId&&(0,h.jsx)("span",{className:"text-xs text-neutral-500",children:r.manualNote})]}),(0,h.jsxs)("div",{className:"space-y-2 text-xs",children:[(0,h.jsxs)("div",{className:"flex items-center gap-2 font-semibold text-neutral-700",children:[(0,h.jsx)(oY,{className:"size-4"}),r.recentNotes]}),(0,h.jsx)("div",{className:"space-y-1 rounded-lg bg-neutral-50 p-3",children:T.updates.length>0?T.updates.map((e,t)=>(0,h.jsxs)("div",{className:"text-neutral-600",children:["• ",e]},`${e}-${t}`)):(0,h.jsx)("p",{className:"text-neutral-400",children:r.manualNote})})]})]})]}),(0,h.jsxs)(eD,{className:"border-transparent bg-white/90 shadow-md",children:[(0,h.jsxs)(e$,{className:"pb-3",children:[(0,h.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold text-neutral-700",children:[(0,h.jsx)(oX,{className:"size-4 text-emerald-600"}),r.userPanelTitle]}),(0,h.jsx)(eW,{children:n?r.cached:r.loginCta})]}),(0,h.jsxs)(eH,{className:"space-y-3 text-sm text-neutral-700",children:[n?(0,h.jsxs)("div",{className:"space-y-2",children:[(0,h.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-neutral-200 bg-neutral-50 px-3 py-2",children:[(0,h.jsx)(oT,{src:n.avatar_url,alt:n.nickname||"user",fallback:(n.nickname||"U").slice(0,1)}),(0,h.jsxs)("div",{className:"space-y-0.5",children:[(0,h.jsx)("p",{className:"font-semibold",children:n.nickname||n.email}),(0,h.jsx)("p",{className:"text-xs text-neutral-500",children:n.email})]})]}),(0,h.jsxs)("div",{className:"flex items-center justify-between rounded-xl bg-gradient-to-r from-emerald-50 to-emerald-100 px-3 py-2 text-emerald-800",children:[(0,h.jsx)("span",{children:r.credits}),(0,h.jsx)("span",{className:"text-lg font-semibold",children:n.credits?.left_credits??0}),(0,h.jsx)("span",{className:"rounded-full bg-white px-2 py-1 text-[11px] font-semibold text-emerald-700",children:n.credits?.is_vip||n.credits?.is_recharged?r.vip:r.notVip})]})]}):(0,h.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-dashed border-neutral-200 bg-neutral-50 px-3 py-3",children:[(0,h.jsxs)("div",{className:"space-y-1",children:[(0,h.jsx)("p",{className:"font-semibold",children:r.loginCta}),(0,h.jsx)("p",{className:"text-xs text-neutral-500",children:r.loginStatusReady})]}),(0,h.jsxs)(eI,{onClick:Z,variant:"outline",className:"rounded-full",children:[(0,h.jsx)(oU,{className:"size-4"}),r.login]})]}),d?(0,h.jsx)("div",{className:"rounded-lg bg-amber-50 px-3 py-2 text-xs text-amber-800",children:d}):null]})]})]})]}),(0,h.jsxs)("footer",{className:"flex flex-col gap-3 rounded-2xl border border-neutral-200 bg-white/80 px-4 py-4 text-sm text-neutral-600 shadow-sm backdrop-blur-md md:flex-row md:items-center md:justify-between",children:[(0,h.jsxs)("div",{className:"flex items-center gap-3 font-semibold text-neutral-800",children:[(0,h.jsx)("div",{className:"relative h-8 w-8 overflow-hidden rounded-xl border border-orange-100 bg-black shadow-sm",children:(0,h.jsx)(g.default,{src:o4,alt:"Sora 2 Free logo",fill:!0,className:"object-contain p-1"})}),(0,h.jsx)("span",{children:r.brandName})]}),(0,h.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,h.jsx)("a",{className:"rounded-full border border-neutral-200 px-3 py-1.5 font-medium text-neutral-800 hover:border-orange-300 hover:text-orange-700",href:"https://sora2-api.com/",target:"_blank",rel:"noreferrer",children:r.webLink}),(0,h.jsx)("a",{className:"rounded-full border border-neutral-200 px-3 py-1.5 font-medium text-neutral-800 hover:border-orange-300 hover:text-orange-700",href:"https://sora2-api.com/sora2-api",target:"_blank",rel:"noreferrer",children:r.apiLink}),(0,h.jsx)(eI,{asChild:!0,variant:"ghost",className:"gap-2 rounded-full px-3",children:(0,h.jsxs)("a",{href:"#top",children:[(0,h.jsx)(oG,{className:"size-4"}),r.pinnedLink]})}),(0,h.jsx)("div",{className:"rounded-full bg-neutral-100 px-3 py-1 text-xs font-semibold text-neutral-700",children:r.tagline})]})]})]})})}e.s(["default",()=>at],31713)}]);