@neurodyn/ar 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ar.chunk.10ee7b81.min.js +61 -0
- package/dist/ar.chunk.1be77774.min.js +1 -0
- package/dist/ar.chunk.43d0d5ab.min.js +983 -0
- package/dist/ar.chunk.697aa011.min.js +77 -0
- package/dist/ar.chunk.a7579ac4.min.js +12 -0
- package/dist/ar.chunk.b5e9f680.min.js +5331 -0
- package/dist/ar.chunk.c84d3d5a.min.js +1 -0
- package/dist/ar.chunk.f08f090e.min.js +6 -0
- package/dist/ar.embed.min.js +1 -1
- package/dist/ar.global.min.js +1 -1
- package/dist/ar.js +150 -20
- package/dist/static/svg/camera-intro.59d57f3d.svg +139 -0
- package/dist/static/svg/gesture-rotate.03dbf61b.svg +100 -0
- package/dist/static/svg/scan-floor.5dee2ec3.svg +66 -0
- package/dist/static/svg/scan-wall.23490063.svg +58 -0
- package/package.json +6 -3
- package/dist/ar.chunk.0152d4cd.min.js +0 -1
- package/dist/ar.chunk.0d9da022.min.js +0 -12
- package/dist/ar.chunk.2c1a21fc.min.js +0 -6
- package/dist/ar.chunk.513ce606.min.js +0 -60
- package/dist/ar.chunk.849c4685.min.js +0 -983
- package/dist/ar.chunk.96249cf8.min.js +0 -1
- package/dist/ar.chunk.c6ed8faf.min.js +0 -13
- package/dist/ar.chunk.c7d1dc6c.min.js +0 -5573
- /package/dist/{ar.chunk.849c4685.min.js.LICENSE.txt → ar.chunk.43d0d5ab.min.js.LICENSE.txt} +0 -0
- /package/dist/{ar.chunk.c6ed8faf.min.js.LICENSE.txt → ar.chunk.697aa011.min.js.LICENSE.txt} +0 -0
- /package/dist/{ar.chunk.2c1a21fc.min.js.LICENSE.txt → ar.chunk.f08f090e.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_neurodyn_ar=self.webpackChunk_neurodyn_ar||[]).push([["3"],{4957(e,t,i){i.d(t,{hj:()=>c,aV:()=>d});var n=i(5807);let o=Object.freeze({x:0,y:1,z:0});function r(e){let t=Math.hypot(e.x,e.y,e.z)||1;return{x:e.x/t,y:e.y/t,z:e.z/t}}function s(e,t){return e.x*t.x+e.y*t.y+e.z*t.z}function a(e,t){let i=2*(t.y*e.z-t.z*e.y),n=2*(t.z*e.x-t.x*e.z),o=2*(t.x*e.y-t.y*e.x);return{x:e.x+t.w*i+t.y*o-t.z*n,y:e.y+t.w*n+t.z*i-t.x*o,z:e.z+t.w*o+t.x*n-t.y*i}}function l(e){return r(a({x:0,y:0,z:-1},e))}function h(e){let t=Math.hypot(e.x,e.y,e.z,e.w)||1;return{w:e.w/t,x:e.x/t,y:e.y/t,z:e.z/t}}let d=.35;function c(e){var t,i;let c=e.mechanic??"all",u=e.minWallHeight??d,p=e.groundY,v=null;for(let t of e.hits)if(null==t?void 0:t.position){v=function(e){let t=e.rotation??{w:1,x:0,y:0,z:0},i=r(a(o,t));return{kind:(0,n.Q3)(i),nativeHit:e,normal:i,pose:{orientation:t,position:{...e.position}}}}(t);break}if(v){let n=v.pose.position.y-p;if("floor"===v.kind&&n<=u)p=Math.min(p,v.pose.position.y);else{let a,d;"wall"!==v.kind&&("all"===c||"wall"===c)&&n>u&&!(l(e.camera.orientation).y<-.2)&&(t=v,d=r(.001>Math.hypot((a={x:(i=e.camera.position).x-t.pose.position.x,y:0,z:i.z-t.pose.position.z}).x,a.z)?{x:0,y:0,z:1}:a),v={kind:"wall",nativeHit:t.nativeHit,normal:d,pose:{orientation:function(e,t){let i=s(e,t)+1;if(i<1e-6)return Math.abs(e.x)>Math.abs(e.z)?h({w:0,x:-e.y,y:e.x,z:0}):h({w:0,x:0,y:-e.z,z:e.y});let n={x:e.y*t.z-e.z*t.y,y:e.z*t.x-e.x*t.z,z:e.x*t.y-e.y*t.x};return h({w:i,x:n.x,y:n.y,z:n.z})}(o,d),position:{...t.pose.position}}})}return{groundY:p,hit:v}}if("ceiling"===c||"wall"===c)return{groundY:p,hit:null};let g=function(e,t,i,n){let o=s(t,n);if(1e-6>Math.abs(o))return null;let r=s({x:i.x-e.x,y:i.y-e.y,z:i.z-e.z},n)/o;return r<0?null:{x:e.x+t.x*r,y:e.y+t.y*r,z:e.z+t.z*r}}(e.camera.position,l(e.camera.orientation),{x:0,y:p,z:0},o);return g?{groundY:p,hit:{kind:"floor",normal:{...o},pose:{orientation:{w:1,x:0,y:0,z:0},position:g}}}:{groundY:p,hit:null}}},342(e,t,i){i.d(t,{Uy:()=>l,VU:()=>v,loadEighthWallEngine:()=>u});var n=i(2585),o=i(1519),r=i(557),s=i(4957),a=i(5807);let l="https://8wall.vizbl.com/external/xr/xr.js",h=["FEATURE_POINT","ESTIMATED_SURFACE","DETECTED_SURFACE"],d=null;function c(){return"u"<typeof window?l:window.XR8_ENGINE_URL??l}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e4;if("u"<typeof window)return Promise.reject(Error("The 8th Wall engine needs a browser."));let i=window;return i.XR8?Promise.resolve(i.XR8):d||(d=new Promise((n,o)=>{let r=e=>{d=null,o(Error(e))},s=setTimeout(()=>r("The 8th Wall engine timed out while loading."),t);window.addEventListener("xrloaded",()=>{clearTimeout(s),i.XR8?n(i.XR8):r("The 8th Wall engine loaded without registering itself.")},{once:!0});let a=document.createElement("script");a.src=e,a.async=!0,a.crossOrigin="anonymous",a.dataset.preloadChunks="slam",a.onerror=()=>{clearTimeout(s),r("The 8th Wall engine failed to load.")},document.head.appendChild(a)}))}class p{setMechanic(e){this.mechanic=e}get renderBridge(){return this.bridge}async attachRenderer(e){if(this.hostRenderer=e,"function"==typeof e.render){var t=this;this.hostRender=e.render.bind(e),e.render=function(){for(var e,i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];t.stopped&&(null==(e=t.hostRender)||e.call(t,...n))}}}engage(){if(this.engaged)return!0;let e=this.nativeSession.Threejs.xrScene();return!!(null==e?void 0:e.camera)&&!!e.scene&&(this.threeScene=e,e.camera.position.set(0,1.6,0),this.nativeSession.XrController.updateCameraProjectionMatrix({cam:{farClipPlane:100,nearClipPlane:.01},facing:e.camera.quaternion,origin:e.camera.position}),this.bridge={camera:e.camera,canvas:this.canvas,onFrame:e=>(this.frameListeners.add(e),()=>this.frameListeners.delete(e)),renderer:e.renderer,sceneRoot:e.scene},this.engaged=!0,!0)}handleUpdate(e){if(!this.engage()||!this.threeScene)return;let t=this.threeScene.camera;t.updateMatrixWorld(!0),this.tracking="LIMITED"!==e;let i=[];try{i=this.nativeSession.XrController.hitTest(.5,.5,h)??[]}catch{i=[]}let n=(0,s.hj)({camera:{orientation:{w:t.quaternion.w,x:t.quaternion.x,y:t.quaternion.y,z:t.quaternion.z},position:{x:t.position.x,y:t.position.y,z:t.position.z}},groundY:this.groundY,hits:i,mechanic:this.mechanic});this.groundY=n.groundY,this.centerHit=n.hit;let o="u"<typeof performance?0:performance.now(),r=this.lastFrameTime?(o-this.lastFrameTime)/1e3:0;this.lastFrameTime=o,this.frameListeners.forEach(e=>{try{e({delta:r,time:o,tracking:this.tracking})}catch{}})}getCenterHit(e){return this.centerHit}isTracking(e){return this.engaged&&this.tracking}async createAnchor(e){return(0,a.em)(e.pose)}captureGlobalThree(e,t){this.hadGlobalThree=e,this.previousGlobalThree=t}async end(){if(this.stopped)return;this.stopped=!0,this.engaged=!1,this.bridge=null,this.threeScene=null,this.centerHit=null,this.frameListeners.clear();try{this.nativeSession.stop(),this.nativeSession.clearCameraPipelineModules()}catch{}window.removeEventListener("resize",this.onResize),window.removeEventListener("orientationchange",this.onResize),this.hostRenderer&&this.hostRender&&(this.hostRenderer.render=this.hostRender,this.hostRender=null),this.canvas.remove();let e=window;this.hadGlobalThree?e.THREE=this.previousGlobalThree:delete e.THREE}constructor(e,t,i,o){(0,n._)(this,"nativeSession",void 0),(0,n._)(this,"canvas",void 0),(0,n._)(this,"mechanic",void 0),(0,n._)(this,"onResize",void 0),(0,n._)(this,"centerHit",void 0),(0,n._)(this,"engaged",void 0),(0,n._)(this,"frameListeners",void 0),(0,n._)(this,"groundY",void 0),(0,n._)(this,"hadGlobalThree",void 0),(0,n._)(this,"hostRender",void 0),(0,n._)(this,"hostRenderer",void 0),(0,n._)(this,"lastFrameTime",void 0),(0,n._)(this,"previousGlobalThree",void 0),(0,n._)(this,"stopped",void 0),(0,n._)(this,"threeScene",void 0),(0,n._)(this,"tracking",void 0),(0,n._)(this,"bridge",void 0),(0,n._)(this,"guessesWalls",void 0),this.nativeSession=e,this.canvas=t,this.mechanic=i,this.onResize=o,this.centerHit=null,this.engaged=!1,this.frameListeners=new Set,this.groundY=0,this.hadGlobalThree=!1,this.hostRender=null,this.hostRenderer=null,this.lastFrameTime=0,this.stopped=!1,this.threeScene=null,this.tracking=!1,this.bridge=null,this.guessesWalls=!0}}class v{async isSupported(){var e,t;return!("u"<typeof window||"u"<typeof WebAssembly)&&!!window.isSecureContext&&"desktop"!==(0,r.U_)()&&!!(null==(t=navigator)||null==(e=t.mediaDevices)?void 0:e.getUserMedia)}async startSession(){var e,t,i,n;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=window,a=this.options.loadEngine??u,l=await a(this.options.engineUrl??c());if(await (null==(e=l.loadChunk)?void 0:e.call(l,"slam").catch(()=>void 0)),!(null==(t=l.Threejs)?void 0:t.pipelineModule))throw Error("The 8th Wall build is missing its three.js module.");let h="THREE"in s,d=s.THREE;s.THREE=o;let v=r.overlayRoot instanceof HTMLElement?r.overlayRoot:null,g=document.createElement("canvas");g.dataset.testid="ar-camera-feed",g.style.cssText=v?"position:absolute;inset:0;width:100%;height:100%;z-index:0;background:#000;touch-action:none;display:block;":"position:fixed;inset:0;width:100vw;height:100vh;z-index:2147482000;background:#000;touch-action:none;display:block;",(v??document.body).appendChild(g);let y=()=>{g.width=(null==v?void 0:v.clientWidth)||window.innerWidth,g.height=(null==v?void 0:v.clientHeight)||window.innerHeight};y();let m=()=>window.setTimeout(y,60);window.addEventListener("resize",m),window.addEventListener("orientationchange",m);let w=new p(l,g,r.mechanic??"all",m);w.captureGlobalThree(h,d);try{l.XrController.configure({disableWorldTracking:!1,scale:"responsive"});let e=[l.GlTextureRenderer.pipelineModule(),l.Threejs.pipelineModule(),l.XrController.pipelineModule()];(null==(i=l.CanvasScreenshot)?void 0:i.pipelineModule)&&e.push(l.CanvasScreenshot.pipelineModule()),e.push({name:"vizbl-react-ar",onAttach:()=>void w.engage(),onStart:()=>void w.engage(),onUpdate:e=>{let{processCpuResult:t}=e;(null==t?void 0:t.reality)&&w.handleUpdate(t.reality.trackingStatus)}}),l.clearCameraPipelineModules(),l.addCameraPipelineModules(e),l.run({allowedDevices:null==(n=l.XrConfig)?void 0:n.device().ANY,canvas:g})}catch(e){throw await w.end(),e}return w}constructor(e={}){(0,n._)(this,"options",void 0),this.options=e}}},5807(e,t,i){function n(e){let t={orientation:{...e.orientation},position:{...e.position}};return{delete:()=>void 0,getPose:()=>t,pose:t}}function o(e,t){var i;return(null==(i=e.isDetached)?void 0:i.call(e))?(e.delete(),n(t??e.pose)):null}function r(e){return(null==e?void 0:e.kind)==="wall"&&.25>=Math.abs(e.normal.y)}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.75;return e.y>=t?"floor":e.y<=-t?"ceiling":"wall"}i.d(t,{Q3:()=>s,aq:()=>r,em:()=>n,gD:()=>o})}}]);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*! For license information please see ar.chunk.f08f090e.min.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_neurodyn_ar=self.webpackChunk_neurodyn_ar||[]).push([["398"],{8112(e,t,r){r.d(t,{A:()=>s});var n=r(9081);let o=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)},a=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var l={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 i=(0,n.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:i="",children:s,iconNode:c,...d},u)=>(0,n.createElement)("svg",{ref:u,...l,width:t,height:t,stroke:e,strokeWidth:o?24*Number(r)/Number(t):r,className:a("lucide",i),...!s&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(s)?s:[s]])),s=(e,t)=>{let r=(0,n.forwardRef)(({className:r,...l},s)=>(0,n.createElement)(i,{ref:s,iconNode:t,className:a(`lucide-${o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...l}));return r.displayName=o(e),r}},2838(e,t,r){r.d(t,{A:()=>n});let n=(0,r(8112).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},6478(e,t,r){function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{mK:()=>n}),"u">typeof window&&window.document&&window.document.createElement},3577(e,t,r){r.d(t,{s:()=>l,t:()=>a});var n=r(9081);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(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():o(e[t],null)}}}}function l(...e){return n.useCallback(a(...e),e)}},7463(e,t,r){r.d(t,{A:()=>l,q:()=>a});var n=r(9081),o=r(8525);function a(e,t){let r=n.createContext(t),a=e=>{let{children:t,...a}=e,l=n.useMemo(()=>a,Object.values(a));return(0,o.jsx)(r.Provider,{value:l,children:t})};return a.displayName=e+"Provider",[a,function(o){let a=n.useContext(r);if(a)return a;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function l(e,t=[]){let r=[],a=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return a.scopeName=e,[function(t,a){let l=n.createContext(a),i=r.length;r=[...r,a];let s=t=>{let{scope:r,children:a,...s}=t,c=r?.[e]?.[i]||l,d=n.useMemo(()=>s,Object.values(s));return(0,o.jsx)(c.Provider,{value:d,children:a})};return s.displayName=t+"Provider",[s,function(r,o){let s=o?.[e]?.[i]||l,c=n.useContext(s);if(c)return c;if(void 0!==a)return a;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 o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(a,...t)]}},3285(e,t,r){let n;r.d(t,{VY:()=>tc,l9:()=>to,UC:()=>ti,ZL:()=>ta,bm:()=>td,bL:()=>tn,hE:()=>ts,hJ:()=>tl});var o,a,l,i,s,c,d,u,f=r(9081),p=r(6478),m=r(3577),g=r(7463),h=r(4798),v=r(8794),b=r(4253),y=r(2274),w=r(8525),x="dismissableLayer.update",k=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),E=f.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:l,onDismiss:i,...s}=e,c=f.useContext(k),[u,g]=f.useState(null),h=u?.ownerDocument??globalThis?.document,[,v]=f.useState({}),E=(0,m.s)(t,e=>g(e)),S=Array.from(c.layers),[R]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),O=S.indexOf(R),j=u?S.indexOf(u):-1,A=c.layersWithOutsidePointerEventsDisabled.size>0,M=j>=O,D=function(e,t=globalThis?.document){let r=(0,y.c)(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){N("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=[...c.branches].some(e=>e.contains(t));M&&!r&&(o?.(e),l?.(e),e.defaultPrevented||i?.())},h),P=function(e,t=globalThis?.document){let r=(0,y.c)(e),n=f.useRef(!1);return f.useEffect(()=>{let e=e=>{e.target&&!n.current&&N("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;![...c.branches].some(e=>e.contains(t))&&(a?.(e),l?.(e),e.defaultPrevented||i?.())},h);return!function(e,t=globalThis?.document){let r=(0,y.c)(e);f.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=>{j===c.layers.size-1&&(n?.(e),!e.defaultPrevented&&i&&(e.preventDefault(),i()))},h),f.useEffect(()=>{if(u)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(d=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),C(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=d)}},[u,h,r,c]),f.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),C())},[u,c]),f.useEffect(()=>{let e=()=>v({});return document.addEventListener(x,e),()=>document.removeEventListener(x,e)},[]),(0,w.jsx)(b.sG.div,{...s,ref:E,style:{pointerEvents:A?M?"auto":"none":void 0,...e.style},onFocusCapture:(0,p.mK)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,p.mK)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,p.mK)(e.onPointerDownCapture,D.onPointerDownCapture)})});function C(){let e=new CustomEvent(x);document.dispatchEvent(e)}function N(e,t,r,{discrete:n}){let o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?(0,b.hO)(o,a):o.dispatchEvent(a)}E.displayName="DismissableLayer",f.forwardRef((e,t)=>{let r=f.useContext(k),n=f.useRef(null),o=(0,m.s)(t,n);return f.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,w.jsx)(b.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var S="focusScope.autoFocusOnMount",R="focusScope.autoFocusOnUnmount",O={bubbles:!1,cancelable:!0},j=f.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...l}=e,[i,s]=f.useState(null),c=(0,y.c)(o),d=(0,y.c)(a),u=f.useRef(null),p=(0,m.s)(t,e=>s(e)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let e=function(e){if(g.paused||!i)return;let t=e.target;i.contains(t)?u.current=t:D(u.current,{select:!0})},t=function(e){if(g.paused||!i)return;let t=e.relatedTarget;null!==t&&(i.contains(t)||D(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&&D(i)});return i&&r.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,i,g.paused]),f.useEffect(()=>{if(i){P.add(g);let e=document.activeElement;if(!i.contains(e)){let t=new CustomEvent(S,O);i.addEventListener(S,c),i.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(D(n,{select:t}),document.activeElement!==r)return}(A(i).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&D(i))}return()=>{i.removeEventListener(S,c),setTimeout(()=>{let t=new CustomEvent(R,O);i.addEventListener(R,d),i.dispatchEvent(t),t.defaultPrevented||D(e??document.body,{select:!0}),i.removeEventListener(R,d),P.remove(g)},0)}}},[i,c,d,g]);let h=f.useCallback(e=>{if(!r&&!n||g.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]=[M(t=A(a=n),a),M(t.reverse(),a)];l&&i?e.shiftKey||o!==i?e.shiftKey&&o===l&&(e.preventDefault(),r&&D(i,{select:!0})):(e.preventDefault(),r&&D(l,{select:!0})):o===n&&e.preventDefault()}},[r,n,g.paused]);return(0,w.jsx)(b.sG.div,{tabIndex:-1,...l,ref:p,onKeyDown:h})});function A(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 M(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 D(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()}}j.displayName="FocusScope";var P=(n=[],{add(e){let t=n[0];e!==t&&t?.pause(),(n=T(n,e)).unshift(e)},remove(e){n=T(n,e),n[0]?.resume()}});function T(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var L=r(8092),z=r(6026),I=f.forwardRef((e,t)=>{let{container:r,...n}=e,[o,a]=f.useState(!1);(0,z.N)(()=>a(!0),[]);let l=r||o&&globalThis?.document?.body;return l?L.createPortal((0,w.jsx)(b.sG.div,{...n,ref:t}),l):null});I.displayName="Portal";var _=r(7537),W=0;function F(){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 $=function(){return($=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 G(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 B="right-scroll-bar-position",K="width-before-scroll-bar";function U(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var V="u">typeof window?f.useLayoutEffect:f.useEffect,Z=new WeakMap,X=(void 0===o&&(o={}),(void 0===a&&(a=function(e){return e}),l=[],i=!1,s={read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:null},useMedium:function(e){var t=a(e,i);return l.push(t),function(){l=l.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(i=!0;l.length;){var t=l;l=[],t.forEach(e)}l={push:function(t){return e(t)},filter:function(){return l}}},assignMedium:function(e){i=!0;var t=[];if(l.length){var r=l;l=[],r.forEach(e),t=l}var n=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(n)};o(),l={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),l}}}}).options=$({async:!0,ssr:!1},o),s),Y=function(){},q=f.forwardRef(function(e,t){var r,n,o,a,l=f.useRef(null),i=f.useState({onScrollCapture:Y,onWheelCapture:Y,onTouchMoveCapture:Y}),s=i[0],c=i[1],d=e.forwardProps,u=e.children,p=e.className,m=e.removeScrollBar,g=e.enabled,h=e.shards,v=e.sideCar,b=e.noRelative,y=e.noIsolation,w=e.inert,x=e.allowPinchZoom,k=e.as,E=e.gapMode,C=G(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 U(t,e)})},(o=(0,f.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,V(function(){var e=Z.get(a);if(e){var t=new Set(e),n=new Set(r),o=a.current;t.forEach(function(e){n.has(e)||U(e,null)}),n.forEach(function(e){t.has(e)||U(e,o)})}Z.set(a,r)},[r]),a),S=$($({},C),s);return f.createElement(f.Fragment,null,g&&f.createElement(v,{sideCar:X,removeScrollBar:m,shards:h,noRelative:b,noIsolation:y,inert:w,setCallbacks:c,allowPinchZoom:!!x,lockRef:l,gapMode:E}),d?f.cloneElement(f.Children.only(u),$($({},S),{ref:N})):f.createElement(void 0===k?"div":k,$({},S,{className:p,ref:N}),u))});q.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},q.classNames={fullWidth:K,zeroRight:B};var H=function(e){var t=e.sideCar,r=G(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 f.createElement(n,$({},r))};H.isSideCarExport=!0;var J=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Q=function(){var e=J();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ee=function(){var e=Q();return function(t){return e(t.styles,t.dynamic),null}},et={left:0,top:0,right:0,gap:0},er=function(e){return parseInt(e||"",10)||0},en=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[er(r),er(n),er(o)]},eo=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return et;var t=en(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])}},ea=ee(),el="data-scroll-locked",ei=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(el,"] {\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(B," {\n right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(K," {\n margin-right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(B," .").concat(B," {\n right: 0 ").concat(n,";\n }\n \n .").concat(K," .").concat(K," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(el,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},es=function(){var e=parseInt(document.body.getAttribute(el)||"0",10);return isFinite(e)?e:0},ec=function(){f.useEffect(function(){return document.body.setAttribute(el,(es()+1).toString()),function(){var e=es()-1;e<=0?document.body.removeAttribute(el):document.body.setAttribute(el,e.toString())}},[])},ed=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;ec();var a=f.useMemo(function(){return eo(o)},[o]);return f.createElement(ea,{styles:ei(a,!t,o,r?"":"!important")})},eu=!1;if("u">typeof window)try{var ef=Object.defineProperty({},"passive",{get:function(){return eu=!0,!0}});window.addEventListener("test",ef,ef),window.removeEventListener("test",ef,ef)}catch(e){eu=!1}var ep=!!eu&&{passive:!1},em=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])},eg=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eh(e,n)){var o=ev(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},eh=function(e,t){return"v"===e?em(t,"overflowY"):em(t,"overflowX")},ev=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eb=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,c=t.contains(s),d=!1,u=i>0,f=0,p=0;do{if(!s)break;var m=ev(e,s),g=m[0],h=m[1]-m[2]-l*g;(g||h)&&eh(e,s)&&(f+=h,p+=g);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return u&&(o&&1>Math.abs(f)||!o&&i>f)?d=!0:!u&&(o&&1>Math.abs(p)||!o&&-i>p)&&(d=!0),d},ey=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ew=function(e){return[e.deltaX,e.deltaY]},ex=function(e){return e&&"current"in e?e.current:e},ek=0,eE=[];let eC=(c=function(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(ek++)[0],a=f.useState(ee)[0],l=f.useRef(e);f.useEffect(function(){l.current=e},[e]),f.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(ex),!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=f.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,a=ey(e),i=r.current,s="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],d=e.target,u=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===d||p.contains(d)))return!1;var m=eg(u,d);if(!m)return!0;if(m?o=u:(o="v"===u?"h":"v",m=eg(u,d)),!m)return!1;if(!n.current&&"changedTouches"in e&&(s||c)&&(n.current=o),!o)return!0;var g=n.current||o;return eb(g,t,e,"h"===g?s:c,!0)},[]),s=f.useCallback(function(e){if(eE.length&&eE[eE.length-1]===a){var r="deltaY"in e?ew(e):ey(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(ex).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?i(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=f.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)},[]),d=f.useCallback(function(e){r.current=ey(e),n.current=void 0},[]),u=f.useCallback(function(t){c(t.type,ew(t),t.target,i(t,e.lockRef.current))},[]),p=f.useCallback(function(t){c(t.type,ey(t),t.target,i(t,e.lockRef.current))},[]);f.useEffect(function(){return eE.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:p}),document.addEventListener("wheel",s,ep),document.addEventListener("touchmove",s,ep),document.addEventListener("touchstart",d,ep),function(){eE=eE.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,ep),document.removeEventListener("touchmove",s,ep),document.removeEventListener("touchstart",d,ep)}},[]);var m=e.removeScrollBar,g=e.inert;return f.createElement(f.Fragment,null,g?f.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?f.createElement(ed,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},X.useMedium(c),H);var eN=f.forwardRef(function(e,t){return f.createElement(q,$({},e,{ref:t,sideCar:eC}))});eN.classNames=q.classNames;var eS=new WeakMap,eR=new WeakMap,eO={},ej=0,eA=function(e){return e&&(e.host||eA(e.parentNode))},eM=function(e,t,r,n){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=eA(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});eO[r]||(eO[r]=new WeakMap);var a=eO[r],l=[],i=new Set,s=new Set(o),c=function(e){!e||i.has(e)||(i.add(e),c(e.parentNode))};o.forEach(c);var d=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(i.has(e))d(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,s=(eS.get(e)||0)+1,c=(a.get(e)||0)+1;eS.set(e,s),a.set(e,c),l.push(e),1===s&&o&&eR.set(e,!0),1===c&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return d(t),i.clear(),ej++,function(){l.forEach(function(e){var t=eS.get(e)-1,o=a.get(e)-1;eS.set(e,t),a.set(e,o),t||(eR.has(e)||e.removeAttribute(n),eR.delete(e)),o||e.removeAttribute(r)}),--ej||(eS=new WeakMap,eS=new WeakMap,eR=new WeakMap,eO={})}},eD=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),eM(n,o,r,"aria-hidden")):function(){return null}},eP=r(2849),eT="Dialog",[eL,ez]=(0,g.A)(eT),[eI,e_]=eL(eT),eW=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:l=!0}=e,i=f.useRef(null),s=f.useRef(null),[c,d]=(0,v.i)({prop:n,defaultProp:o??!1,onChange:a,caller:eT});return(0,w.jsx)(eI,{scope:t,triggerRef:i,contentRef:s,contentId:(0,h.B)(),titleId:(0,h.B)(),descriptionId:(0,h.B)(),open:c,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(e=>!e),[d]),modal:l,children:r})};eW.displayName=eT;var eF="DialogTrigger",e$=f.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=e_(eF,r),a=(0,m.s)(t,o.triggerRef);return(0,w.jsx)(b.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":e4(o.open),...n,ref:a,onClick:(0,p.mK)(e.onClick,o.onOpenToggle)})});e$.displayName=eF;var eG="DialogPortal",[eB,eK]=eL(eG,{forceMount:void 0}),eU=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=e_(eG,t);return(0,w.jsx)(eB,{scope:t,forceMount:r,children:f.Children.map(n,e=>(0,w.jsx)(_.C,{present:r||a.open,children:(0,w.jsx)(I,{asChild:!0,container:o,children:e})}))})};eU.displayName=eG;var eV="DialogOverlay",eZ=f.forwardRef((e,t)=>{let r=eK(eV,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=e_(eV,e.__scopeDialog);return a.modal?(0,w.jsx)(_.C,{present:n||a.open,children:(0,w.jsx)(eY,{...o,ref:t})}):null});eZ.displayName=eV;var eX=(0,eP.TL)("DialogOverlay.RemoveScroll"),eY=f.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=e_(eV,r);return(0,w.jsx)(eN,{as:eX,allowPinchZoom:!0,shards:[o.contentRef],children:(0,w.jsx)(b.sG.div,{"data-state":e4(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),eq="DialogContent",eH=f.forwardRef((e,t)=>{let r=eK(eq,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=e_(eq,e.__scopeDialog);return(0,w.jsx)(_.C,{present:n||a.open,children:a.modal?(0,w.jsx)(eJ,{...o,ref:t}):(0,w.jsx)(eQ,{...o,ref:t})})});eH.displayName=eq;var eJ=f.forwardRef((e,t)=>{let r=e_(eq,e.__scopeDialog),n=f.useRef(null),o=(0,m.s)(t,r.contentRef,n);return f.useEffect(()=>{let e=n.current;if(e)return eD(e)},[]),(0,w.jsx)(e0,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,p.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,p.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,p.mK)(e.onFocusOutside,e=>e.preventDefault())})}),eQ=f.forwardRef((e,t)=>{let r=e_(eq,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return(0,w.jsx)(e0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;r.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),e0=f.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...l}=e,i=e_(eq,r),s=f.useRef(null),c=(0,m.s)(t,s);return f.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??F()),document.body.insertAdjacentElement("beforeend",e[1]??F()),W++,()=>{1===W&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),W--}},[]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(j,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,w.jsx)(E,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":e4(i.open),...l,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(tt,{titleId:i.titleId}),(0,w.jsx)(tr,{contentRef:s,descriptionId:i.descriptionId})]})]})}),e1="DialogTitle",e2=f.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=e_(e1,r);return(0,w.jsx)(b.sG.h2,{id:o.titleId,...n,ref:t})});e2.displayName=e1;var e8="DialogDescription",e5=f.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=e_(e8,r);return(0,w.jsx)(b.sG.p,{id:o.descriptionId,...n,ref:t})});e5.displayName=e8;var e7="DialogClose",e9=f.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=e_(e7,r);return(0,w.jsx)(b.sG.button,{type:"button",...n,ref:t,onClick:(0,p.mK)(e.onClick,()=>o.onOpenChange(!1))})});function e4(e){return e?"open":"closed"}e9.displayName=e7;var e6="DialogTitleWarning",[e3,te]=(0,g.q)(e6,{contentName:eq,titleName:e1,docsSlug:"dialog"}),tt=({titleId:e})=>{let t=te(e6),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
3
|
+
|
|
4
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
5
|
+
|
|
6
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},tr=({contentRef:e,descriptionId:t})=>{let r=te("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return f.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},tn=eW,to=e$,ta=eU,tl=eZ,ti=eH,ts=e2,tc=e5,td=e9},4798(e,t,r){r.d(t,{B:()=>s});var n,o=r(9081),a=r(6026),l=(n||(n=r.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),i=0;function s(e){let[t,r]=o.useState(l());return(0,a.N)(()=>{e||r(e=>e??String(i++))},[e]),e||(t?`radix-${t}`:"")}},7537(e,t,r){r.d(t,{C:()=>l});var n=r(9081),o=r(3577),a=r(6026),l=e=>{var t;let r,l,{present:s,children:c}=e,d=function(e){var t,r;let[o,l]=n.useState(),s=n.useRef(null),c=n.useRef(e),d=n.useRef("none"),[u,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>r[e][t]??e,t));return n.useEffect(()=>{let e=i(s.current);d.current="mounted"===u?e:"none"},[u]),(0,a.N)(()=>{let t=s.current,r=c.current;if(r!==e){let n=d.current,o=i(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,a.N)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,r=r=>{let n=i(s.current).includes(CSS.escape(r.animationName));if(r.target===o&&n&&(f("ANIMATION_END"),!c.current)){let r=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=r)})}},n=e=>{e.target===o&&(d.current=i(s.current))};return o.addEventListener("animationstart",n),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",n),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:n.useCallback(e=>{s.current=e?getComputedStyle(e):null,l(e)},[])}}(s),u="function"==typeof c?c({present:d.isPresent}):n.Children.only(c),f=(0,o.s)(d.ref,(t=u,(l=(r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.ref:(l=(r=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof c||d.isPresent?n.cloneElement(u,{ref:f}):null};function i(e){return e?.animationName||"none"}l.displayName="Presence"},4253(e,t,r){r.d(t,{hO:()=>s,sG:()=>i});var n=r(9081),o=r(8092),a=r(2849),l=r(8525),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,a.TL)(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o?r:t,{...a,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function s(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},2849(e,t,r){r.d(t,{TL:()=>l,bL:()=>i});var n=r(9081),o=r(3577),a=r(8525);function l(e){var t;let r,l=(t=e,(r=n.forwardRef((e,t)=>{let{children:r,...a}=e;if(n.isValidElement(r)){var l;let e,i,s=(l=r,(i=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(i=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),c=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}}(a,r.props);return r.type!==n.Fragment&&(c.ref=t?(0,o.t)(t,s):s),n.cloneElement(r,c)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${t}.SlotClone`,r),i=n.forwardRef((e,t)=>{let{children:r,...o}=e,i=n.Children.toArray(r),s=i.find(c);if(s){let e=s.props.children,r=i.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,a.jsx)(l,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,a.jsx)(l,{...o,ref:t,children:r})});return i.displayName=`${e}.Slot`,i}var i=l("Slot"),s=Symbol("radix.slottable");function c(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}},6218(e,t,r){let n,o,a;r.d(t,{DX:()=>p});var l,i=r(9081),s=r(3577),c=r(8525),d=Symbol.for("react.lazy"),u=(l||(l=r.t(i,2)))[" use ".trim().toString()];function f(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===d&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var p=((a=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(f(r)&&"function"==typeof u&&(r=u(r._payload)),i.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),c=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!==i.Fragment&&(c.ref=t?(0,s.t)(t,l):l),i.cloneElement(r,c)}return i.Children.count(r)>1?i.Children.only(null):null})).displayName="Slot.SlotClone",n=a,(o=i.forwardRef((e,t)=>{let{children:r,...o}=e;f(r)&&"function"==typeof u&&(r=u(r._payload));let a=i.Children.toArray(r),l=a.find(g);if(l){let e=l.props.children,r=a.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,c.jsx)(n,{...o,ref:t,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,c.jsx)(n,{...o,ref:t,children:r})})).displayName="Slot.Slot",o),m=Symbol("radix.slottable");function g(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===m}},2274(e,t,r){r.d(t,{c:()=>o});var n=r(9081);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},8794(e,t,r){r.d(t,{i:()=>i});var n,o=r(9081),a=r(6026),l=(n||(n=r.t(o,2)))[" useInsertionEffect ".trim().toString()]||a.N;function i({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[a,i,s]=function({defaultProp:e,onChange:t}){let[r,n]=o.useState(e),a=o.useRef(r),i=o.useRef(t);return l(()=>{i.current=t},[t]),o.useEffect(()=>{a.current!==r&&(i.current?.(r),a.current=r)},[r,a]),[r,n,i]}({defaultProp:t,onChange:r}),c=void 0!==e,d=c?e:a;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"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=c},[c,n])}return[d,o.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else i(t)},[c,e,i,s])]}Symbol("RADIX:SYNC_STATE")},6026(e,t,r){r.d(t,{N:()=>o});var n=r(9081),o=globalThis?.document?n.useLayoutEffect:()=>{}},5445(e,t,r){r.d(t,{F:()=>l});var n=r(851);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=n.$,l=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return a(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:l,defaultVariants:i}=t,s=Object.keys(l).map(e=>{let t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;let a=o(t)||o(n);return l[e][a]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return a(e,s,null==t||null==(n=t.compoundVariants)?void 0:n.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({...i,...c}[t]):({...i,...c})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},851(e,t,r){r.d(t,{$:()=>n});function n(){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}},1137(e,t,r){r.d(t,{QP:()=>eg,zu:()=>em});let n=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),o=[],a=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],o=r.nextPart.get(n);if(o){let r=a(e,t+1,o);if(r)return r}let l=r.validators;if(null===l)return;let i=0===t?e.join("-"):e.slice(t).join("-"),s=l.length;for(let e=0;e<s;e++){let t=l[e];if(t.validator(i))return t.classGroupId}},l=(e,t)=>{let r=n();for(let n in e)i(e[n],r,n,t);return r},i=(e,t,r,n)=>{let o=e.length;for(let a=0;a<o;a++)s(e[a],t,r,n)},s=(e,t,r,n)=>{"string"==typeof e?c(e,t,r):"function"==typeof e?d(e,t,r,n):u(e,t,r,n)},c=(e,t,r)=>{(""===e?t:f(t,e)).classGroupId=r},d=(e,t,r,n)=>{p(e)?i(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},u=(e,t,r,n)=>{let o=Object.entries(e),a=o.length;for(let e=0;e<a;e++){let[a,l]=o[e];i(l,f(t,a),r,n)}},f=(e,t)=>{let r=e,o=t.split("-"),a=o.length;for(let e=0;e<a;e++){let t=o[e],a=r.nextPart.get(t);a||(a=n(),r.nextPart.set(t,a)),r=a}return r},p=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,m=[],g=(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=(e,...t)=>{let r,n,i,s,c=e=>{let t=n(e);if(t)return t;let o=((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:c,modifiers:d,hasImportantModifier:u,baseClassName:f,maybePostfixModifierPosition:p}=r(t);if(c){s=t+(s.length>0?" "+s:s);continue}let m=!!p,g=n(m?f.substring(0,p):f);if(!g){if(!m||!(g=n(f))){s=t+(s.length>0?" "+s:s);continue}m=!1}let h=0===d.length?"":1===d.length?d[0]:a(d).join(":"),v=u?h+"!":h,b=v+g;if(l.indexOf(b)>-1)continue;l.push(b);let y=o(g,m);for(let e=0;e<y.length;++e){let t=y[e];l.push(v+t)}s=t+(s.length>0?" "+s:s)}return s})(e,r);return i(e,o),o};return s=d=>{var u;let f;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)}}})((u=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,c=!1;return i.endsWith("!")?(s=i.slice(0,-1),c=!0):i.startsWith("!")&&(s=i.slice(1),c=!0),g(r,c,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)):g(m,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(u),sortModifiers:(f=new Map,u.orderSensitiveModifiers.forEach((e,t)=>{f.set(e,1e6+t)}),e=>{let t=[],r=[];for(let n=0;n<e.length;n++){let o=e[n],a="["===o[0],l=f.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 l(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 a(n,o,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=n[e],a=r[e];if(t){if(a){let e=Array(a.length+t.length);for(let t=0;t<a.length;t++)e[t]=a[t];for(let r=0;r<t.length;r++)e[a.length+r]=t[r];return e}return t}return a||o}return r[e]||o}}})(u)}).cache.get,i=r.cache.set,s=c,c(d)},(...e)=>s(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=v(t))&&(o&&(o+=" "),o+=r);return o})(...e))},y=[],w=e=>{let t=t=>t[e]||y;return t.isThemeGetter=!0,t},x=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,k=/^\((?:(\w[\w-]*):)?(.+)\)$/i,E=/^\d+\/\d+$/,C=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,N=/\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$/,S=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,R=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,O=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>E.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),M=e=>!!e&&Number.isInteger(Number(e)),D=e=>e.endsWith("%")&&A(e.slice(0,-1)),P=e=>C.test(e),T=()=>!0,L=e=>N.test(e)&&!S.test(e),z=()=>!1,I=e=>R.test(e),_=e=>O.test(e),W=e=>!$(e)&&!Z(e),F=e=>ee(e,eo,z),$=e=>x.test(e),G=e=>ee(e,ea,L),B=e=>ee(e,el,A),K=e=>ee(e,er,z),U=e=>ee(e,en,_),V=e=>ee(e,es,I),Z=e=>k.test(e),X=e=>et(e,ea),Y=e=>et(e,ei),q=e=>et(e,er),H=e=>et(e,eo),J=e=>et(e,en),Q=e=>et(e,es,!0),ee=(e,t,r)=>{let n=x.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},et=(e,t,r=!1)=>{let n=k.exec(e);return!!n&&(n[1]?t(n[1]):r)},er=e=>"position"===e||"percentage"===e,en=e=>"image"===e||"url"===e,eo=e=>"length"===e||"size"===e||"bg-size"===e,ea=e=>"length"===e,el=e=>"number"===e,ei=e=>"family-name"===e,es=e=>"shadow"===e,ec=()=>{let e=w("color"),t=w("font"),r=w("text"),n=w("font-weight"),o=w("tracking"),a=w("leading"),l=w("breakpoint"),i=w("container"),s=w("spacing"),c=w("radius"),d=w("shadow"),u=w("inset-shadow"),f=w("text-shadow"),p=w("drop-shadow"),m=w("blur"),g=w("perspective"),h=w("aspect"),v=w("ease"),b=w("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...x(),Z,$],E=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],N=()=>[Z,$,s],S=()=>[j,"full","auto",...N()],R=()=>[M,"none","subgrid",Z,$],O=()=>["auto",{span:["full",M,Z,$]},M,Z,$],L=()=>[M,"auto",Z,$],z=()=>["auto","min","max","fr",Z,$],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...N()],et=()=>[j,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],er=()=>[e,Z,$],en=()=>[...x(),q,K,{position:[Z,$]}],eo=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ea=()=>["auto","cover","contain",H,F,{size:[Z,$]}],el=()=>[D,X,G],ei=()=>["","none","full",c,Z,$],es=()=>["",A,X,G],ec=()=>["solid","dashed","dotted","double"],ed=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eu=()=>[A,D,q,K],ef=()=>["","none",m,Z,$],ep=()=>["none",A,Z,$],em=()=>["none",A,Z,$],eg=()=>[A,Z,$],eh=()=>[j,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[P],breakpoint:[P],color:[T],container:[P],"drop-shadow":[P],ease:["in","out","in-out"],font:[W],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[P],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[P],shadow:[P],spacing:["px",A],text:[P],"text-shadow":[P],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",j,$,Z,h]}],container:["container"],columns:[{columns:[A,$,Z,i]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{start:S()}],end:[{end:S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:["visible","invisible","collapse"],z:[{z:[M,"auto",Z,$]}],basis:[{basis:[j,"full","auto",i,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[A,j,"auto","initial","none",$]}],grow:[{grow:["",A,Z,$]}],shrink:[{shrink:["",A,Z,$]}],order:[{order:[M,"first","last","none",Z,$]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:et()}],w:[{w:[i,"screen",...et()]}],"min-w":[{"min-w":[i,"screen","none",...et()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...et()]}],h:[{h:["screen","lh",...et()]}],"min-h":[{"min-h":["screen","lh","none",...et()]}],"max-h":[{"max-h":["screen","lh",...et()]}],"font-size":[{text:["base",r,X,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Z,B]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",D,$]}],"font-family":[{font:[Y,$,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,Z,$]}],"line-clamp":[{"line-clamp":[A,"none",Z,B]}],leading:[{leading:[a,...N()]}],"list-image":[{"list-image":["none",Z,$]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:er()}],"text-color":[{text:er()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ec(),"wavy"]}],"text-decoration-thickness":[{decoration:[A,"from-font","auto",Z,G]}],"text-decoration-color":[{decoration:er()}],"underline-offset":[{"underline-offset":[A,"auto",Z,$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,$]}],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",Z,$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:en()}],"bg-repeat":[{bg:eo()}],"bg-size":[{bg:ea()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},M,Z,$],radial:["",Z,$],conic:[M,Z,$]},J,U]}],"bg-color":[{bg:er()}],"gradient-from-pos":[{from:el()}],"gradient-via-pos":[{via:el()}],"gradient-to-pos":[{to:el()}],"gradient-from":[{from:er()}],"gradient-via":[{via:er()}],"gradient-to":[{to:er()}],rounded:[{rounded:ei()}],"rounded-s":[{"rounded-s":ei()}],"rounded-e":[{"rounded-e":ei()}],"rounded-t":[{"rounded-t":ei()}],"rounded-r":[{"rounded-r":ei()}],"rounded-b":[{"rounded-b":ei()}],"rounded-l":[{"rounded-l":ei()}],"rounded-ss":[{"rounded-ss":ei()}],"rounded-se":[{"rounded-se":ei()}],"rounded-ee":[{"rounded-ee":ei()}],"rounded-es":[{"rounded-es":ei()}],"rounded-tl":[{"rounded-tl":ei()}],"rounded-tr":[{"rounded-tr":ei()}],"rounded-br":[{"rounded-br":ei()}],"rounded-bl":[{"rounded-bl":ei()}],"border-w":[{border:es()}],"border-w-x":[{"border-x":es()}],"border-w-y":[{"border-y":es()}],"border-w-s":[{"border-s":es()}],"border-w-e":[{"border-e":es()}],"border-w-t":[{"border-t":es()}],"border-w-r":[{"border-r":es()}],"border-w-b":[{"border-b":es()}],"border-w-l":[{"border-l":es()}],"divide-x":[{"divide-x":es()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":es()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ec(),"hidden","none"]}],"divide-style":[{divide:[...ec(),"hidden","none"]}],"border-color":[{border:er()}],"border-color-x":[{"border-x":er()}],"border-color-y":[{"border-y":er()}],"border-color-s":[{"border-s":er()}],"border-color-e":[{"border-e":er()}],"border-color-t":[{"border-t":er()}],"border-color-r":[{"border-r":er()}],"border-color-b":[{"border-b":er()}],"border-color-l":[{"border-l":er()}],"divide-color":[{divide:er()}],"outline-style":[{outline:[...ec(),"none","hidden"]}],"outline-offset":[{"outline-offset":[A,Z,$]}],"outline-w":[{outline:["",A,X,G]}],"outline-color":[{outline:er()}],shadow:[{shadow:["","none",d,Q,V]}],"shadow-color":[{shadow:er()}],"inset-shadow":[{"inset-shadow":["none",u,Q,V]}],"inset-shadow-color":[{"inset-shadow":er()}],"ring-w":[{ring:es()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:er()}],"ring-offset-w":[{"ring-offset":[A,G]}],"ring-offset-color":[{"ring-offset":er()}],"inset-ring-w":[{"inset-ring":es()}],"inset-ring-color":[{"inset-ring":er()}],"text-shadow":[{"text-shadow":["none",f,Q,V]}],"text-shadow-color":[{"text-shadow":er()}],opacity:[{opacity:[A,Z,$]}],"mix-blend":[{"mix-blend":[...ed(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ed()}],"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":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":eu()}],"mask-image-linear-to-pos":[{"mask-linear-to":eu()}],"mask-image-linear-from-color":[{"mask-linear-from":er()}],"mask-image-linear-to-color":[{"mask-linear-to":er()}],"mask-image-t-from-pos":[{"mask-t-from":eu()}],"mask-image-t-to-pos":[{"mask-t-to":eu()}],"mask-image-t-from-color":[{"mask-t-from":er()}],"mask-image-t-to-color":[{"mask-t-to":er()}],"mask-image-r-from-pos":[{"mask-r-from":eu()}],"mask-image-r-to-pos":[{"mask-r-to":eu()}],"mask-image-r-from-color":[{"mask-r-from":er()}],"mask-image-r-to-color":[{"mask-r-to":er()}],"mask-image-b-from-pos":[{"mask-b-from":eu()}],"mask-image-b-to-pos":[{"mask-b-to":eu()}],"mask-image-b-from-color":[{"mask-b-from":er()}],"mask-image-b-to-color":[{"mask-b-to":er()}],"mask-image-l-from-pos":[{"mask-l-from":eu()}],"mask-image-l-to-pos":[{"mask-l-to":eu()}],"mask-image-l-from-color":[{"mask-l-from":er()}],"mask-image-l-to-color":[{"mask-l-to":er()}],"mask-image-x-from-pos":[{"mask-x-from":eu()}],"mask-image-x-to-pos":[{"mask-x-to":eu()}],"mask-image-x-from-color":[{"mask-x-from":er()}],"mask-image-x-to-color":[{"mask-x-to":er()}],"mask-image-y-from-pos":[{"mask-y-from":eu()}],"mask-image-y-to-pos":[{"mask-y-to":eu()}],"mask-image-y-from-color":[{"mask-y-from":er()}],"mask-image-y-to-color":[{"mask-y-to":er()}],"mask-image-radial":[{"mask-radial":[Z,$]}],"mask-image-radial-from-pos":[{"mask-radial-from":eu()}],"mask-image-radial-to-pos":[{"mask-radial-to":eu()}],"mask-image-radial-from-color":[{"mask-radial-from":er()}],"mask-image-radial-to-color":[{"mask-radial-to":er()}],"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":x()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":eu()}],"mask-image-conic-to-pos":[{"mask-conic-to":eu()}],"mask-image-conic-from-color":[{"mask-conic-from":er()}],"mask-image-conic-to-color":[{"mask-conic-to":er()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:en()}],"mask-repeat":[{mask:eo()}],"mask-size":[{mask:ea()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,$]}],filter:[{filter:["","none",Z,$]}],blur:[{blur:ef()}],brightness:[{brightness:[A,Z,$]}],contrast:[{contrast:[A,Z,$]}],"drop-shadow":[{"drop-shadow":["","none",p,Q,V]}],"drop-shadow-color":[{"drop-shadow":er()}],grayscale:[{grayscale:["",A,Z,$]}],"hue-rotate":[{"hue-rotate":[A,Z,$]}],invert:[{invert:["",A,Z,$]}],saturate:[{saturate:[A,Z,$]}],sepia:[{sepia:["",A,Z,$]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,$]}],"backdrop-blur":[{"backdrop-blur":ef()}],"backdrop-brightness":[{"backdrop-brightness":[A,Z,$]}],"backdrop-contrast":[{"backdrop-contrast":[A,Z,$]}],"backdrop-grayscale":[{"backdrop-grayscale":["",A,Z,$]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,Z,$]}],"backdrop-invert":[{"backdrop-invert":["",A,Z,$]}],"backdrop-opacity":[{"backdrop-opacity":[A,Z,$]}],"backdrop-saturate":[{"backdrop-saturate":[A,Z,$]}],"backdrop-sepia":[{"backdrop-sepia":["",A,Z,$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,$]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[A,"initial",Z,$]}],ease:[{ease:["linear","initial",v,Z,$]}],delay:[{delay:[A,Z,$]}],animate:[{animate:["none",b,Z,$]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Z,$]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:ep()}],"rotate-x":[{"rotate-x":ep()}],"rotate-y":[{"rotate-y":ep()}],"rotate-z":[{"rotate-z":ep()}],scale:[{scale:em()}],"scale-x":[{"scale-x":em()}],"scale-y":[{"scale-y":em()}],"scale-z":[{"scale-z":em()}],"scale-3d":["scale-3d"],skew:[{skew:eg()}],"skew-x":[{"skew-x":eg()}],"skew-y":[{"skew-y":eg()}],transform:[{transform:[Z,$,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eh()}],"translate-x":[{"translate-x":eh()}],"translate-y":[{"translate-y":eh()}],"translate-z":[{"translate-z":eh()}],"translate-none":["translate-none"],accent:[{accent:er()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:er()}],"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",Z,$]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",Z,$]}],fill:[{fill:["none",...er()]}],"stroke-w":[{stroke:[A,X,G,B]}],stroke:[{stroke:["none",...er()]}],"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"]}},ed=(e,t,r)=>{void 0!==r&&(e[t]=r)},eu=(e,t)=>{if(t)for(let r in t)ed(e,r,t[r])},ef=(e,t)=>{if(t)for(let r in t)ep(e,t,r)},ep=(e,t,r)=>{let n=t[r];void 0!==n&&(e[r]=e[r]?e[r].concat(n):n)},em=(e,...t)=>"function"==typeof e?b(ec,e,...t):b(()=>((e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:a={}})=>(ed(e,"cacheSize",t),ed(e,"prefix",r),ed(e,"experimentalParseClassName",n),eu(e.theme,a.theme),eu(e.classGroups,a.classGroups),eu(e.conflictingClassGroups,a.conflictingClassGroups),eu(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),ed(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),ef(e.theme,o.theme),ef(e.classGroups,o.classGroups),ef(e.conflictingClassGroups,o.conflictingClassGroups),ef(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ep(e,o,"orderSensitiveModifiers"),e))(ec(),e),...t),eg=b(ec)}}]);
|