1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,823322,e=>{"use strict";let t=(0,e.i(895345).default)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],823322)},801647,e=>{"use strict";let t=(0,e.i(895345).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],801647)},518136,e=>{"use strict";let t=(0,e.i(895345).default)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["ChevronUp",0,t],518136)},107983,(e,t,r)=>{"use strict";var n=e.r(280515),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,l=n.useEffect,i=n.useLayoutEffect,s=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var d="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),o=n[0].inst,d=n[1];return i(function(){o.value=r,o.getSnapshot=t,u(o)&&d({inst:o})},[e,r,t]),l(function(){return u(o)&&d({inst:o}),e(function(){u(o)&&d({inst:o})})},[e]),s(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:d},33347,(e,t,r)=>{"use strict";t.exports=e.r(107983)},116233,819185,337904,610755,674149,944176,e=>{"use strict";let t,r,n,o;var a,l,i,s,u,d,c,f,p,h,m,g,v=e.i(280515),b=e.i(289704);function x(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function w(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>{let r=!1,n=t.map(t=>{let n=x(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<n.length;e++){let r=n[e];"function"==typeof r?r():x(t[e],null)}}}}function y(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return v.useCallback(w(...t),t)}var k=Symbol.for("react.lazy"),R=v[" use ".trim().toString()];function S(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===k&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function N(e){var t;let r,n=(t=e,(r=v.forwardRef((e,t)=>{let{children:r,...n}=e;if(S(r)&&"function"==typeof R&&(r=R(r._payload)),v.isValidElement(r)){var o,a,l;let e,i,s=(i=(e=null==(a=Object.getOwnPropertyDescriptor((o=r).props,"ref"))?void 0:a.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=null==(l=Object.getOwnPropertyDescriptor(o,"ref"))?void 0:l.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref,u=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]=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=a(...t);return o(...t),n}: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&&(u.ref=t?w(t,s):s),v.cloneElement(r,u)}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;S(r)&&"function"==typeof R&&(r=R(r._payload));let a=v.Children.toArray(r),l=a.find(C);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,b.jsx)(n,{...o,ref:t,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return(0,b.jsx)(n,{...o,ref:t,children:r})});return o.displayName=`${e}.Slot`,o}var j=N("Slot"),E=Symbol("radix.slottable");function C(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===E}function T(){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 A=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,P=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return T(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:o,defaultVariants:a}=t,l=Object.keys(o).map(e=>{let t=null==r?void 0:r[e],n=null==a?void 0:a[e];if(null===t)return null;let l=A(t)||A(n);return o[e][l]}),i=r&&Object.entries(r).reduce((e,t)=>
1{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return T(e,l,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({...a,...i}[t]):({...a,...i})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)},D=(e,t)=>{var r;if(0===e.length)return t.classGroupId;let n=e[0],o=t.nextPart.get(n),a=o?D(e.slice(1),o):void 0;if(a)return a;if(0===t.validators.length)return;let l=e.join("-");return null==(r=t.validators.find(e=>{let{validator:t}=e;return t(l)}))?void 0:r.classGroupId},M=/^\[(.+)\]$/,I=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:_(t,e)).classGroupId=r;return}"function"==typeof e?L(e)?I(e(n),t,r,n):t.validators.push({validator:e,classGroupId:r}):Object.entries(e).forEach(e=>{let[o,a]=e;I(a,_(t,o),r,n)})})},_=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},L=e=>e.isThemeGetter,z=(e,t)=>t?e.map(e=>{let[r,n]=e;return[r,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(e=>{let[r,n]=e;return[t+r,n]})):e)]}):e,O=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},$=/\s+/;function F(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=B(e))&&(n&&(n+=" "),n+=t);return n}let B=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=B(e[n]))&&(r&&(r+=" "),r+=t);return r},H=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},W=/^\[(?:([a-z-]+):)?(.+)\]$/i,K=/^\d+\/\d+$/,q=new Set(["px","full","screen"]),V=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,U=/\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$/,G=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,X=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Z=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>J(e)||q.has(e)||K.test(e),Q=e=>ef(e,"length",ep),J=e=>!!e&&!Number.isNaN(Number(e)),ee=e=>ef(e,"number",J),et=e=>!!e&&Number.isInteger(Number(e)),er=e=>e.endsWith("%")&&J(e.slice(0,-1)),en=e=>W.test(e),eo=e=>V.test(e),ea=new Set(["length","size","percentage"]),el=e=>ef(e,ea,eh),ei=e=>ef(e,"position",eh),es=new Set(["image","url"]),eu=e=>ef(e,es,eg),ed=e=>ef(e,"",em),ec=()=>!0,ef=(e,t,r)=>{let n=W.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},ep=e=>U.test(e)&&!G.test(e),eh=()=>!1,em=e=>X.test(e),eg=e=>Z.test(e),ev=function(e){let t,r,n;for(var o=arguments.length,a=Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];let i=function(o){let l;return r=(t={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map,o=(o,a)=>{r.set(o,a),++t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}})((l=a.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],a=t.length,l=e=>{let r,l=[],i=0,s=0;for(let u=0;u<e.length;u++){let d=e[u];if(0===i){if(d===o&&(n||e.slice(u,u+a)===t)){l.push(e.slice(s,u)),s=u+a;continue}if("/"===d){r=u;continue}}"["===d?i++:"]"===d&&i--}let u=0===l.length?e:e.substring(s),d=u.startsWith("!"),c=d?u.substring(1):u;return{modifiers:l,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:r&&r>s?r-s:void 0}};return r?e=>r({className:e,parseClassName:l}):l})(l),...(e=>{let t=(e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return z(Object.entries(e.classGroups),r).forEach(e=>{let[r,o]=e;I(o,n,r,t)}),n})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{let r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),D(r,t)||(e=>{if(M.test(e)){let t=M.exec(e)[1],r=null==t?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}})(e)},getConflictingClassGroupIds:(e,t)=>{let o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}})(l)}).cache.get,n=t.cache.set,i=s,s(o)};
vendor: 13,362 bytes, line 1
1function s(e){let o=r(e);if(o)return o;let a=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=[],l=e.trim().split($),i="";for(let e=l.length-1;e>=0;e-=1){let t=l[e],{modifiers:s,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:c}=r(t),f=!!c,p=n(f?d.substring(0,c):d);if(!p){if(!f||!(p=n(d))){i=t+(i.length>0?" "+i:i);continue}f=!1}let h=O(s).join(":"),m=u?h+"!":h,g=m+p;if(a.includes(g))continue;a.push(g);let v=o(p,f);for(let e=0;e<v.length;++e){let t=v[e];a.push(m+t)}i=t+(i.length>0?" "+i:i)}return i})(e,t);return n(e,a),a}return function(){return i(F.apply(null,arguments))}}(()=>{let e=H("colors"),t=H("spacing"),r=H("blur"),n=H("brightness"),o=H("borderColor"),a=H("borderRadius"),l=H("borderSpacing"),i=H("borderWidth"),s=H("contrast"),u=H("grayscale"),d=H("hueRotate"),c=H("invert"),f=H("gap"),p=H("gradientColorStops"),h=H("gradientColorStopPositions"),m=H("inset"),g=H("margin"),v=H("opacity"),b=H("padding"),x=H("saturate"),w=H("scale"),y=H("sepia"),k=H("skew"),R=H("space"),S=H("translate"),N=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",en,t],C=()=>[en,t],T=()=>["",Y,Q],A=()=>["auto",J,en],P=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],M=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",en],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[J,en];return{cacheSize:500,separator:":",theme:{colors:[ec],spacing:[Y,Q],blur:["none","",eo,en],brightness:z(),borderColor:[e],borderRadius:["none","","full",eo,en],borderSpacing:C(),borderWidth:T(),contrast:z(),grayscale:_(),hueRotate:z(),invert:_(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[er,Q],inset:E(),margin:E(),opacity:z(),padding:C(),saturate:z(),scale:z(),sepia:_(),skew:z(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",en]}],container:["container"],columns:[{columns:[eo]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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"],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:[...P(),en]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",et,en]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",en]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",et,en]}],"grid-cols":[{"grid-cols":[ec]}],"col-start-end":[{col:["auto",{span:["full",et,en]},en]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[ec]}],"row-start-end":[{row:["auto",{span:[et,en]},en]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",en]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",en]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...I()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...I(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...I(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",en,t]}],"min-w":[{"min-w":[en,t,"min","max","fit"]}],"max-w":[{"max-w":[en,t,"none","full","min","max","fit","prose",{screen:[eo]},eo]}],h:[{h:[en,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[en,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[en,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[en,t,"auto","min","max","fit"]}],"font-size":[{text:["base",eo,Q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ee]}],"font-family":[{font:[ec]}],"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:["tighter","tight","normal","wide","wider","widest",en]}],"line-clamp":[{"line-clamp":["none",J,ee]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Y,en]}],"list-image":[{"list-image":["none",en]}],"list-style-type":[{list:["none","disc","decimal",en]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Y,Q]}],"underline-offset":[{"underline-offset":["auto",Y,en]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",en]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",en]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...P(),ei]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",el]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},eu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:D()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[Y,en]}],"outline-w":[{outline:[Y,Q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Y,Q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",eo,ed]}],"shadow-color":[{shadow:[ec]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...M(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":M()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",eo,en]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[x]}],sepia:[{sepia:[y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",en]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",en]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",en]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[et,en]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",en]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",en]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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"]}
1],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",en]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Y,Q,ee]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}});function eb(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return ev(T(t))}let ex=P("inline-flex items-center justify-center whitespace-nowrap rounded-[4px] text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",success:"bg-success text-success-foreground shadow hover:bg-success/90",secondary:"bg-secondary text-secondary-foreground border border-input shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-[4px] px-3",lg:"h-11 rounded-[4px] px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ew=v.forwardRef((e,t)=>{let{className:r,variant:n,size:o,asChild:a=!1,...l}=e;return(0,b.jsx)(a?j:"button",{className:eb(ex({variant:n,size:o,className:r})),ref:t,...l})});ew.displayName="Button",e.s(["Button",0,ew],819185);let ey=v.forwardRef((e,t)=>{let{className:r,type:n,...o}=e;return(0,b.jsx)("input",{type:n,className:eb("flex h-10 w-full rounded-[4px] border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:shadow-[0_0_0_1px_#0070f3] focus-visible:border-[#0070f3] disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...o}
1)});function ek(e,t){let{checkForDefaultPrevented:r=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function eR(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],n=()=>{let t=r.map(e=>v.createContext(e));return function(r){let n=(null==r?void 0: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=>{var r;let{scope:n,children:l,...i}=t,s=(null==n||null==(r=n[e])?void 0:r[a])||o,u=v.useMemo(()=>i,Object.values(i));return(0,b.jsx)(s.Provider,{value:u,children:l})};return l.displayName=t+"Provider",[l,function(r,l){var i;let s=(null==l||null==(i=l[e])?void 0:i[a])||o,u=v.useContext(s);if(u)return u;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=t[0];if(1===t.length)return n;let o=()=>{let e=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){let r=e.reduce((e,r)=>{let{useScope:n,scopeName:o}=r,a=n(t)[`__scope${o}`];return{...e,...a}},{});return v.useMemo(()=>({[`__scope${n.scopeName}`]:r}),[r])}};return o.scopeName=n.scopeName,o}(n,...t)]}ey.displayName="Input",e.s(["Input",0,ey],337904),"u">typeof window&&window.document&&window.document.createElement;var eS=(null==(f=globalThis)?void 0:f.document)?v.useLayoutEffect:()=>{};v[" useEffectEvent ".trim().toString()],v[" useInsertionEffect ".trim().toString()];var eN=v[" useInsertionEffect ".trim().toString()]||eS;function ej(e){let{prop:t,defaultProp:r,onChange:n=()=>{},caller:o}=e,[a,l,i]=function(e){let{defaultProp:t,onChange:r}=e,[n,o]=v.useState(t),a=v.useRef(n),l=v.useRef(r);return eN(()=>{l.current=r},[r]),v.useEffect(()=>{if(a.current!==n){var e;null==(e=l.current)||e.call(l,n),a.current=n}},[n,a]),[n,o,l]}({defaultProp:r,onChange:n}),s=void 0!==t,u=s?t:a;{let e=v.useRef(void 0!==t);v.useEffect(()=>{let t=e.current;if(t!==s){let e=s?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t?"controlled":"uncontrolled"} to ${e}. 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.`)}e.current=s},[s,o])}return[u,v.useCallback(e=>{if(s){let n="function"==typeof e?e(t):e;if(n!==t){var r;null==(r=i.current)||r.call(i,n)}}else l(e)},[s,t,l,i])]}function eE(e){let t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function eC(e){let[t,r]=v.useState(void 0);return eS(()=>{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}Symbol("RADIX:SYNC_STATE");var eT=e.i(900466);function eA(e){var t;let r,n=(t=e,(r=v.forwardRef((e,t)=>{let{children:r,...n}=e;if(v.isValidElement(r)){var o,a,l;let e,i,s=(i=(e=null==(a=Object.getOwnPropertyDescriptor((o=r).props,"ref"))?void 0:a.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=null==(l=Object.getOwnPropertyDescriptor(o,"ref"))?void 0:l.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref,u=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]=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=a(...t);return o(...t),n}: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&&(u.ref=t?w(t,s):s),v.cloneElement(r,u)}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(eD);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,b.jsx)(n,{...o,ref:t,children:v.isValidElement(e)?v.cloneElement(e,void 0,r):null})}return(0,b.jsx)(n,{...o,ref:t,children:r})});return o.displayName=`${e}.Slot`,o}var eP=Symbol("radix.slottable");function eD(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eP}var eM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let r=eA(`Primitive.${t}`),n=v.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,b.jsx)(o?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function eI(e,t){e&&eT.flushSync(()=>e.dispatchEvent(t))}var e_="Switch",[eL,ez]=eR(e_),[eO,e$]=eL(e_),eF=v.forwardRef((e,t)=>{let{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:l,disabled:i,value:s="on",onCheckedChange:u,form:d,...c}=e,[f,p]=v.useState(null),h=y(t,e=>p(e)),m=v.useRef(!1),g=!f||d||!!f.closest("form"),[x,w]=ej({prop:o,defaultProp:a??!1,onChange:u,caller:e_});return(0,b.jsxs)(eO,{scope:r,checked:x,disabled:i,children:[(0,b.jsx)(eM.button,{type:"button",role:"switch","aria-checked":x,"aria-required":l,"data-state":eK(x),"data-disabled":i?"":void 0,disabled:i,value:s,...c,ref:h,onClick:ek(e.onClick,e=>{w(e=>!e),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})}),g&&(0,b.jsx)(eW,{control:f,bubbles:!m.current,name:n,value:s,checked:x,required:l,disabled:i,form:d,style:{transform:"translateX(-100%)"}})]})});eF.displayName=e_;var eB="SwitchThumb",eH=v.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,o=e$(eB,r);return(0,b.jsx)(eM.span,{"data-state":eK(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});eH.displayName=eB;var eW=v.forwardRef((e,t)=>{let{__scopeSwitch:r,control:n,checked:o,bubbles:a=!0,...l}=e,i=v.useRef(null),s=y(i,t),u=eE(o),d=eC(n);return v.useEffect(()=>{let e=i.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==o&&t){let r=new Event("click",{bubbles:a});t.call(e,o),e.dispatchEvent(r)}},[u,o,a]),(0,b.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...l,tabIndex:-1,ref:s,style:{...l.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function eK(e){return e?"checked":"unchecked"}eW.displayName="SwitchBubbleInput";let eq=v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(eF,{className:eb("peer inline-flex h-4 w-8 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-success data-[state=unchecked]:bg-muted-foreground/40",r),...n,ref:t,children:(0,b.jsx)(eH,{className:eb("pointer-events-none block h-3 w-3 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});function eV(e,t){let[r,n]=t;return Math.min(n,Math.max(r,e))}function eU(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function eG(e,t){var r=eU(e,t,"get");return r.get?r.get.call(e):r.value}function eX(e,t,r){var n=eU(e,t,"set");if(n.set)n.set.call(e,r);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=r}return r}function eZ(e){let t=e+"CollectionProvider",[r,n]=eR(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,b.jsx)(o,{scope:t,itemMap:a,collectionRef:n,children:r})};l.displayName=t;let i=e+"CollectionSlot",s=eA(i),u=v.default.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=y(t,a(i,r).collectionRef);return(0,b.jsx)(s,{ref:o,children:n})});u.displayName=i;let d=e+"CollectionItemSlot",c="data-radix-collection-item",f=eA(d),p=v.default.forwardRef((e,t)=>{let{scope:r,children:n,...o}=e,l=v.default.useRef(null),i=y(t,l),s=a(d,r);return v.default.useEffect(()=>(s.itemMap.set(l,{ref:l,...o}),()=>void s.itemMap.delete(l))),(0,b.jsx)(f,{...{[c]:""},ref:i,children:n})});return p.displayName=d,[{Provider:l,Slot:u,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(`[${c}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}eq.displayName=eF.displayName,e.s(["Switch",0,eq],610755);var eY=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=eJ(n))>=0?a:o+a)<0||l>=o?-1:l);return -1===i?void 0:e[i]}function eJ(e){return e!=e||0===e?0:Math.trunc(e)}p=new WeakMap,class e extends Map{set(e,t){return eY.get(this)&&(this.has(e)?eG(this,p)[eG(this,p).indexOf(e)]=e:eG(this,p).push(e)),super.set(e,t),this}insert(e,t,r){let n,o=this.has(t),a=eG(this,p).length,l=eJ(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 u=this.size+ +!o;l<0&&i++;let d=[...eG(this,p)],c=!1;for(let e=i;e<u;e++)if(i===e){let a=d[e];d[e]===t&&(a=d[e+1]),o&&this.delete(t),n=this.get(a),this.set(t,r)}else{c||d[e-1]!==t||(c=!0);let r=d[c?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=eG(this,p).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=eG(this,p).indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=eG(this,p).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=eG(this,p).indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return eX(this,p,[]),super.clear()}delete(e){let t=super.delete(e);return t&&eG(this,p).splice(eG(this,p).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=eQ(eG(this,p),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=eQ(eG(this,p),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return eG(this,p).indexOf(e)}keyAt(e){return eQ(eG(this,p),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(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,o]=t,a=0,l=o??this.at(0);for(let e of this)l=0===a&&1===t.length?e:Reflect.apply(n,this,[l,e,a,this]),a++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,o]=t,a=o??this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);a=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[a,r,e,this])}return a}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(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let o=[...this.entries()];return o.splice(...r),new e(o)}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}constructor(e){super(e),function(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}(this,p,{writable:!0,value:void 0}),eX(this,p,[...super.keys()]),eY.set(this,!0)}};var e0=v.createContext(void 0);function e1(e){let t=v.useContext(e0);return e||t||"ltr"}function e2(e){let t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>function(){for(var e,r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return null==(e=t.current)?void 0:e.call(t,...n)},[])}var e3="dismissableLayer.update",e5=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),e4=v.forwardRef((e,t)=>
1{var r;let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...u}=e,d=v.useContext(e5),[c,f]=v.useState(null),p=(null==c?void 0:c.ownerDocument)??(null==(r=globalThis)?void 0:r.document),[,m]=v.useState({}),g=y(t,e=>f(e)),x=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),k=x.indexOf(w),R=c?x.indexOf(c):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,N=R>=k,j=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=e2(e),o=v.useRef(!1),a=v.useRef(()=>{});return v.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){e8("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",a.current),a.current=t,r.addEventListener("click",a.current,{once:!0})):t()}else r.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",a.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));N&&!r&&(null==a||a(e),null==i||i(e),e.defaultPrevented||null==s||s())},p),E=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=e2(e),o=v.useRef(!1);return v.useEffect(()=>{let e=e=>{e.target&&!o.current&&e8("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...d.branches].some(e=>e.contains(t))&&(null==l||l(e),null==i||i(e),e.defaultPrevented||null==s||s())},p);return!function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=e2(e);v.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return r.addEventListener("keydown",e,{capture:!0}),()=>r.removeEventListener("keydown",e,{capture:!0})},[n,r])}(e=>{R===d.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},p),v.useEffect(()=>{if(c)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(h=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(c)),d.layers.add(c),e9(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=h)}},[c,p,n,d]),v.useEffect(()=>()=>{c&&(d.layers.delete(c),d.layersWithOutsidePointerEventsDisabled.delete(c),e9())},[c,d]),v.useEffect(()=>{let e=()=>m({});return document.addEventListener(e3,e),()=>document.removeEventListener(e3,e)},[]),(0,b.jsx)(eM.div,{...u,ref:g,style:{pointerEvents:S?N?"auto":"none":void 0,...e.style},onFocusCapture:ek(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ek(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ek(e.onPointerDownCapture,j.onPointerDownCapture)})});function e9(){let e=new CustomEvent(e3);document.dispatchEvent(e)}function e8(e,t,r,n){let{discrete:o}=n,a=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),o?eI(a,l):a.dispatchEvent(l)}e4.displayName="DismissableLayer",v.forwardRef((e,t)=>{let r=v.useContext(e5),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,b.jsx)(eM.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var e6=0;function e7(){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()),e6++,()=>{1===e6&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),e6--}},[])}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.
1style.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),u=e2(o),d=e2(a),c=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)?c.current=t:ti(c.current,{select:!0})},t=function(e){if(p.paused||!i)return;let t=e.relatedTarget;null!==t&&(i.contains(t)||ti(c.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,u),i.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},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,u),setTimeout(()=>{let t=new CustomEvent(tr,tn);i.addEventListener(tr,d),i.dispatchEvent(t),t.defaultPrevented||ti(e??document.body,{select:!0}),i.removeEventListener(tr,d),ts.remove(p)},0)}}},[i,u,d,p]);let h=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,b.jsx)(eM.div,{tabIndex:-1,...l,ref:f,onKeyDown:h})});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,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function ti(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[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=(o=[],{add(e){let t=o[0];e!==t&&(null==t||t.pause()),(o=tu(o,e)).unshift(e)},remove(e){var t;null==(t=(o=tu(o,e))[0])||t.resume()}});function tu(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var td=v[" useId ".trim().toString()]||(()=>void 0),tc=0;function tf(e){let[t,r]=v.useState(td());return eS(()=>{e||r(e=>e??String(tc++))},[e]),e||(t?`radix-${t}`:"")}let tp=["top","right","bottom","left"],th=Math.min,tm=Math.max,tg=Math.round,tv=Math.floor,tb=e=>({x:e,y:e}),tx={left:"right",right:"left",bottom:"top",top:"bottom"},tw={start:"end",end:"start"};function ty(e,t){return"function"==typeof e?e(t):e}function tk(e){return e.split("-")[0]}function tR(e){return e.split("-")[1]}function tS(e){return"x"===e?"y":"x"}function tN(e){return"y"===e?"height":"width"}let tj=new Set(["top","bottom"]);function tE(e){return tj.has(tk(e))?"y":"x"}function tC(e){return e.replace(/start|end/g,e=>tw[e])}let tT=["left","right"],tA=["right","left"],tP=["top","bottom"],tD=["bottom","top"];function tM(e){return e.replace(/left|right|bottom|top/g,e=>tx[e])}function tI(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function t_(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 tL(e,t,r){let n,{reference:o,floating:a}=e,l=tE(t),i=tS(tE(t)),s=tN(i),u=tk(t),d="y"===l,c=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(u){case"top":n={x:c,y:o.y-a.height};break;case"bottom":n={x:c,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(tR(t)){case"start":n[i]-=p*(r&&d?-1:1);break;case"end":n[i]+=p*(r&&d?-1:1)}return n}async function tz(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:a,rects:l,elements:i,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:p=0}=ty(t,e),h=tI(p),m=i[f?"floating"===c?"reference":"floating":c],g=t_(await a.getClippingRect
1({element:null==(r=await (null==a.isElement?void 0:a.isElement(m)))||r?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:s})),v="floating"===c?{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},w=t_(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:b,strategy:s}):v);return{top:(g.top-w.top+h.top)/x.y,bottom:(w.bottom-g.bottom+h.bottom)/x.y,left:(g.left-w.left+h.left)/x.x,right:(w.right-g.right+h.right)/x.x}}let tO=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)),u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:c}=tL(u,n,s),f=n,p={},h=0;for(let r=0;r<i.length;r++){var m;let{name:a,fn:g}=i[r],{x:v,y:b,data:x,reset:w}=await g({x:d,y:c,initialPlacement:n,placement:f,strategy:o,middlewareData:p,rects:u,platform:{...l,detectOverflow:null!=(m=l.detectOverflow)?m:tz},elements:{reference:e,floating:t}});d=null!=v?v:d,c=null!=b?b:c,p={...p,[a]:{...p[a],...x}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:d,y:c}=tL(u,f,s)),r=-1)}return{x:d,y:c,placement:f,strategy:o,middlewareData:p}};function t$(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tF(e){return tp.some(t=>e[t]>=0)}let tB=new Set(["left","top"]);async function tH(e,t){let{placement:r,platform:n,elements:o}=e,a=await (null==n.isRTL?void 0:n.isRTL(o.floating)),l=tk(r),i=tR(r),s="y"===tE(r),u=tB.has(l)?-1:1,d=a&&s?-1:1,c=ty(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return i&&"number"==typeof h&&(p="end"===i?-1*h:h),s?{x:p*d,y:f*u}:{x:f*u,y:p*d}}function tW(){return"u">typeof window}function tK(e){return tU(e)?(e.nodeName||"").toLowerCase():"#document"}function tq(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function tV(e){var t;return null==(t=(tU(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function tU(e){return!!tW()&&(e instanceof Node||e instanceof tq(e).Node)}function tG(e){return!!tW()&&(e instanceof Element||e instanceof tq(e).Element)}function tX(e){return!!tW()&&(e instanceof HTMLElement||e instanceof tq(e).HTMLElement)}function tZ(e){return!(!tW()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof tq(e).ShadowRoot)}let tY=new Set(["inline","contents"]);function tQ(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=t7(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!tY.has(o)}let tJ=new Set(["table","td","th"]),t0=[":popover-open",":modal"];function t1(e){return t0.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let t2=["transform","translate","scale","rotate","perspective"],t3=["transform","translate","scale","rotate","perspective","filter"],t5=["paint","layout","strict","content"];function t4(e){let t=t9(),r=tG(e)?t7(e):e;return t2.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||t3.some(e=>(r.willChange||"").includes(e))||t5.some(e=>(r.contain||"").includes(e))}function t9(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let t8=new Set(["html","body","#document"]);function t6(e){return t8.has(tK(e))}function t7(e){return tq(e).getComputedStyle(e)}function re(e){return tG(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rt(e){if("html"===tK(e))return e;let t=e.assignedSlot||e.parentNode||tZ(e)&&e.host||tV(e);return tZ(t)?t.host:t}function rr(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=rt(t);return t6(r)?t.ownerDocument?t.ownerDocument.body:t.body:tX(r)&&tQ(r)?r:e(r)}(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),l=tq(o);if(a){let e=rn(l);
1return t.concat(l,l.visualViewport||[],tQ(o)?o:[],e&&r?rr(e):[])}return t.concat(o,rr(o,[],r))}function rn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ro(e){let t=t7(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=tX(e),a=o?e.offsetWidth:r,l=o?e.offsetHeight:n,i=tg(r)!==a||tg(n)!==l;return i&&(r=a,n=l),{width:r,height:n,$:i}}function ra(e){return tG(e)?e:e.contextElement}function rl(e){let t=ra(e);if(!tX(t))return tb(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:a}=ro(t),l=(a?tg(r.width):r.width)/n,i=(a?tg(r.height):r.height)/o;return l&&Number.isFinite(l)||(l=1),i&&Number.isFinite(i)||(i=1),{x:l,y:i}}let ri=tb(0);function rs(e){let t=tq(e);return t9()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ri}function ru(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let a=e.getBoundingClientRect(),l=ra(e),i=tb(1);t&&(n?tG(n)&&(i=rl(n)):i=rl(e));let s=(void 0===(o=r)&&(o=!1),n&&(!o||n===tq(l))&&o)?rs(l):tb(0),u=(a.left+s.x)/i.x,d=(a.top+s.y)/i.y,c=a.width/i.x,f=a.height/i.y;if(l){let e=tq(l),t=n&&tG(n)?tq(n):n,r=e,o=rn(r);for(;o&&n&&t!==r;){let e=rl(o),t=o.getBoundingClientRect(),n=t7(o),a=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,d*=e.y,c*=e.x,f*=e.y,u+=a,d+=l,o=rn(r=tq(o))}}return t_({width:c,height:f,x:u,y:d})}function rd(e,t){let r=re(e).scrollLeft;return t?t.left+r:ru(tV(e)).left+r}function rc(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-rd(e,r),y:r.top+t.scrollTop}}let rf=new Set(["absolute","fixed"]);function rp(e,t,r){var n;let o;if("viewport"===t)o=function(e,t){let r=tq(e),n=tV(e),o=r.visualViewport,a=n.clientWidth,l=n.clientHeight,i=0,s=0;if(o){a=o.width,l=o.height;let e=t9();(!e||e&&"fixed"===t)&&(i=o.offsetLeft,s=o.offsetTop)}let u=rd(n);if(u<=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 u<=25&&(a+=u);return{width:a,height:l,x:i,y:s}}(e,r);else if("document"===t){let t,r,a,l,i,s,u;n=tV(e),t=tV(n),r=re(n),a=n.ownerDocument.body,l=tm(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=tm(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),s=-r.scrollLeft+rd(n),u=-r.scrollTop,"rtl"===t7(a).direction&&(s+=tm(t.clientWidth,a.clientWidth)-l),o={width:l,height:i,x:s,y:u}}else if(tG(t)){let e,n,a,l,i,s;n=(e=ru(t,!0,"fixed"===r)).top+t.clientTop,a=e.left+t.clientLeft,l=tX(t)?rl(t):tb(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=rs(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return t_(o)}function rh(e){return"static"===t7(e).position}function rm(e,t){if(!tX(e)||"fixed"===t7(e).position)return null;if(t)return t(e);let r=e.offsetParent;return tV(e)===r&&(r=r.ownerDocument.body),r}function rg(e,t){var r;let n=tq(e);if(t1(e))return n;if(!tX(e)){let t=rt(e);for(;t&&!t6(t);){if(tG(t)&&!rh(t))return t;t=rt(t)}return n}let o=rm(e,t);for(;o&&(r=o,tJ.has(tK(r)))&&rh(o);)o=rm(o,t);return o&&t6(o)&&rh(o)&&!t4(o)?n:o||function(e){let t=rt(e);for(;tX(t)&&!t6(t);){if(t4(t))return t;if(t1(t))break;t=rt(t)}return null}(e)||n}let rv=async function(e){let t=this.getOffsetParent||rg,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=tX(t),o=tV(t),a="fixed"===r,l=ru(e,!0,a,t),i={scrollLeft:0,scrollTop:0},s=tb(0);if(n||!n&&!a)if(("body"!==tK(t)||tQ(o))&&(i=re(t)),n){let e=ru(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=rd(o));a&&!n&&o&&(s.x=rd(o));let u=!o||n||a?tb(0):rc(o,i);return{x:l.left+i.scrollLeft-s.x-u.x,y:l.top+i.scrollTop-s.y-u.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}}},rb={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,a="fixed"===o,l=tV(n),i=!!t&&t1(t.floating);if(n===l||i&&a)return r;let s={scrollLeft:0,scrollTop:0},u=tb(1),d=tb(0),c=tX(n);if((c||!c&&!a)&&(("body"!==tK(n)||tQ(l))&&(s=re(n)),tX(n))){let e=ru(n);u=rl(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}
1let f=!l||c||a?tb(0):rc(l,s);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-s.scrollLeft*u.x+d.x+f.x,y:r.y*u.y-s.scrollTop*u.y+d.y+f.y}},getDocumentElement:tV,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,a=[..."clippingAncestors"===r?t1(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=rr(e,[],!1).filter(e=>tG(e)&&"body"!==tK(e)),o=null,a="fixed"===t7(e).position,l=a?rt(e):e;for(;tG(l)&&!t6(l);){let t=t7(l),r=t4(l);r||"fixed"!==t.position||(o=null),(a?!r&&!o:!r&&"static"===t.position&&!!o&&rf.has(o.position)||tQ(l)&&!r&&function e(t,r){let n=rt(t);return!(n===r||!tG(n)||t6(n))&&("fixed"===t7(n).position||e(n,r))}(e,l))?n=n.filter(e=>e!==l):o=t,l=rt(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=a[0],i=a.reduce((e,r)=>{let n=rp(t,r,o);return e.top=tm(n.top,e.top),e.right=th(n.right,e.right),e.bottom=th(n.bottom,e.bottom),e.left=tm(n.left,e.left),e},rp(t,l,o));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:rg,getElementRects:rv,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ro(e);return{width:t,height:r}},getScale:rl,isElement:tG,isRTL:function(e){return"rtl"===t7(e).direction}};function rx(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:u,padding:d=0}=ty(e,t)||{};if(null==u)return{};let c=tI(d),f={x:r,y:n},p=tS(tE(o)),h=tN(p),m=await l.getDimensions(u),g="y"===p,v=g?"clientHeight":"clientWidth",b=a.reference[h]+a.reference[p]-f[p]-a.floating[h],x=f[p]-a.reference[p],w=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u)),y=w?w[v]:0;y&&await (null==l.isElement?void 0:l.isElement(w))||(y=i.floating[v]||a.floating[h]);let k=y/2-m[h]/2-1,R=th(c[g?"top":"left"],k),S=th(c[g?"bottom":"right"],k),N=y-m[h]-S,j=y/2-m[h]/2+(b/2-x/2),E=tm(R,th(j,N)),C=!s.arrow&&null!=tR(o)&&j!==E&&a.reference[h]/2-(j<R?R:S)-m[h]/2<0,T=C?j<R?j-R:j-N:0;return{[p]:f[p]+T,data:{[p]:E,centerOffset:j-E-T,...C&&{alignmentOffset:T}},reset:C}}});var ry="u">typeof document?v.useLayoutEffect:function(){};function rk(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(!rk(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)&&!rk(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function rR(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rS(e,t){let r=rR(e);return Math.round(t*r)/r}function rN(e){let t=v.useRef(e);return ry(()=>{t.current=e}),t}var rj=v.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...a}=e;return(0,b.jsx)(eM.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,b.jsx)("polygon",{points:"0,0 30,0 15,10"})})});rj.displayName="Arrow";var rE="Popper",[rC,rT]=eR(rE),[rA,rP]=rC(rE),rD=e=>{let{__scopePopper:t,children:r}=e,[n,o]=v.useState(null);return(0,b.jsx)(rA,{scope:t,anchor:n,onAnchorChange:o,children:r})};rD.displayName=rE;var rM="PopperAnchor",rI=v.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...o}=e,a=rP(rM,r),l=v.useRef(null),i=y(t,l),s=v.useRef(null);return v.useEffect(()=>{let e=s.current;s.current=(null==n?void 0:n.current)||l.current,e!==s.current&&a.onAnchorChange(s.current)}),n?null:(0,b.jsx)(eM.div,{...o,ref:i})});rI.displayName=rM;var r_="PopperContent",[rL,rz]=rC(r_),rO=v.forwardRef((e,t)=>{var r,n,o,a,l,i,s,u,d,c,f,p,h,m,g,x,w,k,R,S,N,j,E,C,T,A,P;let{__scopePopper:D,side:M="bottom",sideOffset:I=0,align:_="center",alignOffset:L=0,arrowPadding:z=0,avoidCollisions:O=!0,collisionBoundary:$=[],collisionPadding:F=0,sticky:B="partial",hideWhenDetached:H=!1,updatePositionStrategy:W="optimized",onPlaced:K,...q}=e,V=rP(r_,D),[U,G]=v.useState(null),X=y(t,e=>G(e)),[Z,Y]=v.useState(null),Q=eC(Z),J=(null==Q?void 0:Q.width)??0,ee=(null==Q?void 0:Q.height)??0,et="number"==typeof F?F:{top:0,right:0,bottom:0,left:0,...F},er=Array.isArray($)?$:[$],en=er.length>0,eo={padding:et,boundary:er.filter(rH),altBoundary:en},{refs:ea,floatingStyles:el,placement:ei,isPositioned:es,middlewareData:eu}=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:u}=e,[d,c]=v.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(n);rk(f,n)||p(n);let[h,m]=v.useState(null),[g,b]=v.useState(null),x=v.useCallback(e=>
1{e!==R.current&&(R.current=e,m(e))},[]),w=v.useCallback(e=>{e!==S.current&&(S.current=e,b(e))},[]),y=a||h,k=l||g,R=v.useRef(null),S=v.useRef(null),N=v.useRef(d),j=null!=s,E=rN(s),C=rN(o),T=rN(u),A=v.useCallback(()=>{var e,n;let o,a,l;if(!R.current||!S.current)return;let i={placement:t,strategy:r,middleware:f};C.current&&(i.platform=C.current),(e=R.current,n=S.current,o=new Map,l={...(a={platform:rb,...i}).platform,_c:o},tO(e,n,{...a,platform:l})).then(e=>{let t={...e,isPositioned:!1!==T.current};P.current&&!rk(N.current,t)&&(N.current=t,eT.flushSync(()=>{c(t)}))})},[f,t,r,C,T]);ry(()=>{!1===u&&N.current.isPositioned&&(N.current.isPositioned=!1,c(e=>({...e,isPositioned:!1})))},[u]);let P=v.useRef(!1);ry(()=>(P.current=!0,()=>{P.current=!1}),[]),ry(()=>{if(y&&(R.current=y),k&&(S.current=k),y&&k){if(E.current)return E.current(y,k,A);A()}},[y,k,A,E,j]);let D=v.useMemo(()=>({reference:R,floating:S,setReference:x,setFloating:w}),[x,w]),M=v.useMemo(()=>({reference:y,floating:k}),[y,k]),I=v.useMemo(()=>{let e={position:r,left:0,top:0};if(!M.floating)return e;let t=rS(M.floating,d.x),n=rS(M.floating,d.y);return i?{...e,transform:"translate("+t+"px, "+n+"px)",...rR(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,i,M.floating,d.x,d.y]);return v.useMemo(()=>({...d,update:A,refs:D,elements:M,floatingStyles:I}),[d,A,D,M,I])}({strategy:"fixed",placement:M+("center"!==_?"-"+_:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 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:u=!1}=n,d=ra(e),c=a||l?[...d?rr(d):[],...rr(t)]:[];c.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),l&&e.addEventListener("resize",r)});let f=d&&s?function(e,t){let r,n=null,o=tV(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 u=e.getBoundingClientRect(),{left:d,top:c,width:f,height:p}=u;if(i||t(),!f||!p)return;let h={rootMargin:-tv(c)+"px "+-tv(o.clientWidth-(d+f))+"px "+-tv(o.clientHeight-(c+p))+"px "+-tv(d)+"px",threshold:tm(0,th(1,s))||1},m=!0;function g(t){let n=t[0].intersectionRatio;if(n!==s){if(!m)return l();n?l(!1,n):r=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==n||rx(u,e.getBoundingClientRect())||l(),m=!1}try{n=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(g,h)}n.observe(e)}(!0),a}(d,r):null,p=-1,h=null;i&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),d&&!u&&h.observe(d),h.observe(t));let m=u?ru(e):null;return u&&function t(){let n=ru(e);m&&!rx(m,n)&&r(),m=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;c.forEach(e=>{a&&e.removeEventListener("scroll",r),l&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===W})},elements:{reference:V.anchor},middleware:[{...{name:"offset",options:d=s={mainAxis:I+ee,alignmentAxis:L},async fn(e){var t,r;let{x:n,y:o,placement:a,middlewareData:l}=e,i=await tH(e,d);return a===(null==(t=l.offset)?void 0:t.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:n+i.x,y:o+i.y,data:{...i,placement:a}}}},options:[s,u]},O&&{...{name:"shift",options:g=h={mainAxis:!0,crossAxis:!1,limiter:"partial"===B?{...(void 0===(p=c)&&(p={}),{options:p,fn(e){let{x:t,y:r,placement:n,rects:o,middlewareData:a}=e,{offset:l=0,mainAxis:i=!0,crossAxis:s=!0}=ty(p,e),u={x:t,y:r},d=tE(n),c=tS(d),f=u[c],h=u[d],m=ty(l,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(i){let e="y"===c?"height":"width",t=o.reference[c]-o.floating[e]+g.mainAxis,r=o.reference[c]+o.reference[e]-g.mainAxis;f<t?f=t:f>r&&(f=r)}if(s){var v,b;let e="y"===c?"width":"height",t=tB.has(tk(n)),r=o.reference[d]-o.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),l=o.reference[d]+o.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);h<r?h=r:h>l&&(h=l)}return{[c]:f,[d]:h}}}),options:[c,f]}:void 0,...eo},async fn(e){let{x:t,y:r,placement:n,platform:o}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:i={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...s}=ty(g,e),u={x:t,y:r},d=await o.detectOverflow(e,s),c=tE(tk(n)),f=tS(c),p=u[f],h=u[c];if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=p+d[e],n=p-d[t];p=tm(r,th(p,n))}if(l){let e="y"===c?"top":"left",t="y"===c?"bottom":"right",r=h+d[e],n=h-d[t];h=tm(r,th(h,n))}let m=i.fn({...e,[f]:p,[c]:h});return{...m,data:{x:m.x-t,y:m.y-r,enabled:{[f]:a,[c]:l}}}}},options:[h,m]},O&&{...{name:"flip",options:k=x={...eo},async fn(e){var t,r,n,o,a,l,i,s;let u,d,c,{placement:f,middlewareData:p,rects:h,initialPlacement:m,platform:g,elements:v}=e,{mainAxis:b=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:S=!0,...
1N}=ty(k,e);if(null!=(t=p.arrow)&&t.alignmentOffset)return{};let j=tk(f),E=tE(m),C=tk(m)===m,T=await (null==g.isRTL?void 0:g.isRTL(v.floating)),A=w||(C||!S?[tM(m)]:(u=tM(m),[tC(m),u,tC(u)])),P="none"!==R;!w&&P&&A.push(...(d=tR(m),c=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?tA:tT;return t?tT:tA;case"left":case"right":return t?tP:tD;default:return[]}}(tk(m),"start"===R,T),d&&(c=c.map(e=>e+"-"+d),S&&(c=c.concat(c.map(tC)))),c));let D=[m,...A],M=await g.detectOverflow(e,N),I=[],_=(null==(r=p.flip)?void 0:r.overflows)||[];if(b&&I.push(M[j]),x){let e,t,r,n,o=(l=f,i=h,void 0===(s=T)&&(s=!1),e=tR(l),r=tN(t=tS(tE(l))),n="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",i.reference[r]>i.floating[r]&&(n=tM(n)),[n,tM(n)]);I.push(M[o[0]],M[o[1]])}if(_=[..._,{placement:f,overflows:I}],!I.every(e=>e<=0)){let e=((null==(n=p.flip)?void 0:n.index)||0)+1,t=D[e];if(t&&("alignment"!==x||E===tE(t)||_.every(e=>tE(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:_},reset:{placement:t}};let r=null==(o=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(y){case"bestFit":{let e=null==(a=_.filter(e=>{if(P){let t=tE(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=m}if(f!==r)return{reset:{placement:r}}}return{}}},options:[x,w]},{...{name:"size",options:N=R={...eo,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:o}=e,{width:a,height:l}=r.reference,i=t.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${o}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${l}px`)}},async fn(e){var t,r;let n,o,{placement:a,rects:l,platform:i,elements:s}=e,{apply:u=()=>{},...d}=ty(N,e),c=await i.detectOverflow(e,d),f=tk(a),p=tR(a),h="y"===tE(a),{width:m,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-c.top-c.bottom,b=m-c.left-c.right,x=th(g-c[n],v),w=th(m-c[o],b),y=!e.middlewareData.shift,k=x,R=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(R=b),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(k=v),y&&!p){let e=tm(c.left,0),t=tm(c.right,0),r=tm(c.top,0),n=tm(c.bottom,0);h?R=m-2*(0!==e||0!==t?e+t:tm(c.left,c.right)):k=g-2*(0!==r||0!==n?r+n:tm(c.top,c.bottom))}await u({...e,availableWidth:R,availableHeight:k});let S=await i.getDimensions(s.floating);return m!==S.width||g!==S.height?{reset:{rects:!0}}:{}}},options:[R,S]},Z&&{...{name:"arrow",options:C=j={element:Z,padding:z},fn(e){let{element:t,padding:r}="function"==typeof C?C(e):C;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:[j,E]},rW({arrowWidth:J,arrowHeight:ee}),H&&{...{name:"hide",options:P=T={strategy:"referenceHidden",...eo},async fn(e){let{rects:t,platform:r}=e,{strategy:n="referenceHidden",...o}=ty(P,e);switch(n){case"referenceHidden":{let n=t$(await r.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:tF(n)}}}case"escaped":{let n=t$(await r.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:tF(n)}}}default:return{}}}},options:[T,A]}]}),[ed,ec]=rK(ei),ef=e2(K);eS(()=>{es&&(null==ef||ef())},[es,ef]);let ep=null==(r=eu.arrow)?void 0:r.x,eh=null==(n=eu.arrow)?void 0:n.y,em=(null==(o=eu.arrow)?void 0:o.centerOffset)!==0,[eg,ev]=v.useState();return eS(()=>{U&&ev(window.getComputedStyle(U).zIndex)},[U]),(0,b.jsx)("div",{ref:ea.setFloating,"data-radix-popper-content-wrapper":"",style:{...el,transform:es?el.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eg,"--radix-popper-transform-origin":[null==(a=eu.transformOrigin)?void 0:a.x,null==(l=eu.transformOrigin)?void 0:l.y].join(" "),...(null==(i=eu.hide)?void 0:i.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,b.jsx)(rL,{scope:D,placedSide:ed,onArrowChange:Y,arrowX:ep,arrowY:eh,shouldHideArrow:em,children:(0,b.jsx)(eM.div,{"data-side":ed,"data-align":ec,...q,ref:X,style:{...q.style,animation:es?void 0:"none"}})})})});rO.displayName=r_;var r$="PopperArrow",rF={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},rB=v.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=rz(r$,r),a=rF[o.placedSide];return(0,b.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,b.jsx)(rj,{...n,ref:t,style:{...n.style,display:"block"}})})});function rH(e){return null!==e}rB.displayName=r$;var rW=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o;let{placement:a,rects:l,middlewareData:i}=t,s=(null==(r=i.arrow)?void 0:r.centerOffset)!==0,u=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[c,f]=rK(a),p={start:"0%",center:"50%",end:"100%"}[f],h=((null==(n=i.arrow)?void 0:n.x)??0)+u/2,m=((null==(o=i.arrow)?void 0:o.y)??0)+d/2,g="",v="";return"bottom"===c?(g=s?p:`${h}px`,v=`${-d}px`):"top"===c?(g=s?p:`${h}px`,v=`${l.floating.height+d}px`):"right"===c?(g=`${-d}px`,v=s?p:`${m}px`):"left"===c&&(g=`${l.floating.width+d}px`,v=s?p:`${m}px`),{data:{x:g,y:v}}}});function rK(e){let[t,r="center"]=e.split("-");return[t,r]}var rq=v.forwardRef((e,t)=>{var r,n;let{container:o,...a}=e,[l,i]=v.useState(!1);eS(()=>i(!0),[]);let s=o||l&&(null==(n=globalThis)||null==(r=n.document)?void 0:r.body);return s?eT.default.createPortal((0,b.jsx)(eM.div,{...a,ref:t}),s):null});rq.displayName="Portal";var rV=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"}),rU=v.forwardRef((e,t)=>(0,b.jsx)(eM.span,{...e,ref:t,style:{...rV,...e.style}}));rU.displayName="VisuallyHidden";var rG=new WeakMap,rX=new WeakMap,rZ={},rY=0,rQ=function(e){return e&&(e.host||rQ(e.parentNode))},rJ=function(e,t,r,n){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=rQ(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});rZ[r]||(rZ[r]=new WeakMap);var a=rZ[r],l=[],i=new Set,s=new Set(o),u=function(e){!e||i.has(e)||(i.add(e),u(e.parentNode))};o.forEach(u);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=(rG.get(e)||0)+1,u=(a.get(e)||0)+1;rG.set(e,s),a.set(e,u),l.push(e),1===s&&o&&rX.set(e,!0),1===u&&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(),rY++,function(){l.forEach(function(e){var t=rG.get(e)-1,o=a.get(e)-1;rG.set(e,t),a.set(e,o),t||(rX.has(e)||e.removeAttribute(n),rX.delete(e)),o||e.removeAttribute(r)}),--rY||(rG=new WeakMap,rG=new WeakMap,rX=new WeakMap,rZ={})}},r0=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"))),rJ(n,o,r,"aria-hidden")):function(){return null}},r1=function(){return(r1=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 r2(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"),r5="width-before-scroll-bar";function r4(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var r9="u">typeof window?v.useLayoutEffect:v.useEffect,r8=new WeakMap,r6=(void 0===a&&(a={}),(void 0===l&&(l=function(e){return e}),i=[],s=!1,u={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=l(e,s);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){s=!0;var t=[];if(i.length){var r=i;i=[],r.forEach(e),t=i}var n=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(n)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=r1({async:!0,ssr:!1},a),u),r7=function(){},ne=v.forwardRef(function(e,t){var r,n,o,a,l=v.useRef(null),i=v.useState({onScrollCapture:r7,onWheelCapture:r7,onTouchMoveCapture:r7}),s=i[0],u=i[1],d=e.forwardProps,c=e.children,f=e.className,p=e.removeScrollBar,h=e.enabled,m=e.shards,g=e.sideCar,b=e.noRelative,x=e.noIsolation,w=e.inert,y=e.allowPinchZoom,k=e.as,R=e.gapMode,S=r2(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 r4(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,r9(function(){var e=r8.get(a);if(e){var t=new Set(e),n=new Set(r),o=a.current;t.forEach(function(e){n.has(e)||r4(e,null)}
1),n.forEach(function(e){t.has(e)||r4(e,o)})}r8.set(a,r)},[r]),a),j=r1(r1({},S),s);return v.createElement(v.Fragment,null,h&&v.createElement(g,{sideCar:r6,removeScrollBar:p,shards:m,noRelative:b,noIsolation:x,inert:w,setCallbacks:u,allowPinchZoom:!!y,lockRef:l,gapMode:R}),d?v.cloneElement(v.Children.only(c),r1(r1({},j),{ref:N})):v.createElement(void 0===k?"div":k,r1({},j,{className:f,ref:N}),c))});ne.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ne.classNames={fullWidth:r5,zeroRight:r3};var nt=function(e){var t=e.sideCar,r=r2(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,r1({},r))};nt.isSideCarExport=!0;var nr=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||("u">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)}}},nn=function(){var e=nr();return function(t,r){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},no=function(){var e=nn();return function(t){return e(t.styles,t.dynamic),null}},na={left:0,top:0,right:0,gap:0},nl=function(e){return parseInt(e||"",10)||0},ni=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[nl(r),nl(n),nl(o)]},ns=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return na;var t=ni(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=no(),nd="data-scroll-locked",nc=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(nd,"] {\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(r5," {\n margin-right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(r3," .").concat(r3," {\n right: 0 ").concat(n,";\n }\n \n .").concat(r5," .").concat(r5," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(nd,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},nf=function(){var e=parseInt(document.body.getAttribute(nd)||"0",10);return isFinite(e)?e:0},np=function(){v.useEffect(function(){return document.body.setAttribute(nd,(nf()+1).toString()),function(){var e=nf()-1;e<=0?document.body.removeAttribute(nd):document.body.setAttribute(nd,e.toString())}},[])},nh=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;np();var a=v.useMemo(function(){return ns(o)},[o]);return v.createElement(nu,{styles:nc(a,!t,o,r?"":"!important")})},nm=!1;if("u">typeof window)try{var ng=Object.defineProperty({},"passive",{get:function(){return nm=!0,!0}});window.addEventListener("test",ng,ng),window.removeEventListener("test",ng,ng)}catch(e){nm=!1}var nv=!!nm&&{passive:!1},nb=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])},nx=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),nw(e,n)){var o=ny(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},nw=function(e,t){return"v"===e?nb(t,"overflowY"):nb(t,"overflowX")},ny=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},nk=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,u=t.contains(s),d=!1,c=i>0,f=0,p=0;
1do{if(!s)break;var h=ny(e,s),m=h[0],g=h[1]-h[2]-l*m;(m||g)&&nw(e,s)&&(f+=g,p+=m);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!u&&s!==document.body||u&&(t.contains(s)||t===s))return c&&(o&&1>Math.abs(f)||!o&&i>f)?d=!0:!c&&(o&&1>Math.abs(p)||!o&&-i>p)&&(d=!0),d},nR=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nS=function(e){return[e.deltaX,e.deltaY]},nN=function(e){return e&&"current"in e?e.current:e},nj=0,nE=[];let nC=(d=function(e){var t=v.useRef([]),r=v.useRef([0,0]),n=v.useRef(),o=v.useState(nj++)[0],a=v.useState(no)[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(nN),!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=nR(e),i=r.current,s="deltaX"in e?e.deltaX:i[0]-a[0],u="deltaY"in e?e.deltaY:i[1]-a[1],d=e.target,c=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===c&&"range"===d.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===d||p.contains(d)))return!1;var h=nx(c,d);if(!h)return!0;if(h?o=c:(o="v"===c?"h":"v",h=nx(c,d)),!h)return!1;if(!n.current&&"changedTouches"in e&&(s||u)&&(n.current=o),!o)return!0;var m=n.current||o;return nk(m,t,e,"h"===m?s:u,!0)},[]),s=v.useCallback(function(e){if(nE.length&&nE[nE.length-1]===a){var r="deltaY"in e?nS(e):nR(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(nN).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?i(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=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)},[]),d=v.useCallback(function(e){r.current=nR(e),n.current=void 0},[]),c=v.useCallback(function(t){u(t.type,nS(t),t.target,i(t,e.lockRef.current))},[]),f=v.useCallback(function(t){u(t.type,nR(t),t.target,i(t,e.lockRef.current))},[]);v.useEffect(function(){return nE.push(a),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:f}),document.addEventListener("wheel",s,nv),document.addEventListener("touchmove",s,nv),document.addEventListener("touchstart",d,nv),function(){nE=nE.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,nv),document.removeEventListener("touchmove",s,nv),document.removeEventListener("touchstart",d,nv)}},[]);var p=e.removeScrollBar,h=e.inert;return v.createElement(v.Fragment,null,h?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(nh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},r6.useMedium(d),nt);var nT=v.forwardRef(function(e,t){return v.createElement(ne,r1({},e,{ref:t,sideCar:nC}))});nT.classNames=ne.classNames;var nA=[" ","Enter","ArrowUp","ArrowDown"],nP=[" ","Enter"],nD="Select",[nM,nI,n_]=eZ(nD),[nL,nz]=eR(nD,[n_,rT]),nO=rT(),[n$,nF]=nL(nD),[nB,nH]=nL(nD),nW="SelectTrigger",nK=v.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:n=!1,...o}=e,a=nO(r),l=nF(nW,r),i=l.disabled||n,s=y(t,l.onTriggerChange),u=nI(r),d=v.useRef("touch"),[c,f,p]=ov(e=>{let t=u().filter(e=>!e.disabled),r=t.find(e=>e.value===l.value),n=ob(t,e,r);void 0!==n&&l.onValueChange(n.value)}),h=e=>{i||(l.onOpenChange(!0),p()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,b.jsx)(rI,{asChild:!0,...a,children:(0,b.jsx)(eM.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":og(l.value)?"":void 0,...o,ref:s,onClick:ek(o.onClick,e=>
1{e.currentTarget.focus(),"mouse"!==d.current&&h(e)}),onPointerDown:ek(o.onPointerDown,e=>{d.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(h(e),e.preventDefault())}),onKeyDown:ek(o.onKeyDown,e=>{let t=""!==c.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||f(e.key),(!t||" "!==e.key)&&nA.includes(e.key)&&(h(),e.preventDefault())})})})});nK.displayName=nW;var nq="SelectValue";v.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:o,children:a,placeholder:l="",...i}=e,s=nF(nq,r),{onValueNodeHasChildrenChange:u}=s,d=void 0!==a,c=y(t,s.onValueNodeChange);return eS(()=>{u(d)},[u,d]),(0,b.jsx)(eM.span,{...i,ref:c,style:{pointerEvents:"none"},children:og(s.value)?(0,b.jsx)(b.Fragment,{children:l}):a})}).displayName=nq;var nV=v.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...o}=e;return(0,b.jsx)(eM.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});nV.displayName="SelectIcon";var nU=e=>(0,b.jsx)(rq,{asChild:!0,...e});nU.displayName="SelectPortal";var nG="SelectContent",nX=v.forwardRef((e,t)=>{let r=nF(nG,e.__scopeSelect),[n,o]=v.useState();return(eS(()=>{o(new DocumentFragment)},[]),r.open)?(0,b.jsx)(nJ,{...e,ref:t}):n?eT.createPortal((0,b.jsx)(nZ,{scope:e.__scopeSelect,children:(0,b.jsx)(nM.Slot,{scope:e.__scopeSelect,children:(0,b.jsx)("div",{children:e.children})})}),n):null});nX.displayName=nG;var[nZ,nY]=nL(nG),nQ=eA("SelectContent.RemoveScroll"),nJ=v.forwardRef((e,t)=>{let{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:l,side:i,sideOffset:s,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:g,...x}=e,w=nF(nG,r),[k,R]=v.useState(null),[S,N]=v.useState(null),j=y(t,e=>R(e)),[E,C]=v.useState(null),[T,A]=v.useState(null),P=nI(r),[D,M]=v.useState(!1),I=v.useRef(!1);v.useEffect(()=>{if(k)return r0(k)},[k]),e7();let _=v.useCallback(e=>{let[t,...r]=P().map(e=>e.ref.current),[n]=r.slice(-1),o=document.activeElement;for(let r of e)if(r===o||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&S&&(S.scrollTop=0),r===n&&S&&(S.scrollTop=S.scrollHeight),null==r||r.focus(),document.activeElement!==o))return},[P,S]),L=v.useCallback(()=>_([E,k]),[_,E,k]);v.useEffect(()=>{D&&L()},[D,L]);let{onOpenChange:z,triggerPointerDownPosRef:O}=w;v.useEffect(()=>{if(k){let e={x:0,y:0},t=t=>{var r,n;e={x:Math.abs(Math.round(t.pageX)-((null==(r=O.current)?void 0:r.x)??0)),y:Math.abs(Math.round(t.pageY)-((null==(n=O.current)?void 0:n.y)??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():k.contains(r.target)||z(!1),document.removeEventListener("pointermove",t),O.current=null};return null!==O.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[k,z,O]),v.useEffect(()=>{let e=()=>z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[z]);let[$,F]=ov(e=>{let t=P().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=ob(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),B=v.useCallback((e,t,r)=>{let n=!I.current&&!r;(void 0!==w.value&&w.value===t||n)&&(C(e),n&&(I.current=!0))},[w.value]),H=v.useCallback(()=>null==k?void 0:k.focus(),[k]),W=v.useCallback((e,t,r)=>{let n=!I.current&&!r;(void 0!==w.value&&w.value===t||n)&&A(e)},[w.value]),K="popper"===n?n1:n0,q=K===n1?{side:i,sideOffset:s,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:g}:{};return(0,b.jsx)(nZ,{scope:r,content:k,viewport:S,onViewportChange:N,itemRefCallback:B,selectedItem:E,onItemLeave:H,itemTextRefCallback:W,focusSelectedItem:L,selectedItemText:T,position:n,isPositioned:D,searchRef:$,children:(0,b.jsx)(nT,{as:nQ,allowPinchZoom:!0,children:(0,b.jsx)(to,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:ek(o,e=>{var t;
1null==(t=w.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,b.jsx)(e4,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:(0,b.jsx)(K,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:e=>e.preventDefault(),...x,...q,onPlaced:()=>M(!0),ref:j,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=P().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(()=>_(t)),e.preventDefault()}})})})})})})});nJ.displayName="SelectContentImpl";var n0=v.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:n,...o}=e,a=nF(nG,r),l=nY(nG,r),[i,s]=v.useState(null),[u,d]=v.useState(null),c=y(t,e=>d(e)),f=nI(r),p=v.useRef(!1),h=v.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:x,focusSelectedItem:w}=l,k=v.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&u&&m&&g&&x){let e=a.trigger.getBoundingClientRect(),t=u.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,u=Math.max(s,t.width),d=eV(a,[10,Math.max(10,window.innerWidth-10-u)]);i.style.minWidth=s+"px",i.style.left=d+"px"}else{let n=t.right-o.right,a=window.innerWidth-r.right-n,l=window.innerWidth-e.right-a,s=e.width+l,u=Math.max(s,t.width),d=eV(a,[10,Math.max(10,window.innerWidth-10-u)]);i.style.minWidth=s+"px",i.style.right=d+"px"}let l=f(),s=window.innerHeight-20,d=m.scrollHeight,c=window.getComputedStyle(u),h=parseInt(c.borderTopWidth,10),v=parseInt(c.paddingTop,10),b=parseInt(c.borderBottomWidth,10),w=h+v+d+parseInt(c.paddingBottom,10)+b,y=Math.min(5*g.offsetHeight,w),k=window.getComputedStyle(m),R=parseInt(k.paddingTop,10),S=parseInt(k.paddingBottom,10),N=e.top+e.height/2-10,j=g.offsetHeight/2,E=h+v+(g.offsetTop+j);if(E<=N){let e=l.length>0&&g===l[l.length-1].ref.current;i.style.bottom="0px";let t=Math.max(s-N,j+(e?S:0)+(u.clientHeight-m.offsetTop-m.offsetHeight)+b);i.style.height=E+t+"px"}else{let e=l.length>0&&g===l[0].ref.current;i.style.top="0px";let t=Math.max(N,h+m.offsetTop+(e?R:0)+j);i.style.height=t+(w-E)+"px",m.scrollTop=E-N+m.offsetTop}i.style.margin="10px 0",i.style.minHeight=y+"px",i.style.maxHeight=s+"px",null==n||n(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,i,u,m,g,x,a.dir,n]);eS(()=>k(),[k]);let[R,S]=v.useState();eS(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);let N=v.useCallback(e=>{e&&!0===h.current&&(k(),null==w||w(),h.current=!1)},[k,w]);return(0,b.jsx)(n2,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:p,onScrollButtonChange:N,children:(0,b.jsx)("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,b.jsx)(eM.div,{...o,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});n0.displayName="SelectItemAlignedPosition";var n1=v.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:o=10,...a}=e,l=nO(r);return(0,b.jsx)(rO,{...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)"}})});n1.displayName="SelectPopperPosition";var[n2,n3]=nL(nG,{}),n5="SelectViewport",n4=v.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:n,...o}=e,a=nY(n5,r),l=n3(n5,r),i=y(t,a.onViewportChange),s=v.useRef(0);return(0,b.jsxs)(b.Fragment,{children:[(0,b.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,b.jsx)(nM.Slot,{scope:r,children:(0,b.jsx)(eM.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((null==n?void 0: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})})})]})});n4.displayName=n5;var n9="SelectGroup",[n8,n6]=nL(n9);v.forwardRef((e,t)=>
1{let{__scopeSelect:r,...n}=e,o=tf();return(0,b.jsx)(n8,{scope:r,id:o,children:(0,b.jsx)(eM.div,{role:"group","aria-labelledby":o,...n,ref:t})})}).displayName=n9;var n7="SelectLabel",oe=v.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=n6(n7,r);return(0,b.jsx)(eM.div,{id:o.id,...n,ref:t})});oe.displayName=n7;var ot="SelectItem",[or,on]=nL(ot),oo=v.forwardRef((e,t)=>{let{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...l}=e,i=nF(ot,r),s=nY(ot,r),u=i.value===n,[d,c]=v.useState(a??""),[f,p]=v.useState(!1),h=y(t,e=>{var t;return null==(t=s.itemRefCallback)?void 0:t.call(s,e,n,o)}),m=tf(),g=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,b.jsx)(or,{scope:r,value:n,disabled:o,textId:m,isSelected:u,onItemTextChange:v.useCallback(e=>{c(t=>t||((null==e?void 0:e.textContent)??"").trim())},[]),children:(0,b.jsx)(nM.ItemSlot,{scope:r,value:n,disabled:o,textValue:d,children:(0,b.jsx)(eM.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:h,onFocus:ek(l.onFocus,()=>p(!0)),onBlur:ek(l.onBlur,()=>p(!1)),onClick:ek(l.onClick,()=>{"mouse"!==g.current&&x()}),onPointerUp:ek(l.onPointerUp,()=>{"mouse"===g.current&&x()}),onPointerDown:ek(l.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:ek(l.onPointerMove,e=>{if(g.current=e.pointerType,o){var t;null==(t=s.onItemLeave)||t.call(s)}else"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ek(l.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=s.onItemLeave)||t.call(s)}}),onKeyDown:ek(l.onKeyDown,e=>{var t;((null==(t=s.searchRef)?void 0:t.current)===""||" "!==e.key)&&(nP.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});oo.displayName=ot;var oa="SelectItemText",ol=v.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:o,...a}=e,l=nF(oa,r),i=nY(oa,r),s=on(oa,r),u=nH(oa,r),[d,c]=v.useState(null),f=y(t,e=>c(e),s.onItemTextChange,e=>{var t;return null==(t=i.itemTextRefCallback)?void 0:t.call(i,e,s.value,s.disabled)}),p=null==d?void 0:d.textContent,h=v.useMemo(()=>(0,b.jsx)("option",{value:s.value,disabled:s.disabled,children:p},s.value),[s.disabled,s.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=u;return eS(()=>(m(h),()=>g(h)),[m,g,h]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(eM.span,{id:s.textId,...a,ref:f}),s.isSelected&&l.valueNode&&!l.valueNodeHasChildren?eT.createPortal(a.children,l.valueNode):null]})});ol.displayName=oa;var oi="SelectItemIndicator",os=v.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return on(oi,r).isSelected?(0,b.jsx)(eM.span,{"aria-hidden":!0,...n,ref:t}):null});os.displayName=oi;var ou="SelectScrollUpButton",od=v.forwardRef((e,t)=>{let r=nY(ou,e.__scopeSelect),n=n3(ou,e.__scopeSelect),[o,a]=v.useState(!1),l=y(t,n.onScrollButtonChange);return eS(()=>{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,b.jsx)(op,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});od.displayName=ou;var oc="SelectScrollDownButton",of=v.forwardRef((e,t)=>{let r=nY(oc,e.__scopeSelect),n=n3(oc,e.__scopeSelect),[o,a]=v.useState(!1),l=y(t,n.onScrollButtonChange);return eS(()=>{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,b.jsx)(op,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});of.displayName=oc;var op=v.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:n,...o}=e,a=nY("SelectScrollButton",r),l=v.useRef(null),i=nI(r),s=v.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return v.useEffect(()=>()=>s(),[s]),eS(()=>{var e;let t=i().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[i]),(0,b.jsx)(eM.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,()=>{var e;null==(e=a.onItemLeave)||e.call(a),null===l.current&&(l.current=window.setInterval(n,50))}),onPointerLeave:ek(o.onPointerLeave,()=>{s()})})}),oh=v.forwardRef((e,t)=>
1{let{__scopeSelect:r,...n}=e;return(0,b.jsx)(eM.div,{"aria-hidden":!0,...n,ref:t})});oh.displayName="SelectSeparator";var om="SelectArrow";function og(e){return""===e||void 0===e}function ov(e){let t=e2(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 ob(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}v.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=nO(r),a=nF(om,r),l=nY(om,r);return a.open&&"popper"===l.position?(0,b.jsx)(rB,{...o,...n,ref:t}):null}).displayName=om,v.forwardRef((e,t)=>{let{__scopeSelect:r,value:n,...o}=e,a=v.useRef(null),l=y(t,a),i=eE(n);return v.useEffect(()=>{let e=a.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(i!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[i,n]),(0,b.jsx)(eM.select,{...o,style:{...rV,...o.style},ref:l,defaultValue:n})}).displayName="SelectBubbleInput";var ox=e.i(895345);let ow=(0,ox.default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var oy=e.i(713784),ok=e.i(518136);v.forwardRef((e,t)=>{let{className:r,children:n,...o}=e;return(0,b.jsxs)(nK,{ref:t,className:eb("flex h-10 w-full items-center justify-between rounded-[4px] border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none focus:shadow-[0_0_0_1px_#0070f3] focus:border-[#0070f3] disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...o,children:[n,(0,b.jsx)(nV,{asChild:!0,children:(0,b.jsx)(oy.ChevronDown,{className:"h-4 w-4 opacity-50"})})]})}).displayName=nK.displayName;let oR=v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(od,{ref:t,className:eb("flex cursor-default items-center justify-center py-1",r),...n,children:(0,b.jsx)(ok.ChevronUp,{className:"h-4 w-4"})})});oR.displayName=od.displayName;let oS=v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(of,{ref:t,className:eb("flex cursor-default items-center justify-center py-1",r),...n,children:(0,b.jsx)(oy.ChevronDown,{className:"h-4 w-4"})})});oS.displayName=of.displayName,v.forwardRef((e,t)=>{let{className:r,children:n,position:o="popper",...a}=e;return(0,b.jsx)(nU,{children:(0,b.jsxs)(nX,{ref:t,className:eb("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===o&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:o,...a,children:[(0,b.jsx)(oR,{}),(0,b.jsx)(n4,{className:eb("p-1","popper"===o&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,b.jsx)(oS,{})]})})}).displayName=nX.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(oe,{ref:t,className:eb("py-1.5 pl-8 pr-2 text-sm font-semibold",r),...n})}).displayName=oe.displayName,v.forwardRef((e,t)=>{let{className:r,children:n,...o}=e;return(0,b.jsxs)(oo,{ref:t,className:eb("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...o,children:[(0,b.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,b.jsx)(os,{children:(0,b.jsx)(ow,{className:"h-4 w-4"})})}),(0,b.jsx)(ol,{children:n})]})}).displayName=oo.displayName,v.forwardRef((e,t)=>
1{let{className:r,...n}=e;return(0,b.jsx)(oh,{ref:t,className:eb("-mx-1 my-1 h-px bg-muted",r),...n})}).displayName=oh.displayName;var oN=e=>{var t,r,n;let o,a,{present:l,children:i}=e,s=function(e){var t,r;let[n,o]=v.useState(),a=v.useRef(null),l=v.useRef(e),i=v.useRef("none"),[s,u]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},v.useReducer((e,t)=>r[e][t]??e,t));return v.useEffect(()=>{let e=oj(a.current);i.current="mounted"===s?e:"none"},[s]),eS(()=>{let t=a.current,r=l.current;if(r!==e){let n=i.current,o=oj(t);e?u("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):r&&n!==o?u("ANIMATION_OUT"):u("UNMOUNT"),l.current=e}},[e,u]),eS(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=r=>{let o=oj(a.current).includes(CSS.escape(r.animationName));if(r.target===n&&o&&(u("ANIMATION_END"),!l.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},o=e=>{e.target===n&&(i.current=oj(a.current))};return n.addEventListener("animationstart",o),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(e=>{a.current=e?getComputedStyle(e):null,o(e)},[])}}(l),u="function"==typeof i?i({present:s.isPresent}):v.Children.only(i),d=y(s.ref,(a=(o=null==(r=Object.getOwnPropertyDescriptor((t=u).props,"ref"))?void 0:r.get)&&"isReactWarning"in o&&o.isReactWarning)?t.ref:(a=(o=null==(n=Object.getOwnPropertyDescriptor(t,"ref"))?void 0:n.get)&&"isReactWarning"in o&&o.isReactWarning)?t.props.ref:t.props.ref||t.ref);return"function"==typeof i||s.isPresent?v.cloneElement(u,{ref:d}):null};function oj(e){return(null==e?void 0:e.animationName)||"none"}oN.displayName="Presence";var oE="Checkbox",[oC,oT]=eR(oE),[oA,oP]=oC(oE);function oD(e){let{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:a,form:l,name:i,onCheckedChange:s,required:u,value:d="on",internal_do_not_use_render:c}=e,[f,p]=ej({prop:r,defaultProp:o??!1,onChange:s,caller:oE}),[h,m]=v.useState(null),[g,x]=v.useState(null),w=v.useRef(!1),y=!h||!!l||!!h.closest("form"),k={checked:f,disabled:a,setChecked:p,control:h,setControl:m,name:i,form:l,value:d,hasConsumerStoppedPropagationRef:w,required:u,defaultChecked:!oF(o)&&o,isFormControl:y,bubbleInput:g,setBubbleInput:x};return(0,b.jsx)(oA,{scope:t,...k,children:"function"==typeof c?c(k):n})}var oM="CheckboxTrigger",oI=v.forwardRef((e,t)=>{let{__scopeCheckbox:r,onKeyDown:n,onClick:o,...a}=e,{control:l,value:i,disabled:s,checked:u,required:d,setControl:c,setChecked:f,hasConsumerStoppedPropagationRef:p,isFormControl:h,bubbleInput:m}=oP(oM,r),g=y(t,c),x=v.useRef(u);return v.useEffect(()=>{let e=null==l?void 0:l.form;if(e){let t=()=>f(x.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[l,f]),(0,b.jsx)(eM.button,{type:"button",role:"checkbox","aria-checked":oF(u)?"mixed":u,"aria-required":d,"data-state":oB(u),"data-disabled":s?"":void 0,disabled:s,value:i,...a,ref:g,onKeyDown:ek(n,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:ek(o,e=>{f(e=>!!oF(e)||!e),m&&h&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())})})});oI.displayName=oM;var o_=v.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:l,disabled:i,value:s,onCheckedChange:u,form:d,...c}=e;return(0,b.jsx)(oD,{__scopeCheckbox:r,checked:o,defaultChecked:a,disabled:i,required:l,onCheckedChange:u,name:n,form:d,value:s,internal_do_not_use_render:e=>{let{isFormControl:n}=e;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(oI,{...c,ref:t,__scopeCheckbox:r}),n&&(0,b.jsx)(o$,{__scopeCheckbox:r})]})}})});o_.displayName=oE;var oL="CheckboxIndicator",oz=v.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...o}=e,a=oP(oL,r);return(0,b.jsx)(oN,{present:n||oF(a.checked)||!0===a.checked,children:(0,b.jsx)(eM.span,{"data-state":oB(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});oz.displayName=oL;var oO="CheckboxBubbleInput",o$=v.forwardRef((e,t)=>
1{let{__scopeCheckbox:r,...n}=e,{control:o,hasConsumerStoppedPropagationRef:a,checked:l,defaultChecked:i,required:s,disabled:u,name:d,value:c,form:f,bubbleInput:p,setBubbleInput:h}=oP(oO,r),m=y(t,h),g=eE(l),x=eC(o);v.useEffect(()=>{if(!p)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!a.current;if(g!==l&&e){let r=new Event("click",{bubbles:t});p.indeterminate=oF(l),e.call(p,!oF(l)&&l),p.dispatchEvent(r)}},[p,g,l,a]);let w=v.useRef(!oF(l)&&l);return(0,b.jsx)(eM.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??w.current,required:s,disabled:u,name:d,value:c,form:f,...n,tabIndex:-1,ref:m,style:{...n.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function oF(e){return"indeterminate"===e}function oB(e){return oF(e)?"indeterminate":e?"checked":"unchecked"}o$.displayName=oO,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(o_,{ref:t,className:eb("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",r),...n,children:(0,b.jsx)(oz,{className:eb("flex items-center justify-center text-current"),children:(0,b.jsx)(ow,{className:"h-4 w-4"})})})}).displayName=o_.displayName;var oH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=N(`Primitive.${t}`),n=v.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,b.jsx)(o?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),oW=v.forwardRef((e,t)=>(0,b.jsx)(oH.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null==(r=e.onMouseDown)||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));oW.displayName="Label";let oK=P("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),oq=v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(oW,{ref:t,className:eb(oK(),r),...n})});oq.displayName=oW.displayName,e.s(["Label",0,oq],674149);var oV="horizontal",oU=["horizontal","vertical"],oG=v.forwardRef((e,t)=>{var r;let{decorative:n,orientation:o=oV,...a}=e,l=(r=o,oU.includes(r))?o:oV;return(0,b.jsx)(oH.div,{"data-orientation":l,...n?{role:"none"}:{"aria-orientation":"vertical"===l?l:void 0,role:"separator"},...a,ref:t})});oG.displayName="Separator";let oX=v.forwardRef((e,t)=>{let{className:r,orientation:n="horizontal",...o}=e;return(0,b.jsx)(oG,{ref:t,decorative:!0,orientation:n,className:eb("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",r),...o})});oX.displayName=oG.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("textarea",{className:eb("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...n})}).displayName="Textarea",P("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});var oZ="Popover",[oY,oQ]=eR(oZ,[rT]),oJ=rT(),[o0,o1]=oY(oZ),o2="PopoverAnchor";v.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,o=o1(o2,r),a=oJ(r),{onCustomAnchorAdd:l,onCustomAnchorRemove:i}=o;return v.useEffect(()=>(l(),()=>i()),[l,i]),(0,b.jsx)(rI,{...a,...n,ref:t})}).displayName=o2;var o3="PopoverTrigger";v.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,o=o1(o3,r),a=oJ(r),l=y(t,o.triggerRef),i=(0,b.jsx)(eM.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":aa(o.open),...n,ref:l,onClick:ek(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:(0,b.jsx)(rI,{asChild:!0,...a,children:i})}).displayName=o3;var o5="PopoverPortal",[o4,o9]=oY(o5,{forceMount:void 0}),o8=e=>{let{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=o1(o5,t);return(0,b.jsx)(o4,{scope:t,forceMount:r,children:(0,b.jsx)(oN,{present:r||a.open,children:(0,b.jsx)(rq,{asChild:!0,container:o,children:n})})})};o8.displayName=o5;var o6="PopoverContent",o7=v.forwardRef((e,t)=>{let r=o9(o6,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=o1(o6,e.__scopePopover);return(0,b.jsx)(oN,{present:n||a.open,children:a.modal?(0,b.jsx)(at,{...o,ref:t}):(0,b.jsx)(ar,{...o,ref:t})})});o7.displayName=o6;var ae=eA("PopoverContent.RemoveScroll"),at=v.forwardRef((e,t)=>{let r=o1(o6,e.__scopePopover),n=v.useRef(null),o=y(t,n),a=v.useRef(!1);return v.useEffect(()=>{let e=n.current;if(e)return r0(e)},[]),(0,b.jsx)(nT,{as:ae,allowPinchZoom:!0,children:(0,b.jsx)(an,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ek(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),a.current||null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:ek(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;a.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:ek(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),ar=v.forwardRef((e,t)=>{let r=o1(o6,e.__scopePopover),n=v.useRef(!1),o=v.useRef(!1);return(0,b.jsx)(an,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,l;null==(a=e.onCloseAutoFocus)||a.call(e,t),t.defaultPrevented||(n.current||null==(l=r.triggerRef.current)||l.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{var a,l;null==(a=e.onInteractOutside)||a.call(e,t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let i=t.target;(null==(l=r.triggerRef.current)?void 0:l.contains(i))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),an=v.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:d,...c}=e,f=o1(o6,r),p=oJ(r);return e7(),(0,b.jsx)(to,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,b.jsx)(e4,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:d,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:(0,b.jsx)(rO,{"data-state":aa(f.open),role:"dialog",id:f.contentId,...p,...c,ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ao="PopoverClose";function aa(e){return e?"open":"closed"}function al(e){let{className:t,...r}=e;return(0,b.jsx)("div",{className:eb("animate-pulse rounded-md bg-primary/10",t),...r})}v.forwardRef((e,t)=>
1{let{__scopePopover:r,...n}=e,o=o1(ao,r);return(0,b.jsx)(eM.button,{type:"button",...n,ref:t,onClick:ek(e.onClick,()=>o.onOpenChange(!1))})}).displayName=ao,v.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,o=oJ(r);return(0,b.jsx)(rB,{...o,...n,ref:t})}).displayName="PopoverArrow",v.forwardRef((e,t)=>{let{className:r,align:n="center",sideOffset:o=4,...a}=e;return(0,b.jsx)(o8,{children:(0,b.jsx)(o7,{ref:t,align:n,sideOffset:o,className:eb("z-50 w-72 rounded-[4px] border bg-popover p-4 text-popover-foreground shadow-md outline-none 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",r),style:{backgroundColor:"var(--popover, #fff)"},...a})})}).displayName=o7.displayName;var ai=["PageUp","PageDown"],as=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],au={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ad="Slider",[ac,af,ap]=eZ(ad),[ah,am]=eR(ad,[ap]),[ag,av]=ah(ad),ab=v.forwardRef((e,t)=>{let{name:r,min:n=0,max:o=100,step:a=1,orientation:l="horizontal",disabled:i=!1,minStepsBetweenThumbs:s=0,defaultValue:u=[n],value:d,onValueChange:c=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:h,...m}=e,g=v.useRef(new Set),x=v.useRef(0),w="horizontal"===l,[y=[],k]=ej({prop:d,defaultProp:u,onChange:e=>{var t;null==(t=[...g.current][x.current])||t.focus(),c(e)}}),R=v.useRef(y);function S(e,t){let r,{commit:l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},i=(String(a).split(".")[1]||"").length,u=eV(Math.round((Math.round((e-n)/a)*a+n)*(r=Math.pow(10,i)))/r,[n,o]);k(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=[...e];return n[r]=t,n.sort((e,t)=>e-t)}(e,u,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,r)=>e[r+1]-t))>=t;return!0}(r,s*a))return e;{x.current=r.indexOf(u);let t=String(r)!==String(e);return t&&l&&f(r),t?r:e}})}return(0,b.jsx)(ag,{scope:e.__scopeSlider,name:r,disabled:i,min:n,max:o,valueIndexToChangeRef:x,thumbs:g.current,values:y,orientation:l,form:h,children:(0,b.jsx)(ac.Provider,{scope:e.__scopeSlider,children:(0,b.jsx)(ac.Slot,{scope:e.__scopeSlider,children:(0,b.jsx)(w?ay:ak,{"aria-disabled":i,"data-disabled":i?"":void 0,...m,ref:t,onPointerDown:ek(m.onPointerDown,()=>{i||(R.current=y)}),min:n,max:o,inverted:p,onSlideStart:i?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t)),n=Math.min(...r);return r.indexOf(n)}(y,e);S(e,t)},onSlideMove:i?void 0:function(e){S(e,x.current)},onSlideEnd:i?void 0:function(){let e=R.current[x.current];y[x.current]!==e&&f(y)},onHomeKeyDown:()=>!i&&S(n,0,{commit:!0}),onEndKeyDown:()=>!i&&S(o,y.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:r}=e;if(!i){let e=ai.includes(t.key)||t.shiftKey&&as.includes(t.key),n=x.current;S(y[n]+a*(e?10:1)*r,n,{commit:!0})}}})})})})});ab.displayName=ad;var[ax,aw]=ah(ad,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ay=v.forwardRef((e,t)=>{let{min:r,max:n,dir:o,inverted:a,onSlideStart:l,onSlideMove:i,onSlideEnd:s,onStepKeyDown:u,...d}=e,[c,f]=v.useState(null),p=y(t,e=>f(e)),h=v.useRef(void 0),m=e1(o),g="ltr"===m,x=g&&!a||!g&&a;function w(e){let t=h.current||c.getBoundingClientRect(),o=aM([0,t.width],x?[r,n]:[n,r]);return h.current=t,o(e-t.left)}return(0,b.jsx)(ax,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:(0,b.jsx)(aR,{dir:m,"data-orientation":"horizontal",...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=w(e.clientX);null==l||l(t)},onSlideMove:e=>{let t=w(e.clientX);null==i||i(t)},onSlideEnd:()=>{h.current=void 0,null==s||s()},onStepKeyDown:e=>
1{let t=au[x?"from-left":"from-right"].includes(e.key);null==u||u({event:e,direction:t?-1:1})}})})}),ak=v.forwardRef((e,t)=>{let{min:r,max:n,inverted:o,onSlideStart:a,onSlideMove:l,onSlideEnd:i,onStepKeyDown:s,...u}=e,d=v.useRef(null),c=y(t,d),f=v.useRef(void 0),p=!o;function h(e){let t=f.current||d.current.getBoundingClientRect(),o=aM([0,t.height],p?[n,r]:[r,n]);return f.current=t,o(e-t.top)}return(0,b.jsx)(ax,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:(0,b.jsx)(aR,{"data-orientation":"vertical",...u,ref:c,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=h(e.clientY);null==a||a(t)},onSlideMove:e=>{let t=h(e.clientY);null==l||l(t)},onSlideEnd:()=>{f.current=void 0,null==i||i()},onStepKeyDown:e=>{let t=au[p?"from-bottom":"from-top"].includes(e.key);null==s||s({event:e,direction:t?-1:1})}})})}),aR=v.forwardRef((e,t)=>{let{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:l,onEndKeyDown:i,onStepKeyDown:s,...u}=e,d=av(ad,r);return(0,b.jsx)(eM.span,{...u,ref:t,onKeyDown:ek(e.onKeyDown,e=>{"Home"===e.key?(l(e),e.preventDefault()):"End"===e.key?(i(e),e.preventDefault()):ai.concat(as).includes(e.key)&&(s(e),e.preventDefault())}),onPointerDown:ek(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():n(e)}),onPointerMove:ek(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:ek(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),aS="SliderTrack",aN=v.forwardRef((e,t)=>{let{__scopeSlider:r,...n}=e,o=av(aS,r);return(0,b.jsx)(eM.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:t})});aN.displayName=aS;var aj="SliderRange",aE=v.forwardRef((e,t)=>{let{__scopeSlider:r,...n}=e,o=av(aj,r),a=aw(aj,r),l=y(t,v.useRef(null)),i=o.values.length,s=o.values.map(e=>aD(e,o.min,o.max)),u=i>1?Math.min(...s):0,d=100-Math.max(...s);return(0,b.jsx)(eM.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...n,ref:l,style:{...e.style,[a.startEdge]:u+"%",[a.endEdge]:d+"%"}})});aE.displayName=aj;var aC="SliderThumb",aT=v.forwardRef((e,t)=>{let r=af(e.__scopeSlider),[n,o]=v.useState(null),a=y(t,e=>o(e)),l=v.useMemo(()=>n?r().findIndex(e=>e.ref.current===n):-1,[r,n]);return(0,b.jsx)(aA,{...e,ref:a,index:l})}),aA=v.forwardRef((e,t)=>{var r,n,o,a,l;let i,s,{__scopeSlider:u,index:d,name:c,...f}=e,p=av(aC,u),h=aw(aC,u),[m,g]=v.useState(null),x=y(t,e=>g(e)),w=!m||p.form||!!m.closest("form"),k=eC(m),R=p.values[d],S=void 0===R?0:aD(R,p.min,p.max),N=(r=d,(n=p.values.length)>2?`Value ${r+1} of ${n}`:2===n?["Minimum","Maximum"][r]:void 0),j=null==k?void 0:k[h.size],E=j?(o=j,a=S,l=h.direction,s=aM([0,50],[0,i=o/2]),(i-s(a)*l)*l):0;return v.useEffect(()=>{if(m)return p.thumbs.add(m),()=>{p.thumbs.delete(m)}},[m,p.thumbs]),(0,b.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[h.startEdge]:`calc(${S}% + ${E}px)`},children:[(0,b.jsx)(ac.ItemSlot,{scope:e.__scopeSlider,children:(0,b.jsx)(eM.span,{role:"slider","aria-label":e["aria-label"]||N,"aria-valuemin":p.min,"aria-valuenow":R,"aria-valuemax":p.max,"aria-orientation":p.orientation,"data-orientation":p.orientation,"data-disabled":p.disabled?"":void 0,tabIndex:p.disabled?void 0:0,...f,ref:x,style:void 0===R?{display:"none"}:e.style,onFocus:ek(e.onFocus,()=>{p.valueIndexToChangeRef.current=d})})}),w&&(0,b.jsx)(aP,{name:c??(p.name?p.name+(p.values.length>1?"[]":""):void 0),form:p.form,value:R},d)]})});aT.displayName=aC;var aP=v.forwardRef((e,t)=>{let{__scopeSlider:r,value:n,...o}=e,a=v.useRef(null),l=y(a,t),i=eE(n);return v.useEffect(()=>{let e=a.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(i!==n&&t){let r=new Event("input",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[i,n]),(0,b.jsx)(eM.input,{style:{display:"none"},...o,ref:l,defaultValue:n})});function aD(e,t,r){return eV(100/(r-t)*(e-t),[0,100])}function aM(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}aP.displayName="RadioBubbleInput",v.forwardRef((e,t)=>
1{let{className:r,...n}=e,o=Array.isArray(n.value)?n.value.length:Array.isArray(n.defaultValue)?n.defaultValue.length:1;return(0,b.jsxs)(ab,{ref:t,className:eb("relative flex w-full touch-none select-none items-center",r),...n,children:[(0,b.jsx)(aN,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-muted",children:(0,b.jsx)(aE,{className:"absolute h-full bg-primary"})}),Array.from({length:o}).map((e,t)=>(0,b.jsx)(aT,{className:"block h-4 w-4 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"},t))]})}).displayName=ab.displayName;var aI=e.i(33347);function a_(){return()=>{}}var aL="Avatar",[az,aO]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],n=()=>{let t=r.map(e=>v.createContext(e));return function(r){let n=(null==r?void 0: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);o.displayName=t+"Context";let a=r.length;r=[...r,n];let l=t=>{var r;let{scope:n,children:l,...i}=t,s=(null==n||null==(r=n[e])?void 0:r[a])||o,u=v.useMemo(()=>i,Object.values(i));return(0,b.jsx)(s.Provider,{value:u,children:l})};return l.displayName=t+"Provider",[l,function(r,l){var i;let s=(null==l||null==(i=l[e])?void 0:i[a])||o,u=v.useContext(s);if(u)return u;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=t[0];if(1===t.length)return n;let o=()=>{let e=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){let r=e.reduce((e,r)=>{let{useScope:n,scopeName:o}=r,a=n(t)[`__scope${o}`];return{...e,...a}},{});return v.useMemo(()=>({[`__scope${n.scopeName}`]:r}),[r])}};return o.scopeName=n.scopeName,o}(n,...t)]}(aL),[a$,aF]=az(aL),aB=v.forwardRef((e,t)=>{let{__scopeAvatar:r,...n}=e,[o,a]=v.useState("idle");return(0,b.jsx)(a$,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:(0,b.jsx)(oH.span,{...n,ref:t})})});aB.displayName=aL;var aH="AvatarImage",aW=v.forwardRef((e,t)=>{let{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,l=aF(aH,r),i=function(e,t){let{referrerPolicy:r,crossOrigin:n}=t,o=(0,aI.useSyncExternalStore)(a_,()=>!0,()=>!1),a=v.useRef(null),l=o?(a.current||(a.current=new window.Image),a.current):null,[i,s]=v.useState(()=>aV(l,e));return eS(()=>{s(aV(l,e))},[l,e]),eS(()=>{let e=e=>()=>{s(e)};if(!l)return;let t=e("loaded"),o=e("error");return l.addEventListener("load",t),l.addEventListener("error",o),r&&(l.referrerPolicy=r),"string"==typeof n&&(l.crossOrigin=n),()=>{l.removeEventListener("load",t),l.removeEventListener("error",o)}},[l,n,r]),i}(n,a),s=e2(e=>{o(e),l.onImageLoadingStatusChange(e)});return eS(()=>{"idle"!==i&&s(i)},[i,s]),"loaded"===i?(0,b.jsx)(oH.img,{...a,ref:t,src:n}):null});aW.displayName=aH;var aK="AvatarFallback",aq=v.forwardRef((e,t)=>{let{__scopeAvatar:r,delayMs:n,...o}=e,a=aF(aK,r),[l,i]=v.useState(void 0===n);return v.useEffect(()=>{if(void 0!==n){let e=window.setTimeout(()=>i(!0),n);return()=>window.clearTimeout(e)}},[n]),l&&"loaded"!==a.imageLoadingStatus?(0,b.jsx)(oH.span,{...o,ref:t}):null});function aV(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}aq.displayName=aK,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(aB,{ref:t,className:eb("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",r),...n})}).displayName=aB.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(aW,{ref:t,className:eb("aspect-square h-full w-full",r),...n})}).displayName=aW.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(aq,{ref:t,className:eb("flex h-full w-full items-center justify-center rounded-full bg-muted",r),...n})}).displayName=aq.displayName;var aU="rovingFocusGroup.onEntryFocus",aG={bubbles:!1,cancelable:!0},aX="RovingFocusGroup",[aZ,aY,aQ]=eZ(aX),[aJ,a0]=eR(aX,[aQ]),[a1,a2]=aJ(aX),a3=v.forwardRef((e,t)=>
1(0,b.jsx)(aZ.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,b.jsx)(aZ.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,b.jsx)(a5,{...e,ref:t})})}));a3.displayName=aX;var a5=v.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:l,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:s,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...c}=e,f=v.useRef(null),p=y(t,f),h=e1(a),[m,g]=ej({prop:l,defaultProp:i??null,onChange:s,caller:aX}),[x,w]=v.useState(!1),k=e2(u),R=aY(r),S=v.useRef(!1),[N,j]=v.useState(0);return v.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(aU,k),()=>e.removeEventListener(aU,k)},[k]),(0,b.jsx)(a1,{scope:r,orientation:n,dir:h,loop:o,currentTabStopId:m,onItemFocus:v.useCallback(e=>g(e),[g]),onItemShiftTab:v.useCallback(()=>w(!0),[]),onFocusableItemAdd:v.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:v.useCallback(()=>j(e=>e-1),[]),children:(0,b.jsx)(eM.div,{tabIndex:x||0===N?-1:0,"data-orientation":n,...c,ref:p,style:{outline:"none",...e.style},onMouseDown:ek(e.onMouseDown,()=>{S.current=!0}),onFocus:ek(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!x){let t=new CustomEvent(aU,aG);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=R().filter(e=>e.focusable);a6([e.find(e=>e.active),e.find(e=>e.id===m),...e].filter(Boolean).map(e=>e.ref.current),d)}}S.current=!1}),onBlur:ek(e.onBlur,()=>w(!1))})})}),a4="RovingFocusGroupItem",a9=v.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:l,...i}=e,s=tf(),u=a||s,d=a2(a4,r),c=d.currentTabStopId===u,f=aY(r),{onFocusableItemAdd:p,onFocusableItemRemove:h,currentTabStopId:m}=d;return v.useEffect(()=>{if(n)return p(),()=>h()},[n,p,h]),(0,b.jsx)(aZ.ItemSlot,{scope:r,id:u,focusable:n,active:o,children:(0,b.jsx)(eM.span,{tabIndex:c?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:ek(e.onMouseDown,e=>{n?d.onItemFocus(u):e.preventDefault()}),onFocus:ek(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:ek(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return a8[o]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=f().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let a=o.indexOf(e.currentTarget);o=d.loop?(r=o,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(a+1)}setTimeout(()=>a6(o))}}),children:"function"==typeof l?l({isCurrentTabStop:c,hasTabStop:null!=m}):l})})});a9.displayName=a4;var a8={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function a6(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var a7="Tabs",[le,lt]=eR(a7,[a0]),lr=a0(),[ln,lo]=le(a7);v.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:l="horizontal",dir:i,activationMode:s="automatic",...u}=e,d=e1(i),[c,f]=ej({prop:n,onChange:o,defaultProp:a??"",caller:a7});return(0,b.jsx)(ln,{scope:r,baseId:tf(),value:c,onValueChange:f,orientation:l,dir:d,activationMode:s,children:(0,b.jsx)(eM.div,{dir:d,"data-orientation":l,...u,ref:t})})}).displayName=a7;var la="TabsList",ll=v.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...o}=e,a=lo(la,r),l=lr(r);return(0,b.jsx)(a3,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:n,children:(0,b.jsx)(eM.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});ll.displayName=la;var li="TabsTrigger",ls=v.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,l=lo(li,r),i=lr(r),s=lc(l.baseId,n),u=lf(l.baseId,n),d=n===l.value;return(0,b.jsx)(a9,{asChild:!0,...i,focusable:!o,active:d,children:(0,b.jsx)(eM.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s,...a,ref:t,onMouseDown:ek(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(n)}),onKeyDown:ek(e.onKeyDown,e=>
1{[" ","Enter"].includes(e.key)&&l.onValueChange(n)}),onFocus:ek(e.onFocus,()=>{let e="manual"!==l.activationMode;d||o||!e||l.onValueChange(n)})})})});ls.displayName=li;var lu="TabsContent",ld=v.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,forceMount:o,children:a,...l}=e,i=lo(lu,r),s=lc(i.baseId,n),u=lf(i.baseId,n),d=n===i.value,c=v.useRef(d);return v.useEffect(()=>{let e=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,b.jsx)(oN,{present:o||d,children:r=>{let{present:n}=r;return(0,b.jsx)(eM.div,{"data-state":d?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":s,hidden:!n,id:u,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0},children:n&&a})}})});function lc(e,t){return`${e}-trigger-${t}`}function lf(e,t){return`${e}-content-${t}`}ld.displayName=lu,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(ll,{ref:t,className:eb("flex h-auto items-center justify-start gap-0 rounded-none border-b border-border bg-transparent p-0",r),...n})}).displayName=ll.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(ls,{ref:t,className:eb("-mb-px inline-flex items-center justify-center whitespace-nowrap border-b-2 border-transparent px-4 py-2.5 text-sm font-medium text-muted-foreground transition-all hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-primary data-[state=active]:text-primary",r),...n})}).displayName=ls.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(ld,{ref:t,className:eb("mt-5 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r),...n})}).displayName=ld.displayName;var[lp,lh]=eR("Tooltip",[rT]),lm=rT(),lg="TooltipProvider",lv="tooltip.open",[lb,lx]=lp(lg),lw=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,l=v.useRef(!0),i=v.useRef(!1),s=v.useRef(0);return v.useEffect(()=>{let e=s.current;return()=>window.clearTimeout(e)},[]),(0,b.jsx)(lb,{scope:t,isOpenDelayedRef:l,delayDuration:r,onOpen:v.useCallback(()=>{window.clearTimeout(s.current),l.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>l.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:v.useCallback(e=>{i.current=e},[]),disableHoverableContent:o,children:a})};lw.displayName=lg;var ly="Tooltip",[lk,lR]=lp(ly),lS=e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:l,delayDuration:i}=e,s=lx(ly,e.__scopeTooltip),u=lm(t),[d,c]=v.useState(null),f=tf(),p=v.useRef(0),h=l??s.disableHoverableContent,m=i??s.delayDuration,g=v.useRef(!1),[x,w]=ej({prop:n,defaultProp:o??!1,onChange:e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(lv))):s.onClose(),null==a||a(e)},caller:ly}),y=v.useMemo(()=>x?g.current?"delayed-open":"instant-open":"closed",[x]),k=v.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,w(!0)},[w]),R=v.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w(!1)},[w]),S=v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,w(!0),p.current=0},m)},[m,w]);return v.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),(0,b.jsx)(rD,{...u,children:(0,b.jsx)(lk,{scope:t,contentId:f,open:x,stateAttribute:y,trigger:d,onTriggerChange:c,onTriggerEnter:v.useCallback(()=>{s.isOpenDelayedRef.current?S():k()},[s.isOpenDelayedRef,S,k]),onTriggerLeave:v.useCallback(()=>{h?R():(window.clearTimeout(p.current),p.current=0)},[R,h]),onOpen:k,onClose:R,disableHoverableContent:h,children:r})})};lS.displayName=ly;var lN="TooltipTrigger",lj=v.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,o=lR(lN,r),a=lx(lN,r),l=lm(r),i=y(t,v.useRef(null),o.onTriggerChange),s=v.useRef(!1),u=v.useRef(!1),d=v.useCallback(()=>s.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,b.jsx)(rI,{asChild:!0,...l,children:(0,b.jsx)(eM.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:i,onPointerMove:ek(e.onPointerMove,e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(o.onTriggerEnter(),u.current=!0))}),onPointerLeave:ek(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:ek(e.onPointerDown,()=>{o.open&&o.onClose(),s.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ek(e.onFocus,()=>{s.current||o.onOpen()}),onBlur:ek(e.onBlur,o.onClose),onClick:ek(e.onClick,o.onClose)})})});lj.displayName=lN;var lE="TooltipPortal",[lC,lT]=lp(lE,{forceMount:void 0}),lA=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=lR(lE,t);return(0,b.jsx)(lC,{scope:t,forceMount:r,children:(0,b.jsx)(oN,{present:r||a.open,children:(0,b.jsx)(rq,{asChild:!0,container:o,children:n})})})};lA.displayName=lE;var lP="TooltipContent",lD=v.forwardRef((e,t)=>
1{let r=lT(lP,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,l=lR(lP,e.__scopeTooltip);return(0,b.jsx)(oN,{present:n||l.open,children:l.disableHoverableContent?(0,b.jsx)(lz,{side:o,...a,ref:t}):(0,b.jsx)(lM,{side:o,...a,ref:t})})}),lM=v.forwardRef((e,t)=>{let r=lR(lP,e.__scopeTooltip),n=lx(lP,e.__scopeTooltip),o=v.useRef(null),a=y(t,o),[l,i]=v.useState(null),{trigger:s,onClose:u}=r,d=o.current,{onPointerInTransitChange:c}=n,f=v.useCallback(()=>{i(null),c(!1)},[c]),p=v.useCallback((e,t)=>{let r,n=e.currentTarget,o={x:e.clientX,y:e.clientY},a=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(o,n.getBoundingClientRect());i(((r=[...function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(o,a),...function(e){let{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(r))),c(!0)},[c]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(s&&d){let e=e=>p(e,d),t=e=>p(e,s);return s.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{s.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[s,d,p,f]),v.useEffect(()=>{if(l){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==s?void 0:s.contains(t))||(null==d?void 0:d.contains(t)),o=!function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let l=t[e],i=t[a],s=l.x,u=l.y,d=i.x,c=i.y;u>n!=c>n&&r<(d-s)*(n-u)/(c-u)+s&&(o=!o)}return o}(r,l);n?f():o&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[s,d,l,u,f]),(0,b.jsx)(lz,{...e,ref:a})}),[lI,l_]=lp(ly,{isInside:!1}),lL=((t=e=>{let{children:t}=e;return(0,b.jsx)(b.Fragment,{children:t})}).displayName="TooltipContent.Slottable",t.__radixId=eP,t),lz=v.forwardRef((e,t)=>{let{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:l,...i}=e,s=lR(lP,r),u=lm(r),{onClose:d}=s;return v.useEffect(()=>(document.addEventListener(lv,d),()=>document.removeEventListener(lv,d)),[d]),v.useEffect(()=>{if(s.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(s.trigger))&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[s.trigger,d]),(0,b.jsx)(e4,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,b.jsxs)(rO,{"data-state":s.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,b.jsx)(lL,{children:n}),(0,b.jsx)(lI,{scope:r,isInside:!0,children:(0,b.jsx)(rU,{id:s.contentId,role:"tooltip",children:o||n})})]})})});lD.displayName=lP;var lO="TooltipArrow";v.forwardRef((e,t)=>
1{let{__scopeTooltip:r,...n}=e,o=lm(r);return l_(lO,r).isInside?null:(0,b.jsx)(rB,{...o,...n,ref:t})}).displayName=lO;let l$=v.forwardRef((e,t)=>{let{className:r,sideOffset:n=4,...o}=e;return(0,b.jsx)(lA,{children:(0,b.jsx)(lD,{ref:t,sideOffset:n,className:eb("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",r),...o})})});l$.displayName=lD.displayName;var lF=["Enter"," "],lB=["ArrowUp","PageDown","End"],lH=["ArrowDown","PageUp","Home",...lB],lW={ltr:[...lF,"ArrowRight"],rtl:[...lF,"ArrowLeft"]},lK={ltr:["ArrowLeft"],rtl:["ArrowRight"]},lq="Menu",[lV,lU,lG]=eZ(lq),[lX,lZ]=eR(lq,[lG,rT,a0]),lY=rT(),lQ=a0(),[lJ,l0]=lX(lq),[l1,l2]=lX(lq),l3=v.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=lY(r);return(0,b.jsx)(rI,{...o,...n,ref:t})});l3.displayName="MenuAnchor";var l5="MenuPortal",[l4,l9]=lX(l5,{forceMount:void 0}),l8=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=l0(l5,t);return(0,b.jsx)(l4,{scope:t,forceMount:r,children:(0,b.jsx)(oN,{present:r||a.open,children:(0,b.jsx)(rq,{asChild:!0,container:o,children:n})})})};l8.displayName=l5;var l6="MenuContent",[l7,ie]=lX(l6),it=v.forwardRef((e,t)=>{let r=l9(l6,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=l0(l6,e.__scopeMenu),l=l2(l6,e.__scopeMenu);return(0,b.jsx)(lV.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(oN,{present:n||a.open,children:(0,b.jsx)(lV.Slot,{scope:e.__scopeMenu,children:l.modal?(0,b.jsx)(ir,{...o,ref:t}):(0,b.jsx)(io,{...o,ref:t})})})})}),ir=v.forwardRef((e,t)=>{let r=l0(l6,e.__scopeMenu),n=v.useRef(null),o=y(t,n);return v.useEffect(()=>{let e=n.current;if(e)return r0(e)},[]),(0,b.jsx)(il,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ek(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),io=v.forwardRef((e,t)=>{let r=l0(l6,e.__scopeMenu);return(0,b.jsx)(il,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),ia=eA("MenuContent.ScrollLock"),il=v.forwardRef((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:l,disableOutsidePointerEvents:i,onEntryFocus:s,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,...m}=e,g=l0(l6,r),x=l2(l6,r),w=lY(r),k=lQ(r),R=lU(r),[S,N]=v.useState(null),j=v.useRef(null),E=y(t,j,g.onContentChange),C=v.useRef(0),T=v.useRef(""),A=v.useRef(0),P=v.useRef(null),D=v.useRef("right"),M=v.useRef(0),I=h?nT:v.Fragment;v.useEffect(()=>()=>window.clearTimeout(C.current),[]),e7();let _=v.useCallback(e=>{var t,r,n,o;return D.current===(null==(t=P.current)?void 0:t.side)&&(n=e,!!(o=null==(r=P.current)?void 0:r.area)&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let l=t[e],i=t[a],s=l.x,u=l.y,d=i.x,c=i.y;u>n!=c>n&&r<(d-s)*(n-u)/(c-u)+s&&(o=!o)}return o}({x:n.clientX,y:n.clientY},o))},[]);return(0,b.jsx)(l7,{scope:r,searchRef:T,onItemEnter:v.useCallback(e=>{_(e)&&e.preventDefault()},[_]),onItemLeave:v.useCallback(e=>{var t;_(e)||(null==(t=j.current)||t.focus(),N(null))},[_]),onTriggerLeave:v.useCallback(e=>{_(e)&&e.preventDefault()},[_]),pointerGraceTimerRef:A,onPointerGraceIntentChange:v.useCallback(e=>{P.current=e},[]),children:(0,b.jsx)(I,{...h?{as:ia,allowPinchZoom:!0}:void 0,children:(0,b.jsx)(to,{asChild:!0,trapped:o,onMountAutoFocus:ek(a,e=>{var t;e.preventDefault(),null==(t=j.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:(0,b.jsx)(e4,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:f,onDismiss:p,children:(0,b.jsx)(a3,{asChild:!0,...k,dir:x.dir,orientation:"vertical",loop:n,currentTabStopId:S,onCurrentTabStopIdChange:N,onEntryFocus:ek(s,e=>{x.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,b.jsx)(rO,{role:"menu","aria-orientation":"vertical","data-state":iM(g.open),"data-radix-menu-content":"",dir:x.dir,...w,...m,ref:E,style:{outline:"none",...m.style},onKeyDown:ek(m.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.ke
1y.length;if(t){var o,a,l;let t,i,s,u,d,c;"Tab"===e.key&&e.preventDefault(),!r&&n&&(o=e.key,t=T.current+o,i=R().filter(e=>!e.disabled),s=document.activeElement,u=null==(a=i.find(e=>e.ref.current===s))?void 0:a.textValue,d=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,l=(n=Math.max(a,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(l=l.filter(e=>e!==r));let i=l.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return i!==r?i:void 0}(i.map(e=>e.textValue),t,u),c=null==(l=i.find(e=>e.textValue===d))?void 0:l.ref.current,function e(t){T.current=t,window.clearTimeout(C.current),""!==t&&(C.current=window.setTimeout(()=>e(""),1e3))}(t),c&&setTimeout(()=>c.focus()))}let i=j.current;if(e.target!==i||!lH.includes(e.key))return;e.preventDefault();let s=R().filter(e=>!e.disabled).map(e=>e.ref.current);lB.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(s)}),onBlur:ek(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(C.current),T.current="")}),onPointerMove:ek(e.onPointerMove,iL(e=>{let t=e.target,r=M.current!==e.clientX;e.currentTarget.contains(t)&&r&&(D.current=e.clientX>M.current?"right":"left",M.current=e.clientX)}))})})})})})})});it.displayName=l6;var ii=v.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(eM.div,{role:"group",...n,ref:t})});ii.displayName="MenuGroup";var is=v.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(eM.div,{...n,ref:t})});is.displayName="MenuLabel";var iu="MenuItem",id="menu.itemSelect",ic=v.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n,...o}=e,a=v.useRef(null),l=l2(iu,e.__scopeMenu),i=ie(iu,e.__scopeMenu),s=y(t,a),u=v.useRef(!1);return(0,b.jsx)(ip,{...o,ref:s,disabled:r,onClick:ek(e.onClick,()=>{let e=a.current;if(!r&&e){let t=new CustomEvent(id,{bubbles:!0,cancelable:!0});e.addEventListener(id,e=>null==n?void 0:n(e),{once:!0}),eI(e,t),t.defaultPrevented?u.current=!1:l.onClose()}}),onPointerDown:t=>{var r;null==(r=e.onPointerDown)||r.call(e,t),u.current=!0},onPointerUp:ek(e.onPointerUp,e=>{var t;u.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:ek(e.onKeyDown,e=>{let t=""!==i.searchRef.current;r||t&&" "===e.key||lF.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ic.displayName=iu;var ip=v.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,l=ie(iu,r),i=lQ(r),s=v.useRef(null),u=y(t,s),[d,c]=v.useState(!1),[f,p]=v.useState("");return v.useEffect(()=>{let e=s.current;e&&p((e.textContent??"").trim())},[a.children]),(0,b.jsx)(lV.ItemSlot,{scope:r,disabled:n,textValue:o??f,children:(0,b.jsx)(a9,{asChild:!0,...i,focusable:!n,children:(0,b.jsx)(eM.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:u,onPointerMove:ek(e.onPointerMove,iL(e=>{n?l.onItemLeave(e):(l.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ek(e.onPointerLeave,iL(e=>l.onItemLeave(e))),onFocus:ek(e.onFocus,()=>c(!0)),onBlur:ek(e.onBlur,()=>c(!1))})})})}),ih=v.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,b.jsx)(ik,{scope:e.__scopeMenu,checked:r,children:(0,b.jsx)(ic,{role:"menuitemcheckbox","aria-checked":iI(r)?"mixed":r,...o,ref:t,"data-state":i_(r),onSelect:ek(o.onSelect,()=>null==n?void 0:n(!!iI(r)||!r),{checkForDefaultPrevented:!1})})})});ih.displayName="MenuCheckboxItem";var im="MenuRadioGroup",[ig,iv]=lX(im,{value:void 0,onValueChange:()=>{}}),ib=v.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,a=e2(n);return(0,b.jsx)(ig,{scope:e.__scopeMenu,value:r,onValueChange:a,children:(0,b.jsx)(ii,{...o,ref:t})})});ib.displayName=im;var ix="MenuRadioItem",iw=v.forwardRef((e,t)=>{let{value:r,...n}=e,o=iv(ix,e.__scopeMenu),a=r===o.value;return(0,b.jsx)(ik,{scope:e.__scopeMenu,checked:a,children:(0,b.jsx)(ic,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":i_(a),onSelect:ek(n.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,r)},{checkForDefaultPrevented:!1})})})});iw.displayName=ix;var iy="MenuItemIndicator",[ik,iR]=lX(iy,{checked:!1}
1),iS=v.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,a=iR(iy,r);return(0,b.jsx)(oN,{present:n||iI(a.checked)||!0===a.checked,children:(0,b.jsx)(eM.span,{...o,ref:t,"data-state":i_(a.checked)})})});iS.displayName=iy;var iN=v.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(eM.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});iN.displayName="MenuSeparator";var ij=v.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=lY(r);return(0,b.jsx)(rB,{...o,...n,ref:t})});ij.displayName="MenuArrow";var[iE,iC]=lX("MenuSub"),iT="MenuSubTrigger",iA=v.forwardRef((e,t)=>{let r=l0(iT,e.__scopeMenu),n=l2(iT,e.__scopeMenu),o=iC(iT,e.__scopeMenu),a=ie(iT,e.__scopeMenu),l=v.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:s}=a,u={__scopeMenu:e.__scopeMenu},d=v.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return v.useEffect(()=>d,[d]),v.useEffect(()=>{let e=i.current;return()=>{window.clearTimeout(e),s(null)}},[i,s]),(0,b.jsx)(l3,{asChild:!0,...u,children:(0,b.jsx)(ip,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":iM(r.open),...e,ref:w(t,o.onTriggerChange),onClick:t=>{var n;null==(n=e.onClick)||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ek(e.onPointerMove,iL(t=>{a.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||l.current||(a.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100)))})),onPointerLeave:ek(e.onPointerLeave,iL(e=>{var t,n;d();let o=null==(t=r.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(n=r.content)?void 0:n.dataset.side,l="right"===t,s=o[l?"left":"right"],u=o[l?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(l?-5:5),y:e.clientY},{x:s,y:o.top},{x:u,y:o.top},{x:u,y:o.bottom},{x:s,y:o.bottom}],side:t}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:ek(e.onKeyDown,t=>{let o=""!==a.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&lW[n.dir].includes(t.key)){var l;r.onOpenChange(!0),null==(l=r.content)||l.focus(),t.preventDefault()}})})})});iA.displayName=iT;var iP="MenuSubContent",iD=v.forwardRef((e,t)=>{let r=l9(l6,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=l0(l6,e.__scopeMenu),l=l2(l6,e.__scopeMenu),i=iC(iP,e.__scopeMenu),s=v.useRef(null),u=y(t,s);return(0,b.jsx)(lV.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(oN,{present:n||a.open,children:(0,b.jsx)(lV.Slot,{scope:e.__scopeMenu,children:(0,b.jsx)(il,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:u,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;l.isUsingKeyboardRef.current&&(null==(t=s.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:ek(e.onFocusOutside,e=>{e.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:ek(e.onEscapeKeyDown,e=>{l.onClose(),e.preventDefault()}),onKeyDown:ek(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=lK[l.dir].includes(e.key);if(t&&r){var n;a.onOpenChange(!1),null==(n=i.trigger)||n.focus(),e.preventDefault()}})})})})})});function iM(e){return e?"open":"closed"}function iI(e){return"indeterminate"===e}function i_(e){return iI(e)?"indeterminate":e?"checked":"unchecked"}function iL(e){return t=>"mouse"===t.pointerType?e(t):void 0}iD.displayName=iP;var iz="DropdownMenu",[iO,i$]=eR(iz,[lZ]),iF=lZ(),[iB,iH]=iO(iz),iW="DropdownMenuTrigger";v.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=iH(iW,r),l=iF(r);return(0,b.jsx)(l3,{asChild:!0,...l,children:(0,b.jsx)(eM.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:w(t,a.triggerRef),onPointerDown:ek(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:ek(e.onKeyDown,e=>
1{!n&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})}).displayName=iW;var iK=e=>{let{__scopeDropdownMenu:t,...r}=e,n=iF(t);return(0,b.jsx)(l8,{...n,...r})};iK.displayName="DropdownMenuPortal";var iq="DropdownMenuContent",iV=v.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=iH(iq,r),a=iF(r),l=v.useRef(!1);return(0,b.jsx)(it,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:ek(e.onCloseAutoFocus,e=>{var t;l.current||null==(t=o.triggerRef.current)||t.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:ek(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!o.modal||n)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});iV.displayName=iq,v.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=iF(r);return(0,b.jsx)(ii,{...o,...n,ref:t})}).displayName="DropdownMenuGroup";var iU=v.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=iF(r);return(0,b.jsx)(is,{...o,...n,ref:t})});iU.displayName="DropdownMenuLabel";var iG=v.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=iF(r);return(0,b.jsx)(ic,{...o,...n,ref:t})});iG.displayName="DropdownMenuItem";var iX=v.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=iF(r);return(0,b.jsx)(ih,{...o,...n,ref:t})});iX.displayName="DropdownMenuCheckboxItem",v.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=iF(r);return(0,b.jsx)(ib,{...o,...n,ref:t})}).displayName="DropdownMenuRadioGroup";var iZ=v.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=iF(r);return(0,b.jsx)(iw,{...o,...n,ref:t})});iZ.displayName="DropdownMenuRadioItem";var iY=v.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=iF(r);return(0,b.jsx)(iS,{...o,...n,ref:t})});iY.displayName="DropdownMenuItemIndicator";var iQ=v.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=iF(r);return(0,b.jsx)(iN,{...o,...n,ref:t})});iQ.displayName="DropdownMenuSeparator",v.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=iF(r);return(0,b.jsx)(ij,{...o,...n,ref:t})}).displayName="DropdownMenuArrow";var iJ=v.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=iF(r);return(0,b.jsx)(iA,{...o,...n,ref:t})});iJ.displayName="DropdownMenuSubTrigger";var i0=v.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=iF(r);return(0,b.jsx)(iD,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});i0.displayName="DropdownMenuSubContent";var i1=e.i(801647);let i2=(0,ox.default)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);v.forwardRef((e,t)=>{let{className:r,inset:n,children:o,...a}=e;return(0,b.jsxs)(iJ,{ref:t,className:eb("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",r),...a,children:[o,(0,b.jsx)(i1.ChevronRight,{className:"ml-auto"})]})}).displayName=iJ.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(i0,{ref:t,className:eb("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",r),...n})}).displayName=i0.displayName,v.forwardRef((e,t)=>{let{className:r,sideOffset:n=4,...o}=e;return(0,b.jsx)(iK,{children:(0,b.jsx)(iV,{ref:t,sideOffset:n,className:eb("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",r),...o})})}).displayName=iV.displayName,v.forwardRef((e,t)=>{let{className:r,inset:n,...o}=e;return(0,b.jsx)(iG,{ref:t,className:eb("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",n&&"pl-8",r),...o})}).displayName=iG.displayName,v.forwardRef((e,t)=>{let{className:r,children:n,checked:o,...a}=e;return(0,b.jsxs)(iX,{ref:t,className:eb("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),checked:o,...a,children:[(0,b.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,b.jsx)(iY,{children:(0,b.jsx)(ow,{className:"h-4 w-4"})})}),n]})}).displayName=iX.displayName,v.forwardRef((e,t)=>{let{className:r,children:n,...o}=e;return(0,b.jsxs)(iZ,{ref:t,className:eb("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...o,children:[(0,b.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,b.jsx)(iY,{children:(0,b.jsx)(i2,{className:"h-2 w-2 fill-current"})})}),n]})}).displayName=iZ.displayName,v.forwardRef((e,t)=>{let{className:r,inset:n,...o}=e;return(0,b.jsx)(iU,{ref:t,className:eb("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",r),...o})}).displayName=iU.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(iQ,{ref:t,className:eb("-mx-1 my-1 h-px bg-muted",r),...n})}).displayName=iQ.displayName;var i3=/[\\\/_+.#"@\[\(\{&]/,i5=/[\\\/_+.#"@\[\(\{&]/g,i4=/[\s-]/,i9=/[\s-]/g;function i8(e){return e.toLowerCase().replace(i9," ")}var i6="Dialog",[i7,se]=eR(i6),[st,sr]=i7(i6),sn=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:l=!0}=e,i=v.useRef(null),s=v.useRef(null),[u,d]=ej({prop:n,defaultProp:o??!1,onChange:a,caller:i6});return(0,b.jsx)(st,{scope:t,triggerRef:i,contentRef:s,contentId:tf(),titleId:tf(),descriptionId:tf(),open:u,onOpenChange:d,onOpenToggle:v.useCallback(()=>d(e=>!e),[d]),modal:l,children:r})};sn.displayName=i6;var so="DialogTrigger";v.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=sr(so,r),a=y(t,o.triggerRef);return(0,b.jsx)(eM.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sS(o.open),...n,ref:a,onClick:ek(e.onClick,o.onOpenToggle)})}).displayName=so;var sa="DialogPortal",[sl,si]=i7(sa,{forceMount:void 0}),ss=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=sr(sa,t);return(0,b.jsx)(sl,{scope:t,forceMount:r,children:v.Children.map(n,e=>(0,b.jsx)(oN,{present:r||a.open,children:(0,b.jsx)(rq,{asChild:!0,container:o,children:e})}))})};ss.displayName=sa;var su="DialogOverlay",sd=v.forwardRef((e,t)=>{let r=si(su,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=sr(su,e.__scopeDialog);return a.modal?(0,b.jsx)(oN,{present:n||a.open,children:(0,b.jsx)(sf,{...o,ref:t})}):null});sd.displayName=su;var sc=eA("DialogOverlay.RemoveScroll"),sf=v.forwardRef((e,t)=>
1{let{__scopeDialog:r,...n}=e,o=sr(su,r);return(0,b.jsx)(nT,{as:sc,allowPinchZoom:!0,shards:[o.contentRef],children:(0,b.jsx)(eM.div,{"data-state":sS(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),sp="DialogContent",sh=v.forwardRef((e,t)=>{let r=si(sp,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=sr(sp,e.__scopeDialog);return(0,b.jsx)(oN,{present:n||a.open,children:a.modal?(0,b.jsx)(sm,{...o,ref:t}):(0,b.jsx)(sg,{...o,ref:t})})});sh.displayName=sp;var sm=v.forwardRef((e,t)=>{let r=sr(sp,e.__scopeDialog),n=v.useRef(null),o=y(t,r.contentRef,n);return v.useEffect(()=>{let e=n.current;if(e)return r0(e)},[]),(0,b.jsx)(sv,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ek(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:ek(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:ek(e.onFocusOutside,e=>e.preventDefault())})}),sg=v.forwardRef((e,t)=>{let r=sr(sp,e.__scopeDialog),n=v.useRef(!1),o=v.useRef(!1);return(0,b.jsx)(sv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,l;null==(a=e.onCloseAutoFocus)||a.call(e,t),t.defaultPrevented||(n.current||null==(l=r.triggerRef.current)||l.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{var a,l;null==(a=e.onInteractOutside)||a.call(e,t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let i=t.target;(null==(l=r.triggerRef.current)?void 0:l.contains(i))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),sv=v.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...l}=e,i=sr(sp,r),s=v.useRef(null),u=y(t,s);return e7(),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(to,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,b.jsx)(e4,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":sS(i.open),...l,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(sC,{titleId:i.titleId}),(0,b.jsx)(sT,{contentRef:s,descriptionId:i.descriptionId})]})]})}),sb="DialogTitle",sx=v.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=sr(sb,r);return(0,b.jsx)(eM.h2,{id:o.titleId,...n,ref:t})});sx.displayName=sb;var sw="DialogDescription",sy=v.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=sr(sw,r);return(0,b.jsx)(eM.p,{id:o.descriptionId,...n,ref:t})});sy.displayName=sw;var sk="DialogClose",sR=v.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=sr(sk,r);return(0,b.jsx)(eM.button,{type:"button",...n,ref:t,onClick:ek(e.onClick,()=>o.onOpenChange(!1))})});function sS(e){return e?"open":"closed"}sR.displayName=sk;var sN="DialogTitleWarning",[sj,sE]=(c={contentName:sp,titleName:sb,docsSlug:"dialog"},r=v.createContext(c),(n=e=>{let{children:t,...n}=e,o=v.useMemo(()=>n,Object.values(n));return(0,b.jsx)(r.Provider,{value:o,children:t})}).displayName=sN+"Provider",[n,function(e){let t=v.useContext(r);if(t)return t;if(void 0!==c)return c;throw Error(`\`${e}\` must be used within \`${sN}\``)}]),sC=e=>{let{titleId:t}=e,r=sE(sN),n=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users. 2 3If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component. 4 5For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return v.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},sT=e=>{let{contentRef:t,descriptionId:r}=e,n=sE("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return v.useEffect(()=>{var e;let n=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");r&&n&&(document.getElementById(r)||console.warn(o))},[o,t,r]),null},sA='[cmdk-group=""]',sP='[cmdk-group-items=""]',sD='[cmdk-item=""]',sM=`${sD}:not([aria-disabled="true"])`,sI="cmdk-item-select",s_="data-value",sL=(e,t,r)=>{var n;return n=e,function e(t,r,n,o,a,l,i){if(l===r.length)return a===t.length?1:.99;var s=`${a},${l}`;if(void 0!==i[s])return i[s];for(var u,d,c,f,p=o.charAt(l),h=n.indexOf(p,a),m=0;h>=0;)(u=e(t,r,n,o,h+1,l+1,i))>m&&(h===a?u*=1:i3.test(t.charAt(h-1))?(u*=.8,(c=t.slice(a,h-1).match(i5))&&a>0&&(u*=Math.pow(.999,c.length))):i4.test(t.charAt(h-1))?(u*=.9,(f=t.slice(a,h-1).match(i9))&&a>0&&(u*=Math.pow(.999,f.length))):(u*=.17,a>0&&(u*=Math.pow(.999,h-a))),t.charAt(h)!==r.charAt(l)&&(u*=.9999)),(u<.1&&n.charAt(h-1)===o.charAt(l+1)||o.charAt(l+1)===o.charAt(l)&&n.charAt(h-1)!==o.charAt(l))&&.1*(d=e(t,r,n,o,h+1,l+2,i))>u&&(u=.1*d),u>m&&(m=u),h=n.indexOf(p,h+1);return i[s]=m,m}(n=r&&r.length>0?`${n+" "+r.join(" ")}`:n,t,i8(n),i8(t),0,0,{})},sz=v.createContext(void 0),sO=v.createContext(void 0),s$=v.createContext(void 0),sF=v.forwardRef((e,t)=>
5{let r=sZ(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=sZ(()=>new Set),o=sZ(()=>new Map),a=sZ(()=>new Map),l=sZ(()=>new Set),i=sG(e),{label:s,children:u,value:d,onValueChange:c,filter:f,shouldFilter:p,loop:h,disablePointerSelection:m=!1,vimBindings:g=!0,...b}=e,x=tf(),w=tf(),y=tf(),k=v.useRef(null),R=sJ();sX(()=>{if(void 0!==d){let e=d.trim();r.current.value=e,S.emit()}},[d]),sX(()=>{R(6,A)},[]);let S=v.useMemo(()=>({subscribe:e=>(l.current.add(e),()=>l.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var o,a,l,s;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)T(),E(),R(1,C);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(y);e?e.focus():null==(o=document.getElementById(x))||o.focus()}if(R(7,()=>{var e;r.current.selectedItemId=null==(e=P())?void 0:e.id,S.emit()}),n||R(5,A),(null==(a=i.current)?void 0:a.value)!==void 0){null==(s=(l=i.current).onValueChange)||s.call(l,null!=t?t:"");return}}S.emit()}},emit:()=>{l.current.forEach(e=>e())}}),[]),N=v.useMemo(()=>({value:(e,t,n)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,j(t,n)),R(2,()=>{E(),S.emit()}))},item:(e,t)=>(n.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),R(3,()=>{T(),E(),r.current.value||C(),S.emit()}),()=>{a.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=P();R(4,()=>{T(),(null==t?void 0:t.getAttribute("id"))===e&&C(),S.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>i.current.shouldFilter,label:s||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:x,inputId:y,labelId:w,listInnerRef:k}),[]);function j(e,t){var n,o;let a=null!=(o=null==(n=i.current)?void 0:n.filter)?o:sL;return e?a(e,r.current.search,t):0}function E(){if(!r.current.search||!1===i.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=o.current.get(r),a=0;n.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([r,a])});let n=k.current;D().sort((t,r)=>{var n,o;let a=t.getAttribute("id"),l=r.getAttribute("id");return(null!=(n=e.get(l))?n:0)-(null!=(o=e.get(a))?o:0)}).forEach(e=>{let t=e.closest(sP);t?t.appendChild(e.parentElement===t?e:e.closest(`${sP} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${sP} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=k.current)?void 0:t.querySelector(`${sA}[${s_}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function C(){let e=D().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(s_);S.setState("value",t||void 0)}function T(){var e,t,l,s;if(!r.current.search||!1===i.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let u=0;for(let o of n.current){let n=j(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(l=a.current.get(o))?void 0:l.keywords)?s:[]);r.current.filtered.items.set(o,n),n>0&&u++}for(let[e,t]of o.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=u}function A(){var e,t,r;let n=P();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(sA))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function P(){var e;return null==(e=k.current)?void 0:e.querySelector(`${sD}[aria-selected="true"]`)}function D(){var e;return Array.from((null==(e=k.current)?void 0:e.querySelectorAll(sM))||[])}function M(e){let t=D()[e];t&&S.setState("value",t.getAttribute(s_))}function I(e){var t;let r=P(),n=D(),o=n.findIndex(e=>e===r),a=n[o+e];null!=(t=i.current)&&t.loop&&(a=o+e<0?n[n.length-1]:o+e===n.length?n[0]:n[o+e]),a&&S.setState("value",a.getAttribute(s_))}function _(e){let t=P(),r=null==t?void 0:t.closest(sA),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,sA):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,sA))?void 0:r.querySelector(sM);n?S.setState("value",n.getAttribute(s_)):I(e)}let L=()=>M(D().length-1),z=e=>{e.preventDefault(),e.metaKey?L():e.altKey?_(1):I(1)},O=e=>{e.preventDefault(),e.metaKey?M(0):e.altKey?_(-1):I(-1)};return v.createElement(oH.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=b.onKeyDown)||t.call(b,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":g&&e.ctrlKey&&z(e);break;case"ArrowDown":z(e);break;case"p":case"k":g&&e.ctrlKey&&O(e);break;case"ArrowUp":O(e);break;case"Home":e.preventDefault(),M(0);break;case"End":e.preventDefault(),L();break;case"Enter":{e.preventDefault();let t=P();if(t){let e=new Event(sI);t.dispatchEvent(e)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:s1},s),s0(e,e=>v.createElement(sO.Provider,{value:S},v.createElement(sz.Provider,{value:N},e))))}),sB=v.forwardRef((e,t)=>
5{var r,n;let o=tf(),a=v.useRef(null),l=v.useContext(s$),i=v.useContext(sz),s=sG(e),u=null!=(n=null==(r=s.current)?void 0:r.forceMount)?n:null==l?void 0:l.forceMount;sX(()=>{if(!u)return i.item(o,null==l?void 0:l.id)},[u]);let d=sQ(o,a,[e.value,e.children,a],e.keywords),c=v.useContext(sO),f=sY(e=>e.value&&e.value===d.current),p=sY(e=>!!u||!1===i.filter()||!e.search||e.filtered.items.get(o)>0);function h(){var e,t;m(),null==(t=(e=s.current).onSelect)||t.call(e,d.current)}function m(){c.setState("value",d.current,!0)}if(v.useEffect(()=>{let t=a.current;if(!(!t||e.disabled))return t.addEventListener(sI,h),()=>t.removeEventListener(sI,h)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:g,value:b,onSelect:x,forceMount:y,keywords:k,...R}=e;return v.createElement(oH.div,{ref:w(a,t),...R,id:o,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||i.getDisablePointerSelection()?void 0:m,onClick:g?void 0:h},e.children)}),sH=v.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,l=tf(),i=v.useRef(null),s=v.useRef(null),u=tf(),d=v.useContext(sz),c=sY(e=>!!o||!1===d.filter()||!e.search||e.filtered.groups.has(l));sX(()=>d.group(l),[]),sQ(l,i,[e.value,e.heading,s]);let f=v.useMemo(()=>({id:l,forceMount:o}),[o]);return v.createElement(oH.div,{ref:w(i,t),...a,"cmdk-group":"",role:"presentation",hidden:!c||void 0},r&&v.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),s0(e,e=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},v.createElement(s$.Provider,{value:f},e))))}),sW=v.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=v.useRef(null),a=sY(e=>!e.search);return r||a?v.createElement(oH.div,{ref:w(o,t),...n,"cmdk-separator":"",role:"separator"}):null}),sK=v.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=null!=e.value,a=v.useContext(sO),l=sY(e=>e.search),i=sY(e=>e.selectedItemId),s=v.useContext(sz);return v.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),v.createElement(oH.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":i,id:s.inputId,type:"text",value:o?e.value:l,onChange:e=>{o||a.setState("search",e.target.value),null==r||r(e.target.value)}})}),sq=v.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=v.useRef(null),l=v.useRef(null),i=sY(e=>e.selectedItemId),s=v.useContext(sz);return v.useEffect(()=>{if(l.current&&a.current){let e=l.current,t=a.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),v.createElement(oH.div,{ref:w(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:s.listId},s0(e,e=>v.createElement("div",{ref:w(l,s.listInnerRef),"cmdk-list-sizer":""},e)))}),sV=v.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:l,...i}=e;return v.createElement(sn,{open:r,onOpenChange:n},v.createElement(ss,{container:l},v.createElement(sd,{"cmdk-overlay":"",className:o}),v.createElement(sh,{"aria-label":e.label,"cmdk-dialog":"",className:a},v.createElement(sF,{ref:t,...i}))))}),sU=Object.assign(sF,{List:sq,Item:sB,Input:sK,Group:sH,Separator:sW,Dialog:sV,Empty:v.forwardRef((e,t)=>sY(e=>0===e.filtered.count)?v.createElement(oH.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:v.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return v.createElement(oH.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},s0(e,e=>v.createElement("div",{"aria-hidden":!0},e)))})});function sG(e){let t=v.useRef(e);return sX(()=>{t.current=e}),t}var sX="u"<typeof window?v.useEffect:v.useLayoutEffect;function sZ(e){let t=v.useRef();return void 0===t.current&&(t.current=e()),t}function sY(e){let t=v.useContext(sO),r=()=>e(t.snapshot());return v.useSyncExternalStore(t.subscribe,r,r)}function sQ(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=v.useRef(),a=v.useContext(sz);return sX(()=>{var l;let i=(()=>{var e;
5for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),s=n.map(e=>e.trim());a.value(e,i,s),null==(l=t.current)||l.setAttribute(s_,i),o.current=i}),o}var sJ=()=>{let[e,t]=v.useState(),r=sZ(()=>new Map);return sX(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function s0(e,t){let r,{asChild:n,children:o}=e;return n&&v.isValidElement(o)?v.cloneElement("function"==typeof(r=o.type)?r(o.props):"render"in r?r.render(o.props):o,{ref:o.ref},t(o.props.children)):t(o)}var s1={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};let s2=(0,ox.default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var s3=e.i(823322);let s5=v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(sd,{ref:t,className:eb("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...n})});s5.displayName=sd.displayName;let s4={sm:"max-w-sm",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl","2xl":"max-w-6xl",full:"w-[95vw] h-[95vh] max-w-none"},s9=v.forwardRef((e,t)=>{let{className:r,children:n,size:o="md",hideClose:a=!1,...l}=e;return(0,b.jsxs)(ss,{children:[(0,b.jsx)(s5,{}),(0,b.jsxs)(sh,{ref:t,className:eb("fixed left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s4[o],"full"===o?"overflow-hidden":"max-h-[90vh] overflow-y-auto",r),...l,children:[n,!a&&(0,b.jsxs)(sR,{className:"absolute right-4 top-4 roun
5ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,b.jsx)(s3.X,{className:"h-4 w-4"}),(0,b.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});s9.displayName=sh.displayName;let s8=v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(sx,{ref:t,className:eb("text-lg font-semibold leading-none tracking-tight",r),...n})});s8.displayName=sx.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(sy,{ref:t,className:eb("text-sm text-muted-foreground",r),...n})}).displayName=sy.displayName,e.s(["Dialog",0,sn,"DialogContent",0,s9,"DialogTitle",0,s8],944176),v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(sU,{ref:t,className:eb("flex h-full w-full flex-col overflow-hidden rounded-[4px] bg-popover text-popover-foreground",r),...n})}).displayName=sU.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsxs)("div",{className:"flex items-center border-b px-3 outline-none focus-within:outline-none","cmdk-input-wrapper":"",children:[(0,b.jsx)(s2,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,b.jsx)(sU.Input,{ref:t,className:eb("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none ring-0 shadow-none focus:outline-none focus:ring-0 focus:shadow-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",r),...n})]})}).displayName=sU.Input.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(sU.List,{ref:t,className:eb("max-h-[300px] overflow-y-auto overflow-x-hidden",r),...n})}).displayName=sU.List.displayName,v.forwardRef((e,t)=>(0,b.jsx)(sU.Empty,{ref:t,className:"py-6 text-center text-sm",...e})).displayName=sU.Empty.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(sU.Group,{ref:t,className:eb("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",r),...n})}).displayName=sU.Group.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(sU.Separator,{ref:t,className:eb("-mx-1 h-px bg-border",r),...n})}).displayName=sU.Separator.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(sU.Item,{ref:t,className:eb("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r),...n})}).displayName=sU.Item.displayName,v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("div",{ref:t,className:eb("rounded-lg border bg-card text-card-foreground shadow-sm",r),...n})}).displayName="Card",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("div",{ref:t,className:eb("flex flex-col space-y-1.5 p-6",r),...n})}).displayName="CardHeader",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("h3",{ref:t,className:eb("text-2xl font-semibold leading-none tracking-tight",r),...n})}).displayName="CardTitle",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("p",{ref:t,className:eb("text-sm text-muted-foreground",r),...n})}).displayName="CardDescription",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("div",{ref:t,className:eb("p-6 pt-0",r),...n})}).displayName="CardContent",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("div",{ref:t,className:eb("flex items-center p-6 pt-0",r),...n})}).displayName="CardFooter";let s6=(0,ox.default)("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),s7=v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(sd,{className:eb("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...n,ref:t})});s7.displayName=sd.displayName;let ue=P("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),ut=v.forwardRef((e,t)=>
5{let{side:r="right",className:n,children:o,...a}=e;return(0,b.jsxs)(ss,{children:[(0,b.jsx)(s7,{}),(0,b.jsxs)(sh,{ref:t,className:eb(ue({side:r}),n),...a,children:[(0,b.jsxs)(sR,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,b.jsx)(s3.X,{className:"h-4 w-4"}),(0,b.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]})});ut.displayName=sh.displayName;let ur=e=>{let{className:t,...r}=e;return(0,b.jsx)("div",{className:eb("flex flex-col space-y-2 text-center sm:text-left",t),...r})};ur.displayName="SheetHeader";let un=v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(sx,{ref:t,className:eb("text-lg font-semibold text-foreground",r),...n})});un.displayName=sx.displayName;let uo=v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(sy,{ref:t,className:eb("text-sm text-muted-foreground",r),...n})});uo.displayName=sy.displayName;let ua=v.createContext(null);function ul(){let e=v.useContext(ua);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}v.forwardRef((e,t)=>{let{defaultOpen:r=!0,open:n,onOpenChange:o,className:a,style:l,children:i,...s}=e,u=function(){let[e,t]=v.useState(void 0);return v.useEffect(()=>{let e=window.matchMedia("(max-width: 767px)"),r=()=>{t(window.innerWidth<768)};return e.addEventListener("change",r),t(window.innerWidth<768),()=>e.removeEventListener("change",r)},[]),!!e}(),[d,c]=v.useState(!1),[f,p]=v.useState(r),h=n??f,m=v.useCallback(e=>{let t="function"==typeof e?e(h):e;o?o(t):p(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[o,h]),g=v.useCallback(()=>u?c(e=>!e):m(e=>!e),[u,m,c]);v.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[g]);let x=h?"expanded":"collapsed",w=v.useMemo(()=>({state:x,open:h,setOpen:m,isMobile:u,openMobile:d,setOpenMobile:c,toggleSidebar:g}),[x,h,m,u,d,c,g]);return(0,b.jsx)(ua.Provider,{value:w,children:(0,b.jsx)(lw,{delayDuration:0,children:(0,b.jsx)("div",{style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...l},className:eb("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",a),ref:t,...s,children:i})})})}).displayName="SidebarProvider",v.forwardRef((e,t)=>{let{side:r="left",variant:n="sidebar",collapsible:o="offcanvas",className:a,children:l,...i}=e,{isMobile:s,state:u,openMobile:d,setOpenMobile:c}=ul();return"none"===o?(0,b.jsx)("div",{className:eb("flex h-full w-[var(--sidebar-width)] flex-col bg-sidebar text-sidebar-foreground",a),ref:t,...i,children:l}):s?(0,b.jsx)(sn,{open:d,onOpenChange:c,...i,children:(0,b.jsxs)(ut,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[var(--sidebar-width)] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:r,children:[(0,b.jsxs)(ur,{className:"sr-only",children:[(0,b.jsx)(un,{children:"Sidebar"}),(0,b.jsx)(uo,{children:"Displays the mobile sidebar."})]}),(0,b.jsx)("div",{className:"flex h-full w-full flex-col",children:l})]})}):(0,b.jsxs)("div",{ref:t,className:"group peer hidden text-sidebar-foreground md:block","data-state":u,"data-collapsible":"collapsed"===u?o:"","data-variant":n,"data-side":r,children:[(0,b.jsx)("div",{className:eb("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===n||"inset"===n?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),(0,b.jsx)("div",{className:eb("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] transition-[left,right,width] duration-200 ease-linear md:flex","left"===r?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===n||"inset"===n?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l border-sidebar-border",a),...i,children:(0,b.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:l})})]})}).displayName="Sidebar",v.forwardRef((e,t)=>
5{let{className:r,onClick:n,...o}=e,{toggleSidebar:a}=ul();return(0,b.jsxs)(ew,{ref:t,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:eb("h-7 w-7",r),onClick:e=>{null==n||n(e),a()},...o,children:[(0,b.jsx)(s6,{}),(0,b.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})}).displayName="SidebarTrigger",v.forwardRef((e,t)=>{let{className:r,...n}=e,{toggleSidebar:o}=ul();return(0,b.jsx)("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:eb("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",r),...n})}).displayName="SidebarRail",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("main",{ref:t,className:eb("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",r),...n})}).displayName="SidebarInset",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(ey,{ref:t,"data-sidebar":"input",className:eb("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",r),...n})}).displayName="SidebarInput",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("div",{ref:t,"data-sidebar":"header",className:eb("flex flex-col gap-2 p-2",r),...n})}).displayName="SidebarHeader",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("div",{ref:t,"data-sidebar":"footer",className:eb("flex flex-col gap-2 p-2",r),...n})}).displayName="SidebarFooter",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)(oX,{ref:t,"data-sidebar":"separator",className:eb("mx-2 w-auto bg-sidebar-border",r),...n})}).displayName="SidebarSeparator",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("div",{ref:t,"data-sidebar":"content",className:eb("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",r),...n})}).displayName="SidebarContent",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("div",{ref:t,"data-sidebar":"group",className:eb("relative flex w-full min-w-0 flex-col p-2",r),...n})}).displayName="SidebarGroup",v.forwardRef((e,t)=>{let{className:r,asChild:n=!1,...o}=e;return(0,b.jsx)(n?j:"div",{ref:t,"data-sidebar":"group-label",className:eb("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",r),...o})}).displayName="SidebarGroupLabel",v.forwardRef((e,t)=>{let{className:r,asChild:n=!1,...o}=e;return(0,b.jsx)(n?j:"button",{ref:t,"data-sidebar":"group-action",className:eb("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",r),...o})}).displayName="SidebarGroupAction",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("div",{ref:t,"data-sidebar":"group-content",className:eb("w-full text-sm",r),...n})}).displayName="SidebarGroupContent",v.forwardRef((e,t)=>
5{let{className:r,...n}=e;return(0,b.jsx)("ul",{ref:t,"data-sidebar":"menu",className:eb("flex w-full min-w-0 flex-col gap-1",r),...n})}).displayName="SidebarMenu",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("li",{ref:t,"data-sidebar":"menu-item",className:eb("group/menu-item relative",r),...n})}).displayName="SidebarMenuItem";let ui=P("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}});v.forwardRef((e,t)=>{let{asChild:r=!1,isActive:n=!1,variant:o="default",size:a="default",tooltip:l,className:i,...s}=e,{isMobile:u,state:d}=ul(),c=(0,b.jsx)(r?j:"button",{ref:t,"data-sidebar":"menu-button","data-size":a,"data-active":n,className:eb(ui({variant:o,size:a}),i),...s});return l?("string"==typeof l&&(l={children:l}),(0,b.jsxs)(lS,{children:[(0,b.jsx)(lj,{asChild:!0,children:c}),(0,b.jsx)(l$,{side:"right",align:"center",hidden:"collapsed"!==d||u,...l})]})):c}).displayName="SidebarMenuButton",v.forwardRef((e,t)=>{let{className:r,asChild:n=!1,showOnHover:o=!1,...a}=e;return(0,b.jsx)(n?j:"button",{ref:t,"data-sidebar":"menu-action",className:eb("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",r),...a})}).displayName="SidebarMenuAction",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("div",{ref:t,"data-sidebar":"menu-badge",className:eb("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r),...n})}).displayName="SidebarMenuBadge",v.forwardRef((e,t)=>{let{className:r,showIcon:n=!1,...o}=e,a=v.useMemo(()=>`${Math.floor(40*Math.random())+50}%`,[]);return(0,b.jsxs)("div",{ref:t,"data-sidebar":"menu-skeleton",className:eb("flex h-8 items-center gap-2 rounded-md px-2",r),...o,children:[n&&(0,b.jsx)(al,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,b.jsx)(al,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})}).displayName="SidebarMenuSkeleton",v.forwardRef((e,t)=>
5{let{className:r,...n}=e;return(0,b.jsx)("ul",{ref:t,"data-sidebar":"menu-sub",className:eb("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",r),...n})}).displayName="SidebarMenuSub",v.forwardRef((e,t)=>{let{...r}=e;return(0,b.jsx)("li",{ref:t,...r})}).displayName="SidebarMenuSubItem",v.forwardRef((e,t)=>{let{asChild:r=!1,size:n="md",isActive:o,className:a,...l}=e;return(0,b.jsx)(r?j:"a",{ref:t,"data-sidebar":"menu-sub-button","data-size":n,"data-active":o,className:eb("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground","sm"===n&&"text-xs","md"===n&&"text-sm","group-data-[collapsible=icon]:hidden",a),...l})}).displayName="SidebarMenuSubButton";var us=e.i(88555);function uu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ud(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}us.default.env.NEXT_PUBLIC_BUILD_SHA,us.default.env.NEXT_PUBLIC_BUILD_TIME,v.forwardRef((e,t)=>{let{className:r,bare:n=!1,...o}=e,a=(0,b.jsx)("div",{className:"relative w-full overflow-auto",children:(0,b.jsx)("table",{ref:t,className:eb("w-full caption-bottom text-sm",r),...o})});return n?a:(0,b.jsx)("div",{className:"rounded-lg border overflow-hidden",children:a})}).displayName="Table",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("thead",{ref:t,className:eb("[&_tr]:border-b bg-muted/50",r),...n})}).displayName="TableHeader",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("tbody",{ref:t,className:eb("[&_tr:last-child]:border-0",r),...n})}).displayName="TableBody",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("tfoot",{ref:t,className:eb("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r),...n})}).displayName="TableFooter",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("tr",{ref:t,className:eb("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r),...n})}).displayName="TableRow",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("th",{ref:t,className:eb("h-10 px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0",r),...n})}).displayName="TableHead",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("td",{ref:t,className:eb("p-2 py-1 h-10 align-middle [&:has([role=checkbox])]:pr-0",r),...n})}).displayName="TableCell",v.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,b.jsx)("caption",{ref:t,className:eb("mt-4 text-sm text-muted-foreground",r),...n})}).displayName="TableCaption";var uc=ud(),uf={exec:()=>null};function up(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let o="string"==typeof t?t:t.source;return o=o.replace(um.caret,"$1"),r=r.replace(e,o),n},getRegex:()=>new RegExp(r,t)};return n}var uh=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),um={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine
vendor: 4,175 bytes, line 5
5:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},ug=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,uv=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ub=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ux=up(ub).replace(/bull/g,uv).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),uw=up(ub).replace(/bull/g,uv).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),uy=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,uk=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,uR=up(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",uk).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),uS=up(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,uv).getRegex(),uN="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",uj=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,uE=up("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",uj).replace("tag",uN).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),uC=up(uy).replace("hr",ug).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uN).getRegex(),uT={blockquote:up(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",uC).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:uR,fences:/^ {0,3}(`{3,}
vendor: 7,004 bytes, lines 5-6
5(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:ug,html:uE,lheading:ux,list:uS,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:uC,table:uf,text:/^[^\n]+/},uA=up("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ug).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uN).getRegex(),uP={...uT,lheading:uw,table:uA,paragraph:up(uy).replace("hr",ug).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",uA).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uN).getRegex()},uD={...uT,html:up("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",uj).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:uf,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:up(uy).replace("hr",ug).replace("heading",` *#{1,6} *[^ 6]`).replace("lheading",ux).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},uM=/^( {2,}|\\)\n(?!\s*$)/,uI=/[\p{P}\p{S}]/u,u_=/[\s\p{P}\p{S}]/u,uL=/[^\s\p{P}\p{S}]/u,uz=up(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,u_).getRegex(),uO=/(?!~)[\p{P}\p{S}]/u,u$=up(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",uh?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),uF=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,uB=up(uF,"u").replace(/punct/g,uI).getRegex(),uH=up(uF,"u").replace(/punct/g,uO).getRegex(),uW="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",uK=up(uW,"gu").replace(/notPunctSpace/g,uL).replace(/punctSpace/g,u_).replace(/punct/g,uI).getRegex(),uq=up(uW,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,uO).getRegex(),uV=up("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,uL).replace(/punctSpace/g,u_).replace(/punct/g,uI).getRegex(),uU=up(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,uI).getRegex(),uG=up("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,uL).replace(/punctSpace/g,u_).replace(/punct/g,uI).getRegex(),uX=up(/\\(punct)/,"gu").replace(/punct/g,uI).getRegex(),uZ=up(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),uY=up(uj).replace("(?:-->|$)","-->").getRegex(),uQ=up("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",uY).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),uJ=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,u0=up(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",uJ).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),u1=up(/^!?\[(label)\]\[(ref)\]/).replace("label",uJ).replace("ref",uk).getRegex(),u2=up(/^!?\[(ref)\](?:\[\])?/).replace("ref",uk).getRegex(),u3=up("reflink|nolink(?!\\()","g").replace("reflink",u1).replace("nolink",u2).getRegex(),u5=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,u4={_backpedal:uf,anyPunctuation:uX,autolink:uZ,blockSkip:u$,br:uM,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:uf,delLDelim:uf,delRDelim:uf,emStrongLDelim:uB,emStrongRDelimAst:uK,emStrongRDelimUnd:uV,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:u0,nolink:u2,punctuation:uz,reflink:u1,reflinkSearch:u3,tag:uQ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:uf},u9={...u4,link:up(/^!?\[(label)\]\((.*?)\)/).replace("label",uJ).getRegex(),reflink:up(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",uJ).getRegex()},u8={...u4,emStrongRDelimAst:uq,emStrongLDelim:uH,delLDelim:uU,delRDelim:uG,url:up(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",u5).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:up(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",u5).getRegex()},u6={...u8,br:up(uM).replace("{2,}","*").getRegex(),text:up(u8.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},u7={normal:uT,gfm:uP,pedantic:uD},de={normal:u4,gfm:u8,breaks:u6,pedantic:u9},dt={"&":"&","<":"<",">":">",'"':""","'":"'"},dr=e=>dt[e];function dn(e,t){if(t){if(um.escapeTest.test(e))return e.replace(um.escapeReplace,dr)}else if(um.escapeTestNoEncode.test(e))return e.replace(um.escapeReplaceNoEncode,dr);return e}function da(e){try{e=encodeURI(e).replace(um.percentDecode,"%")}catch{return null}return e}function dl(e,t){var r;let n=e.replace(um.findPipe,(e,t,r)=>{let n=!1,o=t;for(;--o>=0&&"\\"===r[o];)n=!n;return n?"|":" |"}
6).split(um.splitPipe),o=0;if(n[0].trim()||n.shift(),!(n.length>0)||(null==(r=n.at(-1))?void 0:r.trim())||n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(um.slashPipe,"|");return n}function di(e,t,r){let n=e.length;if(0===n)return"";let o=0;for(;o<n;){let a=e.charAt(n-o-1);if(a!==t||r)if(a!==t&&r)o++;else break;else o++}return e.slice(0,n-o)}function ds(e,t,r,n,o){let a=t.href,l=t.title||null,i=e[1].replace(o.other.outputLinkReplace,"$1");n.state.inLink=!0;let s={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:a,title:l,text:i,tokens:n.inlineTokens(i)};return n.state.inLink=!1,s}var du=class{space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:di(e,` 7`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(null===n)return t;let o=n[1];return t.split(` 8`).map(e=>{let t=e.match(r.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=o.length?e.slice(o.length):e}).join(` 9`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=di(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:di(t[0],` 10`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=di(t[0],` 11`).split(` 12`),r="",n="",o=[];for(;e.length>0;){let t=!1,a=[],l;for(l=0;l<e.length;l++)if(this.rules.other.blockquoteStart.test(e[l]))a.push(e[l]),t=!0;else if(t)break;else a.push(e[l]);e=e.slice(l);let i=a.join(` 13`),s=i.replace(this.rules.other.blockquoteSetextReplace,` 14 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r} 15${i}`:i,n=n?`${n} 16${s}`:s;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(s,o,!0),this.lexer.state.top=u,0===e.length)break;let d=o.at(-1);if((null==d?void 0:d.type)==="code")break;if((null==d?void 0:d.type)==="blockquote"){let t=d.raw+` 17`+e.join(` 18`),a=this.blockquote(t);o[o.length-1]=a,r=r.substring(0,r.length-d.raw.length)+a.raw,n=n.substring(0,n.length-d.text.length)+a.text;break}if((null==d?void 0:d.type)==="list"){let t=d.raw+` 19`+e.join(` 20`),a=this.list(t);o[o.length-1]=a,r=r.substring(0,r.length-d.raw.length)+a.raw,n=n.substring(0,n.length-d.raw.length)+a.raw,e=t.substring(o.at(-1).raw.length).split(` 21`);continue}}return{type:"blockquote",raw:r,tokens:o,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let o=t[1].trim(),a=o.length>1,l={type:"list",raw:"",ordered:a,start:a?+o.slice(0,-1):"",loose:!1,items:[]};o=a?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=a?o:"[*+-]");let i=this.rules.other.listItemRegex(o),s=!1;for(;e;){let r=!1,n="",o="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t,n="";for(let t of e)if(" "===t){let e=4-r%4;n+=" ".repeat(e),r+=e}else n+=t,r++;return n}(t[2].split(` 22`,1)[0],t[1].length),u=e.split(` 23`,1)[0],d=!a.trim(),c=0;if(this.options.pedantic?(c=2,o=a.trimStart()):d?c=t[1].length+1:(c=(c=a.search(this.rules.other.nonSpaceChar))>4?1:c,o=a.slice(c),c+=t[1].length),d&&this.rules.other.blankLine.test(u)&&(n+=u+` 24`,e=e.substring(u.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(c),r=this.rules.other.hrRegex(c),l=this.rules.other.fencesBeginRegex(c),i=this.rules.other.headingBeginRegex(c),s=this.rules.other.htmlBeginRegex(c),f=this.rules.other.blockquoteBeginRegex(c);for(;e;){let p=e.split(` 25`,1)[0],h;if(u=p,h=this.options.pedantic?u=u.replace(this.rules.other.listReplaceNesting," "):u.replace(this.rules.other.tabCharGlobal," "),l.test(u)||i.test(u)||s.test(u)||f.test(u)||t.test(u)||r.test(u))break;if(h.search(this.rules.other.nonSpaceChar)>=c||!u.trim())o+=` 26`+h.slice(c);else{if(d||a.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||l.test(a)||i.test(a)||r.test(a))break;o+=` 27`+u}
27d=!u.trim(),n+=p+` 28`,e=e.substring(p.length+1),a=h.slice(c)}}l.loose||(s?l.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(s=!0)),l.items.push({type:"list_item",raw:n,task:!!this.options.gfm&&this.rules.other.listIsTask.test(o),loose:!1,text:o,tokens:[]}),l.raw+=n}let u=l.items.at(-1);if(!u)return;for(let e of(u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd(),l.raw=l.raw.trimEnd(),l.items)){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){var r,n;if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),(null==(r=e.tokens[0])?void 0:r.type)==="text"||(null==(n=e.tokens[0])?void 0:n.type)==="paragraph"){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let r={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=r.checked,l.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=r.raw+e.tokens[0].raw,e.tokens[0].text=r.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(r)):e.tokens.unshift({type:"paragraph",raw:r.raw,text:r.raw,tokens:[r]}):e.tokens.unshift(r)}}if(!l.loose){let t=e.tokens.filter(e=>"space"===e.type);l.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(l.loose)for(let e of l.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return l}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){var t;let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=dl(r[1]),o=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(null==(t=r[3])?void 0:t.trim())?r[3].replace(this.rules.other.tableRowBlankLine,"").split(` 29`):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===o.length){for(let e of o)this.rules.other.tableAlignRight.test(e)?l.align.push("right"):this.rules.other.tableAlignCenter.test(e)?l.align.push("center"):this.rules.other.tableAlignLeft.test(e)?l.align.push("left"):l.align.push(null);for(let e=0;e<n.length;e++)l.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:l.align[e]});for(let e of a)l.rows.push(dl(e,l.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:l.align[t]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` 30`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=di(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])t++;else if(")"===e[r]&&--t<0)return r;return t>0?-2:-1}(t[2]);if(-2===e)return;if(e>-1){let r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?r.slice(1):r.slice(1,-1)),ds(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return ds(r,e,r[0],this.lexer,this.rules)}}emStrong(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!r||this.rules.inline.punctuation.exec(r))){let r=[...n[0]].length-1,o,a,l=r,i=0,s="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(s.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=s.exec(t));){if(!(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6]))continue;if(a=[...o].length,n[3]||n[4]){l+=a;continue}if((n[5]||n[6])&&r%3&&!((r+a)%3)){i+=a;continue}if((l-=a)>0)continue;a=Math.min(a,a+l+i);let t=[...n[0]][0].length,s=e.slice(0,r+n.index+t+a);if(Math.min(r,a)%2){let e=s.slice(1,-1);return{type:"em",raw:s,text:e,tokens:this.lexer.inlineTokens(e)}}let u=s.slice(2,-2);return{type:"strong",raw:s,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return r&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let r=[...n[0]].length-1,o,a,l=r,i=this.rules.inline.delRDelim;for(i.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=i.exec(t));){if(!(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])||(a=[...o].length)!==r)continue;if(n[3]||n[4]){l+=a;continue}if((l-=a)>0)continue;a=Math.min(a,a+l);let t=[...n[0]][0].length,i=e.slice(0,r+n.index+t+a),s=i.slice(r,-r);return{type:"del",raw:i,text:s,tokens:this.lexer.inlineTokens(s)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,r;return r="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{var r;let o;do o=t[0],t[0]=(null==(r=this.rules.inline._backpedal.exec(t[0]))?void 0:r[0])??"";while(o!==t[0])e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}constructor(e){uu(this,"options",void 0),uu(this,"rules",void 0),uu(this,"lexer",void 0),this.options=e||uc}}
30,dd=class e{static get rules(){return{block:u7,inline:de}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(e){e=e.replace(um.carriageReturn,` 31`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(um.tabCharGlobal," ").replace(um.spaceLine,""));e;){var n,o,a;let l;if(null==(o=this.options.extensions)||null==(n=o.block)?void 0:n.some(r=>!!(l=r.call({lexer:this},e,t))&&(e=e.substring(l.raw.length),t.push(l),!0)))continue;if(l=this.tokenizer.space(e)){e=e.substring(l.raw.length);let r=t.at(-1);1===l.raw.length&&void 0!==r?r.raw+=` 32`:t.push(l);continue}if(l=this.tokenizer.code(e)){e=e.substring(l.raw.length);let r=t.at(-1);(null==r?void 0:r.type)==="paragraph"||(null==r?void 0:r.type)==="text"?(r.raw+=(r.raw.endsWith(` 33`)?"":` 34`)+l.raw,r.text+=` 35`+l.text,this.inlineQueue.at(-1).src=r.text):t.push(l);continue}if((l=this.tokenizer.fences(e))||(l=this.tokenizer.heading(e))||(l=this.tokenizer.hr(e))||(l=this.tokenizer.blockquote(e))||(l=this.tokenizer.list(e))||(l=this.tokenizer.html(e))){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.def(e)){e=e.substring(l.raw.length);let r=t.at(-1);(null==r?void 0:r.type)==="paragraph"||(null==r?void 0:r.type)==="text"?(r.raw+=(r.raw.endsWith(` 36`)?"":` 37`)+l.raw,r.text+=` 38`+l.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},t.push(l));continue}if((l=this.tokenizer.table(e))||(l=this.tokenizer.lheading(e))){e=e.substring(l.raw.length),t.push(l);continue}let i=e;if(null==(a=this.options.extensions)?void 0:a.startBlock){let t=1/0,r=e.slice(1),n;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(l=this.tokenizer.paragraph(i))){let n=t.at(-1);r&&(null==n?void 0:n.type)==="paragraph"?(n.raw+=(n.raw.endsWith(` 39`)?"":` 40`)+l.raw,n.text+=` 41`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(l),r=i.length!==e.length,e=e.substring(l.raw.length);continue}if(l=this.tokenizer.text(e)){e=e.substring(l.raw.length);let r=t.at(-1);(null==r?void 0:r.type)==="text"?(r.raw+=(r.raw.endsWith(` 42`)?"":` 43`)+l.raw,r.text+=` 44`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(l);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){var t,r,n,o,a;let l,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.tokenizer.lexer=this;let s=e,u=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(u=this.tokenizer.rules.inline.reflinkSearch.exec(s));)e.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(u=this.tokenizer.rules.inline.anyPunctuation.exec(s));)s=s.slice(0,u.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(u=this.tokenizer.rules.inline.blockSkip.exec(s));)l=u[2]?u[2].length:0,s=s.slice(0,u.index+l)+"["+"a".repeat(u[0].length-l-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=(null==(r=this.options.hooks)||null==(t=r.emStrongMask)?void 0:t.call({lexer:this},s))??s;let d=!1,c="";for(;e;){let t;if(d||(c=""),d=!1,null==(o=this.options.extensions)||null==(n=o.inline)?void 0:n.some(r=>!!(t=r.call({lexer:this},e,i))&&(e=e.substring(t.raw.length),i.push(t),!0)))continue;if((t=this.tokenizer.escape(e))||(t=this.tokenizer.tag(e))||(t=this.tokenizer.link(e))){e=e.substring(t.raw.length),i.push(t);continue}if(t=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(t.raw.length);let r=i.at(-1);"text"===t.type&&(null==r?void 0:r.type)==="text"?(r.raw+=t.raw,r.text+=t.text):i.push(t);continue}if((t=this.tokenizer.emStrong(e,s,c))||(t=this.tokenizer.codespan(e))||(t=this.tokenizer.br(e))||(t=this.tokenizer.del(e,s,c))||(t=this.tokenizer.autolink(e))||!this.state.inLink&&(t=this.tokenizer.url(e))){e=e.substring(t.raw.length),i.push(t);continue}let r=e;if(null==(a=this.options.extensions)?void 0:a.startInline){let t=1/0,n=e.slice(1),o;
44this.options.extensions.startInline.forEach(e=>{"number"==typeof(o=e.call({lexer:this},n))&&o>=0&&(t=Math.min(t,o))}),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(r)){e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(c=t.raw.slice(-1)),d=!0;let r=i.at(-1);(null==r?void 0:r.type)==="text"?(r.raw+=t.raw,r.text+=t.text):i.push(t);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return i}constructor(e){uu(this,"tokens",void 0),uu(this,"options",void 0),uu(this,"state",void 0),uu(this,"inlineQueue",void 0),uu(this,"tokenizer",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||uc,this.options.tokenizer=this.options.tokenizer||new du,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:um,block:u7.normal,inline:de.normal};this.options.pedantic?(t.block=u7.pedantic,t.inline=de.pedantic):this.options.gfm&&(t.block=u7.gfm,this.options.breaks?t.inline=de.breaks:t.inline=de.gfm),this.tokenizer.rules=t}},dc=class{space(e){return""}code(e){var t;let{text:r,lang:n,escaped:o}=e,a=null==(t=(n||"").match(um.notSpaceStart))?void 0:t[0],l=r.replace(um.endingNewline,"")+` 45`;return a?'<pre><code class="language-'+dn(a)+'">'+(o?l:dn(l,!0))+`</code></pre> 46`:"<pre><code>"+(o?l:dn(l,!0))+`</code></pre> 47`}blockquote(e){let{tokens:t}=e;return`<blockquote> 48${this.parser.parse(t)}</blockquote> 49`}html(e){let{text:t}=e;return t}def(e){return""}heading(e){let{tokens:t,depth:r}=e;return`<h${r}>${this.parser.parseInline(t)}</h${r}> 50`}hr(e){return`<hr> 51`}list(e){let t=e.ordered,r=e.start,n="";for(let t=0;t<e.items.length;t++){let r=e.items[t];n+=this.listitem(r)}let o=t?"ol":"ul";return"<"+o+(t&&1!==r?' start="'+r+'"':"")+`> 52`+n+"</"+o+`> 53`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li> 54`}checkbox(e){let{checked:t}=e;return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph(e){let{tokens:t}=e;return`<p>${this.parser.parseInline(t)}</p> 55`}table(e){let t="",r="";for(let t=0;t<e.header.length;t++)r+=this.tablecell(e.header[t]);t+=this.tablerow({text:r});let n="";for(let t=0;t<e.rows.length;t++){let o=e.rows[t];r="";for(let e=0;e<o.length;e++)r+=this.tablecell(o[e]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table> 56<thead> 57`+t+`</thead> 58`+n+`</table> 59`}tablerow(e){let{text:t}=e;return`<tr> 60${t}</tr> 61`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}> 62`}strong(e){let{tokens:t}=e;return`<strong>${this.parser.parseInline(t)}</strong>`}em(e){let{tokens:t}=e;return`<em>${this.parser.parseInline(t)}</em>`}codespan(e){let{text:t}=e;return`<code>${dn(t,!0)}</code>`}br(e){return"<br>"}del(e){let{tokens:t}=e;return`<del>${this.parser.parseInline(t)}</del>`}link(e){let{href:t,title:r,tokens:n}=e,o=this.parser.parseInline(n),a=da(t);if(null===a)return o;let l='<a href="'+(t=a)+'"';return r&&(l+=' title="'+dn(r)+'"'),l+=">"+o+"</a>"}image(e){let{href:t,title:r,text:n,tokens:o}=e;o&&(n=this.parser.parseInline(o,this.parser.textRenderer));let a=da(t);if(null===a)return dn(n);t=a;let l=`<img src="${t}" alt="${dn(n)}"`;return r&&(l+=` title="${dn(r)}"`),l+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:dn(e.text)}constructor(e){uu(this,"options",void 0),uu(this,"parser",void 0),this.options=e||uc}},df=class{strong(e){let{text:t}=e;return t}em(e){let{text:t}=e;return t}codespan(e){let{text:t}=e;return t}del(e){let{text:t}=e;return t}html(e){let{text:t}=e;return t}text(e){let{text:t}=e;return t}link(e){let{text:t}=e;return""+t}image(e){let{text:t}=e;return""+t}br(){return""}checkbox(e){let{raw:t}=e;return t}},dp=class e{static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let o=0;o<e.length;o++){var r,n;let a=e[o];if(null==(n=this.options.extensions)||null==(r=n.renderers)?void 0:r[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){t+=e||"";continue}}switch(a.type){case"space":t+=this.renderer.space(a);break;case"hr":t+=this.renderer.hr(a);break;case"heading":t+=this.renderer.heading(a);break;case"code":t+=this.renderer.code(a);break;case"table":t+=this.renderer.table(a);break;case"blockquote":t+=this.renderer.blockquote(a);break;case"list":t+=this.renderer.list(a);break;case"checkbox":t+=this.renderer.checkbox(a);break;case"html":t+=this.renderer.html(a);break;case"def":t+=this.renderer.def(a);break;case"paragraph":t+=this.renderer.paragraph(a);break;case"text":t+=this.renderer.text(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.renderer;this.renderer.parser=this;let r="";for(let a=0;a<e.length;a++){var n,o;let l=e[a];if(null==(o=this.options.extensions)||null==(n=o.renderers)?void 0:n[l.type]){let e=this.options.extensions.renderers[l.type].call({parser:this},l);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=e||"";continue}}switch(l.type){case"escape":case"text":r+=t.text(l);break;case"html":r+=t.html(l);break;case"link":r+=t.link(l);break;case"image":r+=t.image(l);break;case"checkbox":r+=t.checkbox(l);break;case"strong":r+=t.strong(l);break;case"em":r+=t.em(l);break;case"codespan":r+=t.codespan(l);break;case"br":r+=t.br(l);break;case"del":r+=t.del(l);break;default:{let e='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return r}constructor(e){uu(this,"options",void 0),uu(this,"renderer",void 0),uu(this,"textRenderer",void 0),this.options=e||uc,this.options.renderer=this.options.renderer||new dc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new df}},dh=(g=class{preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?dd.lex:dd.lexInline}provideParser(){return this.block?dp.parse:dp.parseInline}constructor(e){uu(this,"options",void 0),uu(this,"block",void 0),this.options=e||uc}},uu(g,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),uu(g,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),g),dm=new class{walkTokens(e,t){let r=[];for(let a of e)switch(r=r.concat(t.call(this,a)),a.type){case"table":for(let e of a.header)r=r.concat(this.walkTokens(e.tokens,t));for(let e of a.rows)for(let n of e)r=r.concat(this.walkTokens(n.tokens,t));break;case"list":r=r.concat(this.walkTokens(a.items,t));break;default:{var n,o;let e=a;(null==(o=this.defaults.extensions)||null==(n=o.childTokens)?void 0:n[e.type])?this.defaults.extensions.childTokens[e.type].forEach(n=>{let o=e[n].flat(1/0);r=r.concat(this.walkTokens(o,t))}):e.tokens&&(r=r.concat(this.walkTokens(e.tokens,t)))}}return r}use(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=this.defaults.extensions||{renderers:{},childTokens:{}};
62return t.forEach(e=>{let t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let t=n.renderers[e.name];t?n.renderers[e.name]=function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];let a=e.renderer.apply(this,n);return!1===a&&(a=t.apply(this,n)),a}:n.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let t=n[e.level];t?t.unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(n.childTokens[e.name]=e.childTokens)}),t.extensions=n),e.renderer){let r=this.defaults.renderer||new dc(this.defaults);for(let t in e.renderer){if(!(t in r))throw Error(`renderer '${t}' does not exist`);if(["options","parser"].includes(t))continue;let n=e.renderer[t],o=r[t];r[t]=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];let l=n.apply(r,t);return!1===l&&(l=o.apply(r,t)),l||""}}t.renderer=r}if(e.tokenizer){let r=this.defaults.tokenizer||new du(this.defaults);for(let t in e.tokenizer){if(!(t in r))throw Error(`tokenizer '${t}' does not exist`);if(["options","rules","lexer"].includes(t))continue;let n=e.tokenizer[t],o=r[t];r[t]=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];let l=n.apply(r,t);return!1===l&&(l=o.apply(r,t)),l}}t.tokenizer=r}if(e.hooks){let n=this.defaults.hooks||new dh;for(let t in e.hooks){var r=this;if(!(t in n))throw Error(`hook '${t}' does not exist`);if(["options","block"].includes(t))continue;let o=e.hooks[t],a=n[t];dh.passThroughHooks.has(t)?n[t]=e=>{if(this.defaults.async&&dh.passThroughHooksRespectAsync.has(t))return(async()=>{let t=await o.call(n,e);return a.call(n,t)})();let r=o.call(n,e);return a.call(n,r)}:n[t]=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];if(r.defaults.async)return(async()=>{let e=await o.apply(n,t);return!1===e&&(e=await a.apply(n,t)),e})();let i=o.apply(n,t);return!1===i&&(i=a.apply(n,t)),i}}t.hooks=n}if(e.walkTokens){let r=this.defaults.walkTokens,n=e.walkTokens;t.walkTokens=function(e){let t=[];return t.push(n.call(this,e)),r&&(t=t.concat(r.call(this,e))),t}}this.defaults={...this.defaults,...t}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return dd.lex(e,t??this.defaults)}parser(e,t){return dp.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},o={...this.defaults,...n},a=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===n.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let r=o.hooks?await o.hooks.preprocess(t):t,n=await (o.hooks?await o.hooks.provideLexer():e?dd.lex:dd.lexInline)(r,o),a=o.hooks?await o.hooks.processAllTokens(n):n;o.walkTokens&&await Promise.all(this.walkTokens(a,o.walkTokens));let l=await (o.hooks?await o.hooks.provideParser():e?dp.parse:dp.parseInline)(a,o);return o.hooks?await o.hooks.postprocess(l):l})().catch(a);try{o.hooks&&(t=o.hooks.preprocess(t));let r=(o.hooks?o.hooks.provideLexer():e?dd.lex:dd.lexInline)(t,o);o.hooks&&(r=o.hooks.processAllTokens(r)),o.walkTokens&&this.walkTokens(r,o.walkTokens);let n=(o.hooks?o.hooks.provideParser():e?dp.parse:dp.parseInline)(r,o);return o.hooks&&(n=o.hooks.postprocess(n)),n}catch(e){return a(e)}}}onError(e,t){return r=>{if(r.message+=` 63Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+dn(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}constructor(...e){uu(this,"defaults",ud()),uu(this,"options",this.setOptions),uu(this,"parse",this.parseMarkdown(!0)),uu(this,"parseInline",this.parseMarkdown(!1)),uu(this,"Parser",dp),uu(this,"Renderer",dc),uu(this,"TextRenderer",df),uu(this,"Lexer",dd),uu(this,"Tokenizer",du),uu(this,"Hooks",dh),this.use(...e)}};function dg(e,t){return dm.parse(e,t)}dg.options=dg.setOptions=function(e){return dm.setOptions(e),dg.defaults=dm.defaults,uc=dg.defaults,dg},dg.getDefaults=ud,dg.defaults=uc,dg.use=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return dm.use(...t),dg.defaults=dm.defaults,uc=dg.defaults,dg},dg.walkTokens=function(e,t){return dm.walkTokens(e,t)},dg.parseInline=dm.parseInline,dg.Parser=dp,dg.parser=dp.parse,dg.Renderer=dc,dg.TextRenderer=df,dg.Lexer=dd,dg.lexer=dd.lex,dg.Tokenizer=du,dg.Hooks=dh,dg.parse=dg,dg.options,dg.setOptions,dg.use,dg.walkTokens,dg.parseInline,dp.parse,dd.lex,dg.setOptions({gfm:!0,breaks:!0}),e.s([],116233)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.