@chrome-consulting/krit-ui 0.0.51 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/krit-ui.js +345 -343
- package/dist/krit-ui.umd.cjs +10 -10
- package/package.json +9 -3
package/dist/krit-ui.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(x,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-hook-form"),require("zod"),require("zod-i18n-map"),require("@hookform/resolvers")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","react-hook-form","zod","zod-i18n-map","@hookform/resolvers"],c):(x=typeof globalThis<"u"?globalThis:x||self,c(x["krit-ui"]={},x["react/jsx-runtime"],x.React,x.ReactDOM,x.reactHookForm,x.zod,x.zodI18nMap,x.resolvers))})(this,function(x,c,D,Yt,Qn,ve,o6,Bo){"use strict";var gk=Object.defineProperty;var pk=(x,c,D)=>c in x?gk(x,c,{enumerable:!0,configurable:!0,writable:!0,value:D}):x[c]=D;var ae=(x,c,D)=>pk(x,typeof c!="symbol"?c+"":c,D);function Bc(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=Bc(D),Dr=Bc(Yt);function Zc(e){var n,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(t=Zc(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Wc(){for(var e,n,t=0,r="",o=arguments.length;t<o;t++)(e=arguments[t])&&(n=Zc(e))&&(r&&(r+=" "),r+=n);return r}const $s="-",a6=e=>{const n=i6(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split($s);return i[0]===""&&i.length!==1&&i.shift(),Rc(i,n)||s6(s)},getConflictingClassGroupIds:(s,i)=>{const u=t[s]||[];return i&&r[s]?[...u,...r[s]]:u}}},Rc=(e,n)=>{var s;if(e.length===0)return n.classGroupId;const t=e[0],r=n.nextPart.get(t),o=r?Rc(e.slice(1),r):void 0;if(o)return o;if(n.validators.length===0)return;const a=e.join($s);return(s=n.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Gc=/^\[(.+)\]$/,s6=e=>{if(Gc.test(e)){const n=Gc.exec(e)[1],t=n==null?void 0:n.substring(0,n.indexOf(":"));if(t)return"arbitrary.."+t}},i6=e=>{const{theme:n,prefix:t}=e,r={nextPart:new Map,validators:[]};return c6(Object.entries(e.classGroups),t).forEach(([a,s])=>{zs(s,r,a,n)}),r},zs=(e,n,t,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?n:jc(n,o);a.classGroupId=t;return}if(typeof o=="function"){if(l6(o)){zs(o(r),n,t,r);return}n.validators.push({validator:o,classGroupId:t});return}Object.entries(o).forEach(([a,s])=>{zs(s,jc(n,a),t,r)})})},jc=(e,n)=>{let t=e;return n.split($s).forEach(r=>{t.nextPart.has(r)||t.nextPart.set(r,{nextPart:new Map,validators:[]}),t=t.nextPart.get(r)}),t},l6=e=>e.isThemeGetter,c6=(e,n)=>n?e.map(([t,r])=>{const o=r.map(a=>typeof a=="string"?n+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[n+s,i])):a);return[t,o]}):e,u6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,t=new Map,r=new Map;const o=(a,s)=>{t.set(a,s),n++,n>e&&(n=0,r=t,t=new Map)};return{get(a){let s=t.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){t.has(a)?t.set(a,s):o(a,s)}}},Yc="!",d6=e=>{const{separator:n,experimentalParseClassName:t}=e,r=n.length===1,o=n[0],a=n.length,s=i=>{const u=[];let d=0,f=0,h;for(let v=0;v<i.length;v++){let w=i[v];if(d===0){if(w===o&&(r||i.slice(v,v+a)===n)){u.push(i.slice(f,v)),f=v+a;continue}if(w==="/"){h=v;continue}}w==="["?d++:w==="]"&&d--}const g=u.length===0?i:i.substring(f),m=g.startsWith(Yc),C=m?g.substring(1):g,p=h&&h>f?h-f:void 0;return{modifiers:u,hasImportantModifier:m,baseClassName:C,maybePostfixModifierPosition:p}};return t?i=>t({className:i,parseClassName:s}):s},f6=e=>{if(e.length<=1)return e;const n=[];let t=[];return e.forEach(r=>{r[0]==="["?(n.push(...t.sort(),r),t=[]):t.push(r)}),n.push(...t.sort()),n},h6=e=>({cache:u6(e.cacheSize),parseClassName:d6(e),...a6(e)}),g6=/\s+/,p6=(e,n)=>{const{parseClassName:t,getClassGroupId:r,getConflictingClassGroupIds:o}=n,a=[],s=e.trim().split(g6);let i="";for(let u=s.length-1;u>=0;u-=1){const d=s[u],{modifiers:f,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}=t(d);let C=!!m,p=r(C?g.substring(0,m):g);if(!p){if(!C){i=d+(i.length>0?" "+i:i);continue}if(p=r(g),!p){i=d+(i.length>0?" "+i:i);continue}C=!1}const v=f6(f).join(":"),w=h?v+Yc:v,y=w+p;if(a.includes(y))continue;a.push(y);const b=o(p,C);for(let S=0;S<b.length;++S){const M=b[S];a.push(w+M)}i=d+(i.length>0?" "+i:i)}return i};function m6(){let e=0,n,t,r="";for(;e<arguments.length;)(n=arguments[e++])&&(t=Uc(n))&&(r&&(r+=" "),r+=t);return r}const Uc=e=>{if(typeof e=="string")return e;let n,t="";for(let r=0;r<e.length;r++)e[r]&&(n=Uc(e[r]))&&(t&&(t+=" "),t+=n);return t};function v6(e,...n){let t,r,o,a=s;function s(u){const d=n.reduce((f,h)=>h(f),e());return t=h6(d),r=t.cache.get,o=t.cache.set,a=i,i(u)}function i(u){const d=r(u);if(d)return d;const f=p6(u,t);return o(u,f),f}return function(){return a(m6.apply(null,arguments))}}const Ve=e=>{const n=t=>t[e]||[];return n.isThemeGetter=!0,n},qc=/^\[(?:([a-z-]+):)?(.+)\]$/i,C6=/^\d+\/\d+$/,w6=new Set(["px","full","screen"]),y6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,b6=/\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$/,x6=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,S6=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,E6=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ut=e=>Jn(e)||w6.has(e)||C6.test(e),an=e=>er(e,"length",T6),Jn=e=>!!e&&!Number.isNaN(Number(e)),Bs=e=>er(e,"number",Jn),Or=e=>!!e&&Number.isInteger(Number(e)),M6=e=>e.endsWith("%")&&Jn(e.slice(0,-1)),me=e=>qc.test(e),sn=e=>y6.test(e),L6=new Set(["length","size","percentage"]),N6=e=>er(e,L6,Kc),P6=e=>er(e,"position",Kc),_6=new Set(["image","url"]),I6=e=>er(e,_6,O6),k6=e=>er(e,"",D6),Vr=()=>!0,er=(e,n,t)=>{const r=qc.exec(e);return r?r[1]?typeof n=="string"?r[1]===n:n.has(r[1]):t(r[2]):!1},T6=e=>b6.test(e)&&!x6.test(e),Kc=()=>!1,D6=e=>S6.test(e),O6=e=>E6.test(e),V6=v6(()=>{const e=Ve("colors"),n=Ve("spacing"),t=Ve("blur"),r=Ve("brightness"),o=Ve("borderColor"),a=Ve("borderRadius"),s=Ve("borderSpacing"),i=Ve("borderWidth"),u=Ve("contrast"),d=Ve("grayscale"),f=Ve("hueRotate"),h=Ve("invert"),g=Ve("gap"),m=Ve("gradientColorStops"),C=Ve("gradientColorStopPositions"),p=Ve("inset"),v=Ve("margin"),w=Ve("opacity"),y=Ve("padding"),b=Ve("saturate"),S=Ve("scale"),M=Ve("sepia"),L=Ve("skew"),E=Ve("space"),I=Ve("translate"),k=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",me,n],V=()=>[me,n],Y=()=>["",Ut,an],$=()=>["auto",Jn,me],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],z=()=>["","0",me],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[Jn,me];return{cacheSize:500,separator:":",theme:{colors:[Vr],spacing:[Ut,an],blur:["none","",sn,me],brightness:K(),borderColor:[e],borderRadius:["none","","full",sn,me],borderSpacing:V(),borderWidth:Y(),contrast:K(),grayscale:z(),hueRotate:K(),invert:z(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[M6,an],inset:H(),margin:H(),opacity:K(),padding:V(),saturate:K(),scale:K(),sepia:z(),skew:K(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[sn]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"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:[...U(),me]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Or,me]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",me]}],grow:[{grow:z()}],shrink:[{shrink:z()}],order:[{order:["first","last","none",Or,me]}],"grid-cols":[{"grid-cols":[Vr]}],"col-start-end":[{col:["auto",{span:["full",Or,me]},me]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Vr]}],"row-start-end":[{row:["auto",{span:[Or,me]},me]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",me]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",me,n]}],"min-w":[{"min-w":[me,n,"min","max","fit"]}],"max-w":[{"max-w":[me,n,"none","full","min","max","fit","prose",{screen:[sn]},sn]}],h:[{h:[me,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,n,"auto","min","max","fit"]}],"font-size":[{text:["base",sn,an]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Bs]}],"font-family":[{font:[Vr]}],"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",me]}],"line-clamp":[{"line-clamp":["none",Jn,Bs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ut,me]}],"list-image":[{"list-image":["none",me]}],"list-style-type":[{list:["none","disc","decimal",me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ut,an]}],"underline-offset":[{"underline-offset":["auto",Ut,me]}],"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:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me]}],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",me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),P6]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",N6]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},I6]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],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":[w]}],"border-style":[{border:[...T(),"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":[w]}],"divide-style":[{divide:T()}],"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:["",...T()]}],"outline-offset":[{"outline-offset":[Ut,me]}],"outline-w":[{outline:[Ut,an]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Ut,an]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",sn,k6]}],"shadow-color":[{shadow:[Vr]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",sn,me]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[h]}],saturate:[{saturate:[b]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",me]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Or,me]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",me]}],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",me]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ut,an,Bs]}],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 N(...e){return V6(Wc(e))}const Xc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Qc=Wc,ln=(e,n)=>t=>{var r;if((n==null?void 0:n.variants)==null)return Qc(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:o,defaultVariants:a}=n,s=Object.keys(o).map(d=>{const f=t==null?void 0:t[d],h=a==null?void 0:a[d];if(f===null)return null;const g=Xc(f)||Xc(h);return o[d][g]}),i=t&&Object.entries(t).reduce((d,f)=>{let[h,g]=f;return g===void 0||(d[h]=g),d},{}),u=n==null||(r=n.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:h,className:g,...m}=f;return Object.entries(m).every(C=>{let[p,v]=C;return Array.isArray(v)?v.includes({...a,...i}[p]):{...a,...i}[p]===v})?[...d,h,g]:d},[]);return Qc(e,s,u,t==null?void 0:t.class,t==null?void 0:t.className)},Jc=ln("items-center w-fit gap-1 cursor-default select-none text-nowrap rounded-sm px-2 py-0.5 leading-4 text-sm transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-0 bg-background text-foreground hover:bg-background-primary/80",gradient:"leading-3 border-0 bg-background-theme text-foreground-on-contrast hover:bg-background-theme/80",secondary:"border-0 bg-background-secondary text-foreground hover:bg-foreground/5","secondary-contrast":"bg-background-secondary/60 text-foreground hover:bg-background-secondary/80",accent:"bg-background-theme border-line-theme/10 text-[white] hover:bg-background-theme/80",theme:"bg-background-theme border-line-theme/10 text-[white] hover:bg-background-theme/80","theme-fade":"bg-background-theme-fade text-foreground-theme hover:bg-background-theme-fade_hover",pale:"bg-background-warning border-line-warning text-foreground-on-contrast hover:bg-background-warning/80","pale-primary":"bg-pale-foreground text-primary-foreground hover:bg-pale-foreground/80",destructive:"bg-background-error border-line-error text-[white] hover:bg-background-error/80","destructive-fade":"bg-background-error-fade text-foreground-error hover:bg-background-error-fade-hover","destructive-primary":"bg-destructive-foreground text-primary-foreground hover:bg-destructive-foreground/80",success:"bg-background-success text-[white] hover:bg-background-success/80","success-fade":"bg-background-success-fade text-foreground-success hover:bg-background-success-fade-hover","success-primary":"bg-success-foreground text-primary-foreground hover:bg-success-foreground/80",grey:"bg-background-contrast-fade text-foreground hover:bg-background-contrast-fade/80","grey-primary":"bg-grey-foreground text-primary-foreground hover:bg-grey-foreground/80",outline:"bg-background border border-line-primary text-foreground","outline-success":"bg-background border border-line-success text-foreground-success",warning:"bg-background-warning text-foreground-on-contrast hover:bg-background-warning_hover","warning-fade":"bg-background-warning-fade text-foreground-warning hover:bg-background-warning-fade-hover",contrast:"bg-background-contrast text-foreground-on-contrast hover:bg-background-contrast/80"},size:{sm:"h-[24px]",default:"h-7",lg:"h-7"},iconVariant:{default:"[&_svg]:text-icon",black:"[&_svg]:text-foreground",secondary:"[&_svg]:text-icon-secondary"},layout:{default:"inline-flex",truncate:"text-ellipsis line-clamp-1"}},defaultVariants:{layout:"default",variant:"default",size:"default"}});function H6({className:e,variant:n,size:t,icon:r,iconRight:o,iconVariant:a,layout:s,children:i,...u}){return c.jsxs("div",{className:N(Jc({variant:n,size:t,iconVariant:n==="secondary"?a:void 0,layout:s}),u.onClick?"cursor-pointer":"cursor-default pointer-events-none",e),title:typeof i=="string"?i:u.title,...u,children:[r&&c.jsx("div",{className:i?"ml-[-4px]":"",children:r}),i,o&&c.jsx("div",{className:i?"mr-[-4px]":"",children:o})]})}function eu(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function st(...e){return n=>{let t=!1;const r=e.map(o=>{const a=eu(o,n);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():eu(e[o],null)}}}}function he(...e){return l.useCallback(st(...e),e)}var A6=Symbol.for("react.lazy"),Zo=l[" use ".trim().toString()];function F6(e){return typeof e=="object"&&e!==null&&"then"in e}function tu(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===A6&&"_payload"in e&&F6(e._payload)}function Wo(e){const n=$6(e),t=l.forwardRef((r,o)=>{let{children:a,...s}=r;tu(a)&&typeof Zo=="function"&&(a=Zo(a._payload));const i=l.Children.toArray(a),u=i.find(B6);if(u){const d=u.props.children,f=i.map(h=>h===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:h);return c.jsx(n,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return c.jsx(n,{...s,ref:o,children:a})});return t.displayName=`${e}.Slot`,t}var nu=Wo("Slot");function $6(e){const n=l.forwardRef((t,r)=>{let{children:o,...a}=t;if(tu(o)&&typeof Zo=="function"&&(o=Zo(o._payload)),l.isValidElement(o)){const s=W6(o),i=Z6(a,o.props);return o.type!==l.Fragment&&(i.ref=r?st(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var z6=Symbol("radix.slottable");function B6(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===z6}function Z6(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(t[r]=o):r==="style"?t[r]={...o,...a}:r==="className"&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function W6(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}const Hr=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M7 9.5L12 14.5L17 9.5H7Z"})),Pn=ln("tracking-[0.15px] inline-flex select-none gap-1 items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none disabled:pointer-events-none disabled:opacity-80",{variants:{variant:{"fade-contrast-filled":"bg-background-contrast-fade text-foreground-primary hover:bg-background-contrast-fade-hover disabled:bg-background-contrast-fade-disabled disabled:text-foreground-primary-disabled [&_svg]:text-icon-contrast disabled:[&_svg]:text-icon-contrast-disabled","fade-contrast-outlined":"border border-line-primary bg-transparent text-foreground-primary hover:bg-background-primary-hover hover:border-line-primary disabled:border-line-primary-disabled disabled:text-foreground-primary-disabled [&_svg]:text-icon-contrast disabled:[&_svg]:text-icon-contrast-disabled","fade-contrast-transparent":"bg-transparent text-foreground-primary hover:bg-background-primary-hover disabled:text-foreground-primary-disabled [&_svg]:text-icon-contrast disabled:[&_svg]:text-icon-contrast-disabled","theme-filled":"bg-background-theme text-foreground-on-contrast hover:bg-background-theme-hover disabled:bg-background-contrast-fade-disabled disabled:text-foreground-primary-disabled [&_svg]:text-icon-on-contrast disabled:[&_svg]:text-icon-contrast-disabled","warning-filled":"bg-background-error text-foreground-on-contrast hover:bg-background-error-hover disabled:bg-background-contrast-fade-disabled disabled:text-foreground-primary-disabled [&_svg]:text-icon-on-contrast disabled:[&_svg]:text-icon-contrast-disabled","nav-item":"font-normal hover:bg-background-contrast-fade-selected/30 text-foreground-tertiary hover:text-foreground-white","nav-item-selected":"font-normal bg-background-contrast-fade-selected/30 text-foreground-sidebar-active"},size:{default:"h-9 px-4 py-2",xs:"h-[30px] text-sm font-semibold px-3",sm:"h-9 px-3 py-2",lg:"h-10 px-8",xl:"h-12 px-8",xxl:"h-16 px-8",xxxl:"h-20 px-8 font-medium",icon:"h-9 w-9"}},defaultVariants:{variant:"fade-contrast-filled",size:"default"}}),Ze=l.forwardRef(({className:e,variant:n,size:t,asChild:r=!1,asDropdown:o,icon:a,children:s,...i},u)=>{const d=r?nu:"button";return r?c.jsx(d,{className:N(Pn({variant:n,size:t,className:e})),ref:u,...i,children:s}):c.jsxs(d,{className:N(Pn({variant:n,size:t,className:e})),ref:u,...i,children:[a&&c.jsx("span",{className:"w-6 h-6 flex items-center justify-center",children:a}),s,o&&c.jsx(Hr,{className:"w-6 h-6"})]})});Ze.displayName="Button";function ye(e){const n=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&n==="[object Date]"?new e.constructor(+e):typeof e=="number"||n==="[object Number]"||typeof e=="string"||n==="[object String]"?new Date(e):new Date(NaN)}function De(e,n){return e instanceof Date?new e.constructor(n):new Date(n)}function tt(e,n){const t=ye(e);return isNaN(n)?De(e,NaN):(n&&t.setDate(t.getDate()+n),t)}function xt(e,n){const t=ye(e);if(isNaN(n))return De(e,NaN);if(!n)return t;const r=t.getDate(),o=De(e,t.getTime());o.setMonth(t.getMonth()+n+1,0);const a=o.getDate();return r>=a?o:(t.setFullYear(o.getFullYear(),o.getMonth(),r),t)}const Zs=6048e5,R6=864e5,G6=6e4,j6=36e5,Y6=1e3;let U6={};function _n(){return U6}function it(e,n){var i,u,d,f;const t=_n(),r=(n==null?void 0:n.weekStartsOn)??((u=(i=n==null?void 0:n.locale)==null?void 0:i.options)==null?void 0:u.weekStartsOn)??t.weekStartsOn??((f=(d=t.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,o=ye(e),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function qt(e){return it(e,{weekStartsOn:1})}function ru(e){const n=ye(e),t=n.getFullYear(),r=De(e,0);r.setFullYear(t+1,0,4),r.setHours(0,0,0,0);const o=qt(r),a=De(e,0);a.setFullYear(t,0,4),a.setHours(0,0,0,0);const s=qt(a);return n.getTime()>=o.getTime()?t+1:n.getTime()>=s.getTime()?t:t-1}function tr(e){const n=ye(e);return n.setHours(0,0,0,0),n}function nr(e){const n=ye(e),t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+e-+t}function Dt(e,n){const t=tr(e),r=tr(n),o=+t-nr(t),a=+r-nr(r);return Math.round((o-a)/R6)}function q6(e){const n=ru(e),t=De(e,0);return t.setFullYear(n,0,4),t.setHours(0,0,0,0),qt(t)}function Ws(e,n){const t=n*7;return tt(e,t)}function K6(e,n){return xt(e,n*12)}function X6(e){let n;return e.forEach(function(t){const r=ye(t);(n===void 0||n<r||isNaN(Number(r)))&&(n=r)}),n||new Date(NaN)}function Q6(e){let n;return e.forEach(t=>{const r=ye(t);(!n||n>r||isNaN(+r))&&(n=r)}),n||new Date(NaN)}function dt(e,n){const t=tr(e),r=tr(n);return+t==+r}function Rs(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ou(e){if(!Rs(e)&&typeof e!="number")return!1;const n=ye(e);return!isNaN(Number(n))}function Ar(e,n){const t=ye(e),r=ye(n),o=t.getFullYear()-r.getFullYear(),a=t.getMonth()-r.getMonth();return o*12+a}function J6(e,n,t){const r=it(e,t),o=it(n,t),a=+r-nr(r),s=+o-nr(o);return Math.round((a-s)/Zs)}function Gs(e){const n=ye(e),t=n.getMonth();return n.setFullYear(n.getFullYear(),t+1,0),n.setHours(23,59,59,999),n}function ft(e){const n=ye(e);return n.setDate(1),n.setHours(0,0,0,0),n}function au(e){const n=ye(e),t=De(e,0);return t.setFullYear(n.getFullYear(),0,1),t.setHours(0,0,0,0),t}function js(e,n){var i,u,d,f;const t=_n(),r=(n==null?void 0:n.weekStartsOn)??((u=(i=n==null?void 0:n.locale)==null?void 0:i.options)==null?void 0:u.weekStartsOn)??t.weekStartsOn??((f=(d=t.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,o=ye(e),a=o.getDay(),s=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function su(e){return js(e,{weekStartsOn:1})}const e7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},t7=(e,n,t)=>{let r;const o=e7[e];return typeof o=="string"?r=o:n===1?r=o.one:r=o.other.replace("{{count}}",n.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function rr(e){return(n={})=>{const t=n.width?String(n.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}const n7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},r7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a7={date:rr({formats:n7,defaultWidth:"full"}),time:rr({formats:r7,defaultWidth:"full"}),dateTime:rr({formats:o7,defaultWidth:"full"})},s7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},i7=(e,n,t,r)=>s7[e];function Ot(e){return(n,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=t!=null&&t.width?String(t.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=t!=null&&t.width?String(t.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(n):n;return o[a]}}const l7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},c7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},u7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},d7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},h7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},g7={ordinalNumber:(e,n)=>{const t=Number(e),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:Ot({values:l7,defaultWidth:"wide"}),quarter:Ot({values:c7,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ot({values:u7,defaultWidth:"wide"}),day:Ot({values:d7,defaultWidth:"wide"}),dayPeriod:Ot({values:f7,defaultWidth:"wide",formattingValues:h7,defaultFormattingWidth:"wide"})};function Vt(e){return(n,t={})=>{const r=t.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=n.match(o);if(!a)return null;const s=a[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(i)?m7(i,h=>h.test(s)):p7(i,h=>h.test(s));let d;d=e.valueCallback?e.valueCallback(u):u,d=t.valueCallback?t.valueCallback(d):d;const f=n.slice(s.length);return{value:d,rest:f}}}function p7(e,n){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n(e[t]))return t}function m7(e,n){for(let t=0;t<e.length;t++)if(n(e[t]))return t}function iu(e){return(n,t={})=>{const r=n.match(e.matchPattern);if(!r)return null;const o=r[0],a=n.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=t.valueCallback?t.valueCallback(s):s;const i=n.slice(o.length);return{value:s,rest:i}}}const v7=/^(\d+)(th|st|nd|rd)?/i,C7=/\d+/i,w7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},y7={any:[/^b/i,/^(a|c)/i]},b7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},x7={any:[/1/i,/2/i,/3/i,/4/i]},S7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},E7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},M7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},L7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},N7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},P7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},_7={ordinalNumber:iu({matchPattern:v7,parsePattern:C7,valueCallback:e=>parseInt(e,10)}),era:Vt({matchPatterns:w7,defaultMatchWidth:"wide",parsePatterns:y7,defaultParseWidth:"any"}),quarter:Vt({matchPatterns:b7,defaultMatchWidth:"wide",parsePatterns:x7,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Vt({matchPatterns:S7,defaultMatchWidth:"wide",parsePatterns:E7,defaultParseWidth:"any"}),day:Vt({matchPatterns:M7,defaultMatchWidth:"wide",parsePatterns:L7,defaultParseWidth:"any"}),dayPeriod:Vt({matchPatterns:N7,defaultMatchWidth:"any",parsePatterns:P7,defaultParseWidth:"any"})},Fr={code:"en-US",formatDistance:t7,formatLong:a7,formatRelative:i7,localize:g7,match:_7,options:{weekStartsOn:0,firstWeekContainsDate:1}};function I7(e){const n=ye(e);return Dt(n,au(n))+1}function Ys(e){const n=ye(e),t=+qt(n)-+q6(n);return Math.round(t/Zs)+1}function Us(e,n){var f,h,g,m;const t=ye(e),r=t.getFullYear(),o=_n(),a=(n==null?void 0:n.firstWeekContainsDate)??((h=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??o.firstWeekContainsDate??((m=(g=o.locale)==null?void 0:g.options)==null?void 0:m.firstWeekContainsDate)??1,s=De(e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const i=it(s,n),u=De(e,0);u.setFullYear(r,0,a),u.setHours(0,0,0,0);const d=it(u,n);return t.getTime()>=i.getTime()?r+1:t.getTime()>=d.getTime()?r:r-1}function k7(e,n){var i,u,d,f;const t=_n(),r=(n==null?void 0:n.firstWeekContainsDate)??((u=(i=n==null?void 0:n.locale)==null?void 0:i.options)==null?void 0:u.firstWeekContainsDate)??t.firstWeekContainsDate??((f=(d=t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,o=Us(e,n),a=De(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),it(a,n)}function qs(e,n){const t=ye(e),r=+it(t,n)-+k7(t,n);return Math.round(r/Zs)+1}function Ie(e,n){const t=e<0?"-":"",r=Math.abs(e).toString().padStart(n,"0");return t+r}const cn={y(e,n){const t=e.getFullYear(),r=t>0?t:1-t;return Ie(n==="yy"?r%100:r,n.length)},M(e,n){const t=e.getMonth();return n==="M"?String(t+1):Ie(t+1,2)},d(e,n){return Ie(e.getDate(),n.length)},a(e,n){const t=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,n){return Ie(e.getHours()%12||12,n.length)},H(e,n){return Ie(e.getHours(),n.length)},m(e,n){return Ie(e.getMinutes(),n.length)},s(e,n){return Ie(e.getSeconds(),n.length)},S(e,n){const t=n.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,t-3));return Ie(o,n.length)}},or={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lu={G:function(e,n,t){const r=e.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(e,n,t){if(n==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return t.ordinalNumber(o,{unit:"year"})}return cn.y(e,n)},Y:function(e,n,t,r){const o=Us(e,r),a=o>0?o:1-o;if(n==="YY"){const s=a%100;return Ie(s,2)}return n==="Yo"?t.ordinalNumber(a,{unit:"year"}):Ie(a,n.length)},R:function(e,n){const t=ru(e);return Ie(t,n.length)},u:function(e,n){const t=e.getFullYear();return Ie(t,n.length)},Q:function(e,n,t){const r=Math.ceil((e.getMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return Ie(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,t){const r=Math.ceil((e.getMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return Ie(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,t){const r=e.getMonth();switch(n){case"M":case"MM":return cn.M(e,n);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,t){const r=e.getMonth();switch(n){case"L":return String(r+1);case"LL":return Ie(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,t,r){const o=qs(e,r);return n==="wo"?t.ordinalNumber(o,{unit:"week"}):Ie(o,n.length)},I:function(e,n,t){const r=Ys(e);return n==="Io"?t.ordinalNumber(r,{unit:"week"}):Ie(r,n.length)},d:function(e,n,t){return n==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):cn.d(e,n)},D:function(e,n,t){const r=I7(e);return n==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):Ie(r,n.length)},E:function(e,n,t){const r=e.getDay();switch(n){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,t,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Ie(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});case"eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,t,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Ie(a,n.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});case"cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,t){const r=e.getDay(),o=r===0?7:r;switch(n){case"i":return String(o);case"ii":return Ie(o,n.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,t){const o=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,t){const r=e.getHours();let o;switch(r===12?o=or.noon:r===0?o=or.midnight:o=r/12>=1?"pm":"am",n){case"b":case"bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,t){const r=e.getHours();let o;switch(r>=17?o=or.evening:r>=12?o=or.afternoon:r>=4?o=or.morning:o=or.night,n){case"B":case"BB":case"BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,t){if(n==="ho"){let r=e.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return cn.h(e,n)},H:function(e,n,t){return n==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):cn.H(e,n)},K:function(e,n,t){const r=e.getHours()%12;return n==="Ko"?t.ordinalNumber(r,{unit:"hour"}):Ie(r,n.length)},k:function(e,n,t){let r=e.getHours();return r===0&&(r=24),n==="ko"?t.ordinalNumber(r,{unit:"hour"}):Ie(r,n.length)},m:function(e,n,t){return n==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):cn.m(e,n)},s:function(e,n,t){return n==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):cn.s(e,n)},S:function(e,n){return cn.S(e,n)},X:function(e,n,t){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(n){case"X":return uu(r);case"XXXX":case"XX":return In(r);case"XXXXX":case"XXX":default:return In(r,":")}},x:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"x":return uu(r);case"xxxx":case"xx":return In(r);case"xxxxx":case"xxx":default:return In(r,":")}},O:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+cu(r,":");case"OOOO":default:return"GMT"+In(r,":")}},z:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+cu(r,":");case"zzzz":default:return"GMT"+In(r,":")}},t:function(e,n,t){const r=Math.trunc(e.getTime()/1e3);return Ie(r,n.length)},T:function(e,n,t){const r=e.getTime();return Ie(r,n.length)}};function cu(e,n=""){const t=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?t+String(o):t+String(o)+n+Ie(a,2)}function uu(e,n){return e%60===0?(e>0?"-":"+")+Ie(Math.abs(e)/60,2):In(e,n)}function In(e,n=""){const t=e>0?"-":"+",r=Math.abs(e),o=Ie(Math.trunc(r/60),2),a=Ie(r%60,2);return t+o+n+a}const du=(e,n)=>{switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},fu=(e,n)=>{switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Ks={p:fu,P:(e,n)=>{const t=e.match(/(P+)(p+)?/)||[],r=t[1],o=t[2];if(!o)return du(e,n);let a;switch(r){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",du(r,n)).replace("{{time}}",fu(o,n))}},T7=/^D+$/,D7=/^Y+$/,O7=["D","DD","YY","YYYY"];function hu(e){return T7.test(e)}function gu(e){return D7.test(e)}function Xs(e,n,t){const r=V7(e,n,t);if(console.warn(r),O7.includes(e))throw new RangeError(r)}function V7(e,n,t){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${n}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const H7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,F7=/^'([^]*?)'?$/,$7=/''/g,z7=/[a-zA-Z]/;function un(e,n,t){var f,h,g,m,C,p,v,w;const r=_n(),o=(t==null?void 0:t.locale)??r.locale??Fr,a=(t==null?void 0:t.firstWeekContainsDate)??((h=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??r.firstWeekContainsDate??((m=(g=r.locale)==null?void 0:g.options)==null?void 0:m.firstWeekContainsDate)??1,s=(t==null?void 0:t.weekStartsOn)??((p=(C=t==null?void 0:t.locale)==null?void 0:C.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((w=(v=r.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0,i=ye(e);if(!ou(i))throw new RangeError("Invalid time value");let u=n.match(A7).map(y=>{const b=y[0];if(b==="p"||b==="P"){const S=Ks[b];return S(y,o.formatLong)}return y}).join("").match(H7).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const b=y[0];if(b==="'")return{isToken:!1,value:B7(y)};if(lu[b])return{isToken:!0,value:y};if(b.match(z7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:y}});o.localize.preprocessor&&(u=o.localize.preprocessor(i,u));const d={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return u.map(y=>{if(!y.isToken)return y.value;const b=y.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&gu(b)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&hu(b))&&Xs(b,n,String(e));const S=lu[b[0]];return S(i,b,o.localize,d)}).join("")}function B7(e){const n=e.match(F7);return n?n[1].replace($7,"'"):e}function Z7(e){const n=ye(e),t=n.getFullYear(),r=n.getMonth(),o=De(e,0);return o.setFullYear(t,r+1,0),o.setHours(0,0,0,0),o.getDate()}function W7(){return Object.assign({},_n())}function R7(e){let t=ye(e).getDay();return t===0&&(t=7),t}function G7(e){return Math.trunc(+ye(e)/1e3)}function j7(e){const n=ye(e),t=n.getMonth();return n.setFullYear(n.getFullYear(),t+1,0),n.setHours(0,0,0,0),n}function Y7(e,n){return J6(j7(e),ft(e),n)+1}function Qs(e,n){const t=ye(e),r=ye(n);return t.getTime()>r.getTime()}function pu(e,n){const t=ye(e),r=ye(n);return+t<+r}function U7(e,n){const t=n instanceof Date?De(n,0):new n(0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}const q7=10;class mu{constructor(){ae(this,"subPriority",0)}validate(n,t){return!0}}class K7 extends mu{constructor(n,t,r,o,a){super(),this.value=n,this.validateValue=t,this.setValue=r,this.priority=o,a&&(this.subPriority=a)}validate(n,t){return this.validateValue(n,this.value,t)}set(n,t,r){return this.setValue(n,t,this.value,r)}}class X7 extends mu{constructor(){super(...arguments);ae(this,"priority",q7);ae(this,"subPriority",-1)}set(t,r){return r.timestampIsSet?t:De(t,U7(t,Date))}}class Ne{run(n,t,r,o){const a=this.parse(n,t,r,o);return a?{setter:new K7(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(n,t,r){return!0}}class Q7 extends Ne{constructor(){super(...arguments);ae(this,"priority",140);ae(this,"incompatibleTokens",["R","u","t","T"])}parse(t,r,o){switch(r){case"G":case"GG":case"GGG":return o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"});case"GGGGG":return o.era(t,{width:"narrow"});case"GGGG":default:return o.era(t,{width:"wide"})||o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"})}}set(t,r,o){return r.era=o,t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}const Ye={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ht={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Ue(e,n){return e&&{value:n(e.value),rest:e.rest}}function $e(e,n){const t=n.match(e);return t?{value:parseInt(t[0],10),rest:n.slice(t[0].length)}:null}function At(e,n){const t=n.match(e);if(!t)return null;if(t[0]==="Z")return{value:0,rest:n.slice(1)};const r=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,s=t[5]?parseInt(t[5],10):0;return{value:r*(o*j6+a*G6+s*Y6),rest:n.slice(t[0].length)}}function vu(e){return $e(Ye.anyDigitsSigned,e)}function We(e,n){switch(e){case 1:return $e(Ye.singleDigit,n);case 2:return $e(Ye.twoDigits,n);case 3:return $e(Ye.threeDigits,n);case 4:return $e(Ye.fourDigits,n);default:return $e(new RegExp("^\\d{1,"+e+"}"),n)}}function Ro(e,n){switch(e){case 1:return $e(Ye.singleDigitSigned,n);case 2:return $e(Ye.twoDigitsSigned,n);case 3:return $e(Ye.threeDigitsSigned,n);case 4:return $e(Ye.fourDigitsSigned,n);default:return $e(new RegExp("^-?\\d{1,"+e+"}"),n)}}function Js(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Cu(e,n){const t=n>0,r=t?n:1-n;let o;if(r<=50)o=e||100;else{const a=r+50,s=Math.trunc(a/100)*100,i=e>=a%100;o=e+s-(i?100:0)}return t?o:1-o}function wu(e){return e%400===0||e%4===0&&e%100!==0}class J7 extends Ne{constructor(){super(...arguments);ae(this,"priority",130);ae(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,r,o){const a=s=>({year:s,isTwoDigitYear:r==="yy"});switch(r){case"y":return Ue(We(4,t),a);case"yo":return Ue(o.ordinalNumber(t,{unit:"year"}),a);default:return Ue(We(r.length,t),a)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,o){const a=t.getFullYear();if(o.isTwoDigitYear){const i=Cu(o.year,a);return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}const s=!("era"in r)||r.era===1?o.year:1-o.year;return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}}class eh extends Ne{constructor(){super(...arguments);ae(this,"priority",130);ae(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,r,o){const a=s=>({year:s,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Ue(We(4,t),a);case"Yo":return Ue(o.ordinalNumber(t,{unit:"year"}),a);default:return Ue(We(r.length,t),a)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,o,a){const s=Us(t,a);if(o.isTwoDigitYear){const u=Cu(o.year,s);return t.setFullYear(u,0,a.firstWeekContainsDate),t.setHours(0,0,0,0),it(t,a)}const i=!("era"in r)||r.era===1?o.year:1-o.year;return t.setFullYear(i,0,a.firstWeekContainsDate),t.setHours(0,0,0,0),it(t,a)}}class th extends Ne{constructor(){super(...arguments);ae(this,"priority",130);ae(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,r){return Ro(r==="R"?4:r.length,t)}set(t,r,o){const a=De(t,0);return a.setFullYear(o,0,4),a.setHours(0,0,0,0),qt(a)}}class nh extends Ne{constructor(){super(...arguments);ae(this,"priority",130);ae(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,r){return Ro(r==="u"?4:r.length,t)}set(t,r,o){return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}class rh extends Ne{constructor(){super(...arguments);ae(this,"priority",120);ae(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,r,o){switch(r){case"Q":case"QQ":return We(r.length,t);case"Qo":return o.ordinalNumber(t,{unit:"quarter"});case"QQQ":return o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(t,{width:"wide",context:"formatting"})||o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}}class oh extends Ne{constructor(){super(...arguments);ae(this,"priority",120);ae(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,r,o){switch(r){case"q":case"qq":return We(r.length,t);case"qo":return o.ordinalNumber(t,{unit:"quarter"});case"qqq":return o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(t,{width:"wide",context:"standalone"})||o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}}class ah extends Ne{constructor(){super(...arguments);ae(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);ae(this,"priority",110)}parse(t,r,o){const a=s=>s-1;switch(r){case"M":return Ue($e(Ye.month,t),a);case"MM":return Ue(We(2,t),a);case"Mo":return Ue(o.ordinalNumber(t,{unit:"month"}),a);case"MMM":return o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(t,{width:"wide",context:"formatting"})||o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}class sh extends Ne{constructor(){super(...arguments);ae(this,"priority",110);ae(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,r,o){const a=s=>s-1;switch(r){case"L":return Ue($e(Ye.month,t),a);case"LL":return Ue(We(2,t),a);case"Lo":return Ue(o.ordinalNumber(t,{unit:"month"}),a);case"LLL":return o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(t,{width:"wide",context:"standalone"})||o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}function ih(e,n,t){const r=ye(e),o=qs(r,t)-n;return r.setDate(r.getDate()-o*7),r}class lh extends Ne{constructor(){super(...arguments);ae(this,"priority",100);ae(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,r,o){switch(r){case"w":return $e(Ye.week,t);case"wo":return o.ordinalNumber(t,{unit:"week"});default:return We(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,o,a){return it(ih(t,o,a),a)}}function ch(e,n){const t=ye(e),r=Ys(t)-n;return t.setDate(t.getDate()-r*7),t}class uh extends Ne{constructor(){super(...arguments);ae(this,"priority",100);ae(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,r,o){switch(r){case"I":return $e(Ye.week,t);case"Io":return o.ordinalNumber(t,{unit:"week"});default:return We(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,o){return qt(ch(t,o))}}const dh=[31,28,31,30,31,30,31,31,30,31,30,31],fh=[31,29,31,30,31,30,31,31,30,31,30,31];class hh extends Ne{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"subPriority",1);ae(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,r,o){switch(r){case"d":return $e(Ye.date,t);case"do":return o.ordinalNumber(t,{unit:"date"});default:return We(r.length,t)}}validate(t,r){const o=t.getFullYear(),a=wu(o),s=t.getMonth();return a?r>=1&&r<=fh[s]:r>=1&&r<=dh[s]}set(t,r,o){return t.setDate(o),t.setHours(0,0,0,0),t}}class gh extends Ne{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"subpriority",1);ae(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,r,o){switch(r){case"D":case"DD":return $e(Ye.dayOfYear,t);case"Do":return o.ordinalNumber(t,{unit:"date"});default:return We(r.length,t)}}validate(t,r){const o=t.getFullYear();return wu(o)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,o){return t.setMonth(0,o),t.setHours(0,0,0,0),t}}function ei(e,n,t){var h,g,m,C;const r=_n(),o=(t==null?void 0:t.weekStartsOn)??((g=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((C=(m=r.locale)==null?void 0:m.options)==null?void 0:C.weekStartsOn)??0,a=ye(e),s=a.getDay(),u=(n%7+7)%7,d=7-o,f=n<0||n>6?n-(s+d)%7:(u+d)%7-(s+d)%7;return tt(a,f)}class ph extends Ne{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,r,o){switch(r){case"E":case"EE":case"EEE":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,o,a){return t=ei(t,o,a),t.setHours(0,0,0,0),t}}class mh extends Ne{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,r,o,a){const s=i=>{const u=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+u};switch(r){case"e":case"ee":return Ue(We(r.length,t),s);case"eo":return Ue(o.ordinalNumber(t,{unit:"day"}),s);case"eee":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeeee":return o.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,o,a){return t=ei(t,o,a),t.setHours(0,0,0,0),t}}class vh extends Ne{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,r,o,a){const s=i=>{const u=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+u};switch(r){case"c":case"cc":return Ue(We(r.length,t),s);case"co":return Ue(o.ordinalNumber(t,{unit:"day"}),s);case"ccc":return o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"ccccc":return o.day(t,{width:"narrow",context:"standalone"});case"cccccc":return o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(t,{width:"wide",context:"standalone"})||o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,o,a){return t=ei(t,o,a),t.setHours(0,0,0,0),t}}function Ch(e,n){const t=ye(e),r=R7(t),o=n-r;return tt(t,o)}class wh extends Ne{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,r,o){const a=s=>s===0?7:s;switch(r){case"i":case"ii":return We(r.length,t);case"io":return o.ordinalNumber(t,{unit:"day"});case"iii":return Ue(o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),a);case"iiiii":return Ue(o.day(t,{width:"narrow",context:"formatting"}),a);case"iiiiii":return Ue(o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),a);case"iiii":default:return Ue(o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),a)}}validate(t,r){return r>=1&&r<=7}set(t,r,o){return t=Ch(t,o),t.setHours(0,0,0,0),t}}class yh extends Ne{constructor(){super(...arguments);ae(this,"priority",80);ae(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,r,o){switch(r){case"a":case"aa":case"aaa":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,o){return t.setHours(Js(o),0,0,0),t}}class bh extends Ne{constructor(){super(...arguments);ae(this,"priority",80);ae(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,r,o){switch(r){case"b":case"bb":case"bbb":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,o){return t.setHours(Js(o),0,0,0),t}}class xh extends Ne{constructor(){super(...arguments);ae(this,"priority",80);ae(this,"incompatibleTokens",["a","b","t","T"])}parse(t,r,o){switch(r){case"B":case"BB":case"BBB":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,o){return t.setHours(Js(o),0,0,0),t}}class Sh extends Ne{constructor(){super(...arguments);ae(this,"priority",70);ae(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,r,o){switch(r){case"h":return $e(Ye.hour12h,t);case"ho":return o.ordinalNumber(t,{unit:"hour"});default:return We(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,o){const a=t.getHours()>=12;return a&&o<12?t.setHours(o+12,0,0,0):!a&&o===12?t.setHours(0,0,0,0):t.setHours(o,0,0,0),t}}class Eh extends Ne{constructor(){super(...arguments);ae(this,"priority",70);ae(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,r,o){switch(r){case"H":return $e(Ye.hour23h,t);case"Ho":return o.ordinalNumber(t,{unit:"hour"});default:return We(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,o){return t.setHours(o,0,0,0),t}}class Mh extends Ne{constructor(){super(...arguments);ae(this,"priority",70);ae(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,r,o){switch(r){case"K":return $e(Ye.hour11h,t);case"Ko":return o.ordinalNumber(t,{unit:"hour"});default:return We(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,o){return t.getHours()>=12&&o<12?t.setHours(o+12,0,0,0):t.setHours(o,0,0,0),t}}class Lh extends Ne{constructor(){super(...arguments);ae(this,"priority",70);ae(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,r,o){switch(r){case"k":return $e(Ye.hour24h,t);case"ko":return o.ordinalNumber(t,{unit:"hour"});default:return We(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,o){const a=o<=24?o%24:o;return t.setHours(a,0,0,0),t}}class Nh extends Ne{constructor(){super(...arguments);ae(this,"priority",60);ae(this,"incompatibleTokens",["t","T"])}parse(t,r,o){switch(r){case"m":return $e(Ye.minute,t);case"mo":return o.ordinalNumber(t,{unit:"minute"});default:return We(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,o){return t.setMinutes(o,0,0),t}}class Ph extends Ne{constructor(){super(...arguments);ae(this,"priority",50);ae(this,"incompatibleTokens",["t","T"])}parse(t,r,o){switch(r){case"s":return $e(Ye.second,t);case"so":return o.ordinalNumber(t,{unit:"second"});default:return We(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,o){return t.setSeconds(o,0),t}}class _h extends Ne{constructor(){super(...arguments);ae(this,"priority",30);ae(this,"incompatibleTokens",["t","T"])}parse(t,r){const o=a=>Math.trunc(a*Math.pow(10,-r.length+3));return Ue(We(r.length,t),o)}set(t,r,o){return t.setMilliseconds(o),t}}class Ih extends Ne{constructor(){super(...arguments);ae(this,"priority",10);ae(this,"incompatibleTokens",["t","T","x"])}parse(t,r){switch(r){case"X":return At(Ht.basicOptionalMinutes,t);case"XX":return At(Ht.basic,t);case"XXXX":return At(Ht.basicOptionalSeconds,t);case"XXXXX":return At(Ht.extendedOptionalSeconds,t);case"XXX":default:return At(Ht.extended,t)}}set(t,r,o){return r.timestampIsSet?t:De(t,t.getTime()-nr(t)-o)}}class kh extends Ne{constructor(){super(...arguments);ae(this,"priority",10);ae(this,"incompatibleTokens",["t","T","X"])}parse(t,r){switch(r){case"x":return At(Ht.basicOptionalMinutes,t);case"xx":return At(Ht.basic,t);case"xxxx":return At(Ht.basicOptionalSeconds,t);case"xxxxx":return At(Ht.extendedOptionalSeconds,t);case"xxx":default:return At(Ht.extended,t)}}set(t,r,o){return r.timestampIsSet?t:De(t,t.getTime()-nr(t)-o)}}class Th extends Ne{constructor(){super(...arguments);ae(this,"priority",40);ae(this,"incompatibleTokens","*")}parse(t){return vu(t)}set(t,r,o){return[De(t,o*1e3),{timestampIsSet:!0}]}}class Dh extends Ne{constructor(){super(...arguments);ae(this,"priority",20);ae(this,"incompatibleTokens","*")}parse(t){return vu(t)}set(t,r,o){return[De(t,o),{timestampIsSet:!0}]}}const Oh={G:new Q7,y:new J7,Y:new eh,R:new th,u:new nh,Q:new rh,q:new oh,M:new ah,L:new sh,w:new lh,I:new uh,d:new hh,D:new gh,E:new ph,e:new mh,c:new vh,i:new wh,a:new yh,b:new bh,B:new xh,h:new Sh,H:new Eh,K:new Mh,k:new Lh,m:new Nh,s:new Ph,S:new _h,X:new Ih,x:new kh,t:new Th,T:new Dh},Vh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Hh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ah=/^'([^]*?)'?$/,Fh=/''/g,$h=/\S/,zh=/[a-zA-Z]/;function Bh(e,n,t,r){var p,v,w,y,b,S,M,L;const o=W7(),a=(r==null?void 0:r.locale)??o.locale??Fr,s=(r==null?void 0:r.firstWeekContainsDate)??((v=(p=r==null?void 0:r.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??o.firstWeekContainsDate??((y=(w=o.locale)==null?void 0:w.options)==null?void 0:y.firstWeekContainsDate)??1,i=(r==null?void 0:r.weekStartsOn)??((S=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:S.weekStartsOn)??o.weekStartsOn??((L=(M=o.locale)==null?void 0:M.options)==null?void 0:L.weekStartsOn)??0,u={firstWeekContainsDate:s,weekStartsOn:i,locale:a},d=[new X7],f=n.match(Hh).map(E=>{const I=E[0];if(I in Ks){const k=Ks[I];return k(E,a.formatLong)}return E}).join("").match(Vh),h=[];for(let E of f){!(r!=null&&r.useAdditionalWeekYearTokens)&&gu(E)&&Xs(E,n,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&hu(E)&&Xs(E,n,e);const I=E[0],k=Oh[I];if(k){const{incompatibleTokens:O}=k;if(Array.isArray(O)){const V=h.find(Y=>O.includes(Y.token)||Y.token===I);if(V)throw new RangeError(`The format string mustn't contain \`${V.fullToken}\` and \`${E}\` at the same time`)}else if(k.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${E}\` and any other token at the same time`);h.push({token:I,fullToken:E});const H=k.run(e,E,a.match,u);if(!H)return De(t,NaN);d.push(H.setter),e=H.rest}else{if(I.match(zh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");if(E==="''"?E="'":I==="'"&&(E=Zh(E)),e.indexOf(E)===0)e=e.slice(E.length);else return De(t,NaN)}}if(e.length>0&&$h.test(e))return De(t,NaN);const g=d.map(E=>E.priority).sort((E,I)=>I-E).filter((E,I,k)=>k.indexOf(E)===I).map(E=>d.filter(I=>I.priority===E).sort((I,k)=>k.subPriority-I.subPriority)).map(E=>E[0]);let m=ye(t);if(isNaN(m.getTime()))return De(t,NaN);const C={};for(const E of g){if(!E.validate(m,u))return De(t,NaN);const I=E.set(m,C,u);Array.isArray(I)?(m=I[0],Object.assign(C,I[1])):m=I}return De(t,m)}function Zh(e){return e.match(Ah)[1].replace(Fh,"'")}function yu(e,n,t){const r=it(e,t),o=it(n,t);return+r==+o}function ti(e,n){const t=ye(e),r=ye(n);return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()}function Wh(e,n){const t=ye(e),r=ye(n);return t.getFullYear()===r.getFullYear()}function ni(e,n){return tt(e,-n)}function ri(e,n){const t=ye(e),r=t.getFullYear(),o=t.getDate(),a=De(e,0);a.setFullYear(r,n,15),a.setHours(0,0,0,0);const s=Z7(a);return t.setMonth(n,Math.min(o,s)),t}function bu(e,n){const t=ye(e);return isNaN(+t)?De(e,NaN):(t.setFullYear(n),t)}function $r(e,n){if(e.one!==void 0&&n===1)return e.one;const t=n%10,r=n%100;return t===1&&r!==11?e.singularNominative.replace("{{count}}",String(n)):t>=2&&t<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(n)):e.pluralGenitive.replace("{{count}}",String(n))}function lt(e){return(n,t)=>t!=null&&t.addSuffix?t.comparison&&t.comparison>0?e.future?$r(e.future,n):"через "+$r(e.regular,n):e.past?$r(e.past,n):$r(e.regular,n)+" назад":$r(e.regular,n)}const Rh={lessThanXSeconds:lt({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:lt({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(e,n)=>n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:lt({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:lt({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:lt({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:lt({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:lt({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:lt({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:lt({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:lt({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:lt({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:lt({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:lt({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:lt({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:lt({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},Gh=(e,n,t)=>Rh[e](n,t),jh={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},Yh={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Uh={any:"{{date}}, {{time}}"},qh={date:rr({formats:jh,defaultWidth:"full"}),time:rr({formats:Yh,defaultWidth:"full"}),dateTime:rr({formats:Uh,defaultWidth:"any"})},oi=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function Kh(e){const n=oi[e];switch(e){case 0:return"'в прошлое "+n+" в' p";case 1:case 2:case 4:return"'в прошлый "+n+" в' p";case 3:case 5:case 6:return"'в прошлую "+n+" в' p"}}function xu(e){const n=oi[e];return e===2?"'во "+n+" в' p":"'в "+n+" в' p"}function Xh(e){const n=oi[e];switch(e){case 0:return"'в следующее "+n+" в' p";case 1:case 2:case 4:return"'в следующий "+n+" в' p";case 3:case 5:case 6:return"'в следующую "+n+" в' p"}}const Qh={lastWeek:(e,n,t)=>{const r=e.getDay();return yu(e,n,t)?xu(r):Kh(r)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(e,n,t)=>{const r=e.getDay();return yu(e,n,t)?xu(r):Xh(r)},other:"P"},Jh=(e,n,t,r)=>{const o=Qh[e];return typeof o=="function"?o(n,t,r):o},eg={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},tg={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},ng={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},rg={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},og={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},ag={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},sg={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},ig={ordinalNumber:(e,n)=>{const t=Number(e),r=n==null?void 0:n.unit;let o;return r==="date"?o="-е":r==="week"||r==="minute"||r==="second"?o="-я":o="-й",t+o},era:Ot({values:eg,defaultWidth:"wide"}),quarter:Ot({values:tg,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ot({values:ng,defaultWidth:"wide",formattingValues:rg,defaultFormattingWidth:"wide"}),day:Ot({values:og,defaultWidth:"wide"}),dayPeriod:Ot({values:ag,defaultWidth:"any",formattingValues:sg,defaultFormattingWidth:"wide"})},lg=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,cg=/\d+/i,ug={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},dg={any:[/^д/i,/^н/i]},fg={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},hg={any:[/1/i,/2/i,/3/i,/4/i]},gg={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},pg={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},mg={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},vg={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},Cg={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},wg={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},yg={ordinalNumber:iu({matchPattern:lg,parsePattern:cg,valueCallback:e=>parseInt(e,10)}),era:Vt({matchPatterns:ug,defaultMatchWidth:"wide",parsePatterns:dg,defaultParseWidth:"any"}),quarter:Vt({matchPatterns:fg,defaultMatchWidth:"wide",parsePatterns:hg,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Vt({matchPatterns:gg,defaultMatchWidth:"wide",parsePatterns:pg,defaultParseWidth:"any"}),day:Vt({matchPatterns:mg,defaultMatchWidth:"wide",parsePatterns:vg,defaultParseWidth:"any"}),dayPeriod:Vt({matchPatterns:Cg,defaultMatchWidth:"wide",parsePatterns:wg,defaultParseWidth:"any"})},ai={code:"ru",formatDistance:Gh,formatLong:qh,formatRelative:Jh,localize:ig,match:yg,options:{weekStartsOn:1,firstWeekContainsDate:1}};var ue=function(){return ue=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])}return n},ue.apply(this,arguments)};function bg(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t}function Su(e,n,t){for(var r=0,o=n.length,a;r<o;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return e.concat(a||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;function zr(e){return e.mode==="multiple"}function Br(e){return e.mode==="range"}function Go(e){return e.mode==="single"}var xg={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function Sg(e,n){return un(e,"LLLL y",n)}function Eg(e,n){return un(e,"d",n)}function Mg(e,n){return un(e,"LLLL",n)}function Lg(e){return"".concat(e)}function Ng(e,n){return un(e,"cccccc",n)}function Pg(e,n){return un(e,"yyyy",n)}var _g=Object.freeze({__proto__:null,formatCaption:Sg,formatDay:Eg,formatMonthCaption:Mg,formatWeekNumber:Lg,formatWeekdayName:Ng,formatYearCaption:Pg}),Ig=function(e,n,t){return un(e,"do MMMM (EEEE)",t)},kg=function(){return"Month: "},Tg=function(){return"Go to next month"},Dg=function(){return"Go to previous month"},Og=function(e,n){return un(e,"cccc",n)},Vg=function(e){return"Week n. ".concat(e)},Hg=function(){return"Year: "},Ag=Object.freeze({__proto__:null,labelDay:Ig,labelMonthDropdown:kg,labelNext:Tg,labelPrevious:Dg,labelWeekNumber:Vg,labelWeekday:Og,labelYearDropdown:Hg});function Fg(){var e="buttons",n=xg,t=Fr,r={},o={},a=1,s={},i=new Date;return{captionLayout:e,classNames:n,formatters:_g,labels:Ag,locale:t,modifiersClassNames:r,modifiers:o,numberOfMonths:a,styles:s,today:i,mode:"default"}}function $g(e){var n=e.fromYear,t=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,s=e.toDate;return r?a=ft(r):n&&(a=new Date(n,0,1)),o?s=Gs(o):t&&(s=new Date(t,11,31)),{fromDate:a?tr(a):void 0,toDate:s?tr(s):void 0}}var Eu=D.createContext(void 0);function zg(e){var n,t=e.initialProps,r=Fg(),o=$g(t),a=o.fromDate,s=o.toDate,i=(n=t.captionLayout)!==null&&n!==void 0?n:r.captionLayout;i!=="buttons"&&(!a||!s)&&(i="buttons");var u;(Go(t)||zr(t)||Br(t))&&(u=t.onSelect);var d=ue(ue(ue({},r),t),{captionLayout:i,classNames:ue(ue({},r.classNames),t.classNames),components:ue({},t.components),formatters:ue(ue({},r.formatters),t.formatters),fromDate:a,labels:ue(ue({},r.labels),t.labels),mode:t.mode||r.mode,modifiers:ue(ue({},r.modifiers),t.modifiers),modifiersClassNames:ue(ue({},r.modifiersClassNames),t.modifiersClassNames),onSelect:u,styles:ue(ue({},r.styles),t.styles),toDate:s});return c.jsx(Eu.Provider,{value:d,children:e.children})}function Oe(){var e=D.useContext(Eu);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Mu(e){var n=Oe(),t=n.locale,r=n.classNames,o=n.styles,a=n.formatters.formatCaption;return c.jsx("div",{className:r.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:t})})}function Bg(e){return c.jsx("svg",ue({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:c.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Lu(e){var n,t,r=e.onChange,o=e.value,a=e.children,s=e.caption,i=e.className,u=e.style,d=Oe(),f=(t=(n=d.components)===null||n===void 0?void 0:n.IconDropdown)!==null&&t!==void 0?t:Bg;return c.jsxs("div",{className:i,style:u,children:[c.jsx("span",{className:d.classNames.vhidden,children:e["aria-label"]}),c.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:o,onChange:r,children:a}),c.jsxs("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true",children:[s,c.jsx(f,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})]})]})}function Zg(e){var n,t=Oe(),r=t.fromDate,o=t.toDate,a=t.styles,s=t.locale,i=t.formatters.formatMonthCaption,u=t.classNames,d=t.components,f=t.labels.labelMonthDropdown;if(!r)return c.jsx(c.Fragment,{});if(!o)return c.jsx(c.Fragment,{});var h=[];if(Wh(r,o))for(var g=ft(r),m=r.getMonth();m<=o.getMonth();m++)h.push(ri(g,m));else for(var g=ft(new Date),m=0;m<=11;m++)h.push(ri(g,m));var C=function(v){var w=Number(v.target.value),y=ri(ft(e.displayMonth),w);e.onChange(y)},p=(n=d==null?void 0:d.Dropdown)!==null&&n!==void 0?n:Lu;return c.jsx(p,{name:"months","aria-label":f(),className:u.dropdown_month,style:a.dropdown_month,onChange:C,value:e.displayMonth.getMonth(),caption:i(e.displayMonth,{locale:s}),children:h.map(function(v){return c.jsx("option",{value:v.getMonth(),children:i(v,{locale:s})},v.getMonth())})})}function Wg(e){var n,t=e.displayMonth,r=Oe(),o=r.fromDate,a=r.toDate,s=r.locale,i=r.styles,u=r.classNames,d=r.components,f=r.formatters.formatYearCaption,h=r.labels.labelYearDropdown,g=[];if(!o)return c.jsx(c.Fragment,{});if(!a)return c.jsx(c.Fragment,{});for(var m=o.getFullYear(),C=a.getFullYear(),p=m;p<=C;p++)g.push(bu(au(new Date),p));var v=function(y){var b=bu(ft(t),Number(y.target.value));e.onChange(b)},w=(n=d==null?void 0:d.Dropdown)!==null&&n!==void 0?n:Lu;return c.jsx(w,{name:"years","aria-label":h(),className:u.dropdown_year,style:i.dropdown_year,onChange:v,value:t.getFullYear(),caption:f(t,{locale:s}),children:g.map(function(y){return c.jsx("option",{value:y.getFullYear(),children:f(y,{locale:s})},y.getFullYear())})})}function Rg(e,n){var t=D.useState(e),r=t[0],o=t[1],a=n===void 0?r:n;return[a,o]}function Gg(e){var n=e.month,t=e.defaultMonth,r=e.today,o=n||t||r||new Date,a=e.toDate,s=e.fromDate,i=e.numberOfMonths,u=i===void 0?1:i;if(a&&Ar(a,o)<0){var d=-1*(u-1);o=xt(a,d)}return s&&Ar(o,s)<0&&(o=s),ft(o)}function jg(){var e=Oe(),n=Gg(e),t=Rg(n,e.month),r=t[0],o=t[1],a=function(s){var i;if(!e.disableNavigation){var u=ft(s);o(u),(i=e.onMonthChange)===null||i===void 0||i.call(e,u)}};return[r,a]}function Yg(e,n){for(var t=n.reverseMonths,r=n.numberOfMonths,o=ft(e),a=ft(xt(o,r)),s=Ar(a,o),i=[],u=0;u<s;u++){var d=xt(o,u);i.push(d)}return t&&(i=i.reverse()),i}function Ug(e,n){if(!n.disableNavigation){var t=n.toDate,r=n.pagedNavigation,o=n.numberOfMonths,a=o===void 0?1:o,s=r?a:1,i=ft(e);if(!t)return xt(i,s);var u=Ar(t,e);if(!(u<a))return xt(i,s)}}function qg(e,n){if(!n.disableNavigation){var t=n.fromDate,r=n.pagedNavigation,o=n.numberOfMonths,a=o===void 0?1:o,s=r?a:1,i=ft(e);if(!t)return xt(i,-s);var u=Ar(i,t);if(!(u<=0))return xt(i,-s)}}var Nu=D.createContext(void 0);function Kg(e){var n=Oe(),t=jg(),r=t[0],o=t[1],a=Yg(r,n),s=Ug(r,n),i=qg(r,n),u=function(h){return a.some(function(g){return ti(h,g)})},d=function(h,g){u(h)||(g&&pu(h,g)?o(xt(h,1+n.numberOfMonths*-1)):o(h))},f={currentMonth:r,displayMonths:a,goToMonth:o,goToDate:d,previousMonth:i,nextMonth:s,isDateDisplayed:u};return c.jsx(Nu.Provider,{value:f,children:e.children})}function Zr(){var e=D.useContext(Nu);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Pu(e){var n,t=Oe(),r=t.classNames,o=t.styles,a=t.components,s=Zr().goToMonth,i=function(f){s(xt(f,e.displayIndex?-e.displayIndex:0))},u=(n=a==null?void 0:a.CaptionLabel)!==null&&n!==void 0?n:Mu,d=c.jsx(u,{id:e.id,displayMonth:e.displayMonth});return c.jsxs("div",{className:r.caption_dropdowns,style:o.caption_dropdowns,children:[c.jsx("div",{className:r.vhidden,children:d}),c.jsx(Zg,{onChange:i,displayMonth:e.displayMonth}),c.jsx(Wg,{onChange:i,displayMonth:e.displayMonth})]})}function Xg(e){return c.jsx("svg",ue({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:c.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Qg(e){return c.jsx("svg",ue({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:c.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var jo=D.forwardRef(function(e,n){var t=Oe(),r=t.classNames,o=t.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var s=a.join(" "),i=ue(ue({},o.button_reset),o.button);return e.style&&Object.assign(i,e.style),c.jsx("button",ue({},e,{ref:n,type:"button",className:s,style:i}))});function Jg(e){var n,t,r=Oe(),o=r.dir,a=r.locale,s=r.classNames,i=r.styles,u=r.labels,d=u.labelPrevious,f=u.labelNext,h=r.components;if(!e.nextMonth&&!e.previousMonth)return c.jsx(c.Fragment,{});var g=d(e.previousMonth,{locale:a}),m=[s.nav_button,s.nav_button_previous].join(" "),C=f(e.nextMonth,{locale:a}),p=[s.nav_button,s.nav_button_next].join(" "),v=(n=h==null?void 0:h.IconRight)!==null&&n!==void 0?n:Qg,w=(t=h==null?void 0:h.IconLeft)!==null&&t!==void 0?t:Xg;return c.jsxs("div",{className:s.nav,style:i.nav,children:[!e.hidePrevious&&c.jsx(jo,{name:"previous-month","aria-label":g,className:m,style:i.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?c.jsx(v,{className:s.nav_icon,style:i.nav_icon}):c.jsx(w,{className:s.nav_icon,style:i.nav_icon})}),!e.hideNext&&c.jsx(jo,{name:"next-month","aria-label":C,className:p,style:i.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:o==="rtl"?c.jsx(w,{className:s.nav_icon,style:i.nav_icon}):c.jsx(v,{className:s.nav_icon,style:i.nav_icon})})]})}function _u(e){var n=Oe().numberOfMonths,t=Zr(),r=t.previousMonth,o=t.nextMonth,a=t.goToMonth,s=t.displayMonths,i=s.findIndex(function(C){return ti(e.displayMonth,C)}),u=i===0,d=i===s.length-1,f=n>1&&(u||!d),h=n>1&&(d||!u),g=function(){r&&a(r)},m=function(){o&&a(o)};return c.jsx(Jg,{displayMonth:e.displayMonth,hideNext:f,hidePrevious:h,nextMonth:o,previousMonth:r,onPreviousClick:g,onNextClick:m})}function ep(e){var n,t=Oe(),r=t.classNames,o=t.disableNavigation,a=t.styles,s=t.captionLayout,i=t.components,u=(n=i==null?void 0:i.CaptionLabel)!==null&&n!==void 0?n:Mu,d;return o?d=c.jsx(u,{id:e.id,displayMonth:e.displayMonth}):s==="dropdown"?d=c.jsx(Pu,{displayMonth:e.displayMonth,id:e.id}):s==="dropdown-buttons"?d=c.jsxs(c.Fragment,{children:[c.jsx(Pu,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),c.jsx(_u,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):d=c.jsxs(c.Fragment,{children:[c.jsx(u,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),c.jsx(_u,{displayMonth:e.displayMonth,id:e.id})]}),c.jsx("div",{className:r.caption,style:a.caption,children:d})}function tp(e){var n=Oe(),t=n.footer,r=n.styles,o=n.classNames.tfoot;return t?c.jsx("tfoot",{className:o,style:r.tfoot,children:c.jsx("tr",{children:c.jsx("td",{colSpan:8,children:t})})}):c.jsx(c.Fragment,{})}function np(e,n,t){for(var r=t?qt(new Date):it(new Date,{locale:e,weekStartsOn:n}),o=[],a=0;a<7;a++){var s=tt(r,a);o.push(s)}return o}function rp(){var e=Oe(),n=e.classNames,t=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,s=e.ISOWeek,i=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,d=np(o,a,s);return c.jsxs("tr",{style:t.head_row,className:n.head_row,children:[r&&c.jsx("td",{style:t.head_cell,className:n.head_cell}),d.map(function(f,h){return c.jsx("th",{scope:"col",className:n.head_cell,style:t.head_cell,"aria-label":u(f,{locale:o}),children:i(f,{locale:o})},h)})]})}function op(){var e,n=Oe(),t=n.classNames,r=n.styles,o=n.components,a=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:rp;return c.jsx("thead",{style:r.head,className:t.head,children:c.jsx(a,{})})}function ap(e){var n=Oe(),t=n.locale,r=n.formatters.formatDay;return c.jsx(c.Fragment,{children:r(e.date,{locale:t})})}var si=D.createContext(void 0);function sp(e){if(!zr(e.initialProps)){var n={selected:void 0,modifiers:{disabled:[]}};return c.jsx(si.Provider,{value:n,children:e.children})}return c.jsx(ip,{initialProps:e.initialProps,children:e.children})}function ip(e){var n=e.initialProps,t=e.children,r=n.selected,o=n.min,a=n.max,s=function(d,f,h){var g,m;(g=n.onDayClick)===null||g===void 0||g.call(n,d,f,h);var C=!!(f.selected&&o&&(r==null?void 0:r.length)===o);if(!C){var p=!!(!f.selected&&a&&(r==null?void 0:r.length)===a);if(!p){var v=r?Su([],r):[];if(f.selected){var w=v.findIndex(function(y){return dt(d,y)});v.splice(w,1)}else v.push(d);(m=n.onSelect)===null||m===void 0||m.call(n,v,d,f,h)}}},i={disabled:[]};r&&i.disabled.push(function(d){var f=a&&r.length>a-1,h=r.some(function(g){return dt(g,d)});return!!(f&&!h)});var u={selected:r,onDayClick:s,modifiers:i};return c.jsx(si.Provider,{value:u,children:t})}function ii(){var e=D.useContext(si);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function lp(e,n){var t=n||{},r=t.from,o=t.to;return r&&o?dt(o,e)&&dt(r,e)?void 0:dt(o,e)?{from:o,to:void 0}:dt(r,e)?void 0:Qs(r,e)?{from:e,to:o}:{from:r,to:e}:o?Qs(e,o)?{from:o,to:e}:{from:e,to:o}:r?pu(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var li=D.createContext(void 0);function cp(e){if(!Br(e.initialProps)){var n={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return c.jsx(li.Provider,{value:n,children:e.children})}return c.jsx(up,{initialProps:e.initialProps,children:e.children})}function up(e){var n=e.initialProps,t=e.children,r=n.selected,o=r||{},a=o.from,s=o.to,i=n.min,u=n.max,d=function(m,C,p){var v,w;(v=n.onDayClick)===null||v===void 0||v.call(n,m,C,p);var y=lp(m,r);(w=n.onSelect)===null||w===void 0||w.call(n,y,m,C,p)},f={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(f.range_start=[a],s?(f.range_end=[s],dt(a,s)||(f.range_middle=[{after:a,before:s}])):f.range_end=[a]):s&&(f.range_start=[s],f.range_end=[s]),i&&(a&&!s&&f.disabled.push({after:ni(a,i-1),before:tt(a,i-1)}),a&&s&&f.disabled.push({after:a,before:tt(a,i-1)}),!a&&s&&f.disabled.push({after:ni(s,i-1),before:tt(s,i-1)})),u){if(a&&!s&&(f.disabled.push({before:tt(a,-u+1)}),f.disabled.push({after:tt(a,u-1)})),a&&s){var h=Dt(s,a)+1,g=u-h;f.disabled.push({before:ni(a,g)}),f.disabled.push({after:tt(s,g)})}!a&&s&&(f.disabled.push({before:tt(s,-u+1)}),f.disabled.push({after:tt(s,u-1)}))}return c.jsx(li.Provider,{value:{selected:r,onDayClick:d,modifiers:f},children:t})}function ci(){var e=D.useContext(li);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Yo(e){return Array.isArray(e)?Su([],e):e!==void 0?[e]:[]}function dp(e){var n={};return Object.entries(e).forEach(function(t){var r=t[0],o=t[1];n[r]=Yo(o)}),n}var St;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(St||(St={}));var fp=St.Selected,Kt=St.Disabled,hp=St.Hidden,gp=St.Today,ui=St.RangeEnd,di=St.RangeMiddle,fi=St.RangeStart,pp=St.Outside;function mp(e,n,t){var r,o=(r={},r[fp]=Yo(e.selected),r[Kt]=Yo(e.disabled),r[hp]=Yo(e.hidden),r[gp]=[e.today],r[ui]=[],r[di]=[],r[fi]=[],r[pp]=[],r);return e.fromDate&&o[Kt].push({before:e.fromDate}),e.toDate&&o[Kt].push({after:e.toDate}),zr(e)?o[Kt]=o[Kt].concat(n.modifiers[Kt]):Br(e)&&(o[Kt]=o[Kt].concat(t.modifiers[Kt]),o[fi]=t.modifiers[fi],o[di]=t.modifiers[di],o[ui]=t.modifiers[ui]),o}var Iu=D.createContext(void 0);function vp(e){var n=Oe(),t=ii(),r=ci(),o=mp(n,t,r),a=dp(n.modifiers),s=ue(ue({},o),a);return c.jsx(Iu.Provider,{value:s,children:e.children})}function ku(){var e=D.useContext(Iu);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Cp(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function wp(e){return!!(e&&typeof e=="object"&&"from"in e)}function yp(e){return!!(e&&typeof e=="object"&&"after"in e)}function bp(e){return!!(e&&typeof e=="object"&&"before"in e)}function xp(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Sp(e,n){var t,r=n.from,o=n.to;if(r&&o){var a=Dt(o,r)<0;a&&(t=[o,r],r=t[0],o=t[1]);var s=Dt(e,r)>=0&&Dt(o,e)>=0;return s}return o?dt(o,e):r?dt(r,e):!1}function Ep(e){return Rs(e)}function Mp(e){return Array.isArray(e)&&e.every(Rs)}function Lp(e,n){return n.some(function(t){if(typeof t=="boolean")return t;if(Ep(t))return dt(e,t);if(Mp(t))return t.includes(e);if(wp(t))return Sp(e,t);if(xp(t))return t.dayOfWeek.includes(e.getDay());if(Cp(t)){var r=Dt(t.before,e),o=Dt(t.after,e),a=r>0,s=o<0,i=Qs(t.before,t.after);return i?s&&a:a||s}return yp(t)?Dt(e,t.after)>0:bp(t)?Dt(t.before,e)>0:typeof t=="function"?t(e):!1})}function hi(e,n,t){var r=Object.keys(n).reduce(function(a,s){var i=n[s];return Lp(e,i)&&a.push(s),a},[]),o={};return r.forEach(function(a){return o[a]=!0}),t&&!ti(e,t)&&(o.outside=!0),o}function Np(e,n){for(var t=ft(e[0]),r=Gs(e[e.length-1]),o,a,s=t;s<=r;){var i=hi(s,n),u=!i.disabled&&!i.hidden;if(!u){s=tt(s,1);continue}if(i.selected)return s;i.today&&!a&&(a=s),o||(o=s),s=tt(s,1)}return a||o}var Pp=365;function Tu(e,n){var t=n.moveBy,r=n.direction,o=n.context,a=n.modifiers,s=n.retry,i=s===void 0?{count:0,lastFocused:e}:s,u=o.weekStartsOn,d=o.fromDate,f=o.toDate,h=o.locale,g={day:tt,week:Ws,month:xt,year:K6,startOfWeek:function(v){return o.ISOWeek?qt(v):it(v,{locale:h,weekStartsOn:u})},endOfWeek:function(v){return o.ISOWeek?su(v):js(v,{locale:h,weekStartsOn:u})}},m=g[t](e,r==="after"?1:-1);r==="before"&&d?m=X6([d,m]):r==="after"&&f&&(m=Q6([f,m]));var C=!0;if(a){var p=hi(m,a);C=!p.disabled&&!p.hidden}return C?m:i.count>Pp?i.lastFocused:Tu(m,{moveBy:t,direction:r,context:o,modifiers:a,retry:ue(ue({},i),{count:i.count+1})})}var Du=D.createContext(void 0);function _p(e){var n=Zr(),t=ku(),r=D.useState(),o=r[0],a=r[1],s=D.useState(),i=s[0],u=s[1],d=Np(n.displayMonths,t),f=o??(i&&n.isDateDisplayed(i))?i:d,h=function(){u(o),a(void 0)},g=function(v){a(v)},m=Oe(),C=function(v,w){if(o){var y=Tu(o,{moveBy:v,direction:w,context:m,modifiers:t});dt(o,y)||(n.goToDate(y,o),g(y))}},p={focusedDay:o,focusTarget:f,blur:h,focus:g,focusDayAfter:function(){return C("day","after")},focusDayBefore:function(){return C("day","before")},focusWeekAfter:function(){return C("week","after")},focusWeekBefore:function(){return C("week","before")},focusMonthBefore:function(){return C("month","before")},focusMonthAfter:function(){return C("month","after")},focusYearBefore:function(){return C("year","before")},focusYearAfter:function(){return C("year","after")},focusStartOfWeek:function(){return C("startOfWeek","before")},focusEndOfWeek:function(){return C("endOfWeek","after")}};return c.jsx(Du.Provider,{value:p,children:e.children})}function gi(){var e=D.useContext(Du);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function Ip(e,n){var t=ku(),r=hi(e,t,n);return r}var pi=D.createContext(void 0);function kp(e){if(!Go(e.initialProps)){var n={selected:void 0};return c.jsx(pi.Provider,{value:n,children:e.children})}return c.jsx(Tp,{initialProps:e.initialProps,children:e.children})}function Tp(e){var n=e.initialProps,t=e.children,r=function(a,s,i){var u,d,f;if((u=n.onDayClick)===null||u===void 0||u.call(n,a,s,i),s.selected&&!n.required){(d=n.onSelect)===null||d===void 0||d.call(n,void 0,a,s,i);return}(f=n.onSelect)===null||f===void 0||f.call(n,a,a,s,i)},o={selected:n.selected,onDayClick:r};return c.jsx(pi.Provider,{value:o,children:t})}function Ou(){var e=D.useContext(pi);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Dp(e,n){var t=Oe(),r=Ou(),o=ii(),a=ci(),s=gi(),i=s.focusDayAfter,u=s.focusDayBefore,d=s.focusWeekAfter,f=s.focusWeekBefore,h=s.blur,g=s.focus,m=s.focusMonthBefore,C=s.focusMonthAfter,p=s.focusYearBefore,v=s.focusYearAfter,w=s.focusStartOfWeek,y=s.focusEndOfWeek,b=function(W){var P,z,q,K;Go(t)?(P=r.onDayClick)===null||P===void 0||P.call(r,e,n,W):zr(t)?(z=o.onDayClick)===null||z===void 0||z.call(o,e,n,W):Br(t)?(q=a.onDayClick)===null||q===void 0||q.call(a,e,n,W):(K=t.onDayClick)===null||K===void 0||K.call(t,e,n,W)},S=function(W){var P;g(e),(P=t.onDayFocus)===null||P===void 0||P.call(t,e,n,W)},M=function(W){var P;h(),(P=t.onDayBlur)===null||P===void 0||P.call(t,e,n,W)},L=function(W){var P;(P=t.onDayMouseEnter)===null||P===void 0||P.call(t,e,n,W)},E=function(W){var P;(P=t.onDayMouseLeave)===null||P===void 0||P.call(t,e,n,W)},I=function(W){var P;(P=t.onDayPointerEnter)===null||P===void 0||P.call(t,e,n,W)},k=function(W){var P;(P=t.onDayPointerLeave)===null||P===void 0||P.call(t,e,n,W)},O=function(W){var P;(P=t.onDayTouchCancel)===null||P===void 0||P.call(t,e,n,W)},H=function(W){var P;(P=t.onDayTouchEnd)===null||P===void 0||P.call(t,e,n,W)},V=function(W){var P;(P=t.onDayTouchMove)===null||P===void 0||P.call(t,e,n,W)},Y=function(W){var P;(P=t.onDayTouchStart)===null||P===void 0||P.call(t,e,n,W)},$=function(W){var P;(P=t.onDayKeyUp)===null||P===void 0||P.call(t,e,n,W)},U=function(W){var P;switch(W.key){case"ArrowLeft":W.preventDefault(),W.stopPropagation(),t.dir==="rtl"?i():u();break;case"ArrowRight":W.preventDefault(),W.stopPropagation(),t.dir==="rtl"?u():i();break;case"ArrowDown":W.preventDefault(),W.stopPropagation(),d();break;case"ArrowUp":W.preventDefault(),W.stopPropagation(),f();break;case"PageUp":W.preventDefault(),W.stopPropagation(),W.shiftKey?p():m();break;case"PageDown":W.preventDefault(),W.stopPropagation(),W.shiftKey?v():C();break;case"Home":W.preventDefault(),W.stopPropagation(),w();break;case"End":W.preventDefault(),W.stopPropagation(),y();break}(P=t.onDayKeyDown)===null||P===void 0||P.call(t,e,n,W)},T={onClick:b,onFocus:S,onBlur:M,onKeyDown:U,onKeyUp:$,onMouseEnter:L,onMouseLeave:E,onPointerEnter:I,onPointerLeave:k,onTouchCancel:O,onTouchEnd:H,onTouchMove:V,onTouchStart:Y};return T}function Op(){var e=Oe(),n=Ou(),t=ii(),r=ci(),o=Go(e)?n.selected:zr(e)?t.selected:Br(e)?r.selected:void 0;return o}function Vp(e){return Object.values(St).includes(e)}function Hp(e,n){var t=[e.classNames.day];return Object.keys(n).forEach(function(r){var o=e.modifiersClassNames[r];if(o)t.push(o);else if(Vp(r)){var a=e.classNames["day_".concat(r)];a&&t.push(a)}}),t}function Ap(e,n){var t=ue({},e.styles.day);return Object.keys(n).forEach(function(r){var o;t=ue(ue({},t),(o=e.modifiersStyles)===null||o===void 0?void 0:o[r])}),t}function Fp(e,n,t){var r,o,a,s=Oe(),i=gi(),u=Ip(e,n),d=Dp(e,u),f=Op(),h=!!(s.onDayClick||s.mode!=="default");D.useEffect(function(){var L;u.outside||i.focusedDay&&h&&dt(i.focusedDay,e)&&((L=t.current)===null||L===void 0||L.focus())},[i.focusedDay,e,t,h,u.outside]);var g=Hp(s,u).join(" "),m=Ap(s,u),C=!!(u.outside&&!s.showOutsideDays||u.hidden),p=(a=(o=s.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:ap,v=c.jsx(p,{date:e,displayMonth:n,activeModifiers:u}),w={style:m,className:g,children:v,role:"gridcell"},y=i.focusTarget&&dt(i.focusTarget,e)&&!u.outside,b=i.focusedDay&&dt(i.focusedDay,e),S=ue(ue(ue({},w),(r={disabled:u.disabled,role:"gridcell"},r["aria-selected"]=u.selected,r.tabIndex=b||y?0:-1,r)),d),M={isButton:h,isHidden:C,activeModifiers:u,selectedDays:f,buttonProps:S,divProps:w};return M}function $p(e){var n=D.useRef(null),t=Fp(e.date,e.displayMonth,n);return t.isHidden?c.jsx("div",{role:"gridcell"}):t.isButton?c.jsx(jo,ue({name:"day",ref:n},t.buttonProps)):c.jsx("div",ue({},t.divProps))}function zp(e){var n=e.number,t=e.dates,r=Oe(),o=r.onWeekNumberClick,a=r.styles,s=r.classNames,i=r.locale,u=r.labels.labelWeekNumber,d=r.formatters.formatWeekNumber,f=d(Number(n),{locale:i});if(!o)return c.jsx("span",{className:s.weeknumber,style:a.weeknumber,children:f});var h=u(Number(n),{locale:i}),g=function(m){o(n,t,m)};return c.jsx(jo,{name:"week-number","aria-label":h,className:s.weeknumber,style:a.weeknumber,onClick:g,children:f})}function Bp(e){var n,t,r=Oe(),o=r.styles,a=r.classNames,s=r.showWeekNumber,i=r.components,u=(n=i==null?void 0:i.Day)!==null&&n!==void 0?n:$p,d=(t=i==null?void 0:i.WeekNumber)!==null&&t!==void 0?t:zp,f;return s&&(f=c.jsx("td",{className:a.cell,style:o.cell,children:c.jsx(d,{number:e.weekNumber,dates:e.dates})})),c.jsxs("tr",{className:a.row,style:o.row,children:[f,e.dates.map(function(h){return c.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:c.jsx(u,{displayMonth:e.displayMonth,date:h})},G7(h))})]})}function Vu(e,n,t){for(var r=t!=null&&t.ISOWeek?su(n):js(n,t),o=t!=null&&t.ISOWeek?qt(e):it(e,t),a=Dt(r,o),s=[],i=0;i<=a;i++)s.push(tt(o,i));var u=s.reduce(function(d,f){var h=t!=null&&t.ISOWeek?Ys(f):qs(f,t),g=d.find(function(m){return m.weekNumber===h});return g?(g.dates.push(f),d):(d.push({weekNumber:h,dates:[f]}),d)},[]);return u}function Zp(e,n){var t=Vu(ft(e),Gs(e),n);if(n!=null&&n.useFixedWeeks){var r=Y7(e,n);if(r<6){var o=t[t.length-1],a=o.dates[o.dates.length-1],s=Ws(a,6-r),i=Vu(Ws(a,1),s,n);t.push.apply(t,i)}}return t}function Wp(e){var n,t,r,o=Oe(),a=o.locale,s=o.classNames,i=o.styles,u=o.hideHead,d=o.fixedWeeks,f=o.components,h=o.weekStartsOn,g=o.firstWeekContainsDate,m=o.ISOWeek,C=Zp(e.displayMonth,{useFixedWeeks:!!d,ISOWeek:m,locale:a,weekStartsOn:h,firstWeekContainsDate:g}),p=(n=f==null?void 0:f.Head)!==null&&n!==void 0?n:op,v=(t=f==null?void 0:f.Row)!==null&&t!==void 0?t:Bp,w=(r=f==null?void 0:f.Footer)!==null&&r!==void 0?r:tp;return c.jsxs("table",{id:e.id,className:s.table,style:i.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!u&&c.jsx(p,{}),c.jsx("tbody",{className:s.tbody,style:i.tbody,children:C.map(function(y){return c.jsx(v,{displayMonth:e.displayMonth,dates:y.dates,weekNumber:y.weekNumber},y.weekNumber)})}),c.jsx(w,{displayMonth:e.displayMonth})]})}function Rp(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Gp=Rp()?D.useLayoutEffect:D.useEffect,mi=!1,jp=0;function Hu(){return"react-day-picker-".concat(++jp)}function Yp(e){var n,t=e??(mi?Hu():null),r=D.useState(t),o=r[0],a=r[1];return Gp(function(){o===null&&a(Hu())},[]),D.useEffect(function(){mi===!1&&(mi=!0)},[]),(n=e??o)!==null&&n!==void 0?n:void 0}function Up(e){var n,t,r=Oe(),o=r.dir,a=r.classNames,s=r.styles,i=r.components,u=Zr().displayMonths,d=Yp(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),f=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,h=[a.month],g=s.month,m=e.displayIndex===0,C=e.displayIndex===u.length-1,p=!m&&!C;o==="rtl"&&(n=[m,C],C=n[0],m=n[1]),m&&(h.push(a.caption_start),g=ue(ue({},g),s.caption_start)),C&&(h.push(a.caption_end),g=ue(ue({},g),s.caption_end)),p&&(h.push(a.caption_between),g=ue(ue({},g),s.caption_between));var v=(t=i==null?void 0:i.Caption)!==null&&t!==void 0?t:ep;return c.jsxs("div",{className:h.join(" "),style:g,children:[c.jsx(v,{id:d,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),c.jsx(Wp,{id:f,"aria-labelledby":d,displayMonth:e.displayMonth})]},e.displayIndex)}function qp(e){var n=Oe(),t=n.classNames,r=n.styles;return c.jsx("div",{className:t.months,style:r.months,children:e.children})}function Kp(e){var n,t,r=e.initialProps,o=Oe(),a=gi(),s=Zr(),i=D.useState(!1),u=i[0],d=i[1];D.useEffect(function(){o.initialFocus&&a.focusTarget&&(u||(a.focus(a.focusTarget),d(!0)))},[o.initialFocus,u,a.focus,a.focusTarget,a]);var f=[o.classNames.root,o.className];o.numberOfMonths>1&&f.push(o.classNames.multiple_months),o.showWeekNumber&&f.push(o.classNames.with_weeknumber);var h=ue(ue({},o.styles.root),o.style),g=Object.keys(r).filter(function(C){return C.startsWith("data-")}).reduce(function(C,p){var v;return ue(ue({},C),(v={},v[p]=r[p],v))},{}),m=(t=(n=r.components)===null||n===void 0?void 0:n.Months)!==null&&t!==void 0?t:qp;return c.jsx("div",ue({className:f.join(" "),style:h,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},g,{children:c.jsx(m,{children:s.displayMonths.map(function(C,p){return c.jsx(Up,{displayIndex:p,displayMonth:C},p)})})}))}function Xp(e){var n=e.children,t=bg(e,["children"]);return c.jsx(zg,{initialProps:t,children:c.jsx(Kg,{children:c.jsx(kp,{initialProps:t,children:c.jsx(sp,{initialProps:t,children:c.jsx(cp,{initialProps:t,children:c.jsx(vp,{children:c.jsx(_p,{children:n})})})})})})})}function Qp(e){return c.jsx(Xp,ue({},e,{children:c.jsx(Kp,{initialProps:e})}))}function vi(e,[n,t]){return Math.min(t,Math.max(n,e))}function ne(e,n,{checkForDefaultPrevented:t=!0}={}){return function(o){if(e==null||e(o),t===!1||!o.defaultPrevented)return n==null?void 0:n(o)}}function Jp(e,n){const t=l.createContext(n),r=a=>{const{children:s,...i}=a,u=l.useMemo(()=>i,Object.values(i));return c.jsx(t.Provider,{value:u,children:s})};r.displayName=e+"Provider";function o(a){const s=l.useContext(t);if(s)return s;if(n!==void 0)return n;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function nt(e,n=[]){let t=[];function r(a,s){const i=l.createContext(s),u=t.length;t=[...t,s];const d=h=>{var w;const{scope:g,children:m,...C}=h,p=((w=g==null?void 0:g[e])==null?void 0:w[u])||i,v=l.useMemo(()=>C,Object.values(C));return c.jsx(p.Provider,{value:v,children:m})};d.displayName=a+"Provider";function f(h,g){var p;const m=((p=g==null?void 0:g[e])==null?void 0:p[u])||i,C=l.useContext(m);if(C)return C;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=t.map(s=>l.createContext(s));return function(i){const u=(i==null?void 0:i[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return o.scopeName=e,[r,em(o,...n)]}function em(...e){const n=e[0];if(e.length===1)return n;const t=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:u,scopeName:d})=>{const h=u(a)[`__scope${d}`];return{...i,...h}},{});return l.useMemo(()=>({[`__scope${n.scopeName}`]:s}),[s])}};return t.scopeName=n.scopeName,t}function Au(e){const n=tm(e),t=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),u=i.find(rm);if(u){const d=u.props.children,f=i.map(h=>h===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:h);return c.jsx(n,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return c.jsx(n,{...s,ref:o,children:a})});return t.displayName=`${e}.Slot`,t}function tm(e){const n=l.forwardRef((t,r)=>{const{children:o,...a}=t;if(l.isValidElement(o)){const s=am(o),i=om(a,o.props);return o.type!==l.Fragment&&(i.ref=r?st(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var nm=Symbol("radix.slottable");function rm(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nm}function om(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(t[r]=o):r==="style"?t[r]={...o,...a}:r==="className"&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function am(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function Uo(e){const n=e+"CollectionProvider",[t,r]=nt(n),[o,a]=t(n,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:v,children:w}=p,y=D.useRef(null),b=D.useRef(new Map).current;return c.jsx(o,{scope:v,itemMap:b,collectionRef:y,children:w})};s.displayName=n;const i=e+"CollectionSlot",u=Au(i),d=D.forwardRef((p,v)=>{const{scope:w,children:y}=p,b=a(i,w),S=he(v,b.collectionRef);return c.jsx(u,{ref:S,children:y})});d.displayName=i;const f=e+"CollectionItemSlot",h="data-radix-collection-item",g=Au(f),m=D.forwardRef((p,v)=>{const{scope:w,children:y,...b}=p,S=D.useRef(null),M=he(v,S),L=a(f,w);return D.useEffect(()=>(L.itemMap.set(S,{ref:S,...b}),()=>void L.itemMap.delete(S))),c.jsx(g,{[h]:"",ref:M,children:y})});m.displayName=f;function C(p){const v=a(e+"CollectionConsumer",p);return D.useCallback(()=>{const y=v.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${h}]`));return Array.from(v.itemMap.values()).sort((L,E)=>b.indexOf(L.ref.current)-b.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:d,ItemSlot:m},C,r]}var sm=l.createContext(void 0);function ar(e){const n=l.useContext(sm);return e||n||"ltr"}function im(e){const n=lm(e),t=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),u=i.find(um);if(u){const d=u.props.children,f=i.map(h=>h===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:h);return c.jsx(n,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return c.jsx(n,{...s,ref:o,children:a})});return t.displayName=`${e}.Slot`,t}function lm(e){const n=l.forwardRef((t,r)=>{const{children:o,...a}=t;if(l.isValidElement(o)){const s=fm(o),i=dm(a,o.props);return o.type!==l.Fragment&&(i.ref=r?st(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var cm=Symbol("radix.slottable");function um(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cm}function dm(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(t[r]=o):r==="style"?t[r]={...o,...a}:r==="className"&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function fm(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var hm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=hm.reduce((e,n)=>{const t=im(`Primitive.${n}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,u=s?t:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...i,ref:a})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function Ci(e,n){e&&Dr.flushSync(()=>e.dispatchEvent(n))}function Re(e){const n=l.useRef(e);return l.useEffect(()=>{n.current=e}),l.useMemo(()=>(...t)=>{var r;return(r=n.current)==null?void 0:r.call(n,...t)},[])}function gm(e,n=globalThis==null?void 0:globalThis.document){const t=Re(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&t(o)};return n.addEventListener("keydown",r,{capture:!0}),()=>n.removeEventListener("keydown",r,{capture:!0})},[t,n])}var pm="DismissableLayer",wi="dismissableLayer.update",mm="dismissableLayer.pointerDownOutside",vm="dismissableLayer.focusOutside",Fu,$u=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kn=l.forwardRef((e,n)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...u}=e,d=l.useContext($u),[f,h]=l.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=l.useState({}),C=he(n,E=>h(E)),p=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=p.indexOf(v),y=f?p.indexOf(f):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,S=y>=w,M=wm(E=>{const I=E.target,k=[...d.branches].some(O=>O.contains(I));!S||k||(o==null||o(E),s==null||s(E),E.defaultPrevented||i==null||i())},g),L=ym(E=>{const I=E.target;[...d.branches].some(O=>O.contains(I))||(a==null||a(E),s==null||s(E),E.defaultPrevented||i==null||i())},g);return gm(E=>{y===d.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&i&&(E.preventDefault(),i()))},g),l.useEffect(()=>{if(f)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Fu=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Bu(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Fu)}},[f,g,t,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Bu())},[f,d]),l.useEffect(()=>{const E=()=>m({});return document.addEventListener(wi,E),()=>document.removeEventListener(wi,E)},[]),c.jsx(oe.div,{...u,ref:C,style:{pointerEvents:b?S?"auto":"none":void 0,...e.style},onFocusCapture:ne(e.onFocusCapture,L.onFocusCapture),onBlurCapture:ne(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:ne(e.onPointerDownCapture,M.onPointerDownCapture)})});kn.displayName=pm;var Cm="DismissableLayerBranch",zu=l.forwardRef((e,n)=>{const t=l.useContext($u),r=l.useRef(null),o=he(n,r);return l.useEffect(()=>{const a=r.current;if(a)return t.branches.add(a),()=>{t.branches.delete(a)}},[t.branches]),c.jsx(oe.div,{...e,ref:o})});zu.displayName=Cm;function wm(e,n=globalThis==null?void 0:globalThis.document){const t=Re(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let u=function(){Zu(mm,t,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=u,n.addEventListener("click",o.current,{once:!0})):u()}else n.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{n.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),n.removeEventListener("pointerdown",a),n.removeEventListener("click",o.current)}},[n,t]),{onPointerDownCapture:()=>r.current=!0}}function ym(e,n=globalThis==null?void 0:globalThis.document){const t=Re(e),r=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!r.current&&Zu(vm,t,{originalEvent:a},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Bu(){const e=new CustomEvent(wi);document.dispatchEvent(e)}function Zu(e,n,t,{discrete:r}){const o=t.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});n&&o.addEventListener(e,n,{once:!0}),r?Ci(o,a):o.dispatchEvent(a)}var bm=kn,xm=zu,yi=0;function qo(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Wu()),document.body.insertAdjacentElement("beforeend",e[1]??Wu()),yi++,()=>{yi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),yi--}},[])}function Wu(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var bi="focusScope.autoFocusOnMount",xi="focusScope.autoFocusOnUnmount",Ru={bubbles:!1,cancelable:!0},Sm="FocusScope",Wr=l.forwardRef((e,n)=>{const{loop:t=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,u]=l.useState(null),d=Re(o),f=Re(a),h=l.useRef(null),g=he(n,p=>u(p)),m=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let p=function(b){if(m.paused||!i)return;const S=b.target;i.contains(S)?h.current=S:dn(h.current,{select:!0})},v=function(b){if(m.paused||!i)return;const S=b.relatedTarget;S!==null&&(i.contains(S)||dn(h.current,{select:!0}))},w=function(b){if(document.activeElement===document.body)for(const M of b)M.removedNodes.length>0&&dn(i)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const y=new MutationObserver(w);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),y.disconnect()}}},[r,i,m.paused]),l.useEffect(()=>{if(i){Yu.add(m);const p=document.activeElement;if(!i.contains(p)){const w=new CustomEvent(bi,Ru);i.addEventListener(bi,d),i.dispatchEvent(w),w.defaultPrevented||(Em(_m(Gu(i)),{select:!0}),document.activeElement===p&&dn(i))}return()=>{i.removeEventListener(bi,d),setTimeout(()=>{const w=new CustomEvent(xi,Ru);i.addEventListener(xi,f),i.dispatchEvent(w),w.defaultPrevented||dn(p??document.body,{select:!0}),i.removeEventListener(xi,f),Yu.remove(m)},0)}}},[i,d,f,m]);const C=l.useCallback(p=>{if(!t&&!r||m.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,w=document.activeElement;if(v&&w){const y=p.currentTarget,[b,S]=Mm(y);b&&S?!p.shiftKey&&w===S?(p.preventDefault(),t&&dn(b,{select:!0})):p.shiftKey&&w===b&&(p.preventDefault(),t&&dn(S,{select:!0})):w===y&&p.preventDefault()}},[t,r,m.paused]);return c.jsx(oe.div,{tabIndex:-1,...s,ref:g,onKeyDown:C})});Wr.displayName=Sm;function Em(e,{select:n=!1}={}){const t=document.activeElement;for(const r of e)if(dn(r,{select:n}),document.activeElement!==t)return}function Mm(e){const n=Gu(e),t=ju(n,e),r=ju(n.reverse(),e);return[t,r]}function Gu(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function ju(e,n){for(const t of e)if(!Lm(t,{upTo:n}))return t}function Lm(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Nm(e){return e instanceof HTMLInputElement&&"select"in e}function dn(e,{select:n=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&Nm(e)&&n&&e.select()}}var Yu=Pm();function Pm(){let e=[];return{add(n){const t=e[0];n!==t&&(t==null||t.pause()),e=Uu(e,n),e.unshift(n)},remove(n){var t;e=Uu(e,n),(t=e[0])==null||t.resume()}}}function Uu(e,n){const t=[...e],r=t.indexOf(n);return r!==-1&&t.splice(r,1),t}function _m(e){return e.filter(n=>n.tagName!=="A")}var He=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Im=l[" useId ".trim().toString()]||(()=>{}),km=0;function qe(e){const[n,t]=l.useState(Im());return He(()=>{t(r=>r??String(km++))},[e]),e||(n?`radix-${n}`:"")}const Tm=["top","right","bottom","left"],fn=Math.min,pt=Math.max,Ko=Math.round,Xo=Math.floor,Ft=e=>({x:e,y:e}),Dm={left:"right",right:"left",bottom:"top",top:"bottom"},Om={start:"end",end:"start"};function Si(e,n,t){return pt(e,fn(n,t))}function Xt(e,n){return typeof e=="function"?e(n):e}function Qt(e){return e.split("-")[0]}function sr(e){return e.split("-")[1]}function Ei(e){return e==="x"?"y":"x"}function Mi(e){return e==="y"?"height":"width"}const Vm=new Set(["top","bottom"]);function $t(e){return Vm.has(Qt(e))?"y":"x"}function Li(e){return Ei($t(e))}function Hm(e,n,t){t===void 0&&(t=!1);const r=sr(e),o=Li(e),a=Mi(o);let s=o==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return n.reference[a]>n.floating[a]&&(s=Qo(s)),[s,Qo(s)]}function Am(e){const n=Qo(e);return[Ni(e),n,Ni(n)]}function Ni(e){return e.replace(/start|end/g,n=>Om[n])}const qu=["left","right"],Ku=["right","left"],Fm=["top","bottom"],$m=["bottom","top"];function zm(e,n,t){switch(e){case"top":case"bottom":return t?n?Ku:qu:n?qu:Ku;case"left":case"right":return n?Fm:$m;default:return[]}}function Bm(e,n,t,r){const o=sr(e);let a=zm(Qt(e),t==="start",r);return o&&(a=a.map(s=>s+"-"+o),n&&(a=a.concat(a.map(Ni)))),a}function Qo(e){return e.replace(/left|right|bottom|top/g,n=>Dm[n])}function Zm(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xu(e){return typeof e!="number"?Zm(e):{top:e,right:e,bottom:e,left:e}}function Jo(e){const{x:n,y:t,width:r,height:o}=e;return{width:r,height:o,top:t,left:n,right:n+r,bottom:t+o,x:n,y:t}}function Qu(e,n,t){let{reference:r,floating:o}=e;const a=$t(n),s=Li(n),i=Mi(s),u=Qt(n),d=a==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,g=r[i]/2-o[i]/2;let m;switch(u){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-o.width,y:h};break;default:m={x:r.x,y:r.y}}switch(sr(n)){case"start":m[s]-=g*(t&&d?-1:1);break;case"end":m[s]+=g*(t&&d?-1:1);break}return m}async function Wm(e,n){var t;n===void 0&&(n={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:g=!1,padding:m=0}=Xt(n,e),C=Xu(m),v=i[g?h==="floating"?"reference":"floating":h],w=Jo(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(v)))==null||t?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:u})),y=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(b))?await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1}:{x:1,y:1},M=Jo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:b,strategy:u}):y);return{top:(w.top-M.top+C.top)/S.y,bottom:(M.bottom-w.bottom+C.bottom)/S.y,left:(w.left-M.left+C.left)/S.x,right:(M.right-w.right+C.right)/S.x}}const Rm=async(e,n,t)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=t,i=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(n));let d=await s.getElementRects({reference:e,floating:n,strategy:o}),{x:f,y:h}=Qu(d,r,u),g=r,m={},C=0;for(let v=0;v<i.length;v++){var p;const{name:w,fn:y}=i[v],{x:b,y:S,data:M,reset:L}=await y({x:f,y:h,initialPlacement:r,placement:g,strategy:o,middlewareData:m,rects:d,platform:{...s,detectOverflow:(p=s.detectOverflow)!=null?p:Wm},elements:{reference:e,floating:n}});f=b??f,h=S??h,m={...m,[w]:{...m[w],...M}},L&&C<=50&&(C++,typeof L=="object"&&(L.placement&&(g=L.placement),L.rects&&(d=L.rects===!0?await s.getElementRects({reference:e,floating:n,strategy:o}):L.rects),{x:f,y:h}=Qu(d,g,u)),v=-1)}return{x:f,y:h,placement:g,strategy:o,middlewareData:m}},Gm=e=>({name:"arrow",options:e,async fn(n){const{x:t,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:u}=n,{element:d,padding:f=0}=Xt(e,n)||{};if(d==null)return{};const h=Xu(f),g={x:t,y:r},m=Li(o),C=Mi(m),p=await s.getDimensions(d),v=m==="y",w=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",S=a.reference[C]+a.reference[m]-g[m]-a.floating[C],M=g[m]-a.reference[m],L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let E=L?L[b]:0;(!E||!await(s.isElement==null?void 0:s.isElement(L)))&&(E=i.floating[b]||a.floating[C]);const I=S/2-M/2,k=E/2-p[C]/2-1,O=fn(h[w],k),H=fn(h[y],k),V=O,Y=E-p[C]-H,$=E/2-p[C]/2+I,U=Si(V,$,Y),T=!u.arrow&&sr(o)!=null&&$!==U&&a.reference[C]/2-($<V?O:H)-p[C]/2<0,W=T?$<V?$-V:$-Y:0;return{[m]:g[m]+W,data:{[m]:U,centerOffset:$-U-W,...T&&{alignmentOffset:W}},reset:T}}}),jm=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var t,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:u,elements:d}=n,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:p=!0,...v}=Xt(e,n);if((t=a.arrow)!=null&&t.alignmentOffset)return{};const w=Qt(o),y=$t(i),b=Qt(i)===i,S=await(u.isRTL==null?void 0:u.isRTL(d.floating)),M=g||(b||!p?[Qo(i)]:Am(i)),L=C!=="none";!g&&L&&M.push(...Bm(i,p,C,S));const E=[i,...M],I=await u.detectOverflow(n,v),k=[];let O=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&k.push(I[w]),h){const $=Hm(o,s,S);k.push(I[$[0]],I[$[1]])}if(O=[...O,{placement:o,overflows:k}],!k.every($=>$<=0)){var H,V;const $=(((H=a.flip)==null?void 0:H.index)||0)+1,U=E[$];if(U&&(!(h==="alignment"?y!==$t(U):!1)||O.every(P=>$t(P.placement)===y?P.overflows[0]>0:!0)))return{data:{index:$,overflows:O},reset:{placement:U}};let T=(V=O.filter(W=>W.overflows[0]<=0).sort((W,P)=>W.overflows[1]-P.overflows[1])[0])==null?void 0:V.placement;if(!T)switch(m){case"bestFit":{var Y;const W=(Y=O.filter(P=>{if(L){const z=$t(P.placement);return z===y||z==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(z=>z>0).reduce((z,q)=>z+q,0)]).sort((P,z)=>P[1]-z[1])[0])==null?void 0:Y[0];W&&(T=W);break}case"initialPlacement":T=i;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function Ju(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function ed(e){return Tm.some(n=>e[n]>=0)}const Ym=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:t,platform:r}=n,{strategy:o="referenceHidden",...a}=Xt(e,n);switch(o){case"referenceHidden":{const s=await r.detectOverflow(n,{...a,elementContext:"reference"}),i=Ju(s,t.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ed(i)}}}case"escaped":{const s=await r.detectOverflow(n,{...a,altBoundary:!0}),i=Ju(s,t.floating);return{data:{escapedOffsets:i,escaped:ed(i)}}}default:return{}}}}},td=new Set(["left","top"]);async function Um(e,n){const{placement:t,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Qt(t),i=sr(t),u=$t(t)==="y",d=td.has(s)?-1:1,f=a&&u?-1:1,h=Xt(n,e);let{mainAxis:g,crossAxis:m,alignmentAxis:C}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return i&&typeof C=="number"&&(m=i==="end"?C*-1:C),u?{x:m*f,y:g*d}:{x:g*d,y:m*f}}const qm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var t,r;const{x:o,y:a,placement:s,middlewareData:i}=n,u=await Um(n,e);return s===((t=i.offset)==null?void 0:t.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:s}}}}},Km=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:t,y:r,placement:o,platform:a}=n,{mainAxis:s=!0,crossAxis:i=!1,limiter:u={fn:w=>{let{x:y,y:b}=w;return{x:y,y:b}}},...d}=Xt(e,n),f={x:t,y:r},h=await a.detectOverflow(n,d),g=$t(Qt(o)),m=Ei(g);let C=f[m],p=f[g];if(s){const w=m==="y"?"top":"left",y=m==="y"?"bottom":"right",b=C+h[w],S=C-h[y];C=Si(b,C,S)}if(i){const w=g==="y"?"top":"left",y=g==="y"?"bottom":"right",b=p+h[w],S=p-h[y];p=Si(b,p,S)}const v=u.fn({...n,[m]:C,[g]:p});return{...v,data:{x:v.x-t,y:v.y-r,enabled:{[m]:s,[g]:i}}}}}},Xm=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:t,y:r,placement:o,rects:a,middlewareData:s}=n,{offset:i=0,mainAxis:u=!0,crossAxis:d=!0}=Xt(e,n),f={x:t,y:r},h=$t(o),g=Ei(h);let m=f[g],C=f[h];const p=Xt(i,n),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const b=g==="y"?"height":"width",S=a.reference[g]-a.floating[b]+v.mainAxis,M=a.reference[g]+a.reference[b]-v.mainAxis;m<S?m=S:m>M&&(m=M)}if(d){var w,y;const b=g==="y"?"width":"height",S=td.has(Qt(o)),M=a.reference[h]-a.floating[b]+(S&&((w=s.offset)==null?void 0:w[h])||0)+(S?0:v.crossAxis),L=a.reference[h]+a.reference[b]+(S?0:((y=s.offset)==null?void 0:y[h])||0)-(S?v.crossAxis:0);C<M?C=M:C>L&&(C=L)}return{[g]:m,[h]:C}}}},Qm=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var t,r;const{placement:o,rects:a,platform:s,elements:i}=n,{apply:u=()=>{},...d}=Xt(e,n),f=await s.detectOverflow(n,d),h=Qt(o),g=sr(o),m=$t(o)==="y",{width:C,height:p}=a.floating;let v,w;h==="top"||h==="bottom"?(v=h,w=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(w=h,v=g==="end"?"top":"bottom");const y=p-f.top-f.bottom,b=C-f.left-f.right,S=fn(p-f[v],y),M=fn(C-f[w],b),L=!n.middlewareData.shift;let E=S,I=M;if((t=n.middlewareData.shift)!=null&&t.enabled.x&&(I=b),(r=n.middlewareData.shift)!=null&&r.enabled.y&&(E=y),L&&!g){const O=pt(f.left,0),H=pt(f.right,0),V=pt(f.top,0),Y=pt(f.bottom,0);m?I=C-2*(O!==0||H!==0?O+H:pt(f.left,f.right)):E=p-2*(V!==0||Y!==0?V+Y:pt(f.top,f.bottom))}await u({...n,availableWidth:I,availableHeight:E});const k=await s.getDimensions(i.floating);return C!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}};function ea(){return typeof window<"u"}function ir(e){return nd(e)?(e.nodeName||"").toLowerCase():"#document"}function mt(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function zt(e){var n;return(n=(nd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function nd(e){return ea()?e instanceof Node||e instanceof mt(e).Node:!1}function Et(e){return ea()?e instanceof Element||e instanceof mt(e).Element:!1}function Bt(e){return ea()?e instanceof HTMLElement||e instanceof mt(e).HTMLElement:!1}function rd(e){return!ea()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mt(e).ShadowRoot}const Jm=new Set(["inline","contents"]);function Rr(e){const{overflow:n,overflowX:t,overflowY:r,display:o}=Mt(e);return/auto|scroll|overlay|hidden|clip/.test(n+r+t)&&!Jm.has(o)}const ev=new Set(["table","td","th"]);function tv(e){return ev.has(ir(e))}const nv=[":popover-open",":modal"];function ta(e){return nv.some(n=>{try{return e.matches(n)}catch{return!1}})}const rv=["transform","translate","scale","rotate","perspective"],ov=["transform","translate","scale","rotate","perspective","filter"],av=["paint","layout","strict","content"];function Pi(e){const n=_i(),t=Et(e)?Mt(e):e;return rv.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!n&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!n&&(t.filter?t.filter!=="none":!1)||ov.some(r=>(t.willChange||"").includes(r))||av.some(r=>(t.contain||"").includes(r))}function sv(e){let n=hn(e);for(;Bt(n)&&!lr(n);){if(Pi(n))return n;if(ta(n))return null;n=hn(n)}return null}function _i(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const iv=new Set(["html","body","#document"]);function lr(e){return iv.has(ir(e))}function Mt(e){return mt(e).getComputedStyle(e)}function na(e){return Et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hn(e){if(ir(e)==="html")return e;const n=e.assignedSlot||e.parentNode||rd(e)&&e.host||zt(e);return rd(n)?n.host:n}function od(e){const n=hn(e);return lr(n)?e.ownerDocument?e.ownerDocument.body:e.body:Bt(n)&&Rr(n)?n:od(n)}function Gr(e,n,t){var r;n===void 0&&(n=[]),t===void 0&&(t=!0);const o=od(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=mt(o);if(a){const i=Ii(s);return n.concat(s,s.visualViewport||[],Rr(o)?o:[],i&&t?Gr(i):[])}return n.concat(o,Gr(o,[],t))}function Ii(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ad(e){const n=Mt(e);let t=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const o=Bt(e),a=o?e.offsetWidth:t,s=o?e.offsetHeight:r,i=Ko(t)!==a||Ko(r)!==s;return i&&(t=a,r=s),{width:t,height:r,$:i}}function ki(e){return Et(e)?e:e.contextElement}function cr(e){const n=ki(e);if(!Bt(n))return Ft(1);const t=n.getBoundingClientRect(),{width:r,height:o,$:a}=ad(n);let s=(a?Ko(t.width):t.width)/r,i=(a?Ko(t.height):t.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const lv=Ft(0);function sd(e){const n=mt(e);return!_i()||!n.visualViewport?lv:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function cv(e,n,t){return n===void 0&&(n=!1),!t||n&&t!==mt(e)?!1:n}function Tn(e,n,t,r){n===void 0&&(n=!1),t===void 0&&(t=!1);const o=e.getBoundingClientRect(),a=ki(e);let s=Ft(1);n&&(r?Et(r)&&(s=cr(r)):s=cr(e));const i=cv(a,t,r)?sd(a):Ft(0);let u=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,f=o.width/s.x,h=o.height/s.y;if(a){const g=mt(a),m=r&&Et(r)?mt(r):r;let C=g,p=Ii(C);for(;p&&r&&m!==C;){const v=cr(p),w=p.getBoundingClientRect(),y=Mt(p),b=w.left+(p.clientLeft+parseFloat(y.paddingLeft))*v.x,S=w.top+(p.clientTop+parseFloat(y.paddingTop))*v.y;u*=v.x,d*=v.y,f*=v.x,h*=v.y,u+=b,d+=S,C=mt(p),p=Ii(C)}}return Jo({width:f,height:h,x:u,y:d})}function ra(e,n){const t=na(e).scrollLeft;return n?n.left+t:Tn(zt(e)).left+t}function id(e,n){const t=e.getBoundingClientRect(),r=t.left+n.scrollLeft-ra(e,t),o=t.top+n.scrollTop;return{x:r,y:o}}function uv(e){let{elements:n,rect:t,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=zt(r),i=n?ta(n.floating):!1;if(r===s||i&&a)return t;let u={scrollLeft:0,scrollTop:0},d=Ft(1);const f=Ft(0),h=Bt(r);if((h||!h&&!a)&&((ir(r)!=="body"||Rr(s))&&(u=na(r)),Bt(r))){const m=Tn(r);d=cr(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const g=s&&!h&&!a?id(s,u):Ft(0);return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-u.scrollLeft*d.x+f.x+g.x,y:t.y*d.y-u.scrollTop*d.y+f.y+g.y}}function dv(e){return Array.from(e.getClientRects())}function fv(e){const n=zt(e),t=na(e),r=e.ownerDocument.body,o=pt(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),a=pt(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight);let s=-t.scrollLeft+ra(e);const i=-t.scrollTop;return Mt(r).direction==="rtl"&&(s+=pt(n.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const ld=25;function hv(e,n){const t=mt(e),r=zt(e),o=t.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,u=0;if(o){a=o.width,s=o.height;const f=_i();(!f||f&&n==="fixed")&&(i=o.offsetLeft,u=o.offsetTop)}const d=ra(r);if(d<=0){const f=r.ownerDocument,h=f.body,g=getComputedStyle(h),m=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,C=Math.abs(r.clientWidth-h.clientWidth-m);C<=ld&&(a-=C)}else d<=ld&&(a+=d);return{width:a,height:s,x:i,y:u}}const gv=new Set(["absolute","fixed"]);function pv(e,n){const t=Tn(e,!0,n==="fixed"),r=t.top+e.clientTop,o=t.left+e.clientLeft,a=Bt(e)?cr(e):Ft(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,u=o*a.x,d=r*a.y;return{width:s,height:i,x:u,y:d}}function cd(e,n,t){let r;if(n==="viewport")r=hv(e,t);else if(n==="document")r=fv(zt(e));else if(Et(n))r=pv(n,t);else{const o=sd(e);r={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return Jo(r)}function ud(e,n){const t=hn(e);return t===n||!Et(t)||lr(t)?!1:Mt(t).position==="fixed"||ud(t,n)}function mv(e,n){const t=n.get(e);if(t)return t;let r=Gr(e,[],!1).filter(i=>Et(i)&&ir(i)!=="body"),o=null;const a=Mt(e).position==="fixed";let s=a?hn(e):e;for(;Et(s)&&!lr(s);){const i=Mt(s),u=Pi(s);!u&&i.position==="fixed"&&(o=null),(a?!u&&!o:!u&&i.position==="static"&&!!o&&gv.has(o.position)||Rr(s)&&!u&&ud(e,s))?r=r.filter(f=>f!==s):o=i,s=hn(s)}return n.set(e,r),r}function vv(e){let{element:n,boundary:t,rootBoundary:r,strategy:o}=e;const s=[...t==="clippingAncestors"?ta(n)?[]:mv(n,this._c):[].concat(t),r],i=s[0],u=s.reduce((d,f)=>{const h=cd(n,f,o);return d.top=pt(h.top,d.top),d.right=fn(h.right,d.right),d.bottom=fn(h.bottom,d.bottom),d.left=pt(h.left,d.left),d},cd(n,i,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Cv(e){const{width:n,height:t}=ad(e);return{width:n,height:t}}function wv(e,n,t){const r=Bt(n),o=zt(n),a=t==="fixed",s=Tn(e,!0,a,n);let i={scrollLeft:0,scrollTop:0};const u=Ft(0);function d(){u.x=ra(o)}if(r||!r&&!a)if((ir(n)!=="body"||Rr(o))&&(i=na(n)),r){const m=Tn(n,!0,a,n);u.x=m.x+n.clientLeft,u.y=m.y+n.clientTop}else o&&d();a&&!r&&o&&d();const f=o&&!r&&!a?id(o,i):Ft(0),h=s.left+i.scrollLeft-u.x-f.x,g=s.top+i.scrollTop-u.y-f.y;return{x:h,y:g,width:s.width,height:s.height}}function Ti(e){return Mt(e).position==="static"}function dd(e,n){if(!Bt(e)||Mt(e).position==="fixed")return null;if(n)return n(e);let t=e.offsetParent;return zt(e)===t&&(t=t.ownerDocument.body),t}function fd(e,n){const t=mt(e);if(ta(e))return t;if(!Bt(e)){let o=hn(e);for(;o&&!lr(o);){if(Et(o)&&!Ti(o))return o;o=hn(o)}return t}let r=dd(e,n);for(;r&&tv(r)&&Ti(r);)r=dd(r,n);return r&&lr(r)&&Ti(r)&&!Pi(r)?t:r||sv(e)||t}const yv=async function(e){const n=this.getOffsetParent||fd,t=this.getDimensions,r=await t(e.floating);return{reference:wv(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bv(e){return Mt(e).direction==="rtl"}const xv={convertOffsetParentRelativeRectToViewportRelativeRect:uv,getDocumentElement:zt,getClippingRect:vv,getOffsetParent:fd,getElementRects:yv,getClientRects:dv,getDimensions:Cv,getScale:cr,isElement:Et,isRTL:bv};function hd(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function Sv(e,n){let t=null,r;const o=zt(e);function a(){var i;clearTimeout(r),(i=t)==null||i.disconnect(),t=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),a();const d=e.getBoundingClientRect(),{left:f,top:h,width:g,height:m}=d;if(i||n(),!g||!m)return;const C=Xo(h),p=Xo(o.clientWidth-(f+g)),v=Xo(o.clientHeight-(h+m)),w=Xo(f),b={rootMargin:-C+"px "+-p+"px "+-v+"px "+-w+"px",threshold:pt(0,fn(1,u))||1};let S=!0;function M(L){const E=L[0].intersectionRatio;if(E!==u){if(!S)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!hd(d,e.getBoundingClientRect())&&s(),S=!1}try{t=new IntersectionObserver(M,{...b,root:o.ownerDocument})}catch{t=new IntersectionObserver(M,b)}t.observe(e)}return s(!0),a}function Ev(e,n,t,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=ki(e),f=o||a?[...d?Gr(d):[],...Gr(n)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",t,{passive:!0}),a&&w.addEventListener("resize",t)});const h=d&&i?Sv(d,t):null;let g=-1,m=null;s&&(m=new ResizeObserver(w=>{let[y]=w;y&&y.target===d&&m&&(m.unobserve(n),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(n)})),t()}),d&&!u&&m.observe(d),m.observe(n));let C,p=u?Tn(e):null;u&&v();function v(){const w=Tn(e);p&&!hd(p,w)&&t(),p=w,C=requestAnimationFrame(v)}return t(),()=>{var w;f.forEach(y=>{o&&y.removeEventListener("scroll",t),a&&y.removeEventListener("resize",t)}),h==null||h(),(w=m)==null||w.disconnect(),m=null,u&&cancelAnimationFrame(C)}}const Mv=qm,Lv=Km,Nv=jm,Pv=Qm,_v=Ym,gd=Gm,Iv=Xm,kv=(e,n,t)=>{const r=new Map,o={platform:xv,...t},a={...o.platform,_c:r};return Rm(e,n,{...o,platform:a})};var Tv=typeof document<"u",Dv=function(){},oa=Tv?D.useLayoutEffect:Dv;function aa(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let t,r,o;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==n.length)return!1;for(r=t;r--!==0;)if(!aa(e[r],n[r]))return!1;return!0}if(o=Object.keys(e),t=o.length,t!==Object.keys(n).length)return!1;for(r=t;r--!==0;)if(!{}.hasOwnProperty.call(n,o[r]))return!1;for(r=t;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!aa(e[a],n[a]))return!1}return!0}return e!==e&&n!==n}function pd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function md(e,n){const t=pd(e);return Math.round(n*t)/t}function Di(e){const n=l.useRef(e);return oa(()=>{n.current=e}),n}function Ov(e){e===void 0&&(e={});const{placement:n="bottom",strategy:t="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:u,open:d}=e,[f,h]=l.useState({x:0,y:0,strategy:t,placement:n,middlewareData:{},isPositioned:!1}),[g,m]=l.useState(r);aa(g,r)||m(r);const[C,p]=l.useState(null),[v,w]=l.useState(null),y=l.useCallback(P=>{P!==L.current&&(L.current=P,p(P))},[]),b=l.useCallback(P=>{P!==E.current&&(E.current=P,w(P))},[]),S=a||C,M=s||v,L=l.useRef(null),E=l.useRef(null),I=l.useRef(f),k=u!=null,O=Di(u),H=Di(o),V=Di(d),Y=l.useCallback(()=>{if(!L.current||!E.current)return;const P={placement:n,strategy:t,middleware:g};H.current&&(P.platform=H.current),kv(L.current,E.current,P).then(z=>{const q={...z,isPositioned:V.current!==!1};$.current&&!aa(I.current,q)&&(I.current=q,Dr.flushSync(()=>{h(q)}))})},[g,n,t,H,V]);oa(()=>{d===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,h(P=>({...P,isPositioned:!1})))},[d]);const $=l.useRef(!1);oa(()=>($.current=!0,()=>{$.current=!1}),[]),oa(()=>{if(S&&(L.current=S),M&&(E.current=M),S&&M){if(O.current)return O.current(S,M,Y);Y()}},[S,M,Y,O,k]);const U=l.useMemo(()=>({reference:L,floating:E,setReference:y,setFloating:b}),[y,b]),T=l.useMemo(()=>({reference:S,floating:M}),[S,M]),W=l.useMemo(()=>{const P={position:t,left:0,top:0};if(!T.floating)return P;const z=md(T.floating,f.x),q=md(T.floating,f.y);return i?{...P,transform:"translate("+z+"px, "+q+"px)",...pd(T.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:z,top:q}},[t,i,T.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:Y,refs:U,elements:T,floatingStyles:W}),[f,Y,U,T,W])}const Vv=e=>{function n(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:r,padding:o}=typeof e=="function"?e(t):e;return r&&n(r)?r.current!=null?gd({element:r.current,padding:o}).fn(t):{}:r?gd({element:r,padding:o}).fn(t):{}}}},Hv=(e,n)=>({...Mv(e),options:[e,n]}),Av=(e,n)=>({...Lv(e),options:[e,n]}),Fv=(e,n)=>({...Iv(e),options:[e,n]}),$v=(e,n)=>({...Nv(e),options:[e,n]}),zv=(e,n)=>({...Pv(e),options:[e,n]}),Bv=(e,n)=>({..._v(e),options:[e,n]}),Zv=(e,n)=>({...Vv(e),options:[e,n]});var Wv="Arrow",vd=l.forwardRef((e,n)=>{const{children:t,width:r=10,height:o=5,...a}=e;return c.jsx(oe.svg,{...a,ref:n,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?t:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});vd.displayName=Wv;var Rv=vd;function sa(e){const[n,t]=l.useState(void 0);return He(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const u=a.borderBoxSize,d=Array.isArray(u)?u[0]:u;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;t({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else t(void 0)},[e]),n}var Oi="Popper",[Cd,gn]=nt(Oi),[Gv,wd]=Cd(Oi),yd=e=>{const{__scopePopper:n,children:t}=e,[r,o]=l.useState(null);return c.jsx(Gv,{scope:n,anchor:r,onAnchorChange:o,children:t})};yd.displayName=Oi;var bd="PopperAnchor",xd=l.forwardRef((e,n)=>{const{__scopePopper:t,virtualRef:r,...o}=e,a=wd(bd,t),s=l.useRef(null),i=he(n,s),u=l.useRef(null);return l.useEffect(()=>{const d=u.current;u.current=(r==null?void 0:r.current)||s.current,d!==u.current&&a.onAnchorChange(u.current)}),r?null:c.jsx(oe.div,{...o,ref:i})});xd.displayName=bd;var Vi="PopperContent",[jv,Yv]=Cd(Vi),Sd=l.forwardRef((e,n)=>{var F,R,Q,re,te,j;const{__scopePopper:t,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:C,...p}=e,v=wd(Vi,t),[w,y]=l.useState(null),b=he(n,ee=>y(ee)),[S,M]=l.useState(null),L=sa(S),E=(L==null?void 0:L.width)??0,I=(L==null?void 0:L.height)??0,k=r+(a!=="center"?"-"+a:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},H=Array.isArray(d)?d:[d],V=H.length>0,Y={padding:O,boundary:H.filter(qv),altBoundary:V},{refs:$,floatingStyles:U,placement:T,isPositioned:W,middlewareData:P}=Ov({strategy:"fixed",placement:k,whileElementsMounted:(...ee)=>Ev(...ee,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[Hv({mainAxis:o+I,alignmentAxis:s}),u&&Av({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Fv():void 0,...Y}),u&&$v({...Y}),zv({...Y,apply:({elements:ee,rects:ie,availableWidth:le,availableHeight:we})=>{const{width:Te,height:xe}=ie.reference,Pe=ee.floating.style;Pe.setProperty("--radix-popper-available-width",`${le}px`),Pe.setProperty("--radix-popper-available-height",`${we}px`),Pe.setProperty("--radix-popper-anchor-width",`${Te}px`),Pe.setProperty("--radix-popper-anchor-height",`${xe}px`)}}),S&&Zv({element:S,padding:i}),Kv({arrowWidth:E,arrowHeight:I}),g&&Bv({strategy:"referenceHidden",...Y})]}),[z,q]=Ld(T),K=Re(C);He(()=>{W&&(K==null||K())},[W,K]);const Z=(F=P.arrow)==null?void 0:F.x,A=(R=P.arrow)==null?void 0:R.y,_=((Q=P.arrow)==null?void 0:Q.centerOffset)!==0,[B,G]=l.useState();return He(()=>{w&&G(window.getComputedStyle(w).zIndex)},[w]),c.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:W?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[(re=P.transformOrigin)==null?void 0:re.x,(te=P.transformOrigin)==null?void 0:te.y].join(" "),...((j=P.hide)==null?void 0:j.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(jv,{scope:t,placedSide:z,onArrowChange:M,arrowX:Z,arrowY:A,shouldHideArrow:_,children:c.jsx(oe.div,{"data-side":z,"data-align":q,...p,ref:b,style:{...p.style,animation:W?void 0:"none"}})})})});Sd.displayName=Vi;var Ed="PopperArrow",Uv={top:"bottom",right:"left",bottom:"top",left:"right"},Md=l.forwardRef(function(n,t){const{__scopePopper:r,...o}=n,a=Yv(Ed,r),s=Uv[a.placedSide];return c.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:c.jsx(Rv,{...o,ref:t,style:{...o.style,display:"block"}})})});Md.displayName=Ed;function qv(e){return e!==null}var Kv=e=>({name:"transformOrigin",options:e,fn(n){var v,w,y;const{placement:t,rects:r,middlewareData:o}=n,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,i=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[d,f]=Ld(t),h={start:"0%",center:"50%",end:"100%"}[f],g=(((w=o.arrow)==null?void 0:w.x)??0)+i/2,m=(((y=o.arrow)==null?void 0:y.y)??0)+u/2;let C="",p="";return d==="bottom"?(C=s?h:`${g}px`,p=`${-u}px`):d==="top"?(C=s?h:`${g}px`,p=`${r.floating.height+u}px`):d==="right"?(C=`${-u}px`,p=s?h:`${m}px`):d==="left"&&(C=`${r.floating.width+u}px`,p=s?h:`${m}px`),{data:{x:C,y:p}}}});function Ld(e){const[n,t="center"]=e.split("-");return[n,t]}var jr=yd,Yr=xd,ia=Sd,la=Md,Xv="Portal",Nd=l.forwardRef((e,n)=>{var i;const{container:t,...r}=e,[o,a]=l.useState(!1);He(()=>a(!0),[]);const s=t||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Yt.createPortal(c.jsx(oe.div,{...r,ref:n}),s):null});Nd.displayName=Xv;function Qv(e){const n=Jv(e),t=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),u=i.find(tC);if(u){const d=u.props.children,f=i.map(h=>h===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:h);return c.jsx(n,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return c.jsx(n,{...s,ref:o,children:a})});return t.displayName=`${e}.Slot`,t}function Jv(e){const n=l.forwardRef((t,r)=>{const{children:o,...a}=t;if(l.isValidElement(o)){const s=rC(o),i=nC(a,o.props);return o.type!==l.Fragment&&(i.ref=r?st(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var eC=Symbol("radix.slottable");function tC(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===eC}function nC(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(t[r]=o):r==="style"?t[r]={...o,...a}:r==="className"&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function rC(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var oC=l[" useInsertionEffect ".trim().toString()]||He;function ht({prop:e,defaultProp:n,onChange:t=()=>{},caller:r}){const[o,a,s]=aC({defaultProp:n,onChange:t}),i=e!==void 0,u=i?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const h=f.current;h!==i&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. 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.`),f.current=i},[i,r])}const d=l.useCallback(f=>{var h;if(i){const g=sC(f)?f(e):f;g!==e&&((h=s.current)==null||h.call(s,g))}else a(f)},[i,e,a,s]);return[u,d]}function aC({defaultProp:e,onChange:n}){const[t,r]=l.useState(e),o=l.useRef(t),a=l.useRef(n);return oC(()=>{a.current=n},[n]),l.useEffect(()=>{var s;o.current!==t&&((s=a.current)==null||s.call(a,t),o.current=t)},[t,o]),[t,r,a]}function sC(e){return typeof e=="function"}function ca(e){const n=l.useRef({value:e,previous:e});return l.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var Pd=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"}),iC="VisuallyHidden",ua=l.forwardRef((e,n)=>c.jsx(oe.span,{...e,ref:n,style:{...Pd,...e.style}}));ua.displayName=iC;var lC=ua,cC=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},ur=new WeakMap,da=new WeakMap,fa={},Hi=0,_d=function(e){return e&&(e.host||_d(e.parentNode))},uC=function(e,n){return n.map(function(t){if(e.contains(t))return t;var r=_d(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},dC=function(e,n,t,r){var o=uC(n,Array.isArray(e)?e:[e]);fa[t]||(fa[t]=new WeakMap);var a=fa[t],s=[],i=new Set,u=new Set(o),d=function(h){!h||i.has(h)||(i.add(h),d(h.parentNode))};o.forEach(d);var f=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(g){if(i.has(g))f(g);else try{var m=g.getAttribute(r),C=m!==null&&m!=="false",p=(ur.get(g)||0)+1,v=(a.get(g)||0)+1;ur.set(g,p),a.set(g,v),s.push(g),p===1&&C&&da.set(g,!0),v===1&&g.setAttribute(t,"true"),C||g.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",g,w)}})};return f(n),i.clear(),Hi++,function(){s.forEach(function(h){var g=ur.get(h)-1,m=a.get(h)-1;ur.set(h,g),a.set(h,m),g||(da.has(h)||h.removeAttribute(r),da.delete(h)),m||h.removeAttribute(t)}),Hi--,Hi||(ur=new WeakMap,ur=new WeakMap,da=new WeakMap,fa={})}},ha=function(e,n,t){t===void 0&&(t="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=cC(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),dC(r,o,t,"aria-hidden")):function(){return null}},Zt=function(){return Zt=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])}return n},Zt.apply(this,arguments)};function Id(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t}function fC(e,n,t){if(t||arguments.length===2)for(var r=0,o=n.length,a;r<o;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return e.concat(a||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;var ga="right-scroll-bar-position",pa="width-before-scroll-bar",hC="with-scroll-bars-hidden",gC="--removed-body-scroll-bar-size";function Ai(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function pC(e,n){var t=D.useState(function(){return{value:e,callback:n,facade:{get current(){return t.value},set current(r){var o=t.value;o!==r&&(t.value=r,t.callback(r,o))}}}})[0];return t.callback=n,t.facade}var mC=typeof window<"u"?l.useLayoutEffect:l.useEffect,kd=new WeakMap;function vC(e,n){var t=pC(null,function(r){return e.forEach(function(o){return Ai(o,r)})});return mC(function(){var r=kd.get(t);if(r){var o=new Set(r),a=new Set(e),s=t.current;o.forEach(function(i){a.has(i)||Ai(i,null)}),a.forEach(function(i){o.has(i)||Ai(i,s)})}kd.set(t,e)},[e]),t}function CC(e){return e}function wC(e,n){n===void 0&&(n=CC);var t=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(a){var s=n(a,r);return t.push(s),function(){t=t.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;t.length;){var s=t;t=[],s.forEach(a)}t={push:function(i){return a(i)},filter:function(){return t}}},assignMedium:function(a){r=!0;var s=[];if(t.length){var i=t;t=[],i.forEach(a),s=t}var u=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(u)};d(),t={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),t}}}};return o}function yC(e){e===void 0&&(e={});var n=wC(null);return n.options=Zt({async:!0,ssr:!1},e),n}var Td=function(e){var n=e.sideCar,t=Id(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,Zt({},t))};Td.isSideCarExport=!0;function bC(e,n){return e.useMedium(n),Td}var Dd=yC(),Fi=function(){},ma=l.forwardRef(function(e,n){var t=l.useRef(null),r=l.useState({onScrollCapture:Fi,onWheelCapture:Fi,onTouchMoveCapture:Fi}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,h=e.shards,g=e.sideCar,m=e.noRelative,C=e.noIsolation,p=e.inert,v=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,b=e.gapMode,S=Id(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=g,L=vC([t,n]),E=Zt(Zt({},S),o);return l.createElement(l.Fragment,null,f&&l.createElement(M,{sideCar:Dd,removeScrollBar:d,shards:h,noRelative:m,noIsolation:C,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:t,gapMode:b}),s?l.cloneElement(l.Children.only(i),Zt(Zt({},E),{ref:L})):l.createElement(y,Zt({},E,{className:u,ref:L}),i))});ma.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ma.classNames={fullWidth:pa,zeroRight:ga};var xC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=xC();return n&&e.setAttribute("nonce",n),e}function EC(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function MC(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var LC=function(){var e=0,n=null;return{add:function(t){e==0&&(n=SC())&&(EC(n,t),MC(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},NC=function(){var e=LC();return function(n,t){l.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&t])}},Od=function(){var e=NC(),n=function(t){var r=t.styles,o=t.dynamic;return e(r,o),null};return n},PC={left:0,top:0,right:0,gap:0},$i=function(e){return parseInt(e||"",10)||0},_C=function(e){var n=window.getComputedStyle(document.body),t=n[e==="padding"?"paddingLeft":"marginLeft"],r=n[e==="padding"?"paddingTop":"marginTop"],o=n[e==="padding"?"paddingRight":"marginRight"];return[$i(t),$i(r),$i(o)]},IC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return PC;var n=_C(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}},kC=Od(),dr="data-scroll-locked",TC=function(e,n,t,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return t===void 0&&(t="margin"),`
|
|
1
|
+
(function(x,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-hook-form"),require("zod"),require("zod-i18n-map"),require("@hookform/resolvers")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","react-hook-form","zod","zod-i18n-map","@hookform/resolvers"],c):(x=typeof globalThis<"u"?globalThis:x||self,c(x["krit-ui"]={},x["react/jsx-runtime"],x.React,x.ReactDOM,x.reactHookForm,x.zod,x.zodI18nMap,x.resolvers))})(this,function(x,c,D,Yt,Qn,ve,o6,Bo){"use strict";var gk=Object.defineProperty;var pk=(x,c,D)=>c in x?gk(x,c,{enumerable:!0,configurable:!0,writable:!0,value:D}):x[c]=D;var ae=(x,c,D)=>pk(x,typeof c!="symbol"?c+"":c,D);function Bc(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=Bc(D),Dr=Bc(Yt);function Zc(e){var n,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(t=Zc(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Wc(){for(var e,n,t=0,r="",o=arguments.length;t<o;t++)(e=arguments[t])&&(n=Zc(e))&&(r&&(r+=" "),r+=n);return r}const $s="-",a6=e=>{const n=i6(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split($s);return i[0]===""&&i.length!==1&&i.shift(),Rc(i,n)||s6(s)},getConflictingClassGroupIds:(s,i)=>{const u=t[s]||[];return i&&r[s]?[...u,...r[s]]:u}}},Rc=(e,n)=>{var s;if(e.length===0)return n.classGroupId;const t=e[0],r=n.nextPart.get(t),o=r?Rc(e.slice(1),r):void 0;if(o)return o;if(n.validators.length===0)return;const a=e.join($s);return(s=n.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Gc=/^\[(.+)\]$/,s6=e=>{if(Gc.test(e)){const n=Gc.exec(e)[1],t=n==null?void 0:n.substring(0,n.indexOf(":"));if(t)return"arbitrary.."+t}},i6=e=>{const{theme:n,prefix:t}=e,r={nextPart:new Map,validators:[]};return c6(Object.entries(e.classGroups),t).forEach(([a,s])=>{zs(s,r,a,n)}),r},zs=(e,n,t,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?n:jc(n,o);a.classGroupId=t;return}if(typeof o=="function"){if(l6(o)){zs(o(r),n,t,r);return}n.validators.push({validator:o,classGroupId:t});return}Object.entries(o).forEach(([a,s])=>{zs(s,jc(n,a),t,r)})})},jc=(e,n)=>{let t=e;return n.split($s).forEach(r=>{t.nextPart.has(r)||t.nextPart.set(r,{nextPart:new Map,validators:[]}),t=t.nextPart.get(r)}),t},l6=e=>e.isThemeGetter,c6=(e,n)=>n?e.map(([t,r])=>{const o=r.map(a=>typeof a=="string"?n+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[n+s,i])):a);return[t,o]}):e,u6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,t=new Map,r=new Map;const o=(a,s)=>{t.set(a,s),n++,n>e&&(n=0,r=t,t=new Map)};return{get(a){let s=t.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){t.has(a)?t.set(a,s):o(a,s)}}},Yc="!",d6=e=>{const{separator:n,experimentalParseClassName:t}=e,r=n.length===1,o=n[0],a=n.length,s=i=>{const u=[];let d=0,f=0,h;for(let v=0;v<i.length;v++){let w=i[v];if(d===0){if(w===o&&(r||i.slice(v,v+a)===n)){u.push(i.slice(f,v)),f=v+a;continue}if(w==="/"){h=v;continue}}w==="["?d++:w==="]"&&d--}const g=u.length===0?i:i.substring(f),m=g.startsWith(Yc),C=m?g.substring(1):g,p=h&&h>f?h-f:void 0;return{modifiers:u,hasImportantModifier:m,baseClassName:C,maybePostfixModifierPosition:p}};return t?i=>t({className:i,parseClassName:s}):s},f6=e=>{if(e.length<=1)return e;const n=[];let t=[];return e.forEach(r=>{r[0]==="["?(n.push(...t.sort(),r),t=[]):t.push(r)}),n.push(...t.sort()),n},h6=e=>({cache:u6(e.cacheSize),parseClassName:d6(e),...a6(e)}),g6=/\s+/,p6=(e,n)=>{const{parseClassName:t,getClassGroupId:r,getConflictingClassGroupIds:o}=n,a=[],s=e.trim().split(g6);let i="";for(let u=s.length-1;u>=0;u-=1){const d=s[u],{modifiers:f,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}=t(d);let C=!!m,p=r(C?g.substring(0,m):g);if(!p){if(!C){i=d+(i.length>0?" "+i:i);continue}if(p=r(g),!p){i=d+(i.length>0?" "+i:i);continue}C=!1}const v=f6(f).join(":"),w=h?v+Yc:v,y=w+p;if(a.includes(y))continue;a.push(y);const b=o(p,C);for(let S=0;S<b.length;++S){const M=b[S];a.push(w+M)}i=d+(i.length>0?" "+i:i)}return i};function m6(){let e=0,n,t,r="";for(;e<arguments.length;)(n=arguments[e++])&&(t=Uc(n))&&(r&&(r+=" "),r+=t);return r}const Uc=e=>{if(typeof e=="string")return e;let n,t="";for(let r=0;r<e.length;r++)e[r]&&(n=Uc(e[r]))&&(t&&(t+=" "),t+=n);return t};function v6(e,...n){let t,r,o,a=s;function s(u){const d=n.reduce((f,h)=>h(f),e());return t=h6(d),r=t.cache.get,o=t.cache.set,a=i,i(u)}function i(u){const d=r(u);if(d)return d;const f=p6(u,t);return o(u,f),f}return function(){return a(m6.apply(null,arguments))}}const Ve=e=>{const n=t=>t[e]||[];return n.isThemeGetter=!0,n},qc=/^\[(?:([a-z-]+):)?(.+)\]$/i,C6=/^\d+\/\d+$/,w6=new Set(["px","full","screen"]),y6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,b6=/\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$/,x6=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,S6=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,E6=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ut=e=>Jn(e)||w6.has(e)||C6.test(e),an=e=>er(e,"length",T6),Jn=e=>!!e&&!Number.isNaN(Number(e)),Bs=e=>er(e,"number",Jn),Or=e=>!!e&&Number.isInteger(Number(e)),M6=e=>e.endsWith("%")&&Jn(e.slice(0,-1)),me=e=>qc.test(e),sn=e=>y6.test(e),L6=new Set(["length","size","percentage"]),N6=e=>er(e,L6,Kc),P6=e=>er(e,"position",Kc),_6=new Set(["image","url"]),I6=e=>er(e,_6,O6),k6=e=>er(e,"",D6),Vr=()=>!0,er=(e,n,t)=>{const r=qc.exec(e);return r?r[1]?typeof n=="string"?r[1]===n:n.has(r[1]):t(r[2]):!1},T6=e=>b6.test(e)&&!x6.test(e),Kc=()=>!1,D6=e=>S6.test(e),O6=e=>E6.test(e),V6=v6(()=>{const e=Ve("colors"),n=Ve("spacing"),t=Ve("blur"),r=Ve("brightness"),o=Ve("borderColor"),a=Ve("borderRadius"),s=Ve("borderSpacing"),i=Ve("borderWidth"),u=Ve("contrast"),d=Ve("grayscale"),f=Ve("hueRotate"),h=Ve("invert"),g=Ve("gap"),m=Ve("gradientColorStops"),C=Ve("gradientColorStopPositions"),p=Ve("inset"),v=Ve("margin"),w=Ve("opacity"),y=Ve("padding"),b=Ve("saturate"),S=Ve("scale"),M=Ve("sepia"),L=Ve("skew"),E=Ve("space"),I=Ve("translate"),k=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",me,n],V=()=>[me,n],Y=()=>["",Ut,an],$=()=>["auto",Jn,me],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],z=()=>["","0",me],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[Jn,me];return{cacheSize:500,separator:":",theme:{colors:[Vr],spacing:[Ut,an],blur:["none","",sn,me],brightness:K(),borderColor:[e],borderRadius:["none","","full",sn,me],borderSpacing:V(),borderWidth:Y(),contrast:K(),grayscale:z(),hueRotate:K(),invert:z(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[M6,an],inset:A(),margin:A(),opacity:K(),padding:V(),saturate:K(),scale:K(),sepia:z(),skew:K(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[sn]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"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:[...U(),me]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Or,me]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",me]}],grow:[{grow:z()}],shrink:[{shrink:z()}],order:[{order:["first","last","none",Or,me]}],"grid-cols":[{"grid-cols":[Vr]}],"col-start-end":[{col:["auto",{span:["full",Or,me]},me]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Vr]}],"row-start-end":[{row:["auto",{span:[Or,me]},me]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",me]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",me,n]}],"min-w":[{"min-w":[me,n,"min","max","fit"]}],"max-w":[{"max-w":[me,n,"none","full","min","max","fit","prose",{screen:[sn]},sn]}],h:[{h:[me,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,n,"auto","min","max","fit"]}],"font-size":[{text:["base",sn,an]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Bs]}],"font-family":[{font:[Vr]}],"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",me]}],"line-clamp":[{"line-clamp":["none",Jn,Bs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ut,me]}],"list-image":[{"list-image":["none",me]}],"list-style-type":[{list:["none","disc","decimal",me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ut,an]}],"underline-offset":[{"underline-offset":["auto",Ut,me]}],"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:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me]}],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",me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),P6]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",N6]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},I6]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],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":[w]}],"border-style":[{border:[...T(),"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":[w]}],"divide-style":[{divide:T()}],"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:["",...T()]}],"outline-offset":[{"outline-offset":[Ut,me]}],"outline-w":[{outline:[Ut,an]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Ut,an]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",sn,k6]}],"shadow-color":[{shadow:[Vr]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",sn,me]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[h]}],saturate:[{saturate:[b]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",me]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Or,me]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",me]}],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",me]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ut,an,Bs]}],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 N(...e){return V6(Wc(e))}const Xc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Qc=Wc,ln=(e,n)=>t=>{var r;if((n==null?void 0:n.variants)==null)return Qc(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:o,defaultVariants:a}=n,s=Object.keys(o).map(d=>{const f=t==null?void 0:t[d],h=a==null?void 0:a[d];if(f===null)return null;const g=Xc(f)||Xc(h);return o[d][g]}),i=t&&Object.entries(t).reduce((d,f)=>{let[h,g]=f;return g===void 0||(d[h]=g),d},{}),u=n==null||(r=n.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:h,className:g,...m}=f;return Object.entries(m).every(C=>{let[p,v]=C;return Array.isArray(v)?v.includes({...a,...i}[p]):{...a,...i}[p]===v})?[...d,h,g]:d},[]);return Qc(e,s,u,t==null?void 0:t.class,t==null?void 0:t.className)},Jc=ln("items-center w-fit gap-1 cursor-default select-none text-nowrap rounded-sm px-2 py-0.5 leading-4 text-sm transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-0 bg-background text-foreground hover:bg-background-primary/80",gradient:"leading-3 border-0 bg-background-theme text-foreground-on-contrast hover:bg-background-theme/80",secondary:"border-0 bg-background-secondary text-foreground hover:bg-foreground/5","secondary-contrast":"bg-background-secondary/60 text-foreground hover:bg-background-secondary/80",accent:"bg-background-theme border-line-theme/10 text-[white] hover:bg-background-theme/80",theme:"bg-background-theme border-line-theme/10 text-[white] hover:bg-background-theme/80","theme-fade":"bg-background-theme-fade text-foreground-theme hover:bg-background-theme-fade_hover",pale:"bg-background-warning border-line-warning text-foreground-on-contrast hover:bg-background-warning/80","pale-primary":"bg-pale-foreground text-primary-foreground hover:bg-pale-foreground/80",destructive:"bg-background-error border-line-error text-[white] hover:bg-background-error/80","destructive-fade":"bg-background-error-fade text-foreground-error hover:bg-background-error-fade-hover","destructive-primary":"bg-destructive-foreground text-primary-foreground hover:bg-destructive-foreground/80",success:"bg-background-success text-[white] hover:bg-background-success/80","success-fade":"bg-background-success-fade text-foreground-success hover:bg-background-success-fade-hover","success-primary":"bg-success-foreground text-primary-foreground hover:bg-success-foreground/80",grey:"bg-background-contrast-fade text-foreground hover:bg-background-contrast-fade/80","grey-primary":"bg-grey-foreground text-primary-foreground hover:bg-grey-foreground/80",outline:"bg-background border border-line-primary text-foreground","outline-success":"bg-background border border-line-success text-foreground-success",warning:"bg-background-warning text-foreground-on-contrast hover:bg-background-warning_hover","warning-fade":"bg-background-warning-fade text-foreground-warning hover:bg-background-warning-fade-hover",contrast:"bg-background-contrast text-foreground-on-contrast hover:bg-background-contrast/80"},size:{sm:"h-[24px]",default:"h-7",lg:"h-7"},iconVariant:{default:"[&_svg]:text-icon",black:"[&_svg]:text-foreground",secondary:"[&_svg]:text-icon-secondary"},layout:{default:"inline-flex",truncate:"text-ellipsis line-clamp-1"}},defaultVariants:{layout:"default",variant:"default",size:"default"}});function H6({className:e,variant:n,size:t,icon:r,iconRight:o,iconVariant:a,layout:s,children:i,...u}){return c.jsxs("div",{className:N(Jc({variant:n,size:t,iconVariant:n==="secondary"?a:void 0,layout:s}),u.onClick?"cursor-pointer":"cursor-default pointer-events-none",e),title:typeof i=="string"?i:u.title,...u,children:[r&&c.jsx("div",{className:i?"ml-[-4px]":"",children:r}),i,o&&c.jsx("div",{className:i?"mr-[-4px]":"",children:o})]})}function eu(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function st(...e){return n=>{let t=!1;const r=e.map(o=>{const a=eu(o,n);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():eu(e[o],null)}}}}function he(...e){return l.useCallback(st(...e),e)}var A6=Symbol.for("react.lazy"),Zo=l[" use ".trim().toString()];function F6(e){return typeof e=="object"&&e!==null&&"then"in e}function tu(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===A6&&"_payload"in e&&F6(e._payload)}function Wo(e){const n=$6(e),t=l.forwardRef((r,o)=>{let{children:a,...s}=r;tu(a)&&typeof Zo=="function"&&(a=Zo(a._payload));const i=l.Children.toArray(a),u=i.find(B6);if(u){const d=u.props.children,f=i.map(h=>h===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:h);return c.jsx(n,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return c.jsx(n,{...s,ref:o,children:a})});return t.displayName=`${e}.Slot`,t}var nu=Wo("Slot");function $6(e){const n=l.forwardRef((t,r)=>{let{children:o,...a}=t;if(tu(o)&&typeof Zo=="function"&&(o=Zo(o._payload)),l.isValidElement(o)){const s=W6(o),i=Z6(a,o.props);return o.type!==l.Fragment&&(i.ref=r?st(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var z6=Symbol("radix.slottable");function B6(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===z6}function Z6(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(t[r]=o):r==="style"?t[r]={...o,...a}:r==="className"&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function W6(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}const Hr=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M7 9.5L12 14.5L17 9.5H7Z"})),Pn=ln("tracking-[0.15px] inline-flex select-none gap-1 items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none disabled:pointer-events-none disabled:opacity-80",{variants:{variant:{"fade-contrast-filled":"bg-background-contrast-fade text-foreground-primary hover:bg-background-contrast-fade-hover disabled:bg-background-contrast-fade-disabled disabled:text-foreground-primary-disabled [&_svg]:text-icon-contrast disabled:[&_svg]:text-icon-contrast-disabled","fade-contrast-outlined":"border border-line-primary bg-transparent text-foreground-primary hover:bg-background-primary-hover hover:border-line-primary disabled:border-line-primary-disabled disabled:text-foreground-primary-disabled [&_svg]:text-icon-contrast disabled:[&_svg]:text-icon-contrast-disabled","fade-contrast-transparent":"bg-transparent text-foreground-primary hover:bg-background-primary-hover disabled:text-foreground-primary-disabled [&_svg]:text-icon-contrast disabled:[&_svg]:text-icon-contrast-disabled","theme-filled":"bg-background-theme text-foreground-on-contrast hover:bg-background-theme-hover disabled:bg-background-contrast-fade-disabled disabled:text-foreground-primary-disabled [&_svg]:text-icon-on-contrast disabled:[&_svg]:text-icon-contrast-disabled","warning-filled":"bg-background-error text-foreground-on-contrast hover:bg-background-error-hover disabled:bg-background-contrast-fade-disabled disabled:text-foreground-primary-disabled [&_svg]:text-icon-on-contrast disabled:[&_svg]:text-icon-contrast-disabled","nav-item":"font-normal hover:bg-background-contrast-fade-selected/30 text-foreground-tertiary hover:text-foreground-white","nav-item-selected":"font-normal bg-background-contrast-fade-selected/30 text-foreground-sidebar-active"},size:{default:"h-9 px-4 py-2",xs:"h-[30px] text-sm font-semibold px-3",sm:"h-9 px-3 py-2",lg:"h-10 px-8",xl:"h-12 px-8",xxl:"h-16 px-8",xxxl:"h-20 px-8 font-medium",icon:"h-9 w-9"}},defaultVariants:{variant:"fade-contrast-filled",size:"default"}}),Ze=l.forwardRef(({className:e,variant:n,size:t,asChild:r=!1,asDropdown:o,icon:a,children:s,...i},u)=>{const d=r?nu:"button";return r?c.jsx(d,{className:N(Pn({variant:n,size:t,className:e})),ref:u,...i,children:s}):c.jsxs(d,{className:N(Pn({variant:n,size:t,className:e})),ref:u,...i,children:[a&&c.jsx("span",{className:"w-6 h-6 flex items-center justify-center",children:a}),s,o&&c.jsx(Hr,{className:"w-6 h-6"})]})});Ze.displayName="Button";function ye(e){const n=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&n==="[object Date]"?new e.constructor(+e):typeof e=="number"||n==="[object Number]"||typeof e=="string"||n==="[object String]"?new Date(e):new Date(NaN)}function De(e,n){return e instanceof Date?new e.constructor(n):new Date(n)}function tt(e,n){const t=ye(e);return isNaN(n)?De(e,NaN):(n&&t.setDate(t.getDate()+n),t)}function xt(e,n){const t=ye(e);if(isNaN(n))return De(e,NaN);if(!n)return t;const r=t.getDate(),o=De(e,t.getTime());o.setMonth(t.getMonth()+n+1,0);const a=o.getDate();return r>=a?o:(t.setFullYear(o.getFullYear(),o.getMonth(),r),t)}const Zs=6048e5,R6=864e5,G6=6e4,j6=36e5,Y6=1e3;let U6={};function _n(){return U6}function it(e,n){var i,u,d,f;const t=_n(),r=(n==null?void 0:n.weekStartsOn)??((u=(i=n==null?void 0:n.locale)==null?void 0:i.options)==null?void 0:u.weekStartsOn)??t.weekStartsOn??((f=(d=t.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,o=ye(e),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function qt(e){return it(e,{weekStartsOn:1})}function ru(e){const n=ye(e),t=n.getFullYear(),r=De(e,0);r.setFullYear(t+1,0,4),r.setHours(0,0,0,0);const o=qt(r),a=De(e,0);a.setFullYear(t,0,4),a.setHours(0,0,0,0);const s=qt(a);return n.getTime()>=o.getTime()?t+1:n.getTime()>=s.getTime()?t:t-1}function tr(e){const n=ye(e);return n.setHours(0,0,0,0),n}function nr(e){const n=ye(e),t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+e-+t}function Dt(e,n){const t=tr(e),r=tr(n),o=+t-nr(t),a=+r-nr(r);return Math.round((o-a)/R6)}function q6(e){const n=ru(e),t=De(e,0);return t.setFullYear(n,0,4),t.setHours(0,0,0,0),qt(t)}function Ws(e,n){const t=n*7;return tt(e,t)}function K6(e,n){return xt(e,n*12)}function X6(e){let n;return e.forEach(function(t){const r=ye(t);(n===void 0||n<r||isNaN(Number(r)))&&(n=r)}),n||new Date(NaN)}function Q6(e){let n;return e.forEach(t=>{const r=ye(t);(!n||n>r||isNaN(+r))&&(n=r)}),n||new Date(NaN)}function dt(e,n){const t=tr(e),r=tr(n);return+t==+r}function Rs(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ou(e){if(!Rs(e)&&typeof e!="number")return!1;const n=ye(e);return!isNaN(Number(n))}function Ar(e,n){const t=ye(e),r=ye(n),o=t.getFullYear()-r.getFullYear(),a=t.getMonth()-r.getMonth();return o*12+a}function J6(e,n,t){const r=it(e,t),o=it(n,t),a=+r-nr(r),s=+o-nr(o);return Math.round((a-s)/Zs)}function Gs(e){const n=ye(e),t=n.getMonth();return n.setFullYear(n.getFullYear(),t+1,0),n.setHours(23,59,59,999),n}function ft(e){const n=ye(e);return n.setDate(1),n.setHours(0,0,0,0),n}function au(e){const n=ye(e),t=De(e,0);return t.setFullYear(n.getFullYear(),0,1),t.setHours(0,0,0,0),t}function js(e,n){var i,u,d,f;const t=_n(),r=(n==null?void 0:n.weekStartsOn)??((u=(i=n==null?void 0:n.locale)==null?void 0:i.options)==null?void 0:u.weekStartsOn)??t.weekStartsOn??((f=(d=t.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,o=ye(e),a=o.getDay(),s=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function su(e){return js(e,{weekStartsOn:1})}const e7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},t7=(e,n,t)=>{let r;const o=e7[e];return typeof o=="string"?r=o:n===1?r=o.one:r=o.other.replace("{{count}}",n.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function rr(e){return(n={})=>{const t=n.width?String(n.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}const n7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},r7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a7={date:rr({formats:n7,defaultWidth:"full"}),time:rr({formats:r7,defaultWidth:"full"}),dateTime:rr({formats:o7,defaultWidth:"full"})},s7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},i7=(e,n,t,r)=>s7[e];function Ot(e){return(n,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=t!=null&&t.width?String(t.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=t!=null&&t.width?String(t.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(n):n;return o[a]}}const l7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},c7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},u7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},d7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},f7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},h7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},g7={ordinalNumber:(e,n)=>{const t=Number(e),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:Ot({values:l7,defaultWidth:"wide"}),quarter:Ot({values:c7,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ot({values:u7,defaultWidth:"wide"}),day:Ot({values:d7,defaultWidth:"wide"}),dayPeriod:Ot({values:f7,defaultWidth:"wide",formattingValues:h7,defaultFormattingWidth:"wide"})};function Vt(e){return(n,t={})=>{const r=t.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=n.match(o);if(!a)return null;const s=a[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(i)?m7(i,h=>h.test(s)):p7(i,h=>h.test(s));let d;d=e.valueCallback?e.valueCallback(u):u,d=t.valueCallback?t.valueCallback(d):d;const f=n.slice(s.length);return{value:d,rest:f}}}function p7(e,n){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n(e[t]))return t}function m7(e,n){for(let t=0;t<e.length;t++)if(n(e[t]))return t}function iu(e){return(n,t={})=>{const r=n.match(e.matchPattern);if(!r)return null;const o=r[0],a=n.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=t.valueCallback?t.valueCallback(s):s;const i=n.slice(o.length);return{value:s,rest:i}}}const v7=/^(\d+)(th|st|nd|rd)?/i,C7=/\d+/i,w7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},y7={any:[/^b/i,/^(a|c)/i]},b7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},x7={any:[/1/i,/2/i,/3/i,/4/i]},S7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},E7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},M7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},L7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},N7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},P7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},_7={ordinalNumber:iu({matchPattern:v7,parsePattern:C7,valueCallback:e=>parseInt(e,10)}),era:Vt({matchPatterns:w7,defaultMatchWidth:"wide",parsePatterns:y7,defaultParseWidth:"any"}),quarter:Vt({matchPatterns:b7,defaultMatchWidth:"wide",parsePatterns:x7,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Vt({matchPatterns:S7,defaultMatchWidth:"wide",parsePatterns:E7,defaultParseWidth:"any"}),day:Vt({matchPatterns:M7,defaultMatchWidth:"wide",parsePatterns:L7,defaultParseWidth:"any"}),dayPeriod:Vt({matchPatterns:N7,defaultMatchWidth:"any",parsePatterns:P7,defaultParseWidth:"any"})},Fr={code:"en-US",formatDistance:t7,formatLong:a7,formatRelative:i7,localize:g7,match:_7,options:{weekStartsOn:0,firstWeekContainsDate:1}};function I7(e){const n=ye(e);return Dt(n,au(n))+1}function Ys(e){const n=ye(e),t=+qt(n)-+q6(n);return Math.round(t/Zs)+1}function Us(e,n){var f,h,g,m;const t=ye(e),r=t.getFullYear(),o=_n(),a=(n==null?void 0:n.firstWeekContainsDate)??((h=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??o.firstWeekContainsDate??((m=(g=o.locale)==null?void 0:g.options)==null?void 0:m.firstWeekContainsDate)??1,s=De(e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const i=it(s,n),u=De(e,0);u.setFullYear(r,0,a),u.setHours(0,0,0,0);const d=it(u,n);return t.getTime()>=i.getTime()?r+1:t.getTime()>=d.getTime()?r:r-1}function k7(e,n){var i,u,d,f;const t=_n(),r=(n==null?void 0:n.firstWeekContainsDate)??((u=(i=n==null?void 0:n.locale)==null?void 0:i.options)==null?void 0:u.firstWeekContainsDate)??t.firstWeekContainsDate??((f=(d=t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,o=Us(e,n),a=De(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),it(a,n)}function qs(e,n){const t=ye(e),r=+it(t,n)-+k7(t,n);return Math.round(r/Zs)+1}function Ie(e,n){const t=e<0?"-":"",r=Math.abs(e).toString().padStart(n,"0");return t+r}const cn={y(e,n){const t=e.getFullYear(),r=t>0?t:1-t;return Ie(n==="yy"?r%100:r,n.length)},M(e,n){const t=e.getMonth();return n==="M"?String(t+1):Ie(t+1,2)},d(e,n){return Ie(e.getDate(),n.length)},a(e,n){const t=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,n){return Ie(e.getHours()%12||12,n.length)},H(e,n){return Ie(e.getHours(),n.length)},m(e,n){return Ie(e.getMinutes(),n.length)},s(e,n){return Ie(e.getSeconds(),n.length)},S(e,n){const t=n.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,t-3));return Ie(o,n.length)}},or={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lu={G:function(e,n,t){const r=e.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(e,n,t){if(n==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return t.ordinalNumber(o,{unit:"year"})}return cn.y(e,n)},Y:function(e,n,t,r){const o=Us(e,r),a=o>0?o:1-o;if(n==="YY"){const s=a%100;return Ie(s,2)}return n==="Yo"?t.ordinalNumber(a,{unit:"year"}):Ie(a,n.length)},R:function(e,n){const t=ru(e);return Ie(t,n.length)},u:function(e,n){const t=e.getFullYear();return Ie(t,n.length)},Q:function(e,n,t){const r=Math.ceil((e.getMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return Ie(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,t){const r=Math.ceil((e.getMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return Ie(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,t){const r=e.getMonth();switch(n){case"M":case"MM":return cn.M(e,n);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,t){const r=e.getMonth();switch(n){case"L":return String(r+1);case"LL":return Ie(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,t,r){const o=qs(e,r);return n==="wo"?t.ordinalNumber(o,{unit:"week"}):Ie(o,n.length)},I:function(e,n,t){const r=Ys(e);return n==="Io"?t.ordinalNumber(r,{unit:"week"}):Ie(r,n.length)},d:function(e,n,t){return n==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):cn.d(e,n)},D:function(e,n,t){const r=I7(e);return n==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):Ie(r,n.length)},E:function(e,n,t){const r=e.getDay();switch(n){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,t,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Ie(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});case"eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,t,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Ie(a,n.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});case"cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,t){const r=e.getDay(),o=r===0?7:r;switch(n){case"i":return String(o);case"ii":return Ie(o,n.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,t){const o=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,t){const r=e.getHours();let o;switch(r===12?o=or.noon:r===0?o=or.midnight:o=r/12>=1?"pm":"am",n){case"b":case"bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,t){const r=e.getHours();let o;switch(r>=17?o=or.evening:r>=12?o=or.afternoon:r>=4?o=or.morning:o=or.night,n){case"B":case"BB":case"BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,t){if(n==="ho"){let r=e.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return cn.h(e,n)},H:function(e,n,t){return n==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):cn.H(e,n)},K:function(e,n,t){const r=e.getHours()%12;return n==="Ko"?t.ordinalNumber(r,{unit:"hour"}):Ie(r,n.length)},k:function(e,n,t){let r=e.getHours();return r===0&&(r=24),n==="ko"?t.ordinalNumber(r,{unit:"hour"}):Ie(r,n.length)},m:function(e,n,t){return n==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):cn.m(e,n)},s:function(e,n,t){return n==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):cn.s(e,n)},S:function(e,n){return cn.S(e,n)},X:function(e,n,t){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(n){case"X":return uu(r);case"XXXX":case"XX":return In(r);case"XXXXX":case"XXX":default:return In(r,":")}},x:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"x":return uu(r);case"xxxx":case"xx":return In(r);case"xxxxx":case"xxx":default:return In(r,":")}},O:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+cu(r,":");case"OOOO":default:return"GMT"+In(r,":")}},z:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+cu(r,":");case"zzzz":default:return"GMT"+In(r,":")}},t:function(e,n,t){const r=Math.trunc(e.getTime()/1e3);return Ie(r,n.length)},T:function(e,n,t){const r=e.getTime();return Ie(r,n.length)}};function cu(e,n=""){const t=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?t+String(o):t+String(o)+n+Ie(a,2)}function uu(e,n){return e%60===0?(e>0?"-":"+")+Ie(Math.abs(e)/60,2):In(e,n)}function In(e,n=""){const t=e>0?"-":"+",r=Math.abs(e),o=Ie(Math.trunc(r/60),2),a=Ie(r%60,2);return t+o+n+a}const du=(e,n)=>{switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},fu=(e,n)=>{switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Ks={p:fu,P:(e,n)=>{const t=e.match(/(P+)(p+)?/)||[],r=t[1],o=t[2];if(!o)return du(e,n);let a;switch(r){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",du(r,n)).replace("{{time}}",fu(o,n))}},T7=/^D+$/,D7=/^Y+$/,O7=["D","DD","YY","YYYY"];function hu(e){return T7.test(e)}function gu(e){return D7.test(e)}function Xs(e,n,t){const r=V7(e,n,t);if(console.warn(r),O7.includes(e))throw new RangeError(r)}function V7(e,n,t){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${n}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const H7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,F7=/^'([^]*?)'?$/,$7=/''/g,z7=/[a-zA-Z]/;function un(e,n,t){var f,h,g,m,C,p,v,w;const r=_n(),o=(t==null?void 0:t.locale)??r.locale??Fr,a=(t==null?void 0:t.firstWeekContainsDate)??((h=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??r.firstWeekContainsDate??((m=(g=r.locale)==null?void 0:g.options)==null?void 0:m.firstWeekContainsDate)??1,s=(t==null?void 0:t.weekStartsOn)??((p=(C=t==null?void 0:t.locale)==null?void 0:C.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((w=(v=r.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0,i=ye(e);if(!ou(i))throw new RangeError("Invalid time value");let u=n.match(A7).map(y=>{const b=y[0];if(b==="p"||b==="P"){const S=Ks[b];return S(y,o.formatLong)}return y}).join("").match(H7).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const b=y[0];if(b==="'")return{isToken:!1,value:B7(y)};if(lu[b])return{isToken:!0,value:y};if(b.match(z7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:y}});o.localize.preprocessor&&(u=o.localize.preprocessor(i,u));const d={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return u.map(y=>{if(!y.isToken)return y.value;const b=y.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&gu(b)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&hu(b))&&Xs(b,n,String(e));const S=lu[b[0]];return S(i,b,o.localize,d)}).join("")}function B7(e){const n=e.match(F7);return n?n[1].replace($7,"'"):e}function Z7(e){const n=ye(e),t=n.getFullYear(),r=n.getMonth(),o=De(e,0);return o.setFullYear(t,r+1,0),o.setHours(0,0,0,0),o.getDate()}function W7(){return Object.assign({},_n())}function R7(e){let t=ye(e).getDay();return t===0&&(t=7),t}function G7(e){return Math.trunc(+ye(e)/1e3)}function j7(e){const n=ye(e),t=n.getMonth();return n.setFullYear(n.getFullYear(),t+1,0),n.setHours(0,0,0,0),n}function Y7(e,n){return J6(j7(e),ft(e),n)+1}function Qs(e,n){const t=ye(e),r=ye(n);return t.getTime()>r.getTime()}function pu(e,n){const t=ye(e),r=ye(n);return+t<+r}function U7(e,n){const t=n instanceof Date?De(n,0):new n(0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}const q7=10;class mu{constructor(){ae(this,"subPriority",0)}validate(n,t){return!0}}class K7 extends mu{constructor(n,t,r,o,a){super(),this.value=n,this.validateValue=t,this.setValue=r,this.priority=o,a&&(this.subPriority=a)}validate(n,t){return this.validateValue(n,this.value,t)}set(n,t,r){return this.setValue(n,t,this.value,r)}}class X7 extends mu{constructor(){super(...arguments);ae(this,"priority",q7);ae(this,"subPriority",-1)}set(t,r){return r.timestampIsSet?t:De(t,U7(t,Date))}}class Ne{run(n,t,r,o){const a=this.parse(n,t,r,o);return a?{setter:new K7(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(n,t,r){return!0}}class Q7 extends Ne{constructor(){super(...arguments);ae(this,"priority",140);ae(this,"incompatibleTokens",["R","u","t","T"])}parse(t,r,o){switch(r){case"G":case"GG":case"GGG":return o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"});case"GGGGG":return o.era(t,{width:"narrow"});case"GGGG":default:return o.era(t,{width:"wide"})||o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"})}}set(t,r,o){return r.era=o,t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}const Ye={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ht={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Ue(e,n){return e&&{value:n(e.value),rest:e.rest}}function $e(e,n){const t=n.match(e);return t?{value:parseInt(t[0],10),rest:n.slice(t[0].length)}:null}function At(e,n){const t=n.match(e);if(!t)return null;if(t[0]==="Z")return{value:0,rest:n.slice(1)};const r=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,s=t[5]?parseInt(t[5],10):0;return{value:r*(o*j6+a*G6+s*Y6),rest:n.slice(t[0].length)}}function vu(e){return $e(Ye.anyDigitsSigned,e)}function We(e,n){switch(e){case 1:return $e(Ye.singleDigit,n);case 2:return $e(Ye.twoDigits,n);case 3:return $e(Ye.threeDigits,n);case 4:return $e(Ye.fourDigits,n);default:return $e(new RegExp("^\\d{1,"+e+"}"),n)}}function Ro(e,n){switch(e){case 1:return $e(Ye.singleDigitSigned,n);case 2:return $e(Ye.twoDigitsSigned,n);case 3:return $e(Ye.threeDigitsSigned,n);case 4:return $e(Ye.fourDigitsSigned,n);default:return $e(new RegExp("^-?\\d{1,"+e+"}"),n)}}function Js(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Cu(e,n){const t=n>0,r=t?n:1-n;let o;if(r<=50)o=e||100;else{const a=r+50,s=Math.trunc(a/100)*100,i=e>=a%100;o=e+s-(i?100:0)}return t?o:1-o}function wu(e){return e%400===0||e%4===0&&e%100!==0}class J7 extends Ne{constructor(){super(...arguments);ae(this,"priority",130);ae(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,r,o){const a=s=>({year:s,isTwoDigitYear:r==="yy"});switch(r){case"y":return Ue(We(4,t),a);case"yo":return Ue(o.ordinalNumber(t,{unit:"year"}),a);default:return Ue(We(r.length,t),a)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,o){const a=t.getFullYear();if(o.isTwoDigitYear){const i=Cu(o.year,a);return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}const s=!("era"in r)||r.era===1?o.year:1-o.year;return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}}class eh extends Ne{constructor(){super(...arguments);ae(this,"priority",130);ae(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,r,o){const a=s=>({year:s,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Ue(We(4,t),a);case"Yo":return Ue(o.ordinalNumber(t,{unit:"year"}),a);default:return Ue(We(r.length,t),a)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,o,a){const s=Us(t,a);if(o.isTwoDigitYear){const u=Cu(o.year,s);return t.setFullYear(u,0,a.firstWeekContainsDate),t.setHours(0,0,0,0),it(t,a)}const i=!("era"in r)||r.era===1?o.year:1-o.year;return t.setFullYear(i,0,a.firstWeekContainsDate),t.setHours(0,0,0,0),it(t,a)}}class th extends Ne{constructor(){super(...arguments);ae(this,"priority",130);ae(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,r){return Ro(r==="R"?4:r.length,t)}set(t,r,o){const a=De(t,0);return a.setFullYear(o,0,4),a.setHours(0,0,0,0),qt(a)}}class nh extends Ne{constructor(){super(...arguments);ae(this,"priority",130);ae(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,r){return Ro(r==="u"?4:r.length,t)}set(t,r,o){return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}class rh extends Ne{constructor(){super(...arguments);ae(this,"priority",120);ae(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,r,o){switch(r){case"Q":case"QQ":return We(r.length,t);case"Qo":return o.ordinalNumber(t,{unit:"quarter"});case"QQQ":return o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(t,{width:"wide",context:"formatting"})||o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}}class oh extends Ne{constructor(){super(...arguments);ae(this,"priority",120);ae(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,r,o){switch(r){case"q":case"qq":return We(r.length,t);case"qo":return o.ordinalNumber(t,{unit:"quarter"});case"qqq":return o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(t,{width:"wide",context:"standalone"})||o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}}class ah extends Ne{constructor(){super(...arguments);ae(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);ae(this,"priority",110)}parse(t,r,o){const a=s=>s-1;switch(r){case"M":return Ue($e(Ye.month,t),a);case"MM":return Ue(We(2,t),a);case"Mo":return Ue(o.ordinalNumber(t,{unit:"month"}),a);case"MMM":return o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(t,{width:"wide",context:"formatting"})||o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}class sh extends Ne{constructor(){super(...arguments);ae(this,"priority",110);ae(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,r,o){const a=s=>s-1;switch(r){case"L":return Ue($e(Ye.month,t),a);case"LL":return Ue(We(2,t),a);case"Lo":return Ue(o.ordinalNumber(t,{unit:"month"}),a);case"LLL":return o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(t,{width:"wide",context:"standalone"})||o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}function ih(e,n,t){const r=ye(e),o=qs(r,t)-n;return r.setDate(r.getDate()-o*7),r}class lh extends Ne{constructor(){super(...arguments);ae(this,"priority",100);ae(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,r,o){switch(r){case"w":return $e(Ye.week,t);case"wo":return o.ordinalNumber(t,{unit:"week"});default:return We(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,o,a){return it(ih(t,o,a),a)}}function ch(e,n){const t=ye(e),r=Ys(t)-n;return t.setDate(t.getDate()-r*7),t}class uh extends Ne{constructor(){super(...arguments);ae(this,"priority",100);ae(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,r,o){switch(r){case"I":return $e(Ye.week,t);case"Io":return o.ordinalNumber(t,{unit:"week"});default:return We(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,o){return qt(ch(t,o))}}const dh=[31,28,31,30,31,30,31,31,30,31,30,31],fh=[31,29,31,30,31,30,31,31,30,31,30,31];class hh extends Ne{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"subPriority",1);ae(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,r,o){switch(r){case"d":return $e(Ye.date,t);case"do":return o.ordinalNumber(t,{unit:"date"});default:return We(r.length,t)}}validate(t,r){const o=t.getFullYear(),a=wu(o),s=t.getMonth();return a?r>=1&&r<=fh[s]:r>=1&&r<=dh[s]}set(t,r,o){return t.setDate(o),t.setHours(0,0,0,0),t}}class gh extends Ne{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"subpriority",1);ae(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,r,o){switch(r){case"D":case"DD":return $e(Ye.dayOfYear,t);case"Do":return o.ordinalNumber(t,{unit:"date"});default:return We(r.length,t)}}validate(t,r){const o=t.getFullYear();return wu(o)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,o){return t.setMonth(0,o),t.setHours(0,0,0,0),t}}function ei(e,n,t){var h,g,m,C;const r=_n(),o=(t==null?void 0:t.weekStartsOn)??((g=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((C=(m=r.locale)==null?void 0:m.options)==null?void 0:C.weekStartsOn)??0,a=ye(e),s=a.getDay(),u=(n%7+7)%7,d=7-o,f=n<0||n>6?n-(s+d)%7:(u+d)%7-(s+d)%7;return tt(a,f)}class ph extends Ne{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,r,o){switch(r){case"E":case"EE":case"EEE":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,o,a){return t=ei(t,o,a),t.setHours(0,0,0,0),t}}class mh extends Ne{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,r,o,a){const s=i=>{const u=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+u};switch(r){case"e":case"ee":return Ue(We(r.length,t),s);case"eo":return Ue(o.ordinalNumber(t,{unit:"day"}),s);case"eee":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeeee":return o.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,o,a){return t=ei(t,o,a),t.setHours(0,0,0,0),t}}class vh extends Ne{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,r,o,a){const s=i=>{const u=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+u};switch(r){case"c":case"cc":return Ue(We(r.length,t),s);case"co":return Ue(o.ordinalNumber(t,{unit:"day"}),s);case"ccc":return o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"ccccc":return o.day(t,{width:"narrow",context:"standalone"});case"cccccc":return o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(t,{width:"wide",context:"standalone"})||o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,o,a){return t=ei(t,o,a),t.setHours(0,0,0,0),t}}function Ch(e,n){const t=ye(e),r=R7(t),o=n-r;return tt(t,o)}class wh extends Ne{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,r,o){const a=s=>s===0?7:s;switch(r){case"i":case"ii":return We(r.length,t);case"io":return o.ordinalNumber(t,{unit:"day"});case"iii":return Ue(o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),a);case"iiiii":return Ue(o.day(t,{width:"narrow",context:"formatting"}),a);case"iiiiii":return Ue(o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),a);case"iiii":default:return Ue(o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),a)}}validate(t,r){return r>=1&&r<=7}set(t,r,o){return t=Ch(t,o),t.setHours(0,0,0,0),t}}class yh extends Ne{constructor(){super(...arguments);ae(this,"priority",80);ae(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,r,o){switch(r){case"a":case"aa":case"aaa":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,o){return t.setHours(Js(o),0,0,0),t}}class bh extends Ne{constructor(){super(...arguments);ae(this,"priority",80);ae(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,r,o){switch(r){case"b":case"bb":case"bbb":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,o){return t.setHours(Js(o),0,0,0),t}}class xh extends Ne{constructor(){super(...arguments);ae(this,"priority",80);ae(this,"incompatibleTokens",["a","b","t","T"])}parse(t,r,o){switch(r){case"B":case"BB":case"BBB":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,o){return t.setHours(Js(o),0,0,0),t}}class Sh extends Ne{constructor(){super(...arguments);ae(this,"priority",70);ae(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,r,o){switch(r){case"h":return $e(Ye.hour12h,t);case"ho":return o.ordinalNumber(t,{unit:"hour"});default:return We(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,o){const a=t.getHours()>=12;return a&&o<12?t.setHours(o+12,0,0,0):!a&&o===12?t.setHours(0,0,0,0):t.setHours(o,0,0,0),t}}class Eh extends Ne{constructor(){super(...arguments);ae(this,"priority",70);ae(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,r,o){switch(r){case"H":return $e(Ye.hour23h,t);case"Ho":return o.ordinalNumber(t,{unit:"hour"});default:return We(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,o){return t.setHours(o,0,0,0),t}}class Mh extends Ne{constructor(){super(...arguments);ae(this,"priority",70);ae(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,r,o){switch(r){case"K":return $e(Ye.hour11h,t);case"Ko":return o.ordinalNumber(t,{unit:"hour"});default:return We(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,o){return t.getHours()>=12&&o<12?t.setHours(o+12,0,0,0):t.setHours(o,0,0,0),t}}class Lh extends Ne{constructor(){super(...arguments);ae(this,"priority",70);ae(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,r,o){switch(r){case"k":return $e(Ye.hour24h,t);case"ko":return o.ordinalNumber(t,{unit:"hour"});default:return We(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,o){const a=o<=24?o%24:o;return t.setHours(a,0,0,0),t}}class Nh extends Ne{constructor(){super(...arguments);ae(this,"priority",60);ae(this,"incompatibleTokens",["t","T"])}parse(t,r,o){switch(r){case"m":return $e(Ye.minute,t);case"mo":return o.ordinalNumber(t,{unit:"minute"});default:return We(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,o){return t.setMinutes(o,0,0),t}}class Ph extends Ne{constructor(){super(...arguments);ae(this,"priority",50);ae(this,"incompatibleTokens",["t","T"])}parse(t,r,o){switch(r){case"s":return $e(Ye.second,t);case"so":return o.ordinalNumber(t,{unit:"second"});default:return We(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,o){return t.setSeconds(o,0),t}}class _h extends Ne{constructor(){super(...arguments);ae(this,"priority",30);ae(this,"incompatibleTokens",["t","T"])}parse(t,r){const o=a=>Math.trunc(a*Math.pow(10,-r.length+3));return Ue(We(r.length,t),o)}set(t,r,o){return t.setMilliseconds(o),t}}class Ih extends Ne{constructor(){super(...arguments);ae(this,"priority",10);ae(this,"incompatibleTokens",["t","T","x"])}parse(t,r){switch(r){case"X":return At(Ht.basicOptionalMinutes,t);case"XX":return At(Ht.basic,t);case"XXXX":return At(Ht.basicOptionalSeconds,t);case"XXXXX":return At(Ht.extendedOptionalSeconds,t);case"XXX":default:return At(Ht.extended,t)}}set(t,r,o){return r.timestampIsSet?t:De(t,t.getTime()-nr(t)-o)}}class kh extends Ne{constructor(){super(...arguments);ae(this,"priority",10);ae(this,"incompatibleTokens",["t","T","X"])}parse(t,r){switch(r){case"x":return At(Ht.basicOptionalMinutes,t);case"xx":return At(Ht.basic,t);case"xxxx":return At(Ht.basicOptionalSeconds,t);case"xxxxx":return At(Ht.extendedOptionalSeconds,t);case"xxx":default:return At(Ht.extended,t)}}set(t,r,o){return r.timestampIsSet?t:De(t,t.getTime()-nr(t)-o)}}class Th extends Ne{constructor(){super(...arguments);ae(this,"priority",40);ae(this,"incompatibleTokens","*")}parse(t){return vu(t)}set(t,r,o){return[De(t,o*1e3),{timestampIsSet:!0}]}}class Dh extends Ne{constructor(){super(...arguments);ae(this,"priority",20);ae(this,"incompatibleTokens","*")}parse(t){return vu(t)}set(t,r,o){return[De(t,o),{timestampIsSet:!0}]}}const Oh={G:new Q7,y:new J7,Y:new eh,R:new th,u:new nh,Q:new rh,q:new oh,M:new ah,L:new sh,w:new lh,I:new uh,d:new hh,D:new gh,E:new ph,e:new mh,c:new vh,i:new wh,a:new yh,b:new bh,B:new xh,h:new Sh,H:new Eh,K:new Mh,k:new Lh,m:new Nh,s:new Ph,S:new _h,X:new Ih,x:new kh,t:new Th,T:new Dh},Vh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Hh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ah=/^'([^]*?)'?$/,Fh=/''/g,$h=/\S/,zh=/[a-zA-Z]/;function Bh(e,n,t,r){var p,v,w,y,b,S,M,L;const o=W7(),a=(r==null?void 0:r.locale)??o.locale??Fr,s=(r==null?void 0:r.firstWeekContainsDate)??((v=(p=r==null?void 0:r.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??o.firstWeekContainsDate??((y=(w=o.locale)==null?void 0:w.options)==null?void 0:y.firstWeekContainsDate)??1,i=(r==null?void 0:r.weekStartsOn)??((S=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:S.weekStartsOn)??o.weekStartsOn??((L=(M=o.locale)==null?void 0:M.options)==null?void 0:L.weekStartsOn)??0,u={firstWeekContainsDate:s,weekStartsOn:i,locale:a},d=[new X7],f=n.match(Hh).map(E=>{const I=E[0];if(I in Ks){const k=Ks[I];return k(E,a.formatLong)}return E}).join("").match(Vh),h=[];for(let E of f){!(r!=null&&r.useAdditionalWeekYearTokens)&&gu(E)&&Xs(E,n,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&hu(E)&&Xs(E,n,e);const I=E[0],k=Oh[I];if(k){const{incompatibleTokens:O}=k;if(Array.isArray(O)){const V=h.find(Y=>O.includes(Y.token)||Y.token===I);if(V)throw new RangeError(`The format string mustn't contain \`${V.fullToken}\` and \`${E}\` at the same time`)}else if(k.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${E}\` and any other token at the same time`);h.push({token:I,fullToken:E});const A=k.run(e,E,a.match,u);if(!A)return De(t,NaN);d.push(A.setter),e=A.rest}else{if(I.match(zh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");if(E==="''"?E="'":I==="'"&&(E=Zh(E)),e.indexOf(E)===0)e=e.slice(E.length);else return De(t,NaN)}}if(e.length>0&&$h.test(e))return De(t,NaN);const g=d.map(E=>E.priority).sort((E,I)=>I-E).filter((E,I,k)=>k.indexOf(E)===I).map(E=>d.filter(I=>I.priority===E).sort((I,k)=>k.subPriority-I.subPriority)).map(E=>E[0]);let m=ye(t);if(isNaN(m.getTime()))return De(t,NaN);const C={};for(const E of g){if(!E.validate(m,u))return De(t,NaN);const I=E.set(m,C,u);Array.isArray(I)?(m=I[0],Object.assign(C,I[1])):m=I}return De(t,m)}function Zh(e){return e.match(Ah)[1].replace(Fh,"'")}function yu(e,n,t){const r=it(e,t),o=it(n,t);return+r==+o}function ti(e,n){const t=ye(e),r=ye(n);return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()}function Wh(e,n){const t=ye(e),r=ye(n);return t.getFullYear()===r.getFullYear()}function ni(e,n){return tt(e,-n)}function ri(e,n){const t=ye(e),r=t.getFullYear(),o=t.getDate(),a=De(e,0);a.setFullYear(r,n,15),a.setHours(0,0,0,0);const s=Z7(a);return t.setMonth(n,Math.min(o,s)),t}function bu(e,n){const t=ye(e);return isNaN(+t)?De(e,NaN):(t.setFullYear(n),t)}function $r(e,n){if(e.one!==void 0&&n===1)return e.one;const t=n%10,r=n%100;return t===1&&r!==11?e.singularNominative.replace("{{count}}",String(n)):t>=2&&t<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(n)):e.pluralGenitive.replace("{{count}}",String(n))}function lt(e){return(n,t)=>t!=null&&t.addSuffix?t.comparison&&t.comparison>0?e.future?$r(e.future,n):"через "+$r(e.regular,n):e.past?$r(e.past,n):$r(e.regular,n)+" назад":$r(e.regular,n)}const Rh={lessThanXSeconds:lt({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:lt({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(e,n)=>n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:lt({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:lt({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:lt({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:lt({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:lt({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:lt({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:lt({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:lt({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:lt({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:lt({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:lt({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:lt({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:lt({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},Gh=(e,n,t)=>Rh[e](n,t),jh={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},Yh={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Uh={any:"{{date}}, {{time}}"},qh={date:rr({formats:jh,defaultWidth:"full"}),time:rr({formats:Yh,defaultWidth:"full"}),dateTime:rr({formats:Uh,defaultWidth:"any"})},oi=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function Kh(e){const n=oi[e];switch(e){case 0:return"'в прошлое "+n+" в' p";case 1:case 2:case 4:return"'в прошлый "+n+" в' p";case 3:case 5:case 6:return"'в прошлую "+n+" в' p"}}function xu(e){const n=oi[e];return e===2?"'во "+n+" в' p":"'в "+n+" в' p"}function Xh(e){const n=oi[e];switch(e){case 0:return"'в следующее "+n+" в' p";case 1:case 2:case 4:return"'в следующий "+n+" в' p";case 3:case 5:case 6:return"'в следующую "+n+" в' p"}}const Qh={lastWeek:(e,n,t)=>{const r=e.getDay();return yu(e,n,t)?xu(r):Kh(r)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(e,n,t)=>{const r=e.getDay();return yu(e,n,t)?xu(r):Xh(r)},other:"P"},Jh=(e,n,t,r)=>{const o=Qh[e];return typeof o=="function"?o(n,t,r):o},eg={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},tg={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},ng={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},rg={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},og={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},ag={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},sg={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},ig={ordinalNumber:(e,n)=>{const t=Number(e),r=n==null?void 0:n.unit;let o;return r==="date"?o="-е":r==="week"||r==="minute"||r==="second"?o="-я":o="-й",t+o},era:Ot({values:eg,defaultWidth:"wide"}),quarter:Ot({values:tg,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ot({values:ng,defaultWidth:"wide",formattingValues:rg,defaultFormattingWidth:"wide"}),day:Ot({values:og,defaultWidth:"wide"}),dayPeriod:Ot({values:ag,defaultWidth:"any",formattingValues:sg,defaultFormattingWidth:"wide"})},lg=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,cg=/\d+/i,ug={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},dg={any:[/^д/i,/^н/i]},fg={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},hg={any:[/1/i,/2/i,/3/i,/4/i]},gg={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},pg={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},mg={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},vg={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},Cg={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},wg={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},yg={ordinalNumber:iu({matchPattern:lg,parsePattern:cg,valueCallback:e=>parseInt(e,10)}),era:Vt({matchPatterns:ug,defaultMatchWidth:"wide",parsePatterns:dg,defaultParseWidth:"any"}),quarter:Vt({matchPatterns:fg,defaultMatchWidth:"wide",parsePatterns:hg,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Vt({matchPatterns:gg,defaultMatchWidth:"wide",parsePatterns:pg,defaultParseWidth:"any"}),day:Vt({matchPatterns:mg,defaultMatchWidth:"wide",parsePatterns:vg,defaultParseWidth:"any"}),dayPeriod:Vt({matchPatterns:Cg,defaultMatchWidth:"wide",parsePatterns:wg,defaultParseWidth:"any"})},ai={code:"ru",formatDistance:Gh,formatLong:qh,formatRelative:Jh,localize:ig,match:yg,options:{weekStartsOn:1,firstWeekContainsDate:1}};var ue=function(){return ue=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])}return n},ue.apply(this,arguments)};function bg(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t}function Su(e,n,t){for(var r=0,o=n.length,a;r<o;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return e.concat(a||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;function zr(e){return e.mode==="multiple"}function Br(e){return e.mode==="range"}function Go(e){return e.mode==="single"}var xg={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function Sg(e,n){return un(e,"LLLL y",n)}function Eg(e,n){return un(e,"d",n)}function Mg(e,n){return un(e,"LLLL",n)}function Lg(e){return"".concat(e)}function Ng(e,n){return un(e,"cccccc",n)}function Pg(e,n){return un(e,"yyyy",n)}var _g=Object.freeze({__proto__:null,formatCaption:Sg,formatDay:Eg,formatMonthCaption:Mg,formatWeekNumber:Lg,formatWeekdayName:Ng,formatYearCaption:Pg}),Ig=function(e,n,t){return un(e,"do MMMM (EEEE)",t)},kg=function(){return"Month: "},Tg=function(){return"Go to next month"},Dg=function(){return"Go to previous month"},Og=function(e,n){return un(e,"cccc",n)},Vg=function(e){return"Week n. ".concat(e)},Hg=function(){return"Year: "},Ag=Object.freeze({__proto__:null,labelDay:Ig,labelMonthDropdown:kg,labelNext:Tg,labelPrevious:Dg,labelWeekNumber:Vg,labelWeekday:Og,labelYearDropdown:Hg});function Fg(){var e="buttons",n=xg,t=Fr,r={},o={},a=1,s={},i=new Date;return{captionLayout:e,classNames:n,formatters:_g,labels:Ag,locale:t,modifiersClassNames:r,modifiers:o,numberOfMonths:a,styles:s,today:i,mode:"default"}}function $g(e){var n=e.fromYear,t=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,s=e.toDate;return r?a=ft(r):n&&(a=new Date(n,0,1)),o?s=Gs(o):t&&(s=new Date(t,11,31)),{fromDate:a?tr(a):void 0,toDate:s?tr(s):void 0}}var Eu=D.createContext(void 0);function zg(e){var n,t=e.initialProps,r=Fg(),o=$g(t),a=o.fromDate,s=o.toDate,i=(n=t.captionLayout)!==null&&n!==void 0?n:r.captionLayout;i!=="buttons"&&(!a||!s)&&(i="buttons");var u;(Go(t)||zr(t)||Br(t))&&(u=t.onSelect);var d=ue(ue(ue({},r),t),{captionLayout:i,classNames:ue(ue({},r.classNames),t.classNames),components:ue({},t.components),formatters:ue(ue({},r.formatters),t.formatters),fromDate:a,labels:ue(ue({},r.labels),t.labels),mode:t.mode||r.mode,modifiers:ue(ue({},r.modifiers),t.modifiers),modifiersClassNames:ue(ue({},r.modifiersClassNames),t.modifiersClassNames),onSelect:u,styles:ue(ue({},r.styles),t.styles),toDate:s});return c.jsx(Eu.Provider,{value:d,children:e.children})}function Oe(){var e=D.useContext(Eu);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Mu(e){var n=Oe(),t=n.locale,r=n.classNames,o=n.styles,a=n.formatters.formatCaption;return c.jsx("div",{className:r.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:t})})}function Bg(e){return c.jsx("svg",ue({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:c.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Lu(e){var n,t,r=e.onChange,o=e.value,a=e.children,s=e.caption,i=e.className,u=e.style,d=Oe(),f=(t=(n=d.components)===null||n===void 0?void 0:n.IconDropdown)!==null&&t!==void 0?t:Bg;return c.jsxs("div",{className:i,style:u,children:[c.jsx("span",{className:d.classNames.vhidden,children:e["aria-label"]}),c.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:o,onChange:r,children:a}),c.jsxs("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true",children:[s,c.jsx(f,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})]})]})}function Zg(e){var n,t=Oe(),r=t.fromDate,o=t.toDate,a=t.styles,s=t.locale,i=t.formatters.formatMonthCaption,u=t.classNames,d=t.components,f=t.labels.labelMonthDropdown;if(!r)return c.jsx(c.Fragment,{});if(!o)return c.jsx(c.Fragment,{});var h=[];if(Wh(r,o))for(var g=ft(r),m=r.getMonth();m<=o.getMonth();m++)h.push(ri(g,m));else for(var g=ft(new Date),m=0;m<=11;m++)h.push(ri(g,m));var C=function(v){var w=Number(v.target.value),y=ri(ft(e.displayMonth),w);e.onChange(y)},p=(n=d==null?void 0:d.Dropdown)!==null&&n!==void 0?n:Lu;return c.jsx(p,{name:"months","aria-label":f(),className:u.dropdown_month,style:a.dropdown_month,onChange:C,value:e.displayMonth.getMonth(),caption:i(e.displayMonth,{locale:s}),children:h.map(function(v){return c.jsx("option",{value:v.getMonth(),children:i(v,{locale:s})},v.getMonth())})})}function Wg(e){var n,t=e.displayMonth,r=Oe(),o=r.fromDate,a=r.toDate,s=r.locale,i=r.styles,u=r.classNames,d=r.components,f=r.formatters.formatYearCaption,h=r.labels.labelYearDropdown,g=[];if(!o)return c.jsx(c.Fragment,{});if(!a)return c.jsx(c.Fragment,{});for(var m=o.getFullYear(),C=a.getFullYear(),p=m;p<=C;p++)g.push(bu(au(new Date),p));var v=function(y){var b=bu(ft(t),Number(y.target.value));e.onChange(b)},w=(n=d==null?void 0:d.Dropdown)!==null&&n!==void 0?n:Lu;return c.jsx(w,{name:"years","aria-label":h(),className:u.dropdown_year,style:i.dropdown_year,onChange:v,value:t.getFullYear(),caption:f(t,{locale:s}),children:g.map(function(y){return c.jsx("option",{value:y.getFullYear(),children:f(y,{locale:s})},y.getFullYear())})})}function Rg(e,n){var t=D.useState(e),r=t[0],o=t[1],a=n===void 0?r:n;return[a,o]}function Gg(e){var n=e.month,t=e.defaultMonth,r=e.today,o=n||t||r||new Date,a=e.toDate,s=e.fromDate,i=e.numberOfMonths,u=i===void 0?1:i;if(a&&Ar(a,o)<0){var d=-1*(u-1);o=xt(a,d)}return s&&Ar(o,s)<0&&(o=s),ft(o)}function jg(){var e=Oe(),n=Gg(e),t=Rg(n,e.month),r=t[0],o=t[1],a=function(s){var i;if(!e.disableNavigation){var u=ft(s);o(u),(i=e.onMonthChange)===null||i===void 0||i.call(e,u)}};return[r,a]}function Yg(e,n){for(var t=n.reverseMonths,r=n.numberOfMonths,o=ft(e),a=ft(xt(o,r)),s=Ar(a,o),i=[],u=0;u<s;u++){var d=xt(o,u);i.push(d)}return t&&(i=i.reverse()),i}function Ug(e,n){if(!n.disableNavigation){var t=n.toDate,r=n.pagedNavigation,o=n.numberOfMonths,a=o===void 0?1:o,s=r?a:1,i=ft(e);if(!t)return xt(i,s);var u=Ar(t,e);if(!(u<a))return xt(i,s)}}function qg(e,n){if(!n.disableNavigation){var t=n.fromDate,r=n.pagedNavigation,o=n.numberOfMonths,a=o===void 0?1:o,s=r?a:1,i=ft(e);if(!t)return xt(i,-s);var u=Ar(i,t);if(!(u<=0))return xt(i,-s)}}var Nu=D.createContext(void 0);function Kg(e){var n=Oe(),t=jg(),r=t[0],o=t[1],a=Yg(r,n),s=Ug(r,n),i=qg(r,n),u=function(h){return a.some(function(g){return ti(h,g)})},d=function(h,g){u(h)||(g&&pu(h,g)?o(xt(h,1+n.numberOfMonths*-1)):o(h))},f={currentMonth:r,displayMonths:a,goToMonth:o,goToDate:d,previousMonth:i,nextMonth:s,isDateDisplayed:u};return c.jsx(Nu.Provider,{value:f,children:e.children})}function Zr(){var e=D.useContext(Nu);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Pu(e){var n,t=Oe(),r=t.classNames,o=t.styles,a=t.components,s=Zr().goToMonth,i=function(f){s(xt(f,e.displayIndex?-e.displayIndex:0))},u=(n=a==null?void 0:a.CaptionLabel)!==null&&n!==void 0?n:Mu,d=c.jsx(u,{id:e.id,displayMonth:e.displayMonth});return c.jsxs("div",{className:r.caption_dropdowns,style:o.caption_dropdowns,children:[c.jsx("div",{className:r.vhidden,children:d}),c.jsx(Zg,{onChange:i,displayMonth:e.displayMonth}),c.jsx(Wg,{onChange:i,displayMonth:e.displayMonth})]})}function Xg(e){return c.jsx("svg",ue({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:c.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Qg(e){return c.jsx("svg",ue({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:c.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var jo=D.forwardRef(function(e,n){var t=Oe(),r=t.classNames,o=t.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var s=a.join(" "),i=ue(ue({},o.button_reset),o.button);return e.style&&Object.assign(i,e.style),c.jsx("button",ue({},e,{ref:n,type:"button",className:s,style:i}))});function Jg(e){var n,t,r=Oe(),o=r.dir,a=r.locale,s=r.classNames,i=r.styles,u=r.labels,d=u.labelPrevious,f=u.labelNext,h=r.components;if(!e.nextMonth&&!e.previousMonth)return c.jsx(c.Fragment,{});var g=d(e.previousMonth,{locale:a}),m=[s.nav_button,s.nav_button_previous].join(" "),C=f(e.nextMonth,{locale:a}),p=[s.nav_button,s.nav_button_next].join(" "),v=(n=h==null?void 0:h.IconRight)!==null&&n!==void 0?n:Qg,w=(t=h==null?void 0:h.IconLeft)!==null&&t!==void 0?t:Xg;return c.jsxs("div",{className:s.nav,style:i.nav,children:[!e.hidePrevious&&c.jsx(jo,{name:"previous-month","aria-label":g,className:m,style:i.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?c.jsx(v,{className:s.nav_icon,style:i.nav_icon}):c.jsx(w,{className:s.nav_icon,style:i.nav_icon})}),!e.hideNext&&c.jsx(jo,{name:"next-month","aria-label":C,className:p,style:i.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:o==="rtl"?c.jsx(w,{className:s.nav_icon,style:i.nav_icon}):c.jsx(v,{className:s.nav_icon,style:i.nav_icon})})]})}function _u(e){var n=Oe().numberOfMonths,t=Zr(),r=t.previousMonth,o=t.nextMonth,a=t.goToMonth,s=t.displayMonths,i=s.findIndex(function(C){return ti(e.displayMonth,C)}),u=i===0,d=i===s.length-1,f=n>1&&(u||!d),h=n>1&&(d||!u),g=function(){r&&a(r)},m=function(){o&&a(o)};return c.jsx(Jg,{displayMonth:e.displayMonth,hideNext:f,hidePrevious:h,nextMonth:o,previousMonth:r,onPreviousClick:g,onNextClick:m})}function ep(e){var n,t=Oe(),r=t.classNames,o=t.disableNavigation,a=t.styles,s=t.captionLayout,i=t.components,u=(n=i==null?void 0:i.CaptionLabel)!==null&&n!==void 0?n:Mu,d;return o?d=c.jsx(u,{id:e.id,displayMonth:e.displayMonth}):s==="dropdown"?d=c.jsx(Pu,{displayMonth:e.displayMonth,id:e.id}):s==="dropdown-buttons"?d=c.jsxs(c.Fragment,{children:[c.jsx(Pu,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),c.jsx(_u,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):d=c.jsxs(c.Fragment,{children:[c.jsx(u,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),c.jsx(_u,{displayMonth:e.displayMonth,id:e.id})]}),c.jsx("div",{className:r.caption,style:a.caption,children:d})}function tp(e){var n=Oe(),t=n.footer,r=n.styles,o=n.classNames.tfoot;return t?c.jsx("tfoot",{className:o,style:r.tfoot,children:c.jsx("tr",{children:c.jsx("td",{colSpan:8,children:t})})}):c.jsx(c.Fragment,{})}function np(e,n,t){for(var r=t?qt(new Date):it(new Date,{locale:e,weekStartsOn:n}),o=[],a=0;a<7;a++){var s=tt(r,a);o.push(s)}return o}function rp(){var e=Oe(),n=e.classNames,t=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,s=e.ISOWeek,i=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,d=np(o,a,s);return c.jsxs("tr",{style:t.head_row,className:n.head_row,children:[r&&c.jsx("td",{style:t.head_cell,className:n.head_cell}),d.map(function(f,h){return c.jsx("th",{scope:"col",className:n.head_cell,style:t.head_cell,"aria-label":u(f,{locale:o}),children:i(f,{locale:o})},h)})]})}function op(){var e,n=Oe(),t=n.classNames,r=n.styles,o=n.components,a=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:rp;return c.jsx("thead",{style:r.head,className:t.head,children:c.jsx(a,{})})}function ap(e){var n=Oe(),t=n.locale,r=n.formatters.formatDay;return c.jsx(c.Fragment,{children:r(e.date,{locale:t})})}var si=D.createContext(void 0);function sp(e){if(!zr(e.initialProps)){var n={selected:void 0,modifiers:{disabled:[]}};return c.jsx(si.Provider,{value:n,children:e.children})}return c.jsx(ip,{initialProps:e.initialProps,children:e.children})}function ip(e){var n=e.initialProps,t=e.children,r=n.selected,o=n.min,a=n.max,s=function(d,f,h){var g,m;(g=n.onDayClick)===null||g===void 0||g.call(n,d,f,h);var C=!!(f.selected&&o&&(r==null?void 0:r.length)===o);if(!C){var p=!!(!f.selected&&a&&(r==null?void 0:r.length)===a);if(!p){var v=r?Su([],r):[];if(f.selected){var w=v.findIndex(function(y){return dt(d,y)});v.splice(w,1)}else v.push(d);(m=n.onSelect)===null||m===void 0||m.call(n,v,d,f,h)}}},i={disabled:[]};r&&i.disabled.push(function(d){var f=a&&r.length>a-1,h=r.some(function(g){return dt(g,d)});return!!(f&&!h)});var u={selected:r,onDayClick:s,modifiers:i};return c.jsx(si.Provider,{value:u,children:t})}function ii(){var e=D.useContext(si);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function lp(e,n){var t=n||{},r=t.from,o=t.to;return r&&o?dt(o,e)&&dt(r,e)?void 0:dt(o,e)?{from:o,to:void 0}:dt(r,e)?void 0:Qs(r,e)?{from:e,to:o}:{from:r,to:e}:o?Qs(e,o)?{from:o,to:e}:{from:e,to:o}:r?pu(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var li=D.createContext(void 0);function cp(e){if(!Br(e.initialProps)){var n={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return c.jsx(li.Provider,{value:n,children:e.children})}return c.jsx(up,{initialProps:e.initialProps,children:e.children})}function up(e){var n=e.initialProps,t=e.children,r=n.selected,o=r||{},a=o.from,s=o.to,i=n.min,u=n.max,d=function(m,C,p){var v,w;(v=n.onDayClick)===null||v===void 0||v.call(n,m,C,p);var y=lp(m,r);(w=n.onSelect)===null||w===void 0||w.call(n,y,m,C,p)},f={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(f.range_start=[a],s?(f.range_end=[s],dt(a,s)||(f.range_middle=[{after:a,before:s}])):f.range_end=[a]):s&&(f.range_start=[s],f.range_end=[s]),i&&(a&&!s&&f.disabled.push({after:ni(a,i-1),before:tt(a,i-1)}),a&&s&&f.disabled.push({after:a,before:tt(a,i-1)}),!a&&s&&f.disabled.push({after:ni(s,i-1),before:tt(s,i-1)})),u){if(a&&!s&&(f.disabled.push({before:tt(a,-u+1)}),f.disabled.push({after:tt(a,u-1)})),a&&s){var h=Dt(s,a)+1,g=u-h;f.disabled.push({before:ni(a,g)}),f.disabled.push({after:tt(s,g)})}!a&&s&&(f.disabled.push({before:tt(s,-u+1)}),f.disabled.push({after:tt(s,u-1)}))}return c.jsx(li.Provider,{value:{selected:r,onDayClick:d,modifiers:f},children:t})}function ci(){var e=D.useContext(li);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Yo(e){return Array.isArray(e)?Su([],e):e!==void 0?[e]:[]}function dp(e){var n={};return Object.entries(e).forEach(function(t){var r=t[0],o=t[1];n[r]=Yo(o)}),n}var St;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(St||(St={}));var fp=St.Selected,Kt=St.Disabled,hp=St.Hidden,gp=St.Today,ui=St.RangeEnd,di=St.RangeMiddle,fi=St.RangeStart,pp=St.Outside;function mp(e,n,t){var r,o=(r={},r[fp]=Yo(e.selected),r[Kt]=Yo(e.disabled),r[hp]=Yo(e.hidden),r[gp]=[e.today],r[ui]=[],r[di]=[],r[fi]=[],r[pp]=[],r);return e.fromDate&&o[Kt].push({before:e.fromDate}),e.toDate&&o[Kt].push({after:e.toDate}),zr(e)?o[Kt]=o[Kt].concat(n.modifiers[Kt]):Br(e)&&(o[Kt]=o[Kt].concat(t.modifiers[Kt]),o[fi]=t.modifiers[fi],o[di]=t.modifiers[di],o[ui]=t.modifiers[ui]),o}var Iu=D.createContext(void 0);function vp(e){var n=Oe(),t=ii(),r=ci(),o=mp(n,t,r),a=dp(n.modifiers),s=ue(ue({},o),a);return c.jsx(Iu.Provider,{value:s,children:e.children})}function ku(){var e=D.useContext(Iu);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Cp(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function wp(e){return!!(e&&typeof e=="object"&&"from"in e)}function yp(e){return!!(e&&typeof e=="object"&&"after"in e)}function bp(e){return!!(e&&typeof e=="object"&&"before"in e)}function xp(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Sp(e,n){var t,r=n.from,o=n.to;if(r&&o){var a=Dt(o,r)<0;a&&(t=[o,r],r=t[0],o=t[1]);var s=Dt(e,r)>=0&&Dt(o,e)>=0;return s}return o?dt(o,e):r?dt(r,e):!1}function Ep(e){return Rs(e)}function Mp(e){return Array.isArray(e)&&e.every(Rs)}function Lp(e,n){return n.some(function(t){if(typeof t=="boolean")return t;if(Ep(t))return dt(e,t);if(Mp(t))return t.includes(e);if(wp(t))return Sp(e,t);if(xp(t))return t.dayOfWeek.includes(e.getDay());if(Cp(t)){var r=Dt(t.before,e),o=Dt(t.after,e),a=r>0,s=o<0,i=Qs(t.before,t.after);return i?s&&a:a||s}return yp(t)?Dt(e,t.after)>0:bp(t)?Dt(t.before,e)>0:typeof t=="function"?t(e):!1})}function hi(e,n,t){var r=Object.keys(n).reduce(function(a,s){var i=n[s];return Lp(e,i)&&a.push(s),a},[]),o={};return r.forEach(function(a){return o[a]=!0}),t&&!ti(e,t)&&(o.outside=!0),o}function Np(e,n){for(var t=ft(e[0]),r=Gs(e[e.length-1]),o,a,s=t;s<=r;){var i=hi(s,n),u=!i.disabled&&!i.hidden;if(!u){s=tt(s,1);continue}if(i.selected)return s;i.today&&!a&&(a=s),o||(o=s),s=tt(s,1)}return a||o}var Pp=365;function Tu(e,n){var t=n.moveBy,r=n.direction,o=n.context,a=n.modifiers,s=n.retry,i=s===void 0?{count:0,lastFocused:e}:s,u=o.weekStartsOn,d=o.fromDate,f=o.toDate,h=o.locale,g={day:tt,week:Ws,month:xt,year:K6,startOfWeek:function(v){return o.ISOWeek?qt(v):it(v,{locale:h,weekStartsOn:u})},endOfWeek:function(v){return o.ISOWeek?su(v):js(v,{locale:h,weekStartsOn:u})}},m=g[t](e,r==="after"?1:-1);r==="before"&&d?m=X6([d,m]):r==="after"&&f&&(m=Q6([f,m]));var C=!0;if(a){var p=hi(m,a);C=!p.disabled&&!p.hidden}return C?m:i.count>Pp?i.lastFocused:Tu(m,{moveBy:t,direction:r,context:o,modifiers:a,retry:ue(ue({},i),{count:i.count+1})})}var Du=D.createContext(void 0);function _p(e){var n=Zr(),t=ku(),r=D.useState(),o=r[0],a=r[1],s=D.useState(),i=s[0],u=s[1],d=Np(n.displayMonths,t),f=o??(i&&n.isDateDisplayed(i))?i:d,h=function(){u(o),a(void 0)},g=function(v){a(v)},m=Oe(),C=function(v,w){if(o){var y=Tu(o,{moveBy:v,direction:w,context:m,modifiers:t});dt(o,y)||(n.goToDate(y,o),g(y))}},p={focusedDay:o,focusTarget:f,blur:h,focus:g,focusDayAfter:function(){return C("day","after")},focusDayBefore:function(){return C("day","before")},focusWeekAfter:function(){return C("week","after")},focusWeekBefore:function(){return C("week","before")},focusMonthBefore:function(){return C("month","before")},focusMonthAfter:function(){return C("month","after")},focusYearBefore:function(){return C("year","before")},focusYearAfter:function(){return C("year","after")},focusStartOfWeek:function(){return C("startOfWeek","before")},focusEndOfWeek:function(){return C("endOfWeek","after")}};return c.jsx(Du.Provider,{value:p,children:e.children})}function gi(){var e=D.useContext(Du);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function Ip(e,n){var t=ku(),r=hi(e,t,n);return r}var pi=D.createContext(void 0);function kp(e){if(!Go(e.initialProps)){var n={selected:void 0};return c.jsx(pi.Provider,{value:n,children:e.children})}return c.jsx(Tp,{initialProps:e.initialProps,children:e.children})}function Tp(e){var n=e.initialProps,t=e.children,r=function(a,s,i){var u,d,f;if((u=n.onDayClick)===null||u===void 0||u.call(n,a,s,i),s.selected&&!n.required){(d=n.onSelect)===null||d===void 0||d.call(n,void 0,a,s,i);return}(f=n.onSelect)===null||f===void 0||f.call(n,a,a,s,i)},o={selected:n.selected,onDayClick:r};return c.jsx(pi.Provider,{value:o,children:t})}function Ou(){var e=D.useContext(pi);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Dp(e,n){var t=Oe(),r=Ou(),o=ii(),a=ci(),s=gi(),i=s.focusDayAfter,u=s.focusDayBefore,d=s.focusWeekAfter,f=s.focusWeekBefore,h=s.blur,g=s.focus,m=s.focusMonthBefore,C=s.focusMonthAfter,p=s.focusYearBefore,v=s.focusYearAfter,w=s.focusStartOfWeek,y=s.focusEndOfWeek,b=function(W){var P,z,q,K;Go(t)?(P=r.onDayClick)===null||P===void 0||P.call(r,e,n,W):zr(t)?(z=o.onDayClick)===null||z===void 0||z.call(o,e,n,W):Br(t)?(q=a.onDayClick)===null||q===void 0||q.call(a,e,n,W):(K=t.onDayClick)===null||K===void 0||K.call(t,e,n,W)},S=function(W){var P;g(e),(P=t.onDayFocus)===null||P===void 0||P.call(t,e,n,W)},M=function(W){var P;h(),(P=t.onDayBlur)===null||P===void 0||P.call(t,e,n,W)},L=function(W){var P;(P=t.onDayMouseEnter)===null||P===void 0||P.call(t,e,n,W)},E=function(W){var P;(P=t.onDayMouseLeave)===null||P===void 0||P.call(t,e,n,W)},I=function(W){var P;(P=t.onDayPointerEnter)===null||P===void 0||P.call(t,e,n,W)},k=function(W){var P;(P=t.onDayPointerLeave)===null||P===void 0||P.call(t,e,n,W)},O=function(W){var P;(P=t.onDayTouchCancel)===null||P===void 0||P.call(t,e,n,W)},A=function(W){var P;(P=t.onDayTouchEnd)===null||P===void 0||P.call(t,e,n,W)},V=function(W){var P;(P=t.onDayTouchMove)===null||P===void 0||P.call(t,e,n,W)},Y=function(W){var P;(P=t.onDayTouchStart)===null||P===void 0||P.call(t,e,n,W)},$=function(W){var P;(P=t.onDayKeyUp)===null||P===void 0||P.call(t,e,n,W)},U=function(W){var P;switch(W.key){case"ArrowLeft":W.preventDefault(),W.stopPropagation(),t.dir==="rtl"?i():u();break;case"ArrowRight":W.preventDefault(),W.stopPropagation(),t.dir==="rtl"?u():i();break;case"ArrowDown":W.preventDefault(),W.stopPropagation(),d();break;case"ArrowUp":W.preventDefault(),W.stopPropagation(),f();break;case"PageUp":W.preventDefault(),W.stopPropagation(),W.shiftKey?p():m();break;case"PageDown":W.preventDefault(),W.stopPropagation(),W.shiftKey?v():C();break;case"Home":W.preventDefault(),W.stopPropagation(),w();break;case"End":W.preventDefault(),W.stopPropagation(),y();break}(P=t.onDayKeyDown)===null||P===void 0||P.call(t,e,n,W)},T={onClick:b,onFocus:S,onBlur:M,onKeyDown:U,onKeyUp:$,onMouseEnter:L,onMouseLeave:E,onPointerEnter:I,onPointerLeave:k,onTouchCancel:O,onTouchEnd:A,onTouchMove:V,onTouchStart:Y};return T}function Op(){var e=Oe(),n=Ou(),t=ii(),r=ci(),o=Go(e)?n.selected:zr(e)?t.selected:Br(e)?r.selected:void 0;return o}function Vp(e){return Object.values(St).includes(e)}function Hp(e,n){var t=[e.classNames.day];return Object.keys(n).forEach(function(r){var o=e.modifiersClassNames[r];if(o)t.push(o);else if(Vp(r)){var a=e.classNames["day_".concat(r)];a&&t.push(a)}}),t}function Ap(e,n){var t=ue({},e.styles.day);return Object.keys(n).forEach(function(r){var o;t=ue(ue({},t),(o=e.modifiersStyles)===null||o===void 0?void 0:o[r])}),t}function Fp(e,n,t){var r,o,a,s=Oe(),i=gi(),u=Ip(e,n),d=Dp(e,u),f=Op(),h=!!(s.onDayClick||s.mode!=="default");D.useEffect(function(){var L;u.outside||i.focusedDay&&h&&dt(i.focusedDay,e)&&((L=t.current)===null||L===void 0||L.focus())},[i.focusedDay,e,t,h,u.outside]);var g=Hp(s,u).join(" "),m=Ap(s,u),C=!!(u.outside&&!s.showOutsideDays||u.hidden),p=(a=(o=s.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:ap,v=c.jsx(p,{date:e,displayMonth:n,activeModifiers:u}),w={style:m,className:g,children:v,role:"gridcell"},y=i.focusTarget&&dt(i.focusTarget,e)&&!u.outside,b=i.focusedDay&&dt(i.focusedDay,e),S=ue(ue(ue({},w),(r={disabled:u.disabled,role:"gridcell"},r["aria-selected"]=u.selected,r.tabIndex=b||y?0:-1,r)),d),M={isButton:h,isHidden:C,activeModifiers:u,selectedDays:f,buttonProps:S,divProps:w};return M}function $p(e){var n=D.useRef(null),t=Fp(e.date,e.displayMonth,n);return t.isHidden?c.jsx("div",{role:"gridcell"}):t.isButton?c.jsx(jo,ue({name:"day",ref:n},t.buttonProps)):c.jsx("div",ue({},t.divProps))}function zp(e){var n=e.number,t=e.dates,r=Oe(),o=r.onWeekNumberClick,a=r.styles,s=r.classNames,i=r.locale,u=r.labels.labelWeekNumber,d=r.formatters.formatWeekNumber,f=d(Number(n),{locale:i});if(!o)return c.jsx("span",{className:s.weeknumber,style:a.weeknumber,children:f});var h=u(Number(n),{locale:i}),g=function(m){o(n,t,m)};return c.jsx(jo,{name:"week-number","aria-label":h,className:s.weeknumber,style:a.weeknumber,onClick:g,children:f})}function Bp(e){var n,t,r=Oe(),o=r.styles,a=r.classNames,s=r.showWeekNumber,i=r.components,u=(n=i==null?void 0:i.Day)!==null&&n!==void 0?n:$p,d=(t=i==null?void 0:i.WeekNumber)!==null&&t!==void 0?t:zp,f;return s&&(f=c.jsx("td",{className:a.cell,style:o.cell,children:c.jsx(d,{number:e.weekNumber,dates:e.dates})})),c.jsxs("tr",{className:a.row,style:o.row,children:[f,e.dates.map(function(h){return c.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:c.jsx(u,{displayMonth:e.displayMonth,date:h})},G7(h))})]})}function Vu(e,n,t){for(var r=t!=null&&t.ISOWeek?su(n):js(n,t),o=t!=null&&t.ISOWeek?qt(e):it(e,t),a=Dt(r,o),s=[],i=0;i<=a;i++)s.push(tt(o,i));var u=s.reduce(function(d,f){var h=t!=null&&t.ISOWeek?Ys(f):qs(f,t),g=d.find(function(m){return m.weekNumber===h});return g?(g.dates.push(f),d):(d.push({weekNumber:h,dates:[f]}),d)},[]);return u}function Zp(e,n){var t=Vu(ft(e),Gs(e),n);if(n!=null&&n.useFixedWeeks){var r=Y7(e,n);if(r<6){var o=t[t.length-1],a=o.dates[o.dates.length-1],s=Ws(a,6-r),i=Vu(Ws(a,1),s,n);t.push.apply(t,i)}}return t}function Wp(e){var n,t,r,o=Oe(),a=o.locale,s=o.classNames,i=o.styles,u=o.hideHead,d=o.fixedWeeks,f=o.components,h=o.weekStartsOn,g=o.firstWeekContainsDate,m=o.ISOWeek,C=Zp(e.displayMonth,{useFixedWeeks:!!d,ISOWeek:m,locale:a,weekStartsOn:h,firstWeekContainsDate:g}),p=(n=f==null?void 0:f.Head)!==null&&n!==void 0?n:op,v=(t=f==null?void 0:f.Row)!==null&&t!==void 0?t:Bp,w=(r=f==null?void 0:f.Footer)!==null&&r!==void 0?r:tp;return c.jsxs("table",{id:e.id,className:s.table,style:i.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!u&&c.jsx(p,{}),c.jsx("tbody",{className:s.tbody,style:i.tbody,children:C.map(function(y){return c.jsx(v,{displayMonth:e.displayMonth,dates:y.dates,weekNumber:y.weekNumber},y.weekNumber)})}),c.jsx(w,{displayMonth:e.displayMonth})]})}function Rp(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Gp=Rp()?D.useLayoutEffect:D.useEffect,mi=!1,jp=0;function Hu(){return"react-day-picker-".concat(++jp)}function Yp(e){var n,t=e??(mi?Hu():null),r=D.useState(t),o=r[0],a=r[1];return Gp(function(){o===null&&a(Hu())},[]),D.useEffect(function(){mi===!1&&(mi=!0)},[]),(n=e??o)!==null&&n!==void 0?n:void 0}function Up(e){var n,t,r=Oe(),o=r.dir,a=r.classNames,s=r.styles,i=r.components,u=Zr().displayMonths,d=Yp(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),f=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,h=[a.month],g=s.month,m=e.displayIndex===0,C=e.displayIndex===u.length-1,p=!m&&!C;o==="rtl"&&(n=[m,C],C=n[0],m=n[1]),m&&(h.push(a.caption_start),g=ue(ue({},g),s.caption_start)),C&&(h.push(a.caption_end),g=ue(ue({},g),s.caption_end)),p&&(h.push(a.caption_between),g=ue(ue({},g),s.caption_between));var v=(t=i==null?void 0:i.Caption)!==null&&t!==void 0?t:ep;return c.jsxs("div",{className:h.join(" "),style:g,children:[c.jsx(v,{id:d,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),c.jsx(Wp,{id:f,"aria-labelledby":d,displayMonth:e.displayMonth})]},e.displayIndex)}function qp(e){var n=Oe(),t=n.classNames,r=n.styles;return c.jsx("div",{className:t.months,style:r.months,children:e.children})}function Kp(e){var n,t,r=e.initialProps,o=Oe(),a=gi(),s=Zr(),i=D.useState(!1),u=i[0],d=i[1];D.useEffect(function(){o.initialFocus&&a.focusTarget&&(u||(a.focus(a.focusTarget),d(!0)))},[o.initialFocus,u,a.focus,a.focusTarget,a]);var f=[o.classNames.root,o.className];o.numberOfMonths>1&&f.push(o.classNames.multiple_months),o.showWeekNumber&&f.push(o.classNames.with_weeknumber);var h=ue(ue({},o.styles.root),o.style),g=Object.keys(r).filter(function(C){return C.startsWith("data-")}).reduce(function(C,p){var v;return ue(ue({},C),(v={},v[p]=r[p],v))},{}),m=(t=(n=r.components)===null||n===void 0?void 0:n.Months)!==null&&t!==void 0?t:qp;return c.jsx("div",ue({className:f.join(" "),style:h,dir:o.dir,id:o.id,nonce:r.nonce,title:r.title,lang:r.lang},g,{children:c.jsx(m,{children:s.displayMonths.map(function(C,p){return c.jsx(Up,{displayIndex:p,displayMonth:C},p)})})}))}function Xp(e){var n=e.children,t=bg(e,["children"]);return c.jsx(zg,{initialProps:t,children:c.jsx(Kg,{children:c.jsx(kp,{initialProps:t,children:c.jsx(sp,{initialProps:t,children:c.jsx(cp,{initialProps:t,children:c.jsx(vp,{children:c.jsx(_p,{children:n})})})})})})})}function Qp(e){return c.jsx(Xp,ue({},e,{children:c.jsx(Kp,{initialProps:e})}))}function vi(e,[n,t]){return Math.min(t,Math.max(n,e))}function ne(e,n,{checkForDefaultPrevented:t=!0}={}){return function(o){if(e==null||e(o),t===!1||!o.defaultPrevented)return n==null?void 0:n(o)}}function Jp(e,n){const t=l.createContext(n),r=a=>{const{children:s,...i}=a,u=l.useMemo(()=>i,Object.values(i));return c.jsx(t.Provider,{value:u,children:s})};r.displayName=e+"Provider";function o(a){const s=l.useContext(t);if(s)return s;if(n!==void 0)return n;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function nt(e,n=[]){let t=[];function r(a,s){const i=l.createContext(s),u=t.length;t=[...t,s];const d=h=>{var w;const{scope:g,children:m,...C}=h,p=((w=g==null?void 0:g[e])==null?void 0:w[u])||i,v=l.useMemo(()=>C,Object.values(C));return c.jsx(p.Provider,{value:v,children:m})};d.displayName=a+"Provider";function f(h,g){var p;const m=((p=g==null?void 0:g[e])==null?void 0:p[u])||i,C=l.useContext(m);if(C)return C;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=t.map(s=>l.createContext(s));return function(i){const u=(i==null?void 0:i[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return o.scopeName=e,[r,em(o,...n)]}function em(...e){const n=e[0];if(e.length===1)return n;const t=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:u,scopeName:d})=>{const h=u(a)[`__scope${d}`];return{...i,...h}},{});return l.useMemo(()=>({[`__scope${n.scopeName}`]:s}),[s])}};return t.scopeName=n.scopeName,t}function Au(e){const n=tm(e),t=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),u=i.find(rm);if(u){const d=u.props.children,f=i.map(h=>h===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:h);return c.jsx(n,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return c.jsx(n,{...s,ref:o,children:a})});return t.displayName=`${e}.Slot`,t}function tm(e){const n=l.forwardRef((t,r)=>{const{children:o,...a}=t;if(l.isValidElement(o)){const s=am(o),i=om(a,o.props);return o.type!==l.Fragment&&(i.ref=r?st(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var nm=Symbol("radix.slottable");function rm(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nm}function om(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(t[r]=o):r==="style"?t[r]={...o,...a}:r==="className"&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function am(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function Uo(e){const n=e+"CollectionProvider",[t,r]=nt(n),[o,a]=t(n,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:v,children:w}=p,y=D.useRef(null),b=D.useRef(new Map).current;return c.jsx(o,{scope:v,itemMap:b,collectionRef:y,children:w})};s.displayName=n;const i=e+"CollectionSlot",u=Au(i),d=D.forwardRef((p,v)=>{const{scope:w,children:y}=p,b=a(i,w),S=he(v,b.collectionRef);return c.jsx(u,{ref:S,children:y})});d.displayName=i;const f=e+"CollectionItemSlot",h="data-radix-collection-item",g=Au(f),m=D.forwardRef((p,v)=>{const{scope:w,children:y,...b}=p,S=D.useRef(null),M=he(v,S),L=a(f,w);return D.useEffect(()=>(L.itemMap.set(S,{ref:S,...b}),()=>void L.itemMap.delete(S))),c.jsx(g,{[h]:"",ref:M,children:y})});m.displayName=f;function C(p){const v=a(e+"CollectionConsumer",p);return D.useCallback(()=>{const y=v.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${h}]`));return Array.from(v.itemMap.values()).sort((L,E)=>b.indexOf(L.ref.current)-b.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:d,ItemSlot:m},C,r]}var sm=l.createContext(void 0);function ar(e){const n=l.useContext(sm);return e||n||"ltr"}function im(e){const n=lm(e),t=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),u=i.find(um);if(u){const d=u.props.children,f=i.map(h=>h===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:h);return c.jsx(n,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return c.jsx(n,{...s,ref:o,children:a})});return t.displayName=`${e}.Slot`,t}function lm(e){const n=l.forwardRef((t,r)=>{const{children:o,...a}=t;if(l.isValidElement(o)){const s=fm(o),i=dm(a,o.props);return o.type!==l.Fragment&&(i.ref=r?st(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var cm=Symbol("radix.slottable");function um(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cm}function dm(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(t[r]=o):r==="style"?t[r]={...o,...a}:r==="className"&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function fm(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var hm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=hm.reduce((e,n)=>{const t=im(`Primitive.${n}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,u=s?t:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...i,ref:a})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function Ci(e,n){e&&Dr.flushSync(()=>e.dispatchEvent(n))}function Re(e){const n=l.useRef(e);return l.useEffect(()=>{n.current=e}),l.useMemo(()=>(...t)=>{var r;return(r=n.current)==null?void 0:r.call(n,...t)},[])}function gm(e,n=globalThis==null?void 0:globalThis.document){const t=Re(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&t(o)};return n.addEventListener("keydown",r,{capture:!0}),()=>n.removeEventListener("keydown",r,{capture:!0})},[t,n])}var pm="DismissableLayer",wi="dismissableLayer.update",mm="dismissableLayer.pointerDownOutside",vm="dismissableLayer.focusOutside",Fu,$u=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kn=l.forwardRef((e,n)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...u}=e,d=l.useContext($u),[f,h]=l.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=l.useState({}),C=he(n,E=>h(E)),p=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=p.indexOf(v),y=f?p.indexOf(f):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,S=y>=w,M=wm(E=>{const I=E.target,k=[...d.branches].some(O=>O.contains(I));!S||k||(o==null||o(E),s==null||s(E),E.defaultPrevented||i==null||i())},g),L=ym(E=>{const I=E.target;[...d.branches].some(O=>O.contains(I))||(a==null||a(E),s==null||s(E),E.defaultPrevented||i==null||i())},g);return gm(E=>{y===d.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&i&&(E.preventDefault(),i()))},g),l.useEffect(()=>{if(f)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Fu=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Bu(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Fu)}},[f,g,t,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Bu())},[f,d]),l.useEffect(()=>{const E=()=>m({});return document.addEventListener(wi,E),()=>document.removeEventListener(wi,E)},[]),c.jsx(oe.div,{...u,ref:C,style:{pointerEvents:b?S?"auto":"none":void 0,...e.style},onFocusCapture:ne(e.onFocusCapture,L.onFocusCapture),onBlurCapture:ne(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:ne(e.onPointerDownCapture,M.onPointerDownCapture)})});kn.displayName=pm;var Cm="DismissableLayerBranch",zu=l.forwardRef((e,n)=>{const t=l.useContext($u),r=l.useRef(null),o=he(n,r);return l.useEffect(()=>{const a=r.current;if(a)return t.branches.add(a),()=>{t.branches.delete(a)}},[t.branches]),c.jsx(oe.div,{...e,ref:o})});zu.displayName=Cm;function wm(e,n=globalThis==null?void 0:globalThis.document){const t=Re(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let u=function(){Zu(mm,t,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=u,n.addEventListener("click",o.current,{once:!0})):u()}else n.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{n.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),n.removeEventListener("pointerdown",a),n.removeEventListener("click",o.current)}},[n,t]),{onPointerDownCapture:()=>r.current=!0}}function ym(e,n=globalThis==null?void 0:globalThis.document){const t=Re(e),r=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!r.current&&Zu(vm,t,{originalEvent:a},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Bu(){const e=new CustomEvent(wi);document.dispatchEvent(e)}function Zu(e,n,t,{discrete:r}){const o=t.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});n&&o.addEventListener(e,n,{once:!0}),r?Ci(o,a):o.dispatchEvent(a)}var bm=kn,xm=zu,yi=0;function qo(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Wu()),document.body.insertAdjacentElement("beforeend",e[1]??Wu()),yi++,()=>{yi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),yi--}},[])}function Wu(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var bi="focusScope.autoFocusOnMount",xi="focusScope.autoFocusOnUnmount",Ru={bubbles:!1,cancelable:!0},Sm="FocusScope",Wr=l.forwardRef((e,n)=>{const{loop:t=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,u]=l.useState(null),d=Re(o),f=Re(a),h=l.useRef(null),g=he(n,p=>u(p)),m=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let p=function(b){if(m.paused||!i)return;const S=b.target;i.contains(S)?h.current=S:dn(h.current,{select:!0})},v=function(b){if(m.paused||!i)return;const S=b.relatedTarget;S!==null&&(i.contains(S)||dn(h.current,{select:!0}))},w=function(b){if(document.activeElement===document.body)for(const M of b)M.removedNodes.length>0&&dn(i)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const y=new MutationObserver(w);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),y.disconnect()}}},[r,i,m.paused]),l.useEffect(()=>{if(i){Yu.add(m);const p=document.activeElement;if(!i.contains(p)){const w=new CustomEvent(bi,Ru);i.addEventListener(bi,d),i.dispatchEvent(w),w.defaultPrevented||(Em(_m(Gu(i)),{select:!0}),document.activeElement===p&&dn(i))}return()=>{i.removeEventListener(bi,d),setTimeout(()=>{const w=new CustomEvent(xi,Ru);i.addEventListener(xi,f),i.dispatchEvent(w),w.defaultPrevented||dn(p??document.body,{select:!0}),i.removeEventListener(xi,f),Yu.remove(m)},0)}}},[i,d,f,m]);const C=l.useCallback(p=>{if(!t&&!r||m.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,w=document.activeElement;if(v&&w){const y=p.currentTarget,[b,S]=Mm(y);b&&S?!p.shiftKey&&w===S?(p.preventDefault(),t&&dn(b,{select:!0})):p.shiftKey&&w===b&&(p.preventDefault(),t&&dn(S,{select:!0})):w===y&&p.preventDefault()}},[t,r,m.paused]);return c.jsx(oe.div,{tabIndex:-1,...s,ref:g,onKeyDown:C})});Wr.displayName=Sm;function Em(e,{select:n=!1}={}){const t=document.activeElement;for(const r of e)if(dn(r,{select:n}),document.activeElement!==t)return}function Mm(e){const n=Gu(e),t=ju(n,e),r=ju(n.reverse(),e);return[t,r]}function Gu(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function ju(e,n){for(const t of e)if(!Lm(t,{upTo:n}))return t}function Lm(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Nm(e){return e instanceof HTMLInputElement&&"select"in e}function dn(e,{select:n=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&Nm(e)&&n&&e.select()}}var Yu=Pm();function Pm(){let e=[];return{add(n){const t=e[0];n!==t&&(t==null||t.pause()),e=Uu(e,n),e.unshift(n)},remove(n){var t;e=Uu(e,n),(t=e[0])==null||t.resume()}}}function Uu(e,n){const t=[...e],r=t.indexOf(n);return r!==-1&&t.splice(r,1),t}function _m(e){return e.filter(n=>n.tagName!=="A")}var He=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Im=l[" useId ".trim().toString()]||(()=>{}),km=0;function qe(e){const[n,t]=l.useState(Im());return He(()=>{t(r=>r??String(km++))},[e]),e||(n?`radix-${n}`:"")}const Tm=["top","right","bottom","left"],fn=Math.min,pt=Math.max,Ko=Math.round,Xo=Math.floor,Ft=e=>({x:e,y:e}),Dm={left:"right",right:"left",bottom:"top",top:"bottom"},Om={start:"end",end:"start"};function Si(e,n,t){return pt(e,fn(n,t))}function Xt(e,n){return typeof e=="function"?e(n):e}function Qt(e){return e.split("-")[0]}function sr(e){return e.split("-")[1]}function Ei(e){return e==="x"?"y":"x"}function Mi(e){return e==="y"?"height":"width"}const Vm=new Set(["top","bottom"]);function $t(e){return Vm.has(Qt(e))?"y":"x"}function Li(e){return Ei($t(e))}function Hm(e,n,t){t===void 0&&(t=!1);const r=sr(e),o=Li(e),a=Mi(o);let s=o==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return n.reference[a]>n.floating[a]&&(s=Qo(s)),[s,Qo(s)]}function Am(e){const n=Qo(e);return[Ni(e),n,Ni(n)]}function Ni(e){return e.replace(/start|end/g,n=>Om[n])}const qu=["left","right"],Ku=["right","left"],Fm=["top","bottom"],$m=["bottom","top"];function zm(e,n,t){switch(e){case"top":case"bottom":return t?n?Ku:qu:n?qu:Ku;case"left":case"right":return n?Fm:$m;default:return[]}}function Bm(e,n,t,r){const o=sr(e);let a=zm(Qt(e),t==="start",r);return o&&(a=a.map(s=>s+"-"+o),n&&(a=a.concat(a.map(Ni)))),a}function Qo(e){return e.replace(/left|right|bottom|top/g,n=>Dm[n])}function Zm(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xu(e){return typeof e!="number"?Zm(e):{top:e,right:e,bottom:e,left:e}}function Jo(e){const{x:n,y:t,width:r,height:o}=e;return{width:r,height:o,top:t,left:n,right:n+r,bottom:t+o,x:n,y:t}}function Qu(e,n,t){let{reference:r,floating:o}=e;const a=$t(n),s=Li(n),i=Mi(s),u=Qt(n),d=a==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,g=r[i]/2-o[i]/2;let m;switch(u){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-o.width,y:h};break;default:m={x:r.x,y:r.y}}switch(sr(n)){case"start":m[s]-=g*(t&&d?-1:1);break;case"end":m[s]+=g*(t&&d?-1:1);break}return m}async function Wm(e,n){var t;n===void 0&&(n={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:g=!1,padding:m=0}=Xt(n,e),C=Xu(m),v=i[g?h==="floating"?"reference":"floating":h],w=Jo(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(v)))==null||t?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:u})),y=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(b))?await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1}:{x:1,y:1},M=Jo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:b,strategy:u}):y);return{top:(w.top-M.top+C.top)/S.y,bottom:(M.bottom-w.bottom+C.bottom)/S.y,left:(w.left-M.left+C.left)/S.x,right:(M.right-w.right+C.right)/S.x}}const Rm=async(e,n,t)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=t,i=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(n));let d=await s.getElementRects({reference:e,floating:n,strategy:o}),{x:f,y:h}=Qu(d,r,u),g=r,m={},C=0;for(let v=0;v<i.length;v++){var p;const{name:w,fn:y}=i[v],{x:b,y:S,data:M,reset:L}=await y({x:f,y:h,initialPlacement:r,placement:g,strategy:o,middlewareData:m,rects:d,platform:{...s,detectOverflow:(p=s.detectOverflow)!=null?p:Wm},elements:{reference:e,floating:n}});f=b??f,h=S??h,m={...m,[w]:{...m[w],...M}},L&&C<=50&&(C++,typeof L=="object"&&(L.placement&&(g=L.placement),L.rects&&(d=L.rects===!0?await s.getElementRects({reference:e,floating:n,strategy:o}):L.rects),{x:f,y:h}=Qu(d,g,u)),v=-1)}return{x:f,y:h,placement:g,strategy:o,middlewareData:m}},Gm=e=>({name:"arrow",options:e,async fn(n){const{x:t,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:u}=n,{element:d,padding:f=0}=Xt(e,n)||{};if(d==null)return{};const h=Xu(f),g={x:t,y:r},m=Li(o),C=Mi(m),p=await s.getDimensions(d),v=m==="y",w=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",S=a.reference[C]+a.reference[m]-g[m]-a.floating[C],M=g[m]-a.reference[m],L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let E=L?L[b]:0;(!E||!await(s.isElement==null?void 0:s.isElement(L)))&&(E=i.floating[b]||a.floating[C]);const I=S/2-M/2,k=E/2-p[C]/2-1,O=fn(h[w],k),A=fn(h[y],k),V=O,Y=E-p[C]-A,$=E/2-p[C]/2+I,U=Si(V,$,Y),T=!u.arrow&&sr(o)!=null&&$!==U&&a.reference[C]/2-($<V?O:A)-p[C]/2<0,W=T?$<V?$-V:$-Y:0;return{[m]:g[m]+W,data:{[m]:U,centerOffset:$-U-W,...T&&{alignmentOffset:W}},reset:T}}}),jm=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var t,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:u,elements:d}=n,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:p=!0,...v}=Xt(e,n);if((t=a.arrow)!=null&&t.alignmentOffset)return{};const w=Qt(o),y=$t(i),b=Qt(i)===i,S=await(u.isRTL==null?void 0:u.isRTL(d.floating)),M=g||(b||!p?[Qo(i)]:Am(i)),L=C!=="none";!g&&L&&M.push(...Bm(i,p,C,S));const E=[i,...M],I=await u.detectOverflow(n,v),k=[];let O=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&k.push(I[w]),h){const $=Hm(o,s,S);k.push(I[$[0]],I[$[1]])}if(O=[...O,{placement:o,overflows:k}],!k.every($=>$<=0)){var A,V;const $=(((A=a.flip)==null?void 0:A.index)||0)+1,U=E[$];if(U&&(!(h==="alignment"?y!==$t(U):!1)||O.every(P=>$t(P.placement)===y?P.overflows[0]>0:!0)))return{data:{index:$,overflows:O},reset:{placement:U}};let T=(V=O.filter(W=>W.overflows[0]<=0).sort((W,P)=>W.overflows[1]-P.overflows[1])[0])==null?void 0:V.placement;if(!T)switch(m){case"bestFit":{var Y;const W=(Y=O.filter(P=>{if(L){const z=$t(P.placement);return z===y||z==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(z=>z>0).reduce((z,q)=>z+q,0)]).sort((P,z)=>P[1]-z[1])[0])==null?void 0:Y[0];W&&(T=W);break}case"initialPlacement":T=i;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function Ju(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function ed(e){return Tm.some(n=>e[n]>=0)}const Ym=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:t,platform:r}=n,{strategy:o="referenceHidden",...a}=Xt(e,n);switch(o){case"referenceHidden":{const s=await r.detectOverflow(n,{...a,elementContext:"reference"}),i=Ju(s,t.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ed(i)}}}case"escaped":{const s=await r.detectOverflow(n,{...a,altBoundary:!0}),i=Ju(s,t.floating);return{data:{escapedOffsets:i,escaped:ed(i)}}}default:return{}}}}},td=new Set(["left","top"]);async function Um(e,n){const{placement:t,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Qt(t),i=sr(t),u=$t(t)==="y",d=td.has(s)?-1:1,f=a&&u?-1:1,h=Xt(n,e);let{mainAxis:g,crossAxis:m,alignmentAxis:C}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return i&&typeof C=="number"&&(m=i==="end"?C*-1:C),u?{x:m*f,y:g*d}:{x:g*d,y:m*f}}const qm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var t,r;const{x:o,y:a,placement:s,middlewareData:i}=n,u=await Um(n,e);return s===((t=i.offset)==null?void 0:t.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:s}}}}},Km=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:t,y:r,placement:o,platform:a}=n,{mainAxis:s=!0,crossAxis:i=!1,limiter:u={fn:w=>{let{x:y,y:b}=w;return{x:y,y:b}}},...d}=Xt(e,n),f={x:t,y:r},h=await a.detectOverflow(n,d),g=$t(Qt(o)),m=Ei(g);let C=f[m],p=f[g];if(s){const w=m==="y"?"top":"left",y=m==="y"?"bottom":"right",b=C+h[w],S=C-h[y];C=Si(b,C,S)}if(i){const w=g==="y"?"top":"left",y=g==="y"?"bottom":"right",b=p+h[w],S=p-h[y];p=Si(b,p,S)}const v=u.fn({...n,[m]:C,[g]:p});return{...v,data:{x:v.x-t,y:v.y-r,enabled:{[m]:s,[g]:i}}}}}},Xm=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:t,y:r,placement:o,rects:a,middlewareData:s}=n,{offset:i=0,mainAxis:u=!0,crossAxis:d=!0}=Xt(e,n),f={x:t,y:r},h=$t(o),g=Ei(h);let m=f[g],C=f[h];const p=Xt(i,n),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const b=g==="y"?"height":"width",S=a.reference[g]-a.floating[b]+v.mainAxis,M=a.reference[g]+a.reference[b]-v.mainAxis;m<S?m=S:m>M&&(m=M)}if(d){var w,y;const b=g==="y"?"width":"height",S=td.has(Qt(o)),M=a.reference[h]-a.floating[b]+(S&&((w=s.offset)==null?void 0:w[h])||0)+(S?0:v.crossAxis),L=a.reference[h]+a.reference[b]+(S?0:((y=s.offset)==null?void 0:y[h])||0)-(S?v.crossAxis:0);C<M?C=M:C>L&&(C=L)}return{[g]:m,[h]:C}}}},Qm=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var t,r;const{placement:o,rects:a,platform:s,elements:i}=n,{apply:u=()=>{},...d}=Xt(e,n),f=await s.detectOverflow(n,d),h=Qt(o),g=sr(o),m=$t(o)==="y",{width:C,height:p}=a.floating;let v,w;h==="top"||h==="bottom"?(v=h,w=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(w=h,v=g==="end"?"top":"bottom");const y=p-f.top-f.bottom,b=C-f.left-f.right,S=fn(p-f[v],y),M=fn(C-f[w],b),L=!n.middlewareData.shift;let E=S,I=M;if((t=n.middlewareData.shift)!=null&&t.enabled.x&&(I=b),(r=n.middlewareData.shift)!=null&&r.enabled.y&&(E=y),L&&!g){const O=pt(f.left,0),A=pt(f.right,0),V=pt(f.top,0),Y=pt(f.bottom,0);m?I=C-2*(O!==0||A!==0?O+A:pt(f.left,f.right)):E=p-2*(V!==0||Y!==0?V+Y:pt(f.top,f.bottom))}await u({...n,availableWidth:I,availableHeight:E});const k=await s.getDimensions(i.floating);return C!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}};function ea(){return typeof window<"u"}function ir(e){return nd(e)?(e.nodeName||"").toLowerCase():"#document"}function mt(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function zt(e){var n;return(n=(nd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function nd(e){return ea()?e instanceof Node||e instanceof mt(e).Node:!1}function Et(e){return ea()?e instanceof Element||e instanceof mt(e).Element:!1}function Bt(e){return ea()?e instanceof HTMLElement||e instanceof mt(e).HTMLElement:!1}function rd(e){return!ea()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mt(e).ShadowRoot}const Jm=new Set(["inline","contents"]);function Rr(e){const{overflow:n,overflowX:t,overflowY:r,display:o}=Mt(e);return/auto|scroll|overlay|hidden|clip/.test(n+r+t)&&!Jm.has(o)}const ev=new Set(["table","td","th"]);function tv(e){return ev.has(ir(e))}const nv=[":popover-open",":modal"];function ta(e){return nv.some(n=>{try{return e.matches(n)}catch{return!1}})}const rv=["transform","translate","scale","rotate","perspective"],ov=["transform","translate","scale","rotate","perspective","filter"],av=["paint","layout","strict","content"];function Pi(e){const n=_i(),t=Et(e)?Mt(e):e;return rv.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!n&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!n&&(t.filter?t.filter!=="none":!1)||ov.some(r=>(t.willChange||"").includes(r))||av.some(r=>(t.contain||"").includes(r))}function sv(e){let n=hn(e);for(;Bt(n)&&!lr(n);){if(Pi(n))return n;if(ta(n))return null;n=hn(n)}return null}function _i(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const iv=new Set(["html","body","#document"]);function lr(e){return iv.has(ir(e))}function Mt(e){return mt(e).getComputedStyle(e)}function na(e){return Et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hn(e){if(ir(e)==="html")return e;const n=e.assignedSlot||e.parentNode||rd(e)&&e.host||zt(e);return rd(n)?n.host:n}function od(e){const n=hn(e);return lr(n)?e.ownerDocument?e.ownerDocument.body:e.body:Bt(n)&&Rr(n)?n:od(n)}function Gr(e,n,t){var r;n===void 0&&(n=[]),t===void 0&&(t=!0);const o=od(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=mt(o);if(a){const i=Ii(s);return n.concat(s,s.visualViewport||[],Rr(o)?o:[],i&&t?Gr(i):[])}return n.concat(o,Gr(o,[],t))}function Ii(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ad(e){const n=Mt(e);let t=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const o=Bt(e),a=o?e.offsetWidth:t,s=o?e.offsetHeight:r,i=Ko(t)!==a||Ko(r)!==s;return i&&(t=a,r=s),{width:t,height:r,$:i}}function ki(e){return Et(e)?e:e.contextElement}function cr(e){const n=ki(e);if(!Bt(n))return Ft(1);const t=n.getBoundingClientRect(),{width:r,height:o,$:a}=ad(n);let s=(a?Ko(t.width):t.width)/r,i=(a?Ko(t.height):t.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const lv=Ft(0);function sd(e){const n=mt(e);return!_i()||!n.visualViewport?lv:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function cv(e,n,t){return n===void 0&&(n=!1),!t||n&&t!==mt(e)?!1:n}function Tn(e,n,t,r){n===void 0&&(n=!1),t===void 0&&(t=!1);const o=e.getBoundingClientRect(),a=ki(e);let s=Ft(1);n&&(r?Et(r)&&(s=cr(r)):s=cr(e));const i=cv(a,t,r)?sd(a):Ft(0);let u=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,f=o.width/s.x,h=o.height/s.y;if(a){const g=mt(a),m=r&&Et(r)?mt(r):r;let C=g,p=Ii(C);for(;p&&r&&m!==C;){const v=cr(p),w=p.getBoundingClientRect(),y=Mt(p),b=w.left+(p.clientLeft+parseFloat(y.paddingLeft))*v.x,S=w.top+(p.clientTop+parseFloat(y.paddingTop))*v.y;u*=v.x,d*=v.y,f*=v.x,h*=v.y,u+=b,d+=S,C=mt(p),p=Ii(C)}}return Jo({width:f,height:h,x:u,y:d})}function ra(e,n){const t=na(e).scrollLeft;return n?n.left+t:Tn(zt(e)).left+t}function id(e,n){const t=e.getBoundingClientRect(),r=t.left+n.scrollLeft-ra(e,t),o=t.top+n.scrollTop;return{x:r,y:o}}function uv(e){let{elements:n,rect:t,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=zt(r),i=n?ta(n.floating):!1;if(r===s||i&&a)return t;let u={scrollLeft:0,scrollTop:0},d=Ft(1);const f=Ft(0),h=Bt(r);if((h||!h&&!a)&&((ir(r)!=="body"||Rr(s))&&(u=na(r)),Bt(r))){const m=Tn(r);d=cr(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const g=s&&!h&&!a?id(s,u):Ft(0);return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-u.scrollLeft*d.x+f.x+g.x,y:t.y*d.y-u.scrollTop*d.y+f.y+g.y}}function dv(e){return Array.from(e.getClientRects())}function fv(e){const n=zt(e),t=na(e),r=e.ownerDocument.body,o=pt(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),a=pt(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight);let s=-t.scrollLeft+ra(e);const i=-t.scrollTop;return Mt(r).direction==="rtl"&&(s+=pt(n.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const ld=25;function hv(e,n){const t=mt(e),r=zt(e),o=t.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,u=0;if(o){a=o.width,s=o.height;const f=_i();(!f||f&&n==="fixed")&&(i=o.offsetLeft,u=o.offsetTop)}const d=ra(r);if(d<=0){const f=r.ownerDocument,h=f.body,g=getComputedStyle(h),m=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,C=Math.abs(r.clientWidth-h.clientWidth-m);C<=ld&&(a-=C)}else d<=ld&&(a+=d);return{width:a,height:s,x:i,y:u}}const gv=new Set(["absolute","fixed"]);function pv(e,n){const t=Tn(e,!0,n==="fixed"),r=t.top+e.clientTop,o=t.left+e.clientLeft,a=Bt(e)?cr(e):Ft(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,u=o*a.x,d=r*a.y;return{width:s,height:i,x:u,y:d}}function cd(e,n,t){let r;if(n==="viewport")r=hv(e,t);else if(n==="document")r=fv(zt(e));else if(Et(n))r=pv(n,t);else{const o=sd(e);r={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return Jo(r)}function ud(e,n){const t=hn(e);return t===n||!Et(t)||lr(t)?!1:Mt(t).position==="fixed"||ud(t,n)}function mv(e,n){const t=n.get(e);if(t)return t;let r=Gr(e,[],!1).filter(i=>Et(i)&&ir(i)!=="body"),o=null;const a=Mt(e).position==="fixed";let s=a?hn(e):e;for(;Et(s)&&!lr(s);){const i=Mt(s),u=Pi(s);!u&&i.position==="fixed"&&(o=null),(a?!u&&!o:!u&&i.position==="static"&&!!o&&gv.has(o.position)||Rr(s)&&!u&&ud(e,s))?r=r.filter(f=>f!==s):o=i,s=hn(s)}return n.set(e,r),r}function vv(e){let{element:n,boundary:t,rootBoundary:r,strategy:o}=e;const s=[...t==="clippingAncestors"?ta(n)?[]:mv(n,this._c):[].concat(t),r],i=s[0],u=s.reduce((d,f)=>{const h=cd(n,f,o);return d.top=pt(h.top,d.top),d.right=fn(h.right,d.right),d.bottom=fn(h.bottom,d.bottom),d.left=pt(h.left,d.left),d},cd(n,i,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Cv(e){const{width:n,height:t}=ad(e);return{width:n,height:t}}function wv(e,n,t){const r=Bt(n),o=zt(n),a=t==="fixed",s=Tn(e,!0,a,n);let i={scrollLeft:0,scrollTop:0};const u=Ft(0);function d(){u.x=ra(o)}if(r||!r&&!a)if((ir(n)!=="body"||Rr(o))&&(i=na(n)),r){const m=Tn(n,!0,a,n);u.x=m.x+n.clientLeft,u.y=m.y+n.clientTop}else o&&d();a&&!r&&o&&d();const f=o&&!r&&!a?id(o,i):Ft(0),h=s.left+i.scrollLeft-u.x-f.x,g=s.top+i.scrollTop-u.y-f.y;return{x:h,y:g,width:s.width,height:s.height}}function Ti(e){return Mt(e).position==="static"}function dd(e,n){if(!Bt(e)||Mt(e).position==="fixed")return null;if(n)return n(e);let t=e.offsetParent;return zt(e)===t&&(t=t.ownerDocument.body),t}function fd(e,n){const t=mt(e);if(ta(e))return t;if(!Bt(e)){let o=hn(e);for(;o&&!lr(o);){if(Et(o)&&!Ti(o))return o;o=hn(o)}return t}let r=dd(e,n);for(;r&&tv(r)&&Ti(r);)r=dd(r,n);return r&&lr(r)&&Ti(r)&&!Pi(r)?t:r||sv(e)||t}const yv=async function(e){const n=this.getOffsetParent||fd,t=this.getDimensions,r=await t(e.floating);return{reference:wv(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bv(e){return Mt(e).direction==="rtl"}const xv={convertOffsetParentRelativeRectToViewportRelativeRect:uv,getDocumentElement:zt,getClippingRect:vv,getOffsetParent:fd,getElementRects:yv,getClientRects:dv,getDimensions:Cv,getScale:cr,isElement:Et,isRTL:bv};function hd(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function Sv(e,n){let t=null,r;const o=zt(e);function a(){var i;clearTimeout(r),(i=t)==null||i.disconnect(),t=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),a();const d=e.getBoundingClientRect(),{left:f,top:h,width:g,height:m}=d;if(i||n(),!g||!m)return;const C=Xo(h),p=Xo(o.clientWidth-(f+g)),v=Xo(o.clientHeight-(h+m)),w=Xo(f),b={rootMargin:-C+"px "+-p+"px "+-v+"px "+-w+"px",threshold:pt(0,fn(1,u))||1};let S=!0;function M(L){const E=L[0].intersectionRatio;if(E!==u){if(!S)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!hd(d,e.getBoundingClientRect())&&s(),S=!1}try{t=new IntersectionObserver(M,{...b,root:o.ownerDocument})}catch{t=new IntersectionObserver(M,b)}t.observe(e)}return s(!0),a}function Ev(e,n,t,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=ki(e),f=o||a?[...d?Gr(d):[],...Gr(n)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",t,{passive:!0}),a&&w.addEventListener("resize",t)});const h=d&&i?Sv(d,t):null;let g=-1,m=null;s&&(m=new ResizeObserver(w=>{let[y]=w;y&&y.target===d&&m&&(m.unobserve(n),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(n)})),t()}),d&&!u&&m.observe(d),m.observe(n));let C,p=u?Tn(e):null;u&&v();function v(){const w=Tn(e);p&&!hd(p,w)&&t(),p=w,C=requestAnimationFrame(v)}return t(),()=>{var w;f.forEach(y=>{o&&y.removeEventListener("scroll",t),a&&y.removeEventListener("resize",t)}),h==null||h(),(w=m)==null||w.disconnect(),m=null,u&&cancelAnimationFrame(C)}}const Mv=qm,Lv=Km,Nv=jm,Pv=Qm,_v=Ym,gd=Gm,Iv=Xm,kv=(e,n,t)=>{const r=new Map,o={platform:xv,...t},a={...o.platform,_c:r};return Rm(e,n,{...o,platform:a})};var Tv=typeof document<"u",Dv=function(){},oa=Tv?D.useLayoutEffect:Dv;function aa(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let t,r,o;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==n.length)return!1;for(r=t;r--!==0;)if(!aa(e[r],n[r]))return!1;return!0}if(o=Object.keys(e),t=o.length,t!==Object.keys(n).length)return!1;for(r=t;r--!==0;)if(!{}.hasOwnProperty.call(n,o[r]))return!1;for(r=t;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!aa(e[a],n[a]))return!1}return!0}return e!==e&&n!==n}function pd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function md(e,n){const t=pd(e);return Math.round(n*t)/t}function Di(e){const n=l.useRef(e);return oa(()=>{n.current=e}),n}function Ov(e){e===void 0&&(e={});const{placement:n="bottom",strategy:t="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:u,open:d}=e,[f,h]=l.useState({x:0,y:0,strategy:t,placement:n,middlewareData:{},isPositioned:!1}),[g,m]=l.useState(r);aa(g,r)||m(r);const[C,p]=l.useState(null),[v,w]=l.useState(null),y=l.useCallback(P=>{P!==L.current&&(L.current=P,p(P))},[]),b=l.useCallback(P=>{P!==E.current&&(E.current=P,w(P))},[]),S=a||C,M=s||v,L=l.useRef(null),E=l.useRef(null),I=l.useRef(f),k=u!=null,O=Di(u),A=Di(o),V=Di(d),Y=l.useCallback(()=>{if(!L.current||!E.current)return;const P={placement:n,strategy:t,middleware:g};A.current&&(P.platform=A.current),kv(L.current,E.current,P).then(z=>{const q={...z,isPositioned:V.current!==!1};$.current&&!aa(I.current,q)&&(I.current=q,Dr.flushSync(()=>{h(q)}))})},[g,n,t,A,V]);oa(()=>{d===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,h(P=>({...P,isPositioned:!1})))},[d]);const $=l.useRef(!1);oa(()=>($.current=!0,()=>{$.current=!1}),[]),oa(()=>{if(S&&(L.current=S),M&&(E.current=M),S&&M){if(O.current)return O.current(S,M,Y);Y()}},[S,M,Y,O,k]);const U=l.useMemo(()=>({reference:L,floating:E,setReference:y,setFloating:b}),[y,b]),T=l.useMemo(()=>({reference:S,floating:M}),[S,M]),W=l.useMemo(()=>{const P={position:t,left:0,top:0};if(!T.floating)return P;const z=md(T.floating,f.x),q=md(T.floating,f.y);return i?{...P,transform:"translate("+z+"px, "+q+"px)",...pd(T.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:z,top:q}},[t,i,T.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:Y,refs:U,elements:T,floatingStyles:W}),[f,Y,U,T,W])}const Vv=e=>{function n(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:r,padding:o}=typeof e=="function"?e(t):e;return r&&n(r)?r.current!=null?gd({element:r.current,padding:o}).fn(t):{}:r?gd({element:r,padding:o}).fn(t):{}}}},Hv=(e,n)=>({...Mv(e),options:[e,n]}),Av=(e,n)=>({...Lv(e),options:[e,n]}),Fv=(e,n)=>({...Iv(e),options:[e,n]}),$v=(e,n)=>({...Nv(e),options:[e,n]}),zv=(e,n)=>({...Pv(e),options:[e,n]}),Bv=(e,n)=>({..._v(e),options:[e,n]}),Zv=(e,n)=>({...Vv(e),options:[e,n]});var Wv="Arrow",vd=l.forwardRef((e,n)=>{const{children:t,width:r=10,height:o=5,...a}=e;return c.jsx(oe.svg,{...a,ref:n,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?t:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});vd.displayName=Wv;var Rv=vd;function sa(e){const[n,t]=l.useState(void 0);return He(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const u=a.borderBoxSize,d=Array.isArray(u)?u[0]:u;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;t({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else t(void 0)},[e]),n}var Oi="Popper",[Cd,gn]=nt(Oi),[Gv,wd]=Cd(Oi),yd=e=>{const{__scopePopper:n,children:t}=e,[r,o]=l.useState(null);return c.jsx(Gv,{scope:n,anchor:r,onAnchorChange:o,children:t})};yd.displayName=Oi;var bd="PopperAnchor",xd=l.forwardRef((e,n)=>{const{__scopePopper:t,virtualRef:r,...o}=e,a=wd(bd,t),s=l.useRef(null),i=he(n,s),u=l.useRef(null);return l.useEffect(()=>{const d=u.current;u.current=(r==null?void 0:r.current)||s.current,d!==u.current&&a.onAnchorChange(u.current)}),r?null:c.jsx(oe.div,{...o,ref:i})});xd.displayName=bd;var Vi="PopperContent",[jv,Yv]=Cd(Vi),Sd=l.forwardRef((e,n)=>{var F,R,Q,re,te,j;const{__scopePopper:t,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:C,...p}=e,v=wd(Vi,t),[w,y]=l.useState(null),b=he(n,ee=>y(ee)),[S,M]=l.useState(null),L=sa(S),E=(L==null?void 0:L.width)??0,I=(L==null?void 0:L.height)??0,k=r+(a!=="center"?"-"+a:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},A=Array.isArray(d)?d:[d],V=A.length>0,Y={padding:O,boundary:A.filter(qv),altBoundary:V},{refs:$,floatingStyles:U,placement:T,isPositioned:W,middlewareData:P}=Ov({strategy:"fixed",placement:k,whileElementsMounted:(...ee)=>Ev(...ee,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[Hv({mainAxis:o+I,alignmentAxis:s}),u&&Av({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Fv():void 0,...Y}),u&&$v({...Y}),zv({...Y,apply:({elements:ee,rects:ie,availableWidth:le,availableHeight:we})=>{const{width:Te,height:xe}=ie.reference,_e=ee.floating.style;_e.setProperty("--radix-popper-available-width",`${le}px`),_e.setProperty("--radix-popper-available-height",`${we}px`),_e.setProperty("--radix-popper-anchor-width",`${Te}px`),_e.setProperty("--radix-popper-anchor-height",`${xe}px`)}}),S&&Zv({element:S,padding:i}),Kv({arrowWidth:E,arrowHeight:I}),g&&Bv({strategy:"referenceHidden",...Y})]}),[z,q]=Ld(T),K=Re(C);He(()=>{W&&(K==null||K())},[W,K]);const Z=(F=P.arrow)==null?void 0:F.x,H=(R=P.arrow)==null?void 0:R.y,_=((Q=P.arrow)==null?void 0:Q.centerOffset)!==0,[B,G]=l.useState();return He(()=>{w&&G(window.getComputedStyle(w).zIndex)},[w]),c.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:W?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[(re=P.transformOrigin)==null?void 0:re.x,(te=P.transformOrigin)==null?void 0:te.y].join(" "),...((j=P.hide)==null?void 0:j.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(jv,{scope:t,placedSide:z,onArrowChange:M,arrowX:Z,arrowY:H,shouldHideArrow:_,children:c.jsx(oe.div,{"data-side":z,"data-align":q,...p,ref:b,style:{...p.style,animation:W?void 0:"none"}})})})});Sd.displayName=Vi;var Ed="PopperArrow",Uv={top:"bottom",right:"left",bottom:"top",left:"right"},Md=l.forwardRef(function(n,t){const{__scopePopper:r,...o}=n,a=Yv(Ed,r),s=Uv[a.placedSide];return c.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:c.jsx(Rv,{...o,ref:t,style:{...o.style,display:"block"}})})});Md.displayName=Ed;function qv(e){return e!==null}var Kv=e=>({name:"transformOrigin",options:e,fn(n){var v,w,y;const{placement:t,rects:r,middlewareData:o}=n,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,i=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[d,f]=Ld(t),h={start:"0%",center:"50%",end:"100%"}[f],g=(((w=o.arrow)==null?void 0:w.x)??0)+i/2,m=(((y=o.arrow)==null?void 0:y.y)??0)+u/2;let C="",p="";return d==="bottom"?(C=s?h:`${g}px`,p=`${-u}px`):d==="top"?(C=s?h:`${g}px`,p=`${r.floating.height+u}px`):d==="right"?(C=`${-u}px`,p=s?h:`${m}px`):d==="left"&&(C=`${r.floating.width+u}px`,p=s?h:`${m}px`),{data:{x:C,y:p}}}});function Ld(e){const[n,t="center"]=e.split("-");return[n,t]}var jr=yd,Yr=xd,ia=Sd,la=Md,Xv="Portal",Nd=l.forwardRef((e,n)=>{var i;const{container:t,...r}=e,[o,a]=l.useState(!1);He(()=>a(!0),[]);const s=t||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Yt.createPortal(c.jsx(oe.div,{...r,ref:n}),s):null});Nd.displayName=Xv;function Qv(e){const n=Jv(e),t=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),u=i.find(tC);if(u){const d=u.props.children,f=i.map(h=>h===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:h);return c.jsx(n,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return c.jsx(n,{...s,ref:o,children:a})});return t.displayName=`${e}.Slot`,t}function Jv(e){const n=l.forwardRef((t,r)=>{const{children:o,...a}=t;if(l.isValidElement(o)){const s=rC(o),i=nC(a,o.props);return o.type!==l.Fragment&&(i.ref=r?st(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var eC=Symbol("radix.slottable");function tC(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===eC}function nC(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(t[r]=o):r==="style"?t[r]={...o,...a}:r==="className"&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function rC(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var oC=l[" useInsertionEffect ".trim().toString()]||He;function ht({prop:e,defaultProp:n,onChange:t=()=>{},caller:r}){const[o,a,s]=aC({defaultProp:n,onChange:t}),i=e!==void 0,u=i?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const h=f.current;h!==i&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. 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.`),f.current=i},[i,r])}const d=l.useCallback(f=>{var h;if(i){const g=sC(f)?f(e):f;g!==e&&((h=s.current)==null||h.call(s,g))}else a(f)},[i,e,a,s]);return[u,d]}function aC({defaultProp:e,onChange:n}){const[t,r]=l.useState(e),o=l.useRef(t),a=l.useRef(n);return oC(()=>{a.current=n},[n]),l.useEffect(()=>{var s;o.current!==t&&((s=a.current)==null||s.call(a,t),o.current=t)},[t,o]),[t,r,a]}function sC(e){return typeof e=="function"}function ca(e){const n=l.useRef({value:e,previous:e});return l.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var Pd=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"}),iC="VisuallyHidden",ua=l.forwardRef((e,n)=>c.jsx(oe.span,{...e,ref:n,style:{...Pd,...e.style}}));ua.displayName=iC;var lC=ua,cC=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},ur=new WeakMap,da=new WeakMap,fa={},Hi=0,_d=function(e){return e&&(e.host||_d(e.parentNode))},uC=function(e,n){return n.map(function(t){if(e.contains(t))return t;var r=_d(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},dC=function(e,n,t,r){var o=uC(n,Array.isArray(e)?e:[e]);fa[t]||(fa[t]=new WeakMap);var a=fa[t],s=[],i=new Set,u=new Set(o),d=function(h){!h||i.has(h)||(i.add(h),d(h.parentNode))};o.forEach(d);var f=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(g){if(i.has(g))f(g);else try{var m=g.getAttribute(r),C=m!==null&&m!=="false",p=(ur.get(g)||0)+1,v=(a.get(g)||0)+1;ur.set(g,p),a.set(g,v),s.push(g),p===1&&C&&da.set(g,!0),v===1&&g.setAttribute(t,"true"),C||g.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",g,w)}})};return f(n),i.clear(),Hi++,function(){s.forEach(function(h){var g=ur.get(h)-1,m=a.get(h)-1;ur.set(h,g),a.set(h,m),g||(da.has(h)||h.removeAttribute(r),da.delete(h)),m||h.removeAttribute(t)}),Hi--,Hi||(ur=new WeakMap,ur=new WeakMap,da=new WeakMap,fa={})}},ha=function(e,n,t){t===void 0&&(t="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=cC(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),dC(r,o,t,"aria-hidden")):function(){return null}},Zt=function(){return Zt=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])}return n},Zt.apply(this,arguments)};function Id(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t}function fC(e,n,t){if(t||arguments.length===2)for(var r=0,o=n.length,a;r<o;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return e.concat(a||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;var ga="right-scroll-bar-position",pa="width-before-scroll-bar",hC="with-scroll-bars-hidden",gC="--removed-body-scroll-bar-size";function Ai(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function pC(e,n){var t=D.useState(function(){return{value:e,callback:n,facade:{get current(){return t.value},set current(r){var o=t.value;o!==r&&(t.value=r,t.callback(r,o))}}}})[0];return t.callback=n,t.facade}var mC=typeof window<"u"?l.useLayoutEffect:l.useEffect,kd=new WeakMap;function vC(e,n){var t=pC(null,function(r){return e.forEach(function(o){return Ai(o,r)})});return mC(function(){var r=kd.get(t);if(r){var o=new Set(r),a=new Set(e),s=t.current;o.forEach(function(i){a.has(i)||Ai(i,null)}),a.forEach(function(i){o.has(i)||Ai(i,s)})}kd.set(t,e)},[e]),t}function CC(e){return e}function wC(e,n){n===void 0&&(n=CC);var t=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(a){var s=n(a,r);return t.push(s),function(){t=t.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;t.length;){var s=t;t=[],s.forEach(a)}t={push:function(i){return a(i)},filter:function(){return t}}},assignMedium:function(a){r=!0;var s=[];if(t.length){var i=t;t=[],i.forEach(a),s=t}var u=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(u)};d(),t={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),t}}}};return o}function yC(e){e===void 0&&(e={});var n=wC(null);return n.options=Zt({async:!0,ssr:!1},e),n}var Td=function(e){var n=e.sideCar,t=Id(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,Zt({},t))};Td.isSideCarExport=!0;function bC(e,n){return e.useMedium(n),Td}var Dd=yC(),Fi=function(){},ma=l.forwardRef(function(e,n){var t=l.useRef(null),r=l.useState({onScrollCapture:Fi,onWheelCapture:Fi,onTouchMoveCapture:Fi}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,h=e.shards,g=e.sideCar,m=e.noRelative,C=e.noIsolation,p=e.inert,v=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,b=e.gapMode,S=Id(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=g,L=vC([t,n]),E=Zt(Zt({},S),o);return l.createElement(l.Fragment,null,f&&l.createElement(M,{sideCar:Dd,removeScrollBar:d,shards:h,noRelative:m,noIsolation:C,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:t,gapMode:b}),s?l.cloneElement(l.Children.only(i),Zt(Zt({},E),{ref:L})):l.createElement(y,Zt({},E,{className:u,ref:L}),i))});ma.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ma.classNames={fullWidth:pa,zeroRight:ga};var xC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=xC();return n&&e.setAttribute("nonce",n),e}function EC(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function MC(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var LC=function(){var e=0,n=null;return{add:function(t){e==0&&(n=SC())&&(EC(n,t),MC(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},NC=function(){var e=LC();return function(n,t){l.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&t])}},Od=function(){var e=NC(),n=function(t){var r=t.styles,o=t.dynamic;return e(r,o),null};return n},PC={left:0,top:0,right:0,gap:0},$i=function(e){return parseInt(e||"",10)||0},_C=function(e){var n=window.getComputedStyle(document.body),t=n[e==="padding"?"paddingLeft":"marginLeft"],r=n[e==="padding"?"paddingTop":"marginTop"],o=n[e==="padding"?"paddingRight":"marginRight"];return[$i(t),$i(r),$i(o)]},IC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return PC;var n=_C(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}},kC=Od(),dr="data-scroll-locked",TC=function(e,n,t,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return t===void 0&&(t="margin"),`
|
|
2
2
|
.`.concat(hC,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(i,"px ").concat(r,`;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
`)},Vd=function(){var e=parseInt(document.body.getAttribute(dr)||"0",10);return isFinite(e)?e:0},DC=function(){l.useEffect(function(){return document.body.setAttribute(dr,(Vd()+1).toString()),function(){var e=Vd()-1;e<=0?document.body.removeAttribute(dr):document.body.setAttribute(dr,e.toString())}},[])},OC=function(e){var n=e.noRelative,t=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;DC();var a=l.useMemo(function(){return IC(o)},[o]);return l.createElement(kC,{styles:TC(a,!n,o,t?"":"!important")})},zi=!1;if(typeof window<"u")try{var va=Object.defineProperty({},"passive",{get:function(){return zi=!0,!0}});window.addEventListener("test",va,va),window.removeEventListener("test",va,va)}catch{zi=!1}var fr=zi?{passive:!1}:!1,VC=function(e){return e.tagName==="TEXTAREA"},Hd=function(e,n){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[n]!=="hidden"&&!(t.overflowY===t.overflowX&&!VC(e)&&t[n]==="visible")},HC=function(e){return Hd(e,"overflowY")},AC=function(e){return Hd(e,"overflowX")},Ad=function(e,n){var t=n.ownerDocument,r=n;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Fd(e,r);if(o){var a=$d(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==t.body);return!1},FC=function(e){var n=e.scrollTop,t=e.scrollHeight,r=e.clientHeight;return[n,t,r]},$C=function(e){var n=e.scrollLeft,t=e.scrollWidth,r=e.clientWidth;return[n,t,r]},Fd=function(e,n){return e==="v"?HC(n):AC(n)},$d=function(e,n){return e==="v"?FC(n):$C(n)},zC=function(e,n){return e==="h"&&n==="rtl"?-1:1},BC=function(e,n,t,r,o){var a=zC(e,window.getComputedStyle(n).direction),s=a*r,i=t.target,u=n.contains(i),d=!1,f=s>0,h=0,g=0;do{if(!i)break;var m=$d(e,i),C=m[0],p=m[1],v=m[2],w=p-v-a*C;(C||w)&&Fd(e,i)&&(h+=w,g+=C);var y=i.parentNode;i=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&i!==document.body||u&&(n.contains(i)||n===i));return(f&&Math.abs(h)<1||!f&&Math.abs(g)<1)&&(d=!0),d},Ca=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zd=function(e){return[e.deltaX,e.deltaY]},Bd=function(e){return e&&"current"in e?e.current:e},ZC=function(e,n){return e[0]===n[0]&&e[1]===n[1]},WC=function(e){return`
|
|
39
39
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},RC=0,hr=[];function GC(e){var n=l.useRef([]),t=l.useRef([0,0]),r=l.useRef(),o=l.useState(RC++)[0],a=l.useState(Od)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=fC([e.lockRef.current],(e.shards||[]).map(Bd),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var w=Ca(p),y=t.current,b="deltaX"in p?p.deltaX:y[0]-w[0],S="deltaY"in p?p.deltaY:y[1]-w[1],M,L=p.target,E=Math.abs(b)>Math.abs(S)?"h":"v";if("touches"in p&&E==="h"&&L.type==="range")return!1;var I=window.getSelection(),k=I&&I.anchorNode,O=k?k===L||k.contains(L):!1;if(O)return!1;var H=Ad(E,L);if(!H)return!0;if(H?M=E:(M=E==="v"?"h":"v",H=Ad(E,L)),!H)return!1;if(!r.current&&"changedTouches"in p&&(b||S)&&(r.current=M),!M)return!0;var V=r.current||M;return BC(V,v,p,V==="h"?b:S)},[]),u=l.useCallback(function(p){var v=p;if(!(!hr.length||hr[hr.length-1]!==a)){var w="deltaY"in v?zd(v):Ca(v),y=n.current.filter(function(M){return M.name===v.type&&(M.target===v.target||v.target===M.shadowParent)&&ZC(M.delta,w)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var b=(s.current.shards||[]).map(Bd).filter(Boolean).filter(function(M){return M.contains(v.target)}),S=b.length>0?i(v,b[0]):!s.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),d=l.useCallback(function(p,v,w,y){var b={name:p,delta:v,target:w,should:y,shadowParent:jC(w)};n.current.push(b),setTimeout(function(){n.current=n.current.filter(function(S){return S!==b})},1)},[]),f=l.useCallback(function(p){t.current=Ca(p),r.current=void 0},[]),h=l.useCallback(function(p){d(p.type,zd(p),p.target,i(p,e.lockRef.current))},[]),g=l.useCallback(function(p){d(p.type,Ca(p),p.target,i(p,e.lockRef.current))},[]);l.useEffect(function(){return hr.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",u,fr),document.addEventListener("touchmove",u,fr),document.addEventListener("touchstart",f,fr),function(){hr=hr.filter(function(p){return p!==a}),document.removeEventListener("wheel",u,fr),document.removeEventListener("touchmove",u,fr),document.removeEventListener("touchstart",f,fr)}},[]);var m=e.removeScrollBar,C=e.inert;return l.createElement(l.Fragment,null,C?l.createElement(a,{styles:WC(o)}):null,m?l.createElement(OC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function jC(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const YC=bC(Dd,GC);var Ur=l.forwardRef(function(e,n){return l.createElement(ma,Zt({},e,{ref:n,sideCar:YC}))});Ur.classNames=ma.classNames;var UC=[" ","Enter","ArrowUp","ArrowDown"],qC=[" ","Enter"],Dn="Select",[wa,ya,KC]=Uo(Dn),[gr]=nt(Dn,[KC,gn]),ba=gn(),[XC,pn]=gr(Dn),[QC,JC]=gr(Dn),Zd=e=>{const{__scopeSelect:n,children:t,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:u,dir:d,name:f,autoComplete:h,disabled:g,required:m,form:C}=e,p=ba(n),[v,w]=l.useState(null),[y,b]=l.useState(null),[S,M]=l.useState(!1),L=ar(d),[E,I]=ht({prop:r,defaultProp:o??!1,onChange:a,caller:Dn}),[k,O]=ht({prop:s,defaultProp:i,onChange:u,caller:Dn}),H=l.useRef(null),V=v?C||!!v.closest("form"):!0,[Y,$]=l.useState(new Set),U=Array.from(Y).map(T=>T.props.value).join(";");return c.jsx(jr,{...p,children:c.jsxs(XC,{required:m,scope:n,trigger:v,onTriggerChange:w,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:S,onValueNodeHasChildrenChange:M,contentId:qe(),value:k,onValueChange:O,open:E,onOpenChange:I,dir:L,triggerPointerDownPosRef:H,disabled:g,children:[c.jsx(wa.Provider,{scope:n,children:c.jsx(QC,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(T=>{$(W=>new Set(W).add(T))},[]),onNativeOptionRemove:l.useCallback(T=>{$(W=>{const P=new Set(W);return P.delete(T),P})},[]),children:t})}),V?c.jsxs(u2,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:h,value:k,onChange:T=>O(T.target.value),disabled:g,form:C,children:[k===void 0?c.jsx("option",{value:""}):null,Array.from(Y)]},U):null]})})};Zd.displayName=Dn;var Wd="SelectTrigger",Rd=l.forwardRef((e,n)=>{const{__scopeSelect:t,disabled:r=!1,...o}=e,a=ba(t),s=pn(Wd,t),i=s.disabled||r,u=he(n,s.onTriggerChange),d=ya(t),f=l.useRef("touch"),[h,g,m]=f2(p=>{const v=d().filter(b=>!b.disabled),w=v.find(b=>b.value===s.value),y=h2(v,p,w);y!==void 0&&s.onValueChange(y.value)}),C=p=>{i||(s.onOpenChange(!0),m()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return c.jsx(Yr,{asChild:!0,...a,children:c.jsx(oe.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":d2(s.value)?"":void 0,...o,ref:u,onClick:ne(o.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&C(p)}),onPointerDown:ne(o.onPointerDown,p=>{f.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(C(p),p.preventDefault())}),onKeyDown:ne(o.onKeyDown,p=>{const v=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&g(p.key),!(v&&p.key===" ")&&UC.includes(p.key)&&(C(),p.preventDefault())})})})});Rd.displayName=Wd;var Gd="SelectValue",jd=l.forwardRef((e,n)=>{const{__scopeSelect:t,className:r,style:o,children:a,placeholder:s="",...i}=e,u=pn(Gd,t),{onValueNodeHasChildrenChange:d}=u,f=a!==void 0,h=he(n,u.onValueNodeChange);return He(()=>{d(f)},[d,f]),c.jsx(oe.span,{...i,ref:h,style:{pointerEvents:"none"},children:d2(u.value)?c.jsx(c.Fragment,{children:s}):a})});jd.displayName=Gd;var ew="SelectIcon",Yd=l.forwardRef((e,n)=>{const{__scopeSelect:t,children:r,...o}=e;return c.jsx(oe.span,{"aria-hidden":!0,...o,ref:n,children:r||"▼"})});Yd.displayName=ew;var tw="SelectPortal",Ud=e=>c.jsx(Nd,{asChild:!0,...e});Ud.displayName=tw;var On="SelectContent",qd=l.forwardRef((e,n)=>{const t=pn(On,e.__scopeSelect),[r,o]=l.useState();if(He(()=>{o(new DocumentFragment)},[]),!t.open){const a=r;return a?Dr.createPortal(c.jsx(Kd,{scope:e.__scopeSelect,children:c.jsx(wa.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),a):null}return c.jsx(Xd,{...e,ref:n})});qd.displayName=On;var Lt=10,[Kd,mn]=gr(On),nw="SelectContentImpl",rw=Qv("SelectContent.RemoveScroll"),Xd=l.forwardRef((e,n)=>{const{__scopeSelect:t,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:u,align:d,alignOffset:f,arrowPadding:h,collisionBoundary:g,collisionPadding:m,sticky:C,hideWhenDetached:p,avoidCollisions:v,...w}=e,y=pn(On,t),[b,S]=l.useState(null),[M,L]=l.useState(null),E=he(n,F=>S(F)),[I,k]=l.useState(null),[O,H]=l.useState(null),V=ya(t),[Y,$]=l.useState(!1),U=l.useRef(!1);l.useEffect(()=>{if(b)return ha(b)},[b]),qo();const T=l.useCallback(F=>{const[R,...Q]=V().map(j=>j.ref.current),[re]=Q.slice(-1),te=document.activeElement;for(const j of F)if(j===te||(j==null||j.scrollIntoView({block:"nearest"}),j===R&&M&&(M.scrollTop=0),j===re&&M&&(M.scrollTop=M.scrollHeight),j==null||j.focus(),document.activeElement!==te))return},[V,M]),W=l.useCallback(()=>T([I,b]),[T,I,b]);l.useEffect(()=>{Y&&W()},[Y,W]);const{onOpenChange:P,triggerPointerDownPosRef:z}=y;l.useEffect(()=>{if(b){let F={x:0,y:0};const R=re=>{var te,j;F={x:Math.abs(Math.round(re.pageX)-(((te=z.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(re.pageY)-(((j=z.current)==null?void 0:j.y)??0))}},Q=re=>{F.x<=10&&F.y<=10?re.preventDefault():b.contains(re.target)||P(!1),document.removeEventListener("pointermove",R),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",R),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",R),document.removeEventListener("pointerup",Q,{capture:!0})}}},[b,P,z]),l.useEffect(()=>{const F=()=>P(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[P]);const[q,K]=f2(F=>{const R=V().filter(te=>!te.disabled),Q=R.find(te=>te.ref.current===document.activeElement),re=h2(R,F,Q);re&&setTimeout(()=>re.ref.current.focus())}),Z=l.useCallback((F,R,Q)=>{const re=!U.current&&!Q;(y.value!==void 0&&y.value===R||re)&&(k(F),re&&(U.current=!0))},[y.value]),A=l.useCallback(()=>b==null?void 0:b.focus(),[b]),_=l.useCallback((F,R,Q)=>{const re=!U.current&&!Q;(y.value!==void 0&&y.value===R||re)&&H(F)},[y.value]),B=r==="popper"?Bi:Qd,G=B===Bi?{side:i,sideOffset:u,align:d,alignOffset:f,arrowPadding:h,collisionBoundary:g,collisionPadding:m,sticky:C,hideWhenDetached:p,avoidCollisions:v}:{};return c.jsx(Kd,{scope:t,content:b,viewport:M,onViewportChange:L,itemRefCallback:Z,selectedItem:I,onItemLeave:A,itemTextRefCallback:_,focusSelectedItem:W,selectedItemText:O,position:r,isPositioned:Y,searchRef:q,children:c.jsx(Ur,{as:rw,allowPinchZoom:!0,children:c.jsx(Wr,{asChild:!0,trapped:y.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:ne(o,F=>{var R;(R=y.trigger)==null||R.focus({preventScroll:!0}),F.preventDefault()}),children:c.jsx(kn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:c.jsx(B,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:F=>F.preventDefault(),...w,...G,onPlaced:()=>$(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:ne(w.onKeyDown,F=>{const R=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!R&&F.key.length===1&&K(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let re=V().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(F.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const te=F.target,j=re.indexOf(te);re=re.slice(j+1)}setTimeout(()=>T(re)),F.preventDefault()}})})})})})})});Xd.displayName=nw;var ow="SelectItemAlignedPosition",Qd=l.forwardRef((e,n)=>{const{__scopeSelect:t,onPlaced:r,...o}=e,a=pn(On,t),s=mn(On,t),[i,u]=l.useState(null),[d,f]=l.useState(null),h=he(n,E=>f(E)),g=ya(t),m=l.useRef(!1),C=l.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:w,focusSelectedItem:y}=s,b=l.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&d&&p&&v&&w){const E=a.trigger.getBoundingClientRect(),I=d.getBoundingClientRect(),k=a.valueNode.getBoundingClientRect(),O=w.getBoundingClientRect();if(a.dir!=="rtl"){const te=O.left-I.left,j=k.left-te,ee=E.left-j,ie=E.width+ee,le=Math.max(ie,I.width),we=window.innerWidth-Lt,Te=vi(j,[Lt,Math.max(Lt,we-le)]);i.style.minWidth=ie+"px",i.style.left=Te+"px"}else{const te=I.right-O.right,j=window.innerWidth-k.right-te,ee=window.innerWidth-E.right-j,ie=E.width+ee,le=Math.max(ie,I.width),we=window.innerWidth-Lt,Te=vi(j,[Lt,Math.max(Lt,we-le)]);i.style.minWidth=ie+"px",i.style.right=Te+"px"}const H=g(),V=window.innerHeight-Lt*2,Y=p.scrollHeight,$=window.getComputedStyle(d),U=parseInt($.borderTopWidth,10),T=parseInt($.paddingTop,10),W=parseInt($.borderBottomWidth,10),P=parseInt($.paddingBottom,10),z=U+T+Y+P+W,q=Math.min(v.offsetHeight*5,z),K=window.getComputedStyle(p),Z=parseInt(K.paddingTop,10),A=parseInt(K.paddingBottom,10),_=E.top+E.height/2-Lt,B=V-_,G=v.offsetHeight/2,F=v.offsetTop+G,R=U+T+F,Q=z-R;if(R<=_){const te=H.length>0&&v===H[H.length-1].ref.current;i.style.bottom="0px";const j=d.clientHeight-p.offsetTop-p.offsetHeight,ee=Math.max(B,G+(te?A:0)+j+W),ie=R+ee;i.style.height=ie+"px"}else{const te=H.length>0&&v===H[0].ref.current;i.style.top="0px";const ee=Math.max(_,U+p.offsetTop+(te?Z:0)+G)+Q;i.style.height=ee+"px",p.scrollTop=R-_+p.offsetTop}i.style.margin=`${Lt}px 0`,i.style.minHeight=q+"px",i.style.maxHeight=V+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[g,a.trigger,a.valueNode,i,d,p,v,w,a.dir,r]);He(()=>b(),[b]);const[S,M]=l.useState();He(()=>{d&&M(window.getComputedStyle(d).zIndex)},[d]);const L=l.useCallback(E=>{E&&C.current===!0&&(b(),y==null||y(),C.current=!1)},[b,y]);return c.jsx(sw,{scope:t,contentWrapper:i,shouldExpandOnScrollRef:m,onScrollButtonChange:L,children:c.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:c.jsx(oe.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Qd.displayName=ow;var aw="SelectPopperPosition",Bi=l.forwardRef((e,n)=>{const{__scopeSelect:t,align:r="start",collisionPadding:o=Lt,...a}=e,s=ba(t);return c.jsx(ia,{...s,...a,ref:n,align:r,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)"}})});Bi.displayName=aw;var[sw,Zi]=gr(On,{}),Wi="SelectViewport",Jd=l.forwardRef((e,n)=>{const{__scopeSelect:t,nonce:r,...o}=e,a=mn(Wi,t),s=Zi(Wi,t),i=he(n,a.onViewportChange),u=l.useRef(0);return c.jsxs(c.Fragment,{children:[c.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:r}),c.jsx(wa.Slot,{scope:t,children:c.jsx(oe.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ne(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:g}=s;if(g!=null&&g.current&&h){const m=Math.abs(u.current-f.scrollTop);if(m>0){const C=window.innerHeight-Lt*2,p=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),w=Math.max(p,v);if(w<C){const y=w+m,b=Math.min(C,y),S=y-b;h.style.height=b+"px",h.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,h.style.justifyContent="flex-end")}}}u.current=f.scrollTop})})})]})});Jd.displayName=Wi;var e2="SelectGroup",[iw,lw]=gr(e2),cw=l.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e,o=qe();return c.jsx(iw,{scope:t,id:o,children:c.jsx(oe.div,{role:"group","aria-labelledby":o,...r,ref:n})})});cw.displayName=e2;var t2="SelectLabel",n2=l.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e,o=lw(t2,t);return c.jsx(oe.div,{id:o.id,...r,ref:n})});n2.displayName=t2;var xa="SelectItem",[uw,r2]=gr(xa),o2=l.forwardRef((e,n)=>{const{__scopeSelect:t,value:r,disabled:o=!1,textValue:a,...s}=e,i=pn(xa,t),u=mn(xa,t),d=i.value===r,[f,h]=l.useState(a??""),[g,m]=l.useState(!1),C=he(n,y=>{var b;return(b=u.itemRefCallback)==null?void 0:b.call(u,y,r,o)}),p=qe(),v=l.useRef("touch"),w=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new 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 c.jsx(uw,{scope:t,value:r,disabled:o,textId:p,isSelected:d,onItemTextChange:l.useCallback(y=>{h(b=>b||((y==null?void 0:y.textContent)??"").trim())},[]),children:c.jsx(wa.ItemSlot,{scope:t,value:r,disabled:o,textValue:f,children:c.jsx(oe.div,{role:"option","aria-labelledby":p,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:C,onFocus:ne(s.onFocus,()=>m(!0)),onBlur:ne(s.onBlur,()=>m(!1)),onClick:ne(s.onClick,()=>{v.current!=="mouse"&&w()}),onPointerUp:ne(s.onPointerUp,()=>{v.current==="mouse"&&w()}),onPointerDown:ne(s.onPointerDown,y=>{v.current=y.pointerType}),onPointerMove:ne(s.onPointerMove,y=>{var b;v.current=y.pointerType,o?(b=u.onItemLeave)==null||b.call(u):v.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ne(s.onPointerLeave,y=>{var b;y.currentTarget===document.activeElement&&((b=u.onItemLeave)==null||b.call(u))}),onKeyDown:ne(s.onKeyDown,y=>{var S;((S=u.searchRef)==null?void 0:S.current)!==""&&y.key===" "||(qC.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});o2.displayName=xa;var qr="SelectItemText",a2=l.forwardRef((e,n)=>{const{__scopeSelect:t,className:r,style:o,...a}=e,s=pn(qr,t),i=mn(qr,t),u=r2(qr,t),d=JC(qr,t),[f,h]=l.useState(null),g=he(n,w=>h(w),u.onItemTextChange,w=>{var y;return(y=i.itemTextRefCallback)==null?void 0:y.call(i,w,u.value,u.disabled)}),m=f==null?void 0:f.textContent,C=l.useMemo(()=>c.jsx("option",{value:u.value,disabled:u.disabled,children:m},u.value),[u.disabled,u.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=d;return He(()=>(p(C),()=>v(C)),[p,v,C]),c.jsxs(c.Fragment,{children:[c.jsx(oe.span,{id:u.textId,...a,ref:g}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Dr.createPortal(a.children,s.valueNode):null]})});a2.displayName=qr;var s2="SelectItemIndicator",i2=l.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e;return r2(s2,t).isSelected?c.jsx(oe.span,{"aria-hidden":!0,...r,ref:n}):null});i2.displayName=s2;var Ri="SelectScrollUpButton",dw=l.forwardRef((e,n)=>{const t=mn(Ri,e.__scopeSelect),r=Zi(Ri,e.__scopeSelect),[o,a]=l.useState(!1),s=he(n,r.onScrollButtonChange);return He(()=>{if(t.viewport&&t.isPositioned){let i=function(){const d=u.scrollTop>0;a(d)};const u=t.viewport;return i(),u.addEventListener("scroll",i),()=>u.removeEventListener("scroll",i)}},[t.viewport,t.isPositioned]),o?c.jsx(l2,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:u}=t;i&&u&&(i.scrollTop=i.scrollTop-u.offsetHeight)}}):null});dw.displayName=Ri;var Gi="SelectScrollDownButton",fw=l.forwardRef((e,n)=>{const t=mn(Gi,e.__scopeSelect),r=Zi(Gi,e.__scopeSelect),[o,a]=l.useState(!1),s=he(n,r.onScrollButtonChange);return He(()=>{if(t.viewport&&t.isPositioned){let i=function(){const d=u.scrollHeight-u.clientHeight,f=Math.ceil(u.scrollTop)<d;a(f)};const u=t.viewport;return i(),u.addEventListener("scroll",i),()=>u.removeEventListener("scroll",i)}},[t.viewport,t.isPositioned]),o?c.jsx(l2,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:u}=t;i&&u&&(i.scrollTop=i.scrollTop+u.offsetHeight)}}):null});fw.displayName=Gi;var l2=l.forwardRef((e,n)=>{const{__scopeSelect:t,onAutoScroll:r,...o}=e,a=mn("SelectScrollButton",t),s=l.useRef(null),i=ya(t),u=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>u(),[u]),He(()=>{var f;const d=i().find(h=>h.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),c.jsx(oe.div,{"aria-hidden":!0,...o,ref:n,style:{flexShrink:0,...o.style},onPointerDown:ne(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:ne(o.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:ne(o.onPointerLeave,()=>{u()})})}),hw="SelectSeparator",c2=l.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e;return c.jsx(oe.div,{"aria-hidden":!0,...r,ref:n})});c2.displayName=hw;var ji="SelectArrow",gw=l.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e,o=ba(t),a=pn(ji,t),s=mn(ji,t);return a.open&&s.position==="popper"?c.jsx(la,{...o,...r,ref:n}):null});gw.displayName=ji;var pw="SelectBubbleInput",u2=l.forwardRef(({__scopeSelect:e,value:n,...t},r)=>{const o=l.useRef(null),a=he(r,o),s=ca(n);return l.useEffect(()=>{const i=o.current;if(!i)return;const u=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(u,"value").set;if(s!==n&&f){const h=new Event("change",{bubbles:!0});f.call(i,n),i.dispatchEvent(h)}},[s,n]),c.jsx(oe.select,{...t,style:{...Pd,...t.style},ref:a,defaultValue:n})});u2.displayName=pw;function d2(e){return e===""||e===void 0}function f2(e){const n=Re(e),t=l.useRef(""),r=l.useRef(0),o=l.useCallback(s=>{const i=t.current+s;n(i),function u(d){t.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>u(""),1e3))}(i)},[n]),a=l.useCallback(()=>{t.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[t,o,a]}function h2(e,n,t){const o=n.length>1&&Array.from(n).every(d=>d===n[0])?n[0]:n,a=t?e.indexOf(t):-1;let s=mw(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==t));const u=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==t?u:void 0}function mw(e,n){return e.map((t,r)=>e[(n+r)%e.length])}var g2=Zd,vw=Rd,Cw=jd,ww=Yd,yw=Ud,bw=qd,xw=Jd,Sw=n2,Ew=o2,Mw=a2,Lw=i2,Nw=c2;const p2=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M8.41421 12L15.7071 19.2929C16.0976 19.6834 16.0976 20.3166 15.7071 20.7071C15.3166 21.0976 14.6834 21.0976 14.2929 20.7071L6.29289 12.7071C5.90237 12.3166 5.90237 11.6834 6.29289 11.2929L14.2929 3.29289C14.6834 2.90237 15.3166 2.90237 15.7071 3.29289C16.0976 3.68342 16.0976 4.31658 15.7071 4.70711L8.41421 12Z",fill:"currentColor"})),m2=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M15.5858 12L8.29289 4.70711C7.90237 4.31658 7.90237 3.68342 8.29289 3.29289C8.68342 2.90237 9.31658 2.90237 9.70711 3.29289L17.7071 11.2929C18.0976 11.6834 18.0976 12.3166 17.7071 12.7071L9.70711 20.7071C9.31658 21.0976 8.68342 21.0976 8.29289 20.7071C7.90237 20.3166 7.90237 19.6834 8.29289 19.2929L15.5858 12Z",fill:"currentColor"}));function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Yi.apply(null,arguments)}function v2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ui(e,n){return Ui=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Ui(e,n)}function Pw(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Ui(e,n)}var C2=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function _w(e,n){return!!(e===n||C2(e)&&C2(n))}function Iw(e,n){if(e.length!==n.length)return!1;for(var t=0;t<e.length;t++)if(!_w(e[t],n[t]))return!1;return!0}function qi(e,n){n===void 0&&(n=Iw);var t,r=[],o,a=!1;function s(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];return a&&t===this&&n(i,r)||(o=e.apply(this,i),a=!0,t=this,r=i),o}return s}var kw=typeof performance=="object"&&typeof performance.now=="function",w2=kw?function(){return performance.now()}:function(){return Date.now()};function y2(e){cancelAnimationFrame(e.id)}function Tw(e,n){var t=w2();function r(){w2()-t>=n?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var Ki=-1;function b2(e){if(e===void 0&&(e=!1),Ki===-1||e){var n=document.createElement("div"),t=n.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(n),Ki=n.offsetWidth-n.clientWidth,document.body.removeChild(n)}return Ki}var pr=null;function x2(e){if(e===void 0&&(e=!1),pr===null||e){var n=document.createElement("div"),t=n.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",n.appendChild(r),document.body.appendChild(n),n.scrollLeft>0?pr="positive-descending":(n.scrollLeft=1,n.scrollLeft===0?pr="negative":pr="positive-ascending"),document.body.removeChild(n),pr}return pr}process.env.NODE_ENV;var Dw=150,Ow=function(n,t){return n},Sa=null,Ea=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Sa=new WeakSet,Ea=new WeakSet);function Vw(e){var n,t=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,i=e.getStopIndexForStartIndex,u=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return n=function(h){Pw(g,h);function g(C){var p;return p=h.call(this,C)||this,p._instanceProps=u(p.props,v2(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:v2(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=qi(function(v,w,y,b){return p.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:w,visibleStartIndex:y,visibleStopIndex:b})}),p._callOnScroll=void 0,p._callOnScroll=qi(function(v,w,y){return p.props.onScroll({scrollDirection:v,scrollOffset:w,scrollUpdateWasRequested:y})}),p._getItemStyle=void 0,p._getItemStyle=function(v){var w=p.props,y=w.direction,b=w.itemSize,S=w.layout,M=p._getItemStyleCache(d&&b,d&&S,d&&y),L;if(M.hasOwnProperty(v))L=M[v];else{var E=t(p.props,v,p._instanceProps),I=o(p.props,v,p._instanceProps),k=y==="horizontal"||S==="horizontal",O=y==="rtl",H=k?E:0;M[v]=L={position:"absolute",left:O?void 0:H,right:O?H:void 0,top:k?0:E,height:k?"100%":I,width:k?I:"100%"}}return L},p._getItemStyleCache=void 0,p._getItemStyleCache=qi(function(v,w,y){return{}}),p._onScrollHorizontal=function(v){var w=v.currentTarget,y=w.clientWidth,b=w.scrollLeft,S=w.scrollWidth;p.setState(function(M){if(M.scrollOffset===b)return null;var L=p.props.direction,E=b;if(L==="rtl")switch(x2()){case"negative":E=-b;break;case"positive-descending":E=S-y-b;break}return E=Math.max(0,Math.min(E,S-y)),{isScrolling:!0,scrollDirection:M.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(v){var w=v.currentTarget,y=w.clientHeight,b=w.scrollHeight,S=w.scrollTop;p.setState(function(M){if(M.scrollOffset===S)return null;var L=Math.max(0,Math.min(S,b-y));return{isScrolling:!0,scrollDirection:M.scrollOffset<L?"forward":"backward",scrollOffset:L,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(v){var w=p.props.outerRef;p._outerRef=v,typeof w=="function"?w(v):w!=null&&typeof w=="object"&&w.hasOwnProperty("current")&&(w.current=v)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&y2(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=Tw(p._resetIsScrolling,Dw)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}g.getDerivedStateFromProps=function(p,v){return Hw(p,v),f(p),null};var m=g.prototype;return m.scrollTo=function(p){p=Math.max(0,p),this.setState(function(v){return v.scrollOffset===p?null:{scrollDirection:v.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},m.scrollToItem=function(p,v){v===void 0&&(v="auto");var w=this.props,y=w.itemCount,b=w.layout,S=this.state.scrollOffset;p=Math.max(0,Math.min(p,y-1));var M=0;if(this._outerRef){var L=this._outerRef;b==="vertical"?M=L.scrollWidth>L.clientWidth?b2():0:M=L.scrollHeight>L.clientHeight?b2():0}this.scrollTo(a(this.props,p,v,S,this._instanceProps,M))},m.componentDidMount=function(){var p=this.props,v=p.direction,w=p.initialScrollOffset,y=p.layout;if(typeof w=="number"&&this._outerRef!=null){var b=this._outerRef;v==="horizontal"||y==="horizontal"?b.scrollLeft=w:b.scrollTop=w}this._callPropsCallbacks()},m.componentDidUpdate=function(){var p=this.props,v=p.direction,w=p.layout,y=this.state,b=y.scrollOffset,S=y.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var M=this._outerRef;if(v==="horizontal"||w==="horizontal")if(v==="rtl")switch(x2()){case"negative":M.scrollLeft=-b;break;case"positive-ascending":M.scrollLeft=b;break;default:var L=M.clientWidth,E=M.scrollWidth;M.scrollLeft=E-L-b;break}else M.scrollLeft=b;else M.scrollTop=b}this._callPropsCallbacks()},m.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&y2(this._resetIsScrollingTimeoutId)},m.render=function(){var p=this.props,v=p.children,w=p.className,y=p.direction,b=p.height,S=p.innerRef,M=p.innerElementType,L=p.innerTagName,E=p.itemCount,I=p.itemData,k=p.itemKey,O=k===void 0?Ow:k,H=p.layout,V=p.outerElementType,Y=p.outerTagName,$=p.style,U=p.useIsScrolling,T=p.width,W=this.state.isScrolling,P=y==="horizontal"||H==="horizontal",z=P?this._onScrollHorizontal:this._onScrollVertical,q=this._getRangeToRender(),K=q[0],Z=q[1],A=[];if(E>0)for(var _=K;_<=Z;_++)A.push(D.createElement(v,{data:I,key:O(_,I),index:_,isScrolling:U?W:void 0,style:this._getItemStyle(_)}));var B=r(this.props,this._instanceProps);return D.createElement(V||Y||"div",{className:w,onScroll:z,ref:this._outerRefSetter,style:Yi({position:"relative",height:b,width:T,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},$)},D.createElement(M||L||"div",{children:A,ref:S,style:{height:P?"100%":B,pointerEvents:W?"none":void 0,width:P?B:"100%"}}))},m._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var v=this._getRangeToRender(),w=v[0],y=v[1],b=v[2],S=v[3];this._callOnItemsRendered(w,y,b,S)}}if(typeof this.props.onScroll=="function"){var M=this.state,L=M.scrollDirection,E=M.scrollOffset,I=M.scrollUpdateWasRequested;this._callOnScroll(L,E,I)}},m._getRangeToRender=function(){var p=this.props,v=p.itemCount,w=p.overscanCount,y=this.state,b=y.isScrolling,S=y.scrollDirection,M=y.scrollOffset;if(v===0)return[0,0,0,0];var L=s(this.props,M,this._instanceProps),E=i(this.props,L,M,this._instanceProps),I=!b||S==="backward"?Math.max(1,w):1,k=!b||S==="forward"?Math.max(1,w):1;return[Math.max(0,L-I),Math.max(0,Math.min(v-1,E+k)),L,E]},g}(D.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var Hw=function(n,t){var r=n.children,o=n.direction,a=n.height,s=n.layout,i=n.innerTagName,u=n.outerTagName,d=n.width,f=t.instance;if(process.env.NODE_ENV!=="production"){(i!=null||u!=null)&&Ea&&!Ea.has(f)&&(Ea.add(f),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var h=o==="horizontal"||s==="horizontal";switch(o){case"horizontal":case"vertical":Sa&&!Sa.has(f)&&(Sa.add(f),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+o+'" was specified.'))}switch(s){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+s+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(h&&typeof d!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(d===null?"null":typeof d)+'" was specified.'));if(!h&&typeof a!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(a===null?"null":typeof a)+'" was specified.'))}},S2=Vw({getItemOffset:function(n,t){var r=n.itemSize;return t*r},getItemSize:function(n,t){var r=n.itemSize;return r},getEstimatedTotalSize:function(n){var t=n.itemCount,r=n.itemSize;return r*t},getOffsetForIndexAndAlignment:function(n,t,r,o,a,s){var i=n.direction,u=n.height,d=n.itemCount,f=n.itemSize,h=n.layout,g=n.width,m=i==="horizontal"||h==="horizontal",C=m?g:u,p=Math.max(0,d*f-C),v=Math.min(p,t*f),w=Math.max(0,t*f-C+f+s);switch(r==="smart"&&(o>=w-C&&o<=v+C?r="auto":r="center"),r){case"start":return v;case"end":return w;case"center":{var y=Math.round(w+(v-w)/2);return y<Math.ceil(C/2)?0:y>p+Math.floor(C/2)?p:y}case"auto":default:return o>=w&&o<=v?o:o<w?w:v}},getStartIndexForOffset:function(n,t){var r=n.itemCount,o=n.itemSize;return Math.max(0,Math.min(r-1,Math.floor(t/o)))},getStopIndexForStartIndex:function(n,t,r){var o=n.direction,a=n.height,s=n.itemCount,i=n.itemSize,u=n.layout,d=n.width,f=o==="horizontal"||u==="horizontal",h=t*i,g=f?d:a,m=Math.ceil((g+r-h)/i);return Math.max(0,Math.min(s-1,t+m-1))},initInstanceProps:function(n){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(n){var t=n.itemSize;if(process.env.NODE_ENV!=="production"&&typeof t!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(t===null?"null":typeof t)+'" was specified.'))}});/**
|
|
41
|
+
`)},RC=0,hr=[];function GC(e){var n=l.useRef([]),t=l.useRef([0,0]),r=l.useRef(),o=l.useState(RC++)[0],a=l.useState(Od)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=fC([e.lockRef.current],(e.shards||[]).map(Bd),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var w=Ca(p),y=t.current,b="deltaX"in p?p.deltaX:y[0]-w[0],S="deltaY"in p?p.deltaY:y[1]-w[1],M,L=p.target,E=Math.abs(b)>Math.abs(S)?"h":"v";if("touches"in p&&E==="h"&&L.type==="range")return!1;var I=window.getSelection(),k=I&&I.anchorNode,O=k?k===L||k.contains(L):!1;if(O)return!1;var A=Ad(E,L);if(!A)return!0;if(A?M=E:(M=E==="v"?"h":"v",A=Ad(E,L)),!A)return!1;if(!r.current&&"changedTouches"in p&&(b||S)&&(r.current=M),!M)return!0;var V=r.current||M;return BC(V,v,p,V==="h"?b:S)},[]),u=l.useCallback(function(p){var v=p;if(!(!hr.length||hr[hr.length-1]!==a)){var w="deltaY"in v?zd(v):Ca(v),y=n.current.filter(function(M){return M.name===v.type&&(M.target===v.target||v.target===M.shadowParent)&&ZC(M.delta,w)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var b=(s.current.shards||[]).map(Bd).filter(Boolean).filter(function(M){return M.contains(v.target)}),S=b.length>0?i(v,b[0]):!s.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),d=l.useCallback(function(p,v,w,y){var b={name:p,delta:v,target:w,should:y,shadowParent:jC(w)};n.current.push(b),setTimeout(function(){n.current=n.current.filter(function(S){return S!==b})},1)},[]),f=l.useCallback(function(p){t.current=Ca(p),r.current=void 0},[]),h=l.useCallback(function(p){d(p.type,zd(p),p.target,i(p,e.lockRef.current))},[]),g=l.useCallback(function(p){d(p.type,Ca(p),p.target,i(p,e.lockRef.current))},[]);l.useEffect(function(){return hr.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",u,fr),document.addEventListener("touchmove",u,fr),document.addEventListener("touchstart",f,fr),function(){hr=hr.filter(function(p){return p!==a}),document.removeEventListener("wheel",u,fr),document.removeEventListener("touchmove",u,fr),document.removeEventListener("touchstart",f,fr)}},[]);var m=e.removeScrollBar,C=e.inert;return l.createElement(l.Fragment,null,C?l.createElement(a,{styles:WC(o)}):null,m?l.createElement(OC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function jC(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const YC=bC(Dd,GC);var Ur=l.forwardRef(function(e,n){return l.createElement(ma,Zt({},e,{ref:n,sideCar:YC}))});Ur.classNames=ma.classNames;var UC=[" ","Enter","ArrowUp","ArrowDown"],qC=[" ","Enter"],Dn="Select",[wa,ya,KC]=Uo(Dn),[gr]=nt(Dn,[KC,gn]),ba=gn(),[XC,pn]=gr(Dn),[QC,JC]=gr(Dn),Zd=e=>{const{__scopeSelect:n,children:t,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:u,dir:d,name:f,autoComplete:h,disabled:g,required:m,form:C}=e,p=ba(n),[v,w]=l.useState(null),[y,b]=l.useState(null),[S,M]=l.useState(!1),L=ar(d),[E,I]=ht({prop:r,defaultProp:o??!1,onChange:a,caller:Dn}),[k,O]=ht({prop:s,defaultProp:i,onChange:u,caller:Dn}),A=l.useRef(null),V=v?C||!!v.closest("form"):!0,[Y,$]=l.useState(new Set),U=Array.from(Y).map(T=>T.props.value).join(";");return c.jsx(jr,{...p,children:c.jsxs(XC,{required:m,scope:n,trigger:v,onTriggerChange:w,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:S,onValueNodeHasChildrenChange:M,contentId:qe(),value:k,onValueChange:O,open:E,onOpenChange:I,dir:L,triggerPointerDownPosRef:A,disabled:g,children:[c.jsx(wa.Provider,{scope:n,children:c.jsx(QC,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(T=>{$(W=>new Set(W).add(T))},[]),onNativeOptionRemove:l.useCallback(T=>{$(W=>{const P=new Set(W);return P.delete(T),P})},[]),children:t})}),V?c.jsxs(u2,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:h,value:k,onChange:T=>O(T.target.value),disabled:g,form:C,children:[k===void 0?c.jsx("option",{value:""}):null,Array.from(Y)]},U):null]})})};Zd.displayName=Dn;var Wd="SelectTrigger",Rd=l.forwardRef((e,n)=>{const{__scopeSelect:t,disabled:r=!1,...o}=e,a=ba(t),s=pn(Wd,t),i=s.disabled||r,u=he(n,s.onTriggerChange),d=ya(t),f=l.useRef("touch"),[h,g,m]=f2(p=>{const v=d().filter(b=>!b.disabled),w=v.find(b=>b.value===s.value),y=h2(v,p,w);y!==void 0&&s.onValueChange(y.value)}),C=p=>{i||(s.onOpenChange(!0),m()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return c.jsx(Yr,{asChild:!0,...a,children:c.jsx(oe.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":d2(s.value)?"":void 0,...o,ref:u,onClick:ne(o.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&C(p)}),onPointerDown:ne(o.onPointerDown,p=>{f.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(C(p),p.preventDefault())}),onKeyDown:ne(o.onKeyDown,p=>{const v=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&g(p.key),!(v&&p.key===" ")&&UC.includes(p.key)&&(C(),p.preventDefault())})})})});Rd.displayName=Wd;var Gd="SelectValue",jd=l.forwardRef((e,n)=>{const{__scopeSelect:t,className:r,style:o,children:a,placeholder:s="",...i}=e,u=pn(Gd,t),{onValueNodeHasChildrenChange:d}=u,f=a!==void 0,h=he(n,u.onValueNodeChange);return He(()=>{d(f)},[d,f]),c.jsx(oe.span,{...i,ref:h,style:{pointerEvents:"none"},children:d2(u.value)?c.jsx(c.Fragment,{children:s}):a})});jd.displayName=Gd;var ew="SelectIcon",Yd=l.forwardRef((e,n)=>{const{__scopeSelect:t,children:r,...o}=e;return c.jsx(oe.span,{"aria-hidden":!0,...o,ref:n,children:r||"▼"})});Yd.displayName=ew;var tw="SelectPortal",Ud=e=>c.jsx(Nd,{asChild:!0,...e});Ud.displayName=tw;var On="SelectContent",qd=l.forwardRef((e,n)=>{const t=pn(On,e.__scopeSelect),[r,o]=l.useState();if(He(()=>{o(new DocumentFragment)},[]),!t.open){const a=r;return a?Dr.createPortal(c.jsx(Kd,{scope:e.__scopeSelect,children:c.jsx(wa.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),a):null}return c.jsx(Xd,{...e,ref:n})});qd.displayName=On;var Lt=10,[Kd,mn]=gr(On),nw="SelectContentImpl",rw=Qv("SelectContent.RemoveScroll"),Xd=l.forwardRef((e,n)=>{const{__scopeSelect:t,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:u,align:d,alignOffset:f,arrowPadding:h,collisionBoundary:g,collisionPadding:m,sticky:C,hideWhenDetached:p,avoidCollisions:v,...w}=e,y=pn(On,t),[b,S]=l.useState(null),[M,L]=l.useState(null),E=he(n,F=>S(F)),[I,k]=l.useState(null),[O,A]=l.useState(null),V=ya(t),[Y,$]=l.useState(!1),U=l.useRef(!1);l.useEffect(()=>{if(b)return ha(b)},[b]),qo();const T=l.useCallback(F=>{const[R,...Q]=V().map(j=>j.ref.current),[re]=Q.slice(-1),te=document.activeElement;for(const j of F)if(j===te||(j==null||j.scrollIntoView({block:"nearest"}),j===R&&M&&(M.scrollTop=0),j===re&&M&&(M.scrollTop=M.scrollHeight),j==null||j.focus(),document.activeElement!==te))return},[V,M]),W=l.useCallback(()=>T([I,b]),[T,I,b]);l.useEffect(()=>{Y&&W()},[Y,W]);const{onOpenChange:P,triggerPointerDownPosRef:z}=y;l.useEffect(()=>{if(b){let F={x:0,y:0};const R=re=>{var te,j;F={x:Math.abs(Math.round(re.pageX)-(((te=z.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(re.pageY)-(((j=z.current)==null?void 0:j.y)??0))}},Q=re=>{F.x<=10&&F.y<=10?re.preventDefault():b.contains(re.target)||P(!1),document.removeEventListener("pointermove",R),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",R),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",R),document.removeEventListener("pointerup",Q,{capture:!0})}}},[b,P,z]),l.useEffect(()=>{const F=()=>P(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[P]);const[q,K]=f2(F=>{const R=V().filter(te=>!te.disabled),Q=R.find(te=>te.ref.current===document.activeElement),re=h2(R,F,Q);re&&setTimeout(()=>re.ref.current.focus())}),Z=l.useCallback((F,R,Q)=>{const re=!U.current&&!Q;(y.value!==void 0&&y.value===R||re)&&(k(F),re&&(U.current=!0))},[y.value]),H=l.useCallback(()=>b==null?void 0:b.focus(),[b]),_=l.useCallback((F,R,Q)=>{const re=!U.current&&!Q;(y.value!==void 0&&y.value===R||re)&&A(F)},[y.value]),B=r==="popper"?Bi:Qd,G=B===Bi?{side:i,sideOffset:u,align:d,alignOffset:f,arrowPadding:h,collisionBoundary:g,collisionPadding:m,sticky:C,hideWhenDetached:p,avoidCollisions:v}:{};return c.jsx(Kd,{scope:t,content:b,viewport:M,onViewportChange:L,itemRefCallback:Z,selectedItem:I,onItemLeave:H,itemTextRefCallback:_,focusSelectedItem:W,selectedItemText:O,position:r,isPositioned:Y,searchRef:q,children:c.jsx(Ur,{as:rw,allowPinchZoom:!0,children:c.jsx(Wr,{asChild:!0,trapped:y.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:ne(o,F=>{var R;(R=y.trigger)==null||R.focus({preventScroll:!0}),F.preventDefault()}),children:c.jsx(kn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:c.jsx(B,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:F=>F.preventDefault(),...w,...G,onPlaced:()=>$(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:ne(w.onKeyDown,F=>{const R=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!R&&F.key.length===1&&K(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let re=V().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(F.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const te=F.target,j=re.indexOf(te);re=re.slice(j+1)}setTimeout(()=>T(re)),F.preventDefault()}})})})})})})});Xd.displayName=nw;var ow="SelectItemAlignedPosition",Qd=l.forwardRef((e,n)=>{const{__scopeSelect:t,onPlaced:r,...o}=e,a=pn(On,t),s=mn(On,t),[i,u]=l.useState(null),[d,f]=l.useState(null),h=he(n,E=>f(E)),g=ya(t),m=l.useRef(!1),C=l.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:w,focusSelectedItem:y}=s,b=l.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&d&&p&&v&&w){const E=a.trigger.getBoundingClientRect(),I=d.getBoundingClientRect(),k=a.valueNode.getBoundingClientRect(),O=w.getBoundingClientRect();if(a.dir!=="rtl"){const te=O.left-I.left,j=k.left-te,ee=E.left-j,ie=E.width+ee,le=Math.max(ie,I.width),we=window.innerWidth-Lt,Te=vi(j,[Lt,Math.max(Lt,we-le)]);i.style.minWidth=ie+"px",i.style.left=Te+"px"}else{const te=I.right-O.right,j=window.innerWidth-k.right-te,ee=window.innerWidth-E.right-j,ie=E.width+ee,le=Math.max(ie,I.width),we=window.innerWidth-Lt,Te=vi(j,[Lt,Math.max(Lt,we-le)]);i.style.minWidth=ie+"px",i.style.right=Te+"px"}const A=g(),V=window.innerHeight-Lt*2,Y=p.scrollHeight,$=window.getComputedStyle(d),U=parseInt($.borderTopWidth,10),T=parseInt($.paddingTop,10),W=parseInt($.borderBottomWidth,10),P=parseInt($.paddingBottom,10),z=U+T+Y+P+W,q=Math.min(v.offsetHeight*5,z),K=window.getComputedStyle(p),Z=parseInt(K.paddingTop,10),H=parseInt(K.paddingBottom,10),_=E.top+E.height/2-Lt,B=V-_,G=v.offsetHeight/2,F=v.offsetTop+G,R=U+T+F,Q=z-R;if(R<=_){const te=A.length>0&&v===A[A.length-1].ref.current;i.style.bottom="0px";const j=d.clientHeight-p.offsetTop-p.offsetHeight,ee=Math.max(B,G+(te?H:0)+j+W),ie=R+ee;i.style.height=ie+"px"}else{const te=A.length>0&&v===A[0].ref.current;i.style.top="0px";const ee=Math.max(_,U+p.offsetTop+(te?Z:0)+G)+Q;i.style.height=ee+"px",p.scrollTop=R-_+p.offsetTop}i.style.margin=`${Lt}px 0`,i.style.minHeight=q+"px",i.style.maxHeight=V+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[g,a.trigger,a.valueNode,i,d,p,v,w,a.dir,r]);He(()=>b(),[b]);const[S,M]=l.useState();He(()=>{d&&M(window.getComputedStyle(d).zIndex)},[d]);const L=l.useCallback(E=>{E&&C.current===!0&&(b(),y==null||y(),C.current=!1)},[b,y]);return c.jsx(sw,{scope:t,contentWrapper:i,shouldExpandOnScrollRef:m,onScrollButtonChange:L,children:c.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:c.jsx(oe.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Qd.displayName=ow;var aw="SelectPopperPosition",Bi=l.forwardRef((e,n)=>{const{__scopeSelect:t,align:r="start",collisionPadding:o=Lt,...a}=e,s=ba(t);return c.jsx(ia,{...s,...a,ref:n,align:r,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)"}})});Bi.displayName=aw;var[sw,Zi]=gr(On,{}),Wi="SelectViewport",Jd=l.forwardRef((e,n)=>{const{__scopeSelect:t,nonce:r,...o}=e,a=mn(Wi,t),s=Zi(Wi,t),i=he(n,a.onViewportChange),u=l.useRef(0);return c.jsxs(c.Fragment,{children:[c.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:r}),c.jsx(wa.Slot,{scope:t,children:c.jsx(oe.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ne(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:g}=s;if(g!=null&&g.current&&h){const m=Math.abs(u.current-f.scrollTop);if(m>0){const C=window.innerHeight-Lt*2,p=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),w=Math.max(p,v);if(w<C){const y=w+m,b=Math.min(C,y),S=y-b;h.style.height=b+"px",h.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,h.style.justifyContent="flex-end")}}}u.current=f.scrollTop})})})]})});Jd.displayName=Wi;var e2="SelectGroup",[iw,lw]=gr(e2),cw=l.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e,o=qe();return c.jsx(iw,{scope:t,id:o,children:c.jsx(oe.div,{role:"group","aria-labelledby":o,...r,ref:n})})});cw.displayName=e2;var t2="SelectLabel",n2=l.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e,o=lw(t2,t);return c.jsx(oe.div,{id:o.id,...r,ref:n})});n2.displayName=t2;var xa="SelectItem",[uw,r2]=gr(xa),o2=l.forwardRef((e,n)=>{const{__scopeSelect:t,value:r,disabled:o=!1,textValue:a,...s}=e,i=pn(xa,t),u=mn(xa,t),d=i.value===r,[f,h]=l.useState(a??""),[g,m]=l.useState(!1),C=he(n,y=>{var b;return(b=u.itemRefCallback)==null?void 0:b.call(u,y,r,o)}),p=qe(),v=l.useRef("touch"),w=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new 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 c.jsx(uw,{scope:t,value:r,disabled:o,textId:p,isSelected:d,onItemTextChange:l.useCallback(y=>{h(b=>b||((y==null?void 0:y.textContent)??"").trim())},[]),children:c.jsx(wa.ItemSlot,{scope:t,value:r,disabled:o,textValue:f,children:c.jsx(oe.div,{role:"option","aria-labelledby":p,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:C,onFocus:ne(s.onFocus,()=>m(!0)),onBlur:ne(s.onBlur,()=>m(!1)),onClick:ne(s.onClick,()=>{v.current!=="mouse"&&w()}),onPointerUp:ne(s.onPointerUp,()=>{v.current==="mouse"&&w()}),onPointerDown:ne(s.onPointerDown,y=>{v.current=y.pointerType}),onPointerMove:ne(s.onPointerMove,y=>{var b;v.current=y.pointerType,o?(b=u.onItemLeave)==null||b.call(u):v.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ne(s.onPointerLeave,y=>{var b;y.currentTarget===document.activeElement&&((b=u.onItemLeave)==null||b.call(u))}),onKeyDown:ne(s.onKeyDown,y=>{var S;((S=u.searchRef)==null?void 0:S.current)!==""&&y.key===" "||(qC.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});o2.displayName=xa;var qr="SelectItemText",a2=l.forwardRef((e,n)=>{const{__scopeSelect:t,className:r,style:o,...a}=e,s=pn(qr,t),i=mn(qr,t),u=r2(qr,t),d=JC(qr,t),[f,h]=l.useState(null),g=he(n,w=>h(w),u.onItemTextChange,w=>{var y;return(y=i.itemTextRefCallback)==null?void 0:y.call(i,w,u.value,u.disabled)}),m=f==null?void 0:f.textContent,C=l.useMemo(()=>c.jsx("option",{value:u.value,disabled:u.disabled,children:m},u.value),[u.disabled,u.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=d;return He(()=>(p(C),()=>v(C)),[p,v,C]),c.jsxs(c.Fragment,{children:[c.jsx(oe.span,{id:u.textId,...a,ref:g}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Dr.createPortal(a.children,s.valueNode):null]})});a2.displayName=qr;var s2="SelectItemIndicator",i2=l.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e;return r2(s2,t).isSelected?c.jsx(oe.span,{"aria-hidden":!0,...r,ref:n}):null});i2.displayName=s2;var Ri="SelectScrollUpButton",dw=l.forwardRef((e,n)=>{const t=mn(Ri,e.__scopeSelect),r=Zi(Ri,e.__scopeSelect),[o,a]=l.useState(!1),s=he(n,r.onScrollButtonChange);return He(()=>{if(t.viewport&&t.isPositioned){let i=function(){const d=u.scrollTop>0;a(d)};const u=t.viewport;return i(),u.addEventListener("scroll",i),()=>u.removeEventListener("scroll",i)}},[t.viewport,t.isPositioned]),o?c.jsx(l2,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:u}=t;i&&u&&(i.scrollTop=i.scrollTop-u.offsetHeight)}}):null});dw.displayName=Ri;var Gi="SelectScrollDownButton",fw=l.forwardRef((e,n)=>{const t=mn(Gi,e.__scopeSelect),r=Zi(Gi,e.__scopeSelect),[o,a]=l.useState(!1),s=he(n,r.onScrollButtonChange);return He(()=>{if(t.viewport&&t.isPositioned){let i=function(){const d=u.scrollHeight-u.clientHeight,f=Math.ceil(u.scrollTop)<d;a(f)};const u=t.viewport;return i(),u.addEventListener("scroll",i),()=>u.removeEventListener("scroll",i)}},[t.viewport,t.isPositioned]),o?c.jsx(l2,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:u}=t;i&&u&&(i.scrollTop=i.scrollTop+u.offsetHeight)}}):null});fw.displayName=Gi;var l2=l.forwardRef((e,n)=>{const{__scopeSelect:t,onAutoScroll:r,...o}=e,a=mn("SelectScrollButton",t),s=l.useRef(null),i=ya(t),u=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>u(),[u]),He(()=>{var f;const d=i().find(h=>h.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),c.jsx(oe.div,{"aria-hidden":!0,...o,ref:n,style:{flexShrink:0,...o.style},onPointerDown:ne(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:ne(o.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:ne(o.onPointerLeave,()=>{u()})})}),hw="SelectSeparator",c2=l.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e;return c.jsx(oe.div,{"aria-hidden":!0,...r,ref:n})});c2.displayName=hw;var ji="SelectArrow",gw=l.forwardRef((e,n)=>{const{__scopeSelect:t,...r}=e,o=ba(t),a=pn(ji,t),s=mn(ji,t);return a.open&&s.position==="popper"?c.jsx(la,{...o,...r,ref:n}):null});gw.displayName=ji;var pw="SelectBubbleInput",u2=l.forwardRef(({__scopeSelect:e,value:n,...t},r)=>{const o=l.useRef(null),a=he(r,o),s=ca(n);return l.useEffect(()=>{const i=o.current;if(!i)return;const u=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(u,"value").set;if(s!==n&&f){const h=new Event("change",{bubbles:!0});f.call(i,n),i.dispatchEvent(h)}},[s,n]),c.jsx(oe.select,{...t,style:{...Pd,...t.style},ref:a,defaultValue:n})});u2.displayName=pw;function d2(e){return e===""||e===void 0}function f2(e){const n=Re(e),t=l.useRef(""),r=l.useRef(0),o=l.useCallback(s=>{const i=t.current+s;n(i),function u(d){t.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>u(""),1e3))}(i)},[n]),a=l.useCallback(()=>{t.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[t,o,a]}function h2(e,n,t){const o=n.length>1&&Array.from(n).every(d=>d===n[0])?n[0]:n,a=t?e.indexOf(t):-1;let s=mw(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==t));const u=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==t?u:void 0}function mw(e,n){return e.map((t,r)=>e[(n+r)%e.length])}var g2=Zd,vw=Rd,Cw=jd,ww=Yd,yw=Ud,bw=qd,xw=Jd,Sw=n2,Ew=o2,Mw=a2,Lw=i2,Nw=c2;const p2=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M8.41421 12L15.7071 19.2929C16.0976 19.6834 16.0976 20.3166 15.7071 20.7071C15.3166 21.0976 14.6834 21.0976 14.2929 20.7071L6.29289 12.7071C5.90237 12.3166 5.90237 11.6834 6.29289 11.2929L14.2929 3.29289C14.6834 2.90237 15.3166 2.90237 15.7071 3.29289C16.0976 3.68342 16.0976 4.31658 15.7071 4.70711L8.41421 12Z",fill:"currentColor"})),m2=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M15.5858 12L8.29289 4.70711C7.90237 4.31658 7.90237 3.68342 8.29289 3.29289C8.68342 2.90237 9.31658 2.90237 9.70711 3.29289L17.7071 11.2929C18.0976 11.6834 18.0976 12.3166 17.7071 12.7071L9.70711 20.7071C9.31658 21.0976 8.68342 21.0976 8.29289 20.7071C7.90237 20.3166 7.90237 19.6834 8.29289 19.2929L15.5858 12Z",fill:"currentColor"}));function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Yi.apply(null,arguments)}function v2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ui(e,n){return Ui=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Ui(e,n)}function Pw(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Ui(e,n)}var C2=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function _w(e,n){return!!(e===n||C2(e)&&C2(n))}function Iw(e,n){if(e.length!==n.length)return!1;for(var t=0;t<e.length;t++)if(!_w(e[t],n[t]))return!1;return!0}function qi(e,n){n===void 0&&(n=Iw);var t,r=[],o,a=!1;function s(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];return a&&t===this&&n(i,r)||(o=e.apply(this,i),a=!0,t=this,r=i),o}return s}var kw=typeof performance=="object"&&typeof performance.now=="function",w2=kw?function(){return performance.now()}:function(){return Date.now()};function y2(e){cancelAnimationFrame(e.id)}function Tw(e,n){var t=w2();function r(){w2()-t>=n?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var Ki=-1;function b2(e){if(e===void 0&&(e=!1),Ki===-1||e){var n=document.createElement("div"),t=n.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(n),Ki=n.offsetWidth-n.clientWidth,document.body.removeChild(n)}return Ki}var pr=null;function x2(e){if(e===void 0&&(e=!1),pr===null||e){var n=document.createElement("div"),t=n.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",n.appendChild(r),document.body.appendChild(n),n.scrollLeft>0?pr="positive-descending":(n.scrollLeft=1,n.scrollLeft===0?pr="negative":pr="positive-ascending"),document.body.removeChild(n),pr}return pr}process.env.NODE_ENV;var Dw=150,Ow=function(n,t){return n},Sa=null,Ea=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Sa=new WeakSet,Ea=new WeakSet);function Vw(e){var n,t=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,i=e.getStopIndexForStartIndex,u=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return n=function(h){Pw(g,h);function g(C){var p;return p=h.call(this,C)||this,p._instanceProps=u(p.props,v2(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:v2(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=qi(function(v,w,y,b){return p.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:w,visibleStartIndex:y,visibleStopIndex:b})}),p._callOnScroll=void 0,p._callOnScroll=qi(function(v,w,y){return p.props.onScroll({scrollDirection:v,scrollOffset:w,scrollUpdateWasRequested:y})}),p._getItemStyle=void 0,p._getItemStyle=function(v){var w=p.props,y=w.direction,b=w.itemSize,S=w.layout,M=p._getItemStyleCache(d&&b,d&&S,d&&y),L;if(M.hasOwnProperty(v))L=M[v];else{var E=t(p.props,v,p._instanceProps),I=o(p.props,v,p._instanceProps),k=y==="horizontal"||S==="horizontal",O=y==="rtl",A=k?E:0;M[v]=L={position:"absolute",left:O?void 0:A,right:O?A:void 0,top:k?0:E,height:k?"100%":I,width:k?I:"100%"}}return L},p._getItemStyleCache=void 0,p._getItemStyleCache=qi(function(v,w,y){return{}}),p._onScrollHorizontal=function(v){var w=v.currentTarget,y=w.clientWidth,b=w.scrollLeft,S=w.scrollWidth;p.setState(function(M){if(M.scrollOffset===b)return null;var L=p.props.direction,E=b;if(L==="rtl")switch(x2()){case"negative":E=-b;break;case"positive-descending":E=S-y-b;break}return E=Math.max(0,Math.min(E,S-y)),{isScrolling:!0,scrollDirection:M.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(v){var w=v.currentTarget,y=w.clientHeight,b=w.scrollHeight,S=w.scrollTop;p.setState(function(M){if(M.scrollOffset===S)return null;var L=Math.max(0,Math.min(S,b-y));return{isScrolling:!0,scrollDirection:M.scrollOffset<L?"forward":"backward",scrollOffset:L,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(v){var w=p.props.outerRef;p._outerRef=v,typeof w=="function"?w(v):w!=null&&typeof w=="object"&&w.hasOwnProperty("current")&&(w.current=v)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&y2(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=Tw(p._resetIsScrolling,Dw)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}g.getDerivedStateFromProps=function(p,v){return Hw(p,v),f(p),null};var m=g.prototype;return m.scrollTo=function(p){p=Math.max(0,p),this.setState(function(v){return v.scrollOffset===p?null:{scrollDirection:v.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},m.scrollToItem=function(p,v){v===void 0&&(v="auto");var w=this.props,y=w.itemCount,b=w.layout,S=this.state.scrollOffset;p=Math.max(0,Math.min(p,y-1));var M=0;if(this._outerRef){var L=this._outerRef;b==="vertical"?M=L.scrollWidth>L.clientWidth?b2():0:M=L.scrollHeight>L.clientHeight?b2():0}this.scrollTo(a(this.props,p,v,S,this._instanceProps,M))},m.componentDidMount=function(){var p=this.props,v=p.direction,w=p.initialScrollOffset,y=p.layout;if(typeof w=="number"&&this._outerRef!=null){var b=this._outerRef;v==="horizontal"||y==="horizontal"?b.scrollLeft=w:b.scrollTop=w}this._callPropsCallbacks()},m.componentDidUpdate=function(){var p=this.props,v=p.direction,w=p.layout,y=this.state,b=y.scrollOffset,S=y.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var M=this._outerRef;if(v==="horizontal"||w==="horizontal")if(v==="rtl")switch(x2()){case"negative":M.scrollLeft=-b;break;case"positive-ascending":M.scrollLeft=b;break;default:var L=M.clientWidth,E=M.scrollWidth;M.scrollLeft=E-L-b;break}else M.scrollLeft=b;else M.scrollTop=b}this._callPropsCallbacks()},m.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&y2(this._resetIsScrollingTimeoutId)},m.render=function(){var p=this.props,v=p.children,w=p.className,y=p.direction,b=p.height,S=p.innerRef,M=p.innerElementType,L=p.innerTagName,E=p.itemCount,I=p.itemData,k=p.itemKey,O=k===void 0?Ow:k,A=p.layout,V=p.outerElementType,Y=p.outerTagName,$=p.style,U=p.useIsScrolling,T=p.width,W=this.state.isScrolling,P=y==="horizontal"||A==="horizontal",z=P?this._onScrollHorizontal:this._onScrollVertical,q=this._getRangeToRender(),K=q[0],Z=q[1],H=[];if(E>0)for(var _=K;_<=Z;_++)H.push(D.createElement(v,{data:I,key:O(_,I),index:_,isScrolling:U?W:void 0,style:this._getItemStyle(_)}));var B=r(this.props,this._instanceProps);return D.createElement(V||Y||"div",{className:w,onScroll:z,ref:this._outerRefSetter,style:Yi({position:"relative",height:b,width:T,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},$)},D.createElement(M||L||"div",{children:H,ref:S,style:{height:P?"100%":B,pointerEvents:W?"none":void 0,width:P?B:"100%"}}))},m._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var v=this._getRangeToRender(),w=v[0],y=v[1],b=v[2],S=v[3];this._callOnItemsRendered(w,y,b,S)}}if(typeof this.props.onScroll=="function"){var M=this.state,L=M.scrollDirection,E=M.scrollOffset,I=M.scrollUpdateWasRequested;this._callOnScroll(L,E,I)}},m._getRangeToRender=function(){var p=this.props,v=p.itemCount,w=p.overscanCount,y=this.state,b=y.isScrolling,S=y.scrollDirection,M=y.scrollOffset;if(v===0)return[0,0,0,0];var L=s(this.props,M,this._instanceProps),E=i(this.props,L,M,this._instanceProps),I=!b||S==="backward"?Math.max(1,w):1,k=!b||S==="forward"?Math.max(1,w):1;return[Math.max(0,L-I),Math.max(0,Math.min(v-1,E+k)),L,E]},g}(D.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var Hw=function(n,t){var r=n.children,o=n.direction,a=n.height,s=n.layout,i=n.innerTagName,u=n.outerTagName,d=n.width,f=t.instance;if(process.env.NODE_ENV!=="production"){(i!=null||u!=null)&&Ea&&!Ea.has(f)&&(Ea.add(f),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var h=o==="horizontal"||s==="horizontal";switch(o){case"horizontal":case"vertical":Sa&&!Sa.has(f)&&(Sa.add(f),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+o+'" was specified.'))}switch(s){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+s+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(h&&typeof d!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(d===null?"null":typeof d)+'" was specified.'));if(!h&&typeof a!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(a===null?"null":typeof a)+'" was specified.'))}},S2=Vw({getItemOffset:function(n,t){var r=n.itemSize;return t*r},getItemSize:function(n,t){var r=n.itemSize;return r},getEstimatedTotalSize:function(n){var t=n.itemCount,r=n.itemSize;return r*t},getOffsetForIndexAndAlignment:function(n,t,r,o,a,s){var i=n.direction,u=n.height,d=n.itemCount,f=n.itemSize,h=n.layout,g=n.width,m=i==="horizontal"||h==="horizontal",C=m?g:u,p=Math.max(0,d*f-C),v=Math.min(p,t*f),w=Math.max(0,t*f-C+f+s);switch(r==="smart"&&(o>=w-C&&o<=v+C?r="auto":r="center"),r){case"start":return v;case"end":return w;case"center":{var y=Math.round(w+(v-w)/2);return y<Math.ceil(C/2)?0:y>p+Math.floor(C/2)?p:y}case"auto":default:return o>=w&&o<=v?o:o<w?w:v}},getStartIndexForOffset:function(n,t){var r=n.itemCount,o=n.itemSize;return Math.max(0,Math.min(r-1,Math.floor(t/o)))},getStopIndexForStartIndex:function(n,t,r){var o=n.direction,a=n.height,s=n.itemCount,i=n.itemSize,u=n.layout,d=n.width,f=o==="horizontal"||u==="horizontal",h=t*i,g=f?d:a,m=Math.ceil((g+r-h)/i);return Math.max(0,Math.min(s-1,t+m-1))},initInstanceProps:function(n){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(n){var t=n.itemSize;if(process.env.NODE_ENV!=="production"&&typeof t!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(t===null?"null":typeof t)+'" was specified.'))}});/**
|
|
42
42
|
* @license lucide-react v0.463.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
|
|
108
108
|
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
109
109
|
|
|
110
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(t))},[t,e]),null},Py="DialogDescriptionWarning",_y=({contentRef:e,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${v0(Py).contentName}}.`;return l.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");n&&o&&(document.getElementById(n)||console.warn(r))},[r,e,n]),null},fl=r0,C0=a0,hl=i0,Qr=l0,Jr=c0,Fa=d0,$a=h0,za=p0,eo='[cmdk-group=""]',gl='[cmdk-group-items=""]',Iy='[cmdk-group-heading=""]',w0='[cmdk-item=""]',y0=`${w0}:not([aria-disabled="true"])`,pl="cmdk-item-select",Cr="data-value",ky=(e,n,t)=>hy(e,n,t),b0=l.createContext(void 0),to=()=>l.useContext(b0),x0=l.createContext(void 0),ml=()=>l.useContext(x0),S0=l.createContext(void 0),E0=l.forwardRef((e,n)=>{let t=wr(()=>{var Z,A;return{search:"",value:(A=(Z=e.value)!=null?Z:e.defaultValue)!=null?A:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=wr(()=>new Set),o=wr(()=>new Map),a=wr(()=>new Map),s=wr(()=>new Set),i=M0(e),{label:u,children:d,value:f,onValueChange:h,filter:g,shouldFilter:m,loop:C,disablePointerSelection:p=!1,vimBindings:v=!0,...w}=e,y=qe(),b=qe(),S=qe(),M=l.useRef(null),L=Zy();An(()=>{if(f!==void 0){let Z=f.trim();t.current.value=Z,E.emit()}},[f]),An(()=>{L(6,Y)},[]);let E=l.useMemo(()=>({subscribe:Z=>(s.current.add(Z),()=>s.current.delete(Z)),snapshot:()=>t.current,setState:(Z,A,_)=>{var B,G,F,R;if(!Object.is(t.current[Z],A)){if(t.current[Z]=A,Z==="search")V(),O(),L(1,H);else if(Z==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Q=document.getElementById(S);Q?Q.focus():(B=document.getElementById(y))==null||B.focus()}if(L(7,()=>{var Q;t.current.selectedItemId=(Q=$())==null?void 0:Q.id,E.emit()}),_||L(5,Y),((G=i.current)==null?void 0:G.value)!==void 0){let Q=A??"";(R=(F=i.current).onValueChange)==null||R.call(F,Q);return}}E.emit()}},emit:()=>{s.current.forEach(Z=>Z())}}),[]),I=l.useMemo(()=>({value:(Z,A,_)=>{var B;A!==((B=a.current.get(Z))==null?void 0:B.value)&&(a.current.set(Z,{value:A,keywords:_}),t.current.filtered.items.set(Z,k(A,_)),L(2,()=>{O(),E.emit()}))},item:(Z,A)=>(r.current.add(Z),A&&(o.current.has(A)?o.current.get(A).add(Z):o.current.set(A,new Set([Z]))),L(3,()=>{V(),O(),t.current.value||H(),E.emit()}),()=>{a.current.delete(Z),r.current.delete(Z),t.current.filtered.items.delete(Z);let _=$();L(4,()=>{V(),(_==null?void 0:_.getAttribute("id"))===Z&&H(),E.emit()})}),group:Z=>(o.current.has(Z)||o.current.set(Z,new Set),()=>{a.current.delete(Z),o.current.delete(Z)}),filter:()=>i.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:y,inputId:S,labelId:b,listInnerRef:M}),[]);function k(Z,A){var _,B;let G=(B=(_=i.current)==null?void 0:_.filter)!=null?B:ky;return Z?G(Z,t.current.search,A):0}function O(){if(!t.current.search||i.current.shouldFilter===!1)return;let Z=t.current.filtered.items,A=[];t.current.filtered.groups.forEach(B=>{let G=o.current.get(B),F=0;G.forEach(R=>{let Q=Z.get(R);F=Math.max(Q,F)}),A.push([B,F])});let _=M.current;U().sort((B,G)=>{var F,R;let Q=B.getAttribute("id"),re=G.getAttribute("id");return((F=Z.get(re))!=null?F:0)-((R=Z.get(Q))!=null?R:0)}).forEach(B=>{let G=B.closest(gl);G?G.appendChild(B.parentElement===G?B:B.closest(`${gl} > *`)):_.appendChild(B.parentElement===_?B:B.closest(`${gl} > *`))}),A.sort((B,G)=>G[1]-B[1]).forEach(B=>{var G;let F=(G=M.current)==null?void 0:G.querySelector(`${eo}[${Cr}="${encodeURIComponent(B[0])}"]`);F==null||F.parentElement.appendChild(F)})}function H(){let Z=U().find(_=>_.getAttribute("aria-disabled")!=="true"),A=Z==null?void 0:Z.getAttribute(Cr);E.setState("value",A||void 0)}function V(){var Z,A,_,B;if(!t.current.search||i.current.shouldFilter===!1){t.current.filtered.count=r.current.size;return}t.current.filtered.groups=new Set;let G=0;for(let F of r.current){let R=(A=(Z=a.current.get(F))==null?void 0:Z.value)!=null?A:"",Q=(B=(_=a.current.get(F))==null?void 0:_.keywords)!=null?B:[],re=k(R,Q);t.current.filtered.items.set(F,re),re>0&&G++}for(let[F,R]of o.current)for(let Q of R)if(t.current.filtered.items.get(Q)>0){t.current.filtered.groups.add(F);break}t.current.filtered.count=G}function Y(){var Z,A,_;let B=$();B&&(((Z=B.parentElement)==null?void 0:Z.firstChild)===B&&((_=(A=B.closest(eo))==null?void 0:A.querySelector(Iy))==null||_.scrollIntoView({block:"nearest"})),B.scrollIntoView({block:"nearest"}))}function $(){var Z;return(Z=M.current)==null?void 0:Z.querySelector(`${w0}[aria-selected="true"]`)}function U(){var Z;return Array.from(((Z=M.current)==null?void 0:Z.querySelectorAll(y0))||[])}function T(Z){let A=U()[Z];A&&E.setState("value",A.getAttribute(Cr))}function W(Z){var A;let _=$(),B=U(),G=B.findIndex(R=>R===_),F=B[G+Z];(A=i.current)!=null&&A.loop&&(F=G+Z<0?B[B.length-1]:G+Z===B.length?B[0]:B[G+Z]),F&&E.setState("value",F.getAttribute(Cr))}function P(Z){let A=$(),_=A==null?void 0:A.closest(eo),B;for(;_&&!B;)_=Z>0?zy(_,eo):By(_,eo),B=_==null?void 0:_.querySelector(y0);B?E.setState("value",B.getAttribute(Cr)):W(Z)}let z=()=>T(U().length-1),q=Z=>{Z.preventDefault(),Z.metaKey?z():Z.altKey?P(1):W(1)},K=Z=>{Z.preventDefault(),Z.metaKey?T(0):Z.altKey?P(-1):W(-1)};return l.createElement(oe.div,{ref:n,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:Z=>{var A;(A=w.onKeyDown)==null||A.call(w,Z);let _=Z.nativeEvent.isComposing||Z.keyCode===229;if(!(Z.defaultPrevented||_))switch(Z.key){case"n":case"j":{v&&Z.ctrlKey&&q(Z);break}case"ArrowDown":{q(Z);break}case"p":case"k":{v&&Z.ctrlKey&&K(Z);break}case"ArrowUp":{K(Z);break}case"Home":{Z.preventDefault(),T(0);break}case"End":{Z.preventDefault(),z();break}case"Enter":{Z.preventDefault();let B=$();if(B){let G=new Event(pl);B.dispatchEvent(G)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:Ry},u),Ba(e,Z=>l.createElement(x0.Provider,{value:E},l.createElement(b0.Provider,{value:I},Z))))}),Ty=l.forwardRef((e,n)=>{var t,r;let o=qe(),a=l.useRef(null),s=l.useContext(S0),i=to(),u=M0(e),d=(r=(t=u.current)==null?void 0:t.forceMount)!=null?r:s==null?void 0:s.forceMount;An(()=>{if(!d)return i.item(o,s==null?void 0:s.id)},[d]);let f=L0(o,a,[e.value,e.children,a],e.keywords),h=ml(),g=wn(L=>L.value&&L.value===f.current),m=wn(L=>d||i.filter()===!1?!0:L.search?L.filtered.items.get(o)>0:!0);l.useEffect(()=>{let L=a.current;if(!(!L||e.disabled))return L.addEventListener(pl,C),()=>L.removeEventListener(pl,C)},[m,e.onSelect,e.disabled]);function C(){var L,E;p(),(E=(L=u.current).onSelect)==null||E.call(L,f.current)}function p(){h.setState("value",f.current,!0)}if(!m)return null;let{disabled:v,value:w,onSelect:y,forceMount:b,keywords:S,...M}=e;return l.createElement(oe.div,{ref:st(a,n),...M,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!g,"data-disabled":!!v,"data-selected":!!g,onPointerMove:v||i.getDisablePointerSelection()?void 0:p,onClick:v?void 0:C},e.children)}),Dy=l.forwardRef((e,n)=>{let{heading:t,children:r,forceMount:o,...a}=e,s=qe(),i=l.useRef(null),u=l.useRef(null),d=qe(),f=to(),h=wn(m=>o||f.filter()===!1?!0:m.search?m.filtered.groups.has(s):!0);An(()=>f.group(s),[]),L0(s,i,[e.value,e.heading,u]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(oe.div,{ref:st(i,n),...a,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},t&&l.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:d},t),Ba(e,m=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":t?d:void 0},l.createElement(S0.Provider,{value:g},m))))}),Oy=l.forwardRef((e,n)=>{let{alwaysRender:t,...r}=e,o=l.useRef(null),a=wn(s=>!s.search);return!t&&!a?null:l.createElement(oe.div,{ref:st(o,n),...r,"cmdk-separator":"",role:"separator"})}),Vy=l.forwardRef((e,n)=>{let{onValueChange:t,...r}=e,o=e.value!=null,a=ml(),s=wn(d=>d.search),i=wn(d=>d.selectedItemId),u=to();return l.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),l.createElement(oe.input,{ref:n,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":i,id:u.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||a.setState("search",d.target.value),t==null||t(d.target.value)}})}),Hy=l.forwardRef((e,n)=>{let{children:t,label:r="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=wn(d=>d.selectedItemId),u=to();return l.useEffect(()=>{if(s.current&&a.current){let d=s.current,f=a.current,h,g=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let m=d.offsetHeight;f.style.setProperty("--cmdk-list-height",m.toFixed(1)+"px")})});return g.observe(d),()=>{cancelAnimationFrame(h),g.unobserve(d)}}},[]),l.createElement(oe.div,{ref:st(a,n),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:u.listId},Ba(e,d=>l.createElement("div",{ref:st(s,u.listInnerRef),"cmdk-list-sizer":""},d)))}),Ay=l.forwardRef((e,n)=>{let{open:t,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(fl,{open:t,onOpenChange:r},l.createElement(hl,{container:s},l.createElement(Qr,{"cmdk-overlay":"",className:o}),l.createElement(Jr,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(E0,{ref:n,...i}))))}),Fy=l.forwardRef((e,n)=>wn(t=>t.filtered.count===0)?l.createElement(oe.div,{ref:n,...e,"cmdk-empty":"",role:"presentation"}):null),$y=l.forwardRef((e,n)=>{let{progress:t,children:r,label:o="Loading...",...a}=e;return l.createElement(oe.div,{ref:n,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Ba(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),gt=Object.assign(E0,{List:Hy,Item:Ty,Input:Vy,Group:Dy,Separator:Oy,Dialog:Ay,Empty:Fy,Loading:$y});function zy(e,n){let t=e.nextElementSibling;for(;t;){if(t.matches(n))return t;t=t.nextElementSibling}}function By(e,n){let t=e.previousElementSibling;for(;t;){if(t.matches(n))return t;t=t.previousElementSibling}}function M0(e){let n=l.useRef(e);return An(()=>{n.current=e}),n}var An=typeof window>"u"?l.useEffect:l.useLayoutEffect;function wr(e){let n=l.useRef();return n.current===void 0&&(n.current=e()),n}function wn(e){let n=ml(),t=()=>e(n.snapshot());return l.useSyncExternalStore(n.subscribe,t,t)}function L0(e,n,t,r=[]){let o=l.useRef(),a=to();return An(()=>{var s;let i=(()=>{var d;for(let f of t){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),u=r.map(d=>d.trim());a.value(e,i,u),(s=n.current)==null||s.setAttribute(Cr,i),o.current=i}),o}var Zy=()=>{let[e,n]=l.useState(),t=wr(()=>new Map);return An(()=>{t.current.forEach(r=>r()),t.current=new Map},[e]),(r,o)=>{t.current.set(r,o),n({})}};function Wy(e){let n=e.type;return typeof n=="function"?n(e.props):"render"in n?n.render(e.props):e}function Ba({asChild:e,children:n},t){return e&&l.isValidElement(n)?l.cloneElement(Wy(n),{ref:n.ref},t(n.props.children)):t(n)}var Ry={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Za=fl,vl=C0,N0=hl,P0=za,Cl=l.forwardRef(({className:e,...n},t)=>c.jsx(Qr,{ref:t,className:N("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));Cl.displayName=Qr.displayName;const no=l.forwardRef(({className:e,children:n,aside:t,scrollableSection:r,...o},a)=>{const s=l.Children.map(n,i=>l.isValidElement(i)&&(i.type.displayName==="DialogSection"||i.type.name==="DialogSection")?l.cloneElement(i,{scrollableSection:r}):i);return c.jsxs(N0,{children:[c.jsx(Cl,{className:"bg-background-overlay/80"}),c.jsx(Jr,{className:N("fixed z-50 duration-200 focus: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-[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%]",!t&&"max-h-[90vh] left-[50%] translate-x-[-50%] top-[8%] max-w-fit w-full",t&&"right-[0] top-0 translate-x-0, h-[100vh]"),"aria-describedby":void 0,...o,children:c.jsx("div",{ref:a,className:N("flex flex-col gap-[1px] bg-line-primary shadow-lg min-w-[460px] max-w-[80vw]",!t&&"max-h-[90vh] rounded-lg",t&&"h-[100vh]",r&&"overflow-hidden",!r&&"scroll-smooth overflow-y-auto overflow-x-hidden dialog-scrollbar",e),children:s})})]})});no.displayName=Jr.displayName;const wl=({className:e,hideCloseButton:n,...t})=>c.jsxs("div",{className:N("flex flex-col bg-background p-5 relative text-xl font-medium space-y-4 text-center sm:text-left",e),...t,children:[t.children,!n&&c.jsxs(za,{className:"absolute right-3 top-0 p-1 w-8 h-8 pointer-events-auto text-foreground transition-all hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-foreground-secondary",children:[c.jsx(Ma,{className:"h-6 w-6"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]});wl.displayName="DialogHeader";const yl=({className:e,align:n="end",...t})=>c.jsx("div",{className:N("flex flex-col-reverse bg-background py-4 px-5 sm:justify-start sm:!flex-row sm:space-x-4 sticky bottom-0",e,{"sm:justify-end":n==="end"}),...t});yl.displayName="DialogFooter";const Wa=l.forwardRef(({className:e,...n},t)=>c.jsx(Fa,{ref:t,className:N("flex items-center gap-2 text-xl font-medium leading-none",e),...n}));Wa.displayName=Fa.displayName;const bl=l.forwardRef(({className:e,...n},t)=>c.jsx($a,{ref:t,className:N("text-sm text-foreground tracking-[0.25px]",e),...n}));bl.displayName=$a.displayName;const xl=({className:e,scrollableSection:n,...t})=>c.jsx("div",{className:N("flex flex-col space-y-4 bg-background p-5",n&&"overflow-y-auto overflow-x-hidden dialog-scrollbar flex-1",e),...t});xl.displayName="DialogSection";const Ra=l.forwardRef(({className:e,...n},t)=>c.jsx(gt,{ref:t,className:N("flex h-full w-full flex-col overflow-hidden rounded-md bg-background text-foreground",e),...n}));Ra.displayName=gt.displayName;const Gy=({children:e,...n})=>c.jsx(Za,{...n,children:c.jsx(no,{className:"overflow-hidden p-0 shadow-lg",children:c.jsx(Ra,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Sl=l.forwardRef(({className:e,...n},t)=>c.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[c.jsx(Ww,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),c.jsx(gt.Input,{ref:t,className:N("flex h-11 w-full rounded-md bg-[transparent] py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...n})]}));Sl.displayName=gt.Input.displayName;const El=l.forwardRef(({className:e,...n},t)=>c.jsx(gt.List,{ref:t,className:N("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...n}));El.displayName=gt.List.displayName;const _0=l.forwardRef((e,n)=>c.jsx(gt.Empty,{ref:n,className:"py-6 text-center text-sm",...e}));_0.displayName=gt.Empty.displayName;const I0=l.forwardRef(({className:e,...n},t)=>c.jsx(gt.Group,{ref:t,className:N("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",e),...n}));I0.displayName=gt.Group.displayName;const k0=l.forwardRef(({className:e,...n},t)=>c.jsx(gt.Separator,{ref:t,className:N("-mx-1 h-px bg-border",e),...n}));k0.displayName=gt.Separator.displayName;const Ml=l.forwardRef(({className:e,...n},t)=>c.jsx(gt.Item,{ref:t,className:N("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",e),...n}));Ml.displayName=gt.Item.displayName;const T0=({className:e,...n})=>c.jsx("span",{className:N("ml-auto text-xs tracking-widest text-muted-foreground",e),...n});T0.displayName="CommandShortcut";/**
|
|
110
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(t))},[t,e]),null},Py="DialogDescriptionWarning",_y=({contentRef:e,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${v0(Py).contentName}}.`;return l.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");n&&o&&(document.getElementById(n)||console.warn(r))},[r,e,n]),null},fl=r0,C0=a0,hl=i0,Qr=l0,Jr=c0,Fa=d0,$a=h0,za=p0,eo='[cmdk-group=""]',gl='[cmdk-group-items=""]',Iy='[cmdk-group-heading=""]',w0='[cmdk-item=""]',y0=`${w0}:not([aria-disabled="true"])`,pl="cmdk-item-select",Cr="data-value",ky=(e,n,t)=>hy(e,n,t),b0=l.createContext(void 0),to=()=>l.useContext(b0),x0=l.createContext(void 0),ml=()=>l.useContext(x0),S0=l.createContext(void 0),E0=l.forwardRef((e,n)=>{let t=wr(()=>{var Z,H;return{search:"",value:(H=(Z=e.value)!=null?Z:e.defaultValue)!=null?H:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=wr(()=>new Set),o=wr(()=>new Map),a=wr(()=>new Map),s=wr(()=>new Set),i=M0(e),{label:u,children:d,value:f,onValueChange:h,filter:g,shouldFilter:m,loop:C,disablePointerSelection:p=!1,vimBindings:v=!0,...w}=e,y=qe(),b=qe(),S=qe(),M=l.useRef(null),L=Zy();An(()=>{if(f!==void 0){let Z=f.trim();t.current.value=Z,E.emit()}},[f]),An(()=>{L(6,Y)},[]);let E=l.useMemo(()=>({subscribe:Z=>(s.current.add(Z),()=>s.current.delete(Z)),snapshot:()=>t.current,setState:(Z,H,_)=>{var B,G,F,R;if(!Object.is(t.current[Z],H)){if(t.current[Z]=H,Z==="search")V(),O(),L(1,A);else if(Z==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Q=document.getElementById(S);Q?Q.focus():(B=document.getElementById(y))==null||B.focus()}if(L(7,()=>{var Q;t.current.selectedItemId=(Q=$())==null?void 0:Q.id,E.emit()}),_||L(5,Y),((G=i.current)==null?void 0:G.value)!==void 0){let Q=H??"";(R=(F=i.current).onValueChange)==null||R.call(F,Q);return}}E.emit()}},emit:()=>{s.current.forEach(Z=>Z())}}),[]),I=l.useMemo(()=>({value:(Z,H,_)=>{var B;H!==((B=a.current.get(Z))==null?void 0:B.value)&&(a.current.set(Z,{value:H,keywords:_}),t.current.filtered.items.set(Z,k(H,_)),L(2,()=>{O(),E.emit()}))},item:(Z,H)=>(r.current.add(Z),H&&(o.current.has(H)?o.current.get(H).add(Z):o.current.set(H,new Set([Z]))),L(3,()=>{V(),O(),t.current.value||A(),E.emit()}),()=>{a.current.delete(Z),r.current.delete(Z),t.current.filtered.items.delete(Z);let _=$();L(4,()=>{V(),(_==null?void 0:_.getAttribute("id"))===Z&&A(),E.emit()})}),group:Z=>(o.current.has(Z)||o.current.set(Z,new Set),()=>{a.current.delete(Z),o.current.delete(Z)}),filter:()=>i.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:y,inputId:S,labelId:b,listInnerRef:M}),[]);function k(Z,H){var _,B;let G=(B=(_=i.current)==null?void 0:_.filter)!=null?B:ky;return Z?G(Z,t.current.search,H):0}function O(){if(!t.current.search||i.current.shouldFilter===!1)return;let Z=t.current.filtered.items,H=[];t.current.filtered.groups.forEach(B=>{let G=o.current.get(B),F=0;G.forEach(R=>{let Q=Z.get(R);F=Math.max(Q,F)}),H.push([B,F])});let _=M.current;U().sort((B,G)=>{var F,R;let Q=B.getAttribute("id"),re=G.getAttribute("id");return((F=Z.get(re))!=null?F:0)-((R=Z.get(Q))!=null?R:0)}).forEach(B=>{let G=B.closest(gl);G?G.appendChild(B.parentElement===G?B:B.closest(`${gl} > *`)):_.appendChild(B.parentElement===_?B:B.closest(`${gl} > *`))}),H.sort((B,G)=>G[1]-B[1]).forEach(B=>{var G;let F=(G=M.current)==null?void 0:G.querySelector(`${eo}[${Cr}="${encodeURIComponent(B[0])}"]`);F==null||F.parentElement.appendChild(F)})}function A(){let Z=U().find(_=>_.getAttribute("aria-disabled")!=="true"),H=Z==null?void 0:Z.getAttribute(Cr);E.setState("value",H||void 0)}function V(){var Z,H,_,B;if(!t.current.search||i.current.shouldFilter===!1){t.current.filtered.count=r.current.size;return}t.current.filtered.groups=new Set;let G=0;for(let F of r.current){let R=(H=(Z=a.current.get(F))==null?void 0:Z.value)!=null?H:"",Q=(B=(_=a.current.get(F))==null?void 0:_.keywords)!=null?B:[],re=k(R,Q);t.current.filtered.items.set(F,re),re>0&&G++}for(let[F,R]of o.current)for(let Q of R)if(t.current.filtered.items.get(Q)>0){t.current.filtered.groups.add(F);break}t.current.filtered.count=G}function Y(){var Z,H,_;let B=$();B&&(((Z=B.parentElement)==null?void 0:Z.firstChild)===B&&((_=(H=B.closest(eo))==null?void 0:H.querySelector(Iy))==null||_.scrollIntoView({block:"nearest"})),B.scrollIntoView({block:"nearest"}))}function $(){var Z;return(Z=M.current)==null?void 0:Z.querySelector(`${w0}[aria-selected="true"]`)}function U(){var Z;return Array.from(((Z=M.current)==null?void 0:Z.querySelectorAll(y0))||[])}function T(Z){let H=U()[Z];H&&E.setState("value",H.getAttribute(Cr))}function W(Z){var H;let _=$(),B=U(),G=B.findIndex(R=>R===_),F=B[G+Z];(H=i.current)!=null&&H.loop&&(F=G+Z<0?B[B.length-1]:G+Z===B.length?B[0]:B[G+Z]),F&&E.setState("value",F.getAttribute(Cr))}function P(Z){let H=$(),_=H==null?void 0:H.closest(eo),B;for(;_&&!B;)_=Z>0?zy(_,eo):By(_,eo),B=_==null?void 0:_.querySelector(y0);B?E.setState("value",B.getAttribute(Cr)):W(Z)}let z=()=>T(U().length-1),q=Z=>{Z.preventDefault(),Z.metaKey?z():Z.altKey?P(1):W(1)},K=Z=>{Z.preventDefault(),Z.metaKey?T(0):Z.altKey?P(-1):W(-1)};return l.createElement(oe.div,{ref:n,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:Z=>{var H;(H=w.onKeyDown)==null||H.call(w,Z);let _=Z.nativeEvent.isComposing||Z.keyCode===229;if(!(Z.defaultPrevented||_))switch(Z.key){case"n":case"j":{v&&Z.ctrlKey&&q(Z);break}case"ArrowDown":{q(Z);break}case"p":case"k":{v&&Z.ctrlKey&&K(Z);break}case"ArrowUp":{K(Z);break}case"Home":{Z.preventDefault(),T(0);break}case"End":{Z.preventDefault(),z();break}case"Enter":{Z.preventDefault();let B=$();if(B){let G=new Event(pl);B.dispatchEvent(G)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:Ry},u),Ba(e,Z=>l.createElement(x0.Provider,{value:E},l.createElement(b0.Provider,{value:I},Z))))}),Ty=l.forwardRef((e,n)=>{var t,r;let o=qe(),a=l.useRef(null),s=l.useContext(S0),i=to(),u=M0(e),d=(r=(t=u.current)==null?void 0:t.forceMount)!=null?r:s==null?void 0:s.forceMount;An(()=>{if(!d)return i.item(o,s==null?void 0:s.id)},[d]);let f=L0(o,a,[e.value,e.children,a],e.keywords),h=ml(),g=wn(L=>L.value&&L.value===f.current),m=wn(L=>d||i.filter()===!1?!0:L.search?L.filtered.items.get(o)>0:!0);l.useEffect(()=>{let L=a.current;if(!(!L||e.disabled))return L.addEventListener(pl,C),()=>L.removeEventListener(pl,C)},[m,e.onSelect,e.disabled]);function C(){var L,E;p(),(E=(L=u.current).onSelect)==null||E.call(L,f.current)}function p(){h.setState("value",f.current,!0)}if(!m)return null;let{disabled:v,value:w,onSelect:y,forceMount:b,keywords:S,...M}=e;return l.createElement(oe.div,{ref:st(a,n),...M,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!g,"data-disabled":!!v,"data-selected":!!g,onPointerMove:v||i.getDisablePointerSelection()?void 0:p,onClick:v?void 0:C},e.children)}),Dy=l.forwardRef((e,n)=>{let{heading:t,children:r,forceMount:o,...a}=e,s=qe(),i=l.useRef(null),u=l.useRef(null),d=qe(),f=to(),h=wn(m=>o||f.filter()===!1?!0:m.search?m.filtered.groups.has(s):!0);An(()=>f.group(s),[]),L0(s,i,[e.value,e.heading,u]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(oe.div,{ref:st(i,n),...a,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},t&&l.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:d},t),Ba(e,m=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":t?d:void 0},l.createElement(S0.Provider,{value:g},m))))}),Oy=l.forwardRef((e,n)=>{let{alwaysRender:t,...r}=e,o=l.useRef(null),a=wn(s=>!s.search);return!t&&!a?null:l.createElement(oe.div,{ref:st(o,n),...r,"cmdk-separator":"",role:"separator"})}),Vy=l.forwardRef((e,n)=>{let{onValueChange:t,...r}=e,o=e.value!=null,a=ml(),s=wn(d=>d.search),i=wn(d=>d.selectedItemId),u=to();return l.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),l.createElement(oe.input,{ref:n,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":i,id:u.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||a.setState("search",d.target.value),t==null||t(d.target.value)}})}),Hy=l.forwardRef((e,n)=>{let{children:t,label:r="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=wn(d=>d.selectedItemId),u=to();return l.useEffect(()=>{if(s.current&&a.current){let d=s.current,f=a.current,h,g=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let m=d.offsetHeight;f.style.setProperty("--cmdk-list-height",m.toFixed(1)+"px")})});return g.observe(d),()=>{cancelAnimationFrame(h),g.unobserve(d)}}},[]),l.createElement(oe.div,{ref:st(a,n),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:u.listId},Ba(e,d=>l.createElement("div",{ref:st(s,u.listInnerRef),"cmdk-list-sizer":""},d)))}),Ay=l.forwardRef((e,n)=>{let{open:t,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(fl,{open:t,onOpenChange:r},l.createElement(hl,{container:s},l.createElement(Qr,{"cmdk-overlay":"",className:o}),l.createElement(Jr,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(E0,{ref:n,...i}))))}),Fy=l.forwardRef((e,n)=>wn(t=>t.filtered.count===0)?l.createElement(oe.div,{ref:n,...e,"cmdk-empty":"",role:"presentation"}):null),$y=l.forwardRef((e,n)=>{let{progress:t,children:r,label:o="Loading...",...a}=e;return l.createElement(oe.div,{ref:n,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Ba(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),gt=Object.assign(E0,{List:Hy,Item:Ty,Input:Vy,Group:Dy,Separator:Oy,Dialog:Ay,Empty:Fy,Loading:$y});function zy(e,n){let t=e.nextElementSibling;for(;t;){if(t.matches(n))return t;t=t.nextElementSibling}}function By(e,n){let t=e.previousElementSibling;for(;t;){if(t.matches(n))return t;t=t.previousElementSibling}}function M0(e){let n=l.useRef(e);return An(()=>{n.current=e}),n}var An=typeof window>"u"?l.useEffect:l.useLayoutEffect;function wr(e){let n=l.useRef();return n.current===void 0&&(n.current=e()),n}function wn(e){let n=ml(),t=()=>e(n.snapshot());return l.useSyncExternalStore(n.subscribe,t,t)}function L0(e,n,t,r=[]){let o=l.useRef(),a=to();return An(()=>{var s;let i=(()=>{var d;for(let f of t){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),u=r.map(d=>d.trim());a.value(e,i,u),(s=n.current)==null||s.setAttribute(Cr,i),o.current=i}),o}var Zy=()=>{let[e,n]=l.useState(),t=wr(()=>new Map);return An(()=>{t.current.forEach(r=>r()),t.current=new Map},[e]),(r,o)=>{t.current.set(r,o),n({})}};function Wy(e){let n=e.type;return typeof n=="function"?n(e.props):"render"in n?n.render(e.props):e}function Ba({asChild:e,children:n},t){return e&&l.isValidElement(n)?l.cloneElement(Wy(n),{ref:n.ref},t(n.props.children)):t(n)}var Ry={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Za=fl,vl=C0,N0=hl,P0=za,Cl=l.forwardRef(({className:e,...n},t)=>c.jsx(Qr,{ref:t,className:N("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));Cl.displayName=Qr.displayName;const no=l.forwardRef(({className:e,children:n,aside:t,scrollableSection:r,...o},a)=>{const s=l.Children.map(n,i=>l.isValidElement(i)&&(i.type.displayName==="DialogSection"||i.type.name==="DialogSection")?l.cloneElement(i,{scrollableSection:r}):i);return c.jsxs(N0,{children:[c.jsx(Cl,{className:"bg-background-overlay/80"}),c.jsx(Jr,{className:N("fixed z-50 duration-200 focus: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-[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%]",!t&&"max-h-[90vh] left-[50%] translate-x-[-50%] top-[8%] max-w-fit w-full",t&&"right-[0] top-0 translate-x-0, h-[100vh]"),"aria-describedby":void 0,...o,children:c.jsx("div",{ref:a,className:N("flex flex-col gap-[1px] bg-line-primary shadow-lg min-w-[460px] max-w-[80vw]",!t&&"max-h-[90vh] rounded-lg",t&&"h-[100vh]",r&&"overflow-hidden",!r&&"scroll-smooth overflow-y-auto overflow-x-hidden dialog-scrollbar",e),children:s})})]})});no.displayName=Jr.displayName;const wl=({className:e,hideCloseButton:n,...t})=>c.jsxs("div",{className:N("flex flex-col bg-background p-5 relative text-xl font-medium space-y-4 text-center sm:text-left",e),...t,children:[t.children,!n&&c.jsxs(za,{className:"absolute right-3 top-0 p-1 w-8 h-8 pointer-events-auto text-foreground transition-all hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-foreground-secondary",children:[c.jsx(Ma,{className:"h-6 w-6"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]});wl.displayName="DialogHeader";const yl=({className:e,align:n="end",...t})=>c.jsx("div",{className:N("flex flex-col-reverse bg-background py-4 px-5 sm:justify-start sm:!flex-row sm:space-x-4 sticky bottom-0",e,{"sm:justify-end":n==="end"}),...t});yl.displayName="DialogFooter";const Wa=l.forwardRef(({className:e,...n},t)=>c.jsx(Fa,{ref:t,className:N("flex items-center gap-2 text-xl font-medium leading-none",e),...n}));Wa.displayName=Fa.displayName;const bl=l.forwardRef(({className:e,...n},t)=>c.jsx($a,{ref:t,className:N("text-sm text-foreground tracking-[0.25px]",e),...n}));bl.displayName=$a.displayName;const xl=({className:e,scrollableSection:n,...t})=>c.jsx("div",{className:N("flex flex-col space-y-4 bg-background p-5",n&&"overflow-y-auto overflow-x-hidden dialog-scrollbar flex-1",e),...t});xl.displayName="DialogSection";const Ra=l.forwardRef(({className:e,...n},t)=>c.jsx(gt,{ref:t,className:N("flex h-full w-full flex-col overflow-hidden rounded-md bg-background text-foreground",e),...n}));Ra.displayName=gt.displayName;const Gy=({children:e,...n})=>c.jsx(Za,{...n,children:c.jsx(no,{className:"overflow-hidden p-0 shadow-lg",children:c.jsx(Ra,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Sl=l.forwardRef(({className:e,...n},t)=>c.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[c.jsx(Ww,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),c.jsx(gt.Input,{ref:t,className:N("flex h-11 w-full rounded-md bg-[transparent] py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...n})]}));Sl.displayName=gt.Input.displayName;const El=l.forwardRef(({className:e,...n},t)=>c.jsx(gt.List,{ref:t,className:N("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...n}));El.displayName=gt.List.displayName;const _0=l.forwardRef((e,n)=>c.jsx(gt.Empty,{ref:n,className:"py-6 text-center text-sm",...e}));_0.displayName=gt.Empty.displayName;const I0=l.forwardRef(({className:e,...n},t)=>c.jsx(gt.Group,{ref:t,className:N("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",e),...n}));I0.displayName=gt.Group.displayName;const k0=l.forwardRef(({className:e,...n},t)=>c.jsx(gt.Separator,{ref:t,className:N("-mx-1 h-px bg-border",e),...n}));k0.displayName=gt.Separator.displayName;const Ml=l.forwardRef(({className:e,...n},t)=>c.jsx(gt.Item,{ref:t,className:N("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",e),...n}));Ml.displayName=gt.Item.displayName;const T0=({className:e,...n})=>c.jsx("span",{className:N("ml-auto text-xs tracking-widest text-muted-foreground",e),...n});T0.displayName="CommandShortcut";/**
|
|
111
111
|
* table-core
|
|
112
112
|
*
|
|
113
113
|
* Copyright (c) TanStack
|
|
@@ -119,7 +119,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${n.do
|
|
|
119
119
|
*/function yn(e,n){return typeof e=="function"?e(n):e}function vt(e,n){return t=>{n.setState(r=>({...r,[e]:yn(t,r[e])}))}}function Ga(e){return e instanceof Function}function jy(e){return Array.isArray(e)&&e.every(n=>typeof n=="number")}function Yy(e,n){const t=[],r=o=>{o.forEach(a=>{t.push(a);const s=n(a);s!=null&&s.length&&r(s)})};return r(e),t}function de(e,n,t){let r=[],o;return a=>{let s;t.key&&t.debug&&(s=Date.now());const i=e(a);if(!(i.length!==r.length||i.some((f,h)=>r[h]!==f)))return o;r=i;let d;if(t.key&&t.debug&&(d=Date.now()),o=n(...i),t==null||t.onChange==null||t.onChange(o),t.key&&t.debug&&t!=null&&t.debug()){const f=Math.round((Date.now()-s)*100)/100,h=Math.round((Date.now()-d)*100)/100,g=h/16,m=(C,p)=>{for(C=String(C);C.length<p;)C=" "+C;return C};console.info(`%c⏱ ${m(h,5)} /${m(f,5)} ms`,`
|
|
120
120
|
font-size: .6rem;
|
|
121
121
|
font-weight: bold;
|
|
122
|
-
color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,t==null?void 0:t.key)}return o}}function fe(e,n,t,r){return{debug:()=>{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[n]},key:process.env.NODE_ENV==="development"&&t,onChange:r}}function Uy(e,n,t,r){const o=()=>{var s;return(s=a.getValue())!=null?s:e.options.renderFallbackValue},a={id:`${n.id}_${t.id}`,row:n,column:t,getValue:()=>n.getValue(r),renderValue:o,getContext:de(()=>[e,t,n,a],(s,i,u,d)=>({table:s,column:i,row:u,cell:d,getValue:d.getValue,renderValue:d.renderValue}),fe(e.options,"debugCells","cell.getContext"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(a,t,n,e)},{}),a}function qy(e,n,t,r){var o,a;const i={...e._getDefaultColumnDef(),...n},u=i.accessorKey;let d=(o=(a=i.id)!=null?a:u?typeof String.prototype.replaceAll=="function"?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)!=null?o:typeof i.header=="string"?i.header:void 0,f;if(i.accessorFn?f=i.accessorFn:u&&(u.includes(".")?f=g=>{let m=g;for(const p of u.split(".")){var C;m=(C=m)==null?void 0:C[p],process.env.NODE_ENV!=="production"&&m===void 0&&console.warn(`"${p}" in deeply nested key "${u}" returned undefined.`)}return m}:f=g=>g[i.accessorKey]),!d)throw process.env.NODE_ENV!=="production"?new Error(i.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let h={id:`${String(d)}`,accessorFn:f,parent:r,depth:t,columnDef:i,columns:[],getFlatColumns:de(()=>[!0],()=>{var g;return[h,...(g=h.columns)==null?void 0:g.flatMap(m=>m.getFlatColumns())]},fe(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:de(()=>[e._getOrderColumnsFn()],g=>{var m;if((m=h.columns)!=null&&m.length){let C=h.columns.flatMap(p=>p.getLeafColumns());return g(C)}return[h]},fe(e.options,"debugColumns","column.getLeafColumns"))};for(const g of e._features)g.createColumn==null||g.createColumn(h,e);return h}const ot="debugHeaders";function D0(e,n,t){var r;let a={id:(r=t.id)!=null?r:n.id,column:n,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],i=u=>{u.subHeaders&&u.subHeaders.length&&u.subHeaders.map(i),s.push(u)};return i(a),s},getContext:()=>({table:e,header:a,column:n})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(a,e)}),a}const Ky={createTable:e=>{e.getHeaderGroups=de(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,r,o)=>{var a,s;const i=(a=r==null?void 0:r.map(h=>t.find(g=>g.id===h)).filter(Boolean))!=null?a:[],u=(s=o==null?void 0:o.map(h=>t.find(g=>g.id===h)).filter(Boolean))!=null?s:[],d=t.filter(h=>!(r!=null&&r.includes(h.id))&&!(o!=null&&o.includes(h.id)));return ja(n,[...i,...d,...u],e)},fe(e.options,ot,"getHeaderGroups")),e.getCenterHeaderGroups=de(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,r,o)=>(t=t.filter(a=>!(r!=null&&r.includes(a.id))&&!(o!=null&&o.includes(a.id))),ja(n,t,e,"center")),fe(e.options,ot,"getCenterHeaderGroups")),e.getLeftHeaderGroups=de(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(n,t,r)=>{var o;const a=(o=r==null?void 0:r.map(s=>t.find(i=>i.id===s)).filter(Boolean))!=null?o:[];return ja(n,a,e,"left")},fe(e.options,ot,"getLeftHeaderGroups")),e.getRightHeaderGroups=de(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(n,t,r)=>{var o;const a=(o=r==null?void 0:r.map(s=>t.find(i=>i.id===s)).filter(Boolean))!=null?o:[];return ja(n,a,e,"right")},fe(e.options,ot,"getRightHeaderGroups")),e.getFooterGroups=de(()=>[e.getHeaderGroups()],n=>[...n].reverse(),fe(e.options,ot,"getFooterGroups")),e.getLeftFooterGroups=de(()=>[e.getLeftHeaderGroups()],n=>[...n].reverse(),fe(e.options,ot,"getLeftFooterGroups")),e.getCenterFooterGroups=de(()=>[e.getCenterHeaderGroups()],n=>[...n].reverse(),fe(e.options,ot,"getCenterFooterGroups")),e.getRightFooterGroups=de(()=>[e.getRightHeaderGroups()],n=>[...n].reverse(),fe(e.options,ot,"getRightFooterGroups")),e.getFlatHeaders=de(()=>[e.getHeaderGroups()],n=>n.map(t=>t.headers).flat(),fe(e.options,ot,"getFlatHeaders")),e.getLeftFlatHeaders=de(()=>[e.getLeftHeaderGroups()],n=>n.map(t=>t.headers).flat(),fe(e.options,ot,"getLeftFlatHeaders")),e.getCenterFlatHeaders=de(()=>[e.getCenterHeaderGroups()],n=>n.map(t=>t.headers).flat(),fe(e.options,ot,"getCenterFlatHeaders")),e.getRightFlatHeaders=de(()=>[e.getRightHeaderGroups()],n=>n.map(t=>t.headers).flat(),fe(e.options,ot,"getRightFlatHeaders")),e.getCenterLeafHeaders=de(()=>[e.getCenterFlatHeaders()],n=>n.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),fe(e.options,ot,"getCenterLeafHeaders")),e.getLeftLeafHeaders=de(()=>[e.getLeftFlatHeaders()],n=>n.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),fe(e.options,ot,"getLeftLeafHeaders")),e.getRightLeafHeaders=de(()=>[e.getRightFlatHeaders()],n=>n.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),fe(e.options,ot,"getRightLeafHeaders")),e.getLeafHeaders=de(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(n,t,r)=>{var o,a,s,i,u,d;return[...(o=(a=n[0])==null?void 0:a.headers)!=null?o:[],...(s=(i=t[0])==null?void 0:i.headers)!=null?s:[],...(u=(d=r[0])==null?void 0:d.headers)!=null?u:[]].map(f=>f.getLeafHeaders()).flat()},fe(e.options,ot,"getLeafHeaders"))}};function ja(e,n,t,r){var o,a;let s=0;const i=function(g,m){m===void 0&&(m=1),s=Math.max(s,m),g.filter(C=>C.getIsVisible()).forEach(C=>{var p;(p=C.columns)!=null&&p.length&&i(C.columns,m+1)},0)};i(e);let u=[];const d=(g,m)=>{const C={depth:m,id:[r,`${m}`].filter(Boolean).join("_"),headers:[]},p=[];g.forEach(v=>{const w=[...p].reverse()[0],y=v.column.depth===C.depth;let b,S=!1;if(y&&v.column.parent?b=v.column.parent:(b=v.column,S=!0),w&&(w==null?void 0:w.column)===b)w.subHeaders.push(v);else{const M=D0(t,b,{id:[r,m,b.id,v==null?void 0:v.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${p.filter(L=>L.column===b).length}`:void 0,depth:m,index:p.length});M.subHeaders.push(v),p.push(M)}C.headers.push(v),v.headerGroup=C}),u.push(C),m>0&&d(p,m-1)},f=n.map((g,m)=>D0(t,g,{depth:s,index:m}));d(f,s-1),u.reverse();const h=g=>g.filter(C=>C.column.getIsVisible()).map(C=>{let p=0,v=0,w=[0];C.subHeaders&&C.subHeaders.length?(w=[],h(C.subHeaders).forEach(b=>{let{colSpan:S,rowSpan:M}=b;p+=S,w.push(M)})):p=1;const y=Math.min(...w);return v=v+y,C.colSpan=p,C.rowSpan=v,{colSpan:p,rowSpan:v}});return h((o=(a=u[0])==null?void 0:a.headers)!=null?o:[]),u}const Xy=(e,n,t,r,o,a,s)=>{let i={id:n,index:r,original:t,depth:o,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:u=>{if(i._valuesCache.hasOwnProperty(u))return i._valuesCache[u];const d=e.getColumn(u);if(d!=null&&d.accessorFn)return i._valuesCache[u]=d.accessorFn(i.original,r),i._valuesCache[u]},getUniqueValues:u=>{if(i._uniqueValuesCache.hasOwnProperty(u))return i._uniqueValuesCache[u];const d=e.getColumn(u);if(d!=null&&d.accessorFn)return d.columnDef.getUniqueValues?(i._uniqueValuesCache[u]=d.columnDef.getUniqueValues(i.original,r),i._uniqueValuesCache[u]):(i._uniqueValuesCache[u]=[i.getValue(u)],i._uniqueValuesCache[u])},renderValue:u=>{var d;return(d=i.getValue(u))!=null?d:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>Yy(i.subRows,u=>u.subRows),getParentRow:()=>i.parentId?e.getRow(i.parentId,!0):void 0,getParentRows:()=>{let u=[],d=i;for(;;){const f=d.getParentRow();if(!f)break;u.push(f),d=f}return u.reverse()},getAllCells:de(()=>[e.getAllLeafColumns()],u=>u.map(d=>Uy(e,i,d,d.id)),fe(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:de(()=>[i.getAllCells()],u=>u.reduce((d,f)=>(d[f.column.id]=f,d),{}),fe(e.options,"debugRows","getAllCellsByColumnId"))};for(let u=0;u<e._features.length;u++){const d=e._features[u];d==null||d.createRow==null||d.createRow(i,e)}return i},Qy={createColumn:(e,n)=>{e._getFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():n.getPreFilteredRowModel(),e._getFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},O0=(e,n,t)=>{var r,o;const a=t==null||(r=t.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(n))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(a))};O0.autoRemove=e=>Pt(e);const V0=(e,n,t)=>{var r;return!!(!((r=e.getValue(n))==null||(r=r.toString())==null)&&r.includes(t))};V0.autoRemove=e=>Pt(e);const H0=(e,n,t)=>{var r;return((r=e.getValue(n))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(t==null?void 0:t.toLowerCase())};H0.autoRemove=e=>Pt(e);const A0=(e,n,t)=>{var r;return(r=e.getValue(n))==null?void 0:r.includes(t)};A0.autoRemove=e=>Pt(e);const F0=(e,n,t)=>!t.some(r=>{var o;return!((o=e.getValue(n))!=null&&o.includes(r))});F0.autoRemove=e=>Pt(e)||!(e!=null&&e.length);const $0=(e,n,t)=>t.some(r=>{var o;return(o=e.getValue(n))==null?void 0:o.includes(r)});$0.autoRemove=e=>Pt(e)||!(e!=null&&e.length);const z0=(e,n,t)=>e.getValue(n)===t;z0.autoRemove=e=>Pt(e);const B0=(e,n,t)=>e.getValue(n)==t;B0.autoRemove=e=>Pt(e);const Ll=(e,n,t)=>{let[r,o]=t;const a=e.getValue(n);return a>=r&&a<=o};Ll.resolveFilterValue=e=>{let[n,t]=e,r=typeof n!="number"?parseFloat(n):n,o=typeof t!="number"?parseFloat(t):t,a=n===null||Number.isNaN(r)?-1/0:r,s=t===null||Number.isNaN(o)?1/0:o;if(a>s){const i=a;a=s,s=i}return[a,s]},Ll.autoRemove=e=>Pt(e)||Pt(e[0])&&Pt(e[1]);const en={includesString:O0,includesStringSensitive:V0,equalsString:H0,arrIncludes:A0,arrIncludesAll:F0,arrIncludesSome:$0,equals:z0,weakEquals:B0,inNumberRange:Ll};function Pt(e){return e==null||e===""}const Jy={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:vt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,n)=>{e.getAutoFilterFn=()=>{const t=n.getCoreRowModel().flatRows[0],r=t==null?void 0:t.getValue(e.id);return typeof r=="string"?en.includesString:typeof r=="number"?en.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?en.equals:Array.isArray(r)?en.arrIncludes:en.weakEquals},e.getFilterFn=()=>{var t,r;return Ga(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(t=(r=n.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?t:en[e.columnDef.filterFn]},e.getCanFilter=()=>{var t,r,o;return((t=e.columnDef.enableColumnFilter)!=null?t:!0)&&((r=n.options.enableColumnFilters)!=null?r:!0)&&((o=n.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var t;return(t=n.getState().columnFilters)==null||(t=t.find(r=>r.id===e.id))==null?void 0:t.value},e.getFilterIndex=()=>{var t,r;return(t=(r=n.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?t:-1},e.setFilterValue=t=>{n.setColumnFilters(r=>{const o=e.getFilterFn(),a=r==null?void 0:r.find(f=>f.id===e.id),s=yn(t,a?a.value:void 0);if(Z0(o,s,e)){var i;return(i=r==null?void 0:r.filter(f=>f.id!==e.id))!=null?i:[]}const u={id:e.id,value:s};if(a){var d;return(d=r==null?void 0:r.map(f=>f.id===e.id?u:f))!=null?d:[]}return r!=null&&r.length?[...r,u]:[u]})}},createRow:(e,n)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=n=>{const t=e.getAllLeafColumns(),r=o=>{var a;return(a=yn(n,o))==null?void 0:a.filter(s=>{const i=t.find(u=>u.id===s.id);if(i){const u=i.getFilterFn();if(Z0(u,s.value,i))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=n=>{var t,r;e.setColumnFilters(n?[]:(t=(r=e.initialState)==null?void 0:r.columnFilters)!=null?t:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Z0(e,n,t){return(e&&e.autoRemove?e.autoRemove(n,t):!1)||typeof n>"u"||typeof n=="string"&&!n}const Nl={sum:(e,n,t)=>t.reduce((r,o)=>{const a=o.getValue(e);return r+(typeof a=="number"?a:0)},0),min:(e,n,t)=>{let r;return t.forEach(o=>{const a=o.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},max:(e,n,t)=>{let r;return t.forEach(o=>{const a=o.getValue(e);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},extent:(e,n,t)=>{let r,o;return t.forEach(a=>{const s=a.getValue(e);s!=null&&(r===void 0?s>=s&&(r=o=s):(r>s&&(r=s),o<s&&(o=s)))}),[r,o]},mean:(e,n)=>{let t=0,r=0;if(n.forEach(o=>{let a=o.getValue(e);a!=null&&(a=+a)>=a&&(++t,r+=a)}),t)return r/t},median:(e,n)=>{if(!n.length)return;const t=n.map(a=>a.getValue(e));if(!jy(t))return;if(t.length===1)return t[0];const r=Math.floor(t.length/2),o=t.sort((a,s)=>a-s);return t.length%2!==0?o[r]:(o[r-1]+o[r])/2},unique:(e,n)=>Array.from(new Set(n.map(t=>t.getValue(e))).values()),uniqueCount:(e,n)=>new Set(n.map(t=>t.getValue(e))).size,count:(e,n)=>n.length},eb={getDefaultColumnDef:()=>({aggregatedCell:e=>{var n,t;return(n=(t=e.getValue())==null||t.toString==null?void 0:t.toString())!=null?n:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:vt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,n)=>{e.toggleGrouping=()=>{n.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(r=>r!==e.id):[...t??[],e.id])},e.getCanGroup=()=>{var t,r;return((t=e.columnDef.enableGrouping)!=null?t:!0)&&((r=n.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var t;return(t=n.getState().grouping)==null?void 0:t.includes(e.id)},e.getGroupedIndex=()=>{var t;return(t=n.getState().grouping)==null?void 0:t.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const t=n.getCoreRowModel().flatRows[0],r=t==null?void 0:t.getValue(e.id);if(typeof r=="number")return Nl.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Nl.extent},e.getAggregationFn=()=>{var t,r;if(!e)throw new Error;return Ga(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(t=(r=n.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?t:Nl[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=n=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(n),e.resetGrouping=n=>{var t,r;e.setGrouping(n?[]:(t=(r=e.initialState)==null?void 0:r.grouping)!=null?t:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,n)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=t=>{if(e._groupingValuesCache.hasOwnProperty(t))return e._groupingValuesCache[t];const r=n.getColumn(t);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[t]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[t]):e.getValue(t)},e._groupingValuesCache={}},createCell:(e,n,t,r)=>{e.getIsGrouped=()=>n.getIsGrouped()&&n.id===t.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&n.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=t.subRows)!=null&&o.length)}}};function tb(e,n,t){if(!(n!=null&&n.length)||!t)return e;const r=e.filter(a=>!n.includes(a.id));return t==="remove"?r:[...n.map(a=>e.find(s=>s.id===a)).filter(Boolean),...r]}const nb={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:vt("columnOrder",e)}),createColumn:(e,n)=>{e.getIndex=de(t=>[ro(n,t)],t=>t.findIndex(r=>r.id===e.id),fe(n.options,"debugColumns","getIndex")),e.getIsFirstColumn=t=>{var r;return((r=ro(n,t)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=t=>{var r;const o=ro(n,t);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=n=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(n),e.resetColumnOrder=n=>{var t;e.setColumnOrder(n?[]:(t=e.initialState.columnOrder)!=null?t:[])},e._getOrderColumnsFn=de(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(n,t,r)=>o=>{let a=[];if(!(n!=null&&n.length))a=o;else{const s=[...n],i=[...o];for(;i.length&&s.length;){const u=s.shift(),d=i.findIndex(f=>f.id===u);d>-1&&a.push(i.splice(d,1)[0])}a=[...a,...i]}return tb(a,t,r)},fe(e.options,"debugTable","_getOrderColumnsFn"))}},Pl=()=>({left:[],right:[]}),rb={getInitialState:e=>({columnPinning:Pl(),...e}),getDefaultOptions:e=>({onColumnPinningChange:vt("columnPinning",e)}),createColumn:(e,n)=>{e.pin=t=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);n.setColumnPinning(o=>{var a,s;if(t==="right"){var i,u;return{left:((i=o==null?void 0:o.left)!=null?i:[]).filter(h=>!(r!=null&&r.includes(h))),right:[...((u=o==null?void 0:o.right)!=null?u:[]).filter(h=>!(r!=null&&r.includes(h))),...r]}}if(t==="left"){var d,f;return{left:[...((d=o==null?void 0:o.left)!=null?d:[]).filter(h=>!(r!=null&&r.includes(h))),...r],right:((f=o==null?void 0:o.right)!=null?f:[]).filter(h=>!(r!=null&&r.includes(h)))}}return{left:((a=o==null?void 0:o.left)!=null?a:[]).filter(h=>!(r!=null&&r.includes(h))),right:((s=o==null?void 0:o.right)!=null?s:[]).filter(h=>!(r!=null&&r.includes(h)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,a,s;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((a=(s=n.options.enableColumnPinning)!=null?s:n.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const t=e.getLeafColumns().map(i=>i.id),{left:r,right:o}=n.getState().columnPinning,a=t.some(i=>r==null?void 0:r.includes(i)),s=t.some(i=>o==null?void 0:o.includes(i));return a?"left":s?"right":!1},e.getPinnedIndex=()=>{var t,r;const o=e.getIsPinned();return o?(t=(r=n.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?t:-1:0}},createRow:(e,n)=>{e.getCenterVisibleCells=de(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left,n.getState().columnPinning.right],(t,r,o)=>{const a=[...r??[],...o??[]];return t.filter(s=>!a.includes(s.column.id))},fe(n.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=de(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left],(t,r)=>(r??[]).map(a=>t.find(s=>s.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),fe(n.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=de(()=>[e._getAllVisibleCells(),n.getState().columnPinning.right],(t,r)=>(r??[]).map(a=>t.find(s=>s.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),fe(n.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=n=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(n),e.resetColumnPinning=n=>{var t,r;return e.setColumnPinning(n?Pl():(t=(r=e.initialState)==null?void 0:r.columnPinning)!=null?t:Pl())},e.getIsSomeColumnsPinned=n=>{var t;const r=e.getState().columnPinning;if(!n){var o,a;return!!((o=r.left)!=null&&o.length||(a=r.right)!=null&&a.length)}return!!((t=r[n])!=null&&t.length)},e.getLeftLeafColumns=de(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(n,t)=>(t??[]).map(r=>n.find(o=>o.id===r)).filter(Boolean),fe(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=de(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(n,t)=>(t??[]).map(r=>n.find(o=>o.id===r)).filter(Boolean),fe(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=de(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,r)=>{const o=[...t??[],...r??[]];return n.filter(a=>!o.includes(a.id))},fe(e.options,"debugColumns","getCenterLeafColumns"))}};function ob(e){return e||(typeof document<"u"?document:null)}const Ya={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},_l=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),ab={getDefaultColumnDef:()=>Ya,getInitialState:e=>({columnSizing:{},columnSizingInfo:_l(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:vt("columnSizing",e),onColumnSizingInfoChange:vt("columnSizingInfo",e)}),createColumn:(e,n)=>{e.getSize=()=>{var t,r,o;const a=n.getState().columnSizing[e.id];return Math.min(Math.max((t=e.columnDef.minSize)!=null?t:Ya.minSize,(r=a??e.columnDef.size)!=null?r:Ya.size),(o=e.columnDef.maxSize)!=null?o:Ya.maxSize)},e.getStart=de(t=>[t,ro(n,t),n.getState().columnSizing],(t,r)=>r.slice(0,e.getIndex(t)).reduce((o,a)=>o+a.getSize(),0),fe(n.options,"debugColumns","getStart")),e.getAfter=de(t=>[t,ro(n,t),n.getState().columnSizing],(t,r)=>r.slice(e.getIndex(t)+1).reduce((o,a)=>o+a.getSize(),0),fe(n.options,"debugColumns","getAfter")),e.resetSize=()=>{n.setColumnSizing(t=>{let{[e.id]:r,...o}=t;return o})},e.getCanResize=()=>{var t,r;return((t=e.columnDef.enableResizing)!=null?t:!0)&&((r=n.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>n.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,n)=>{e.getSize=()=>{let t=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var a;t+=(a=o.column.getSize())!=null?a:0}};return r(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=t=>{const r=n.getColumn(e.column.id),o=r==null?void 0:r.getCanResize();return a=>{if(!r||!o||(a.persist==null||a.persist(),Il(a)&&a.touches&&a.touches.length>1))return;const s=e.getSize(),i=e?e.getLeafHeaders().map(w=>[w.column.id,w.column.getSize()]):[[r.id,r.getSize()]],u=Il(a)?Math.round(a.touches[0].clientX):a.clientX,d={},f=(w,y)=>{typeof y=="number"&&(n.setColumnSizingInfo(b=>{var S,M;const L=n.options.columnResizeDirection==="rtl"?-1:1,E=(y-((S=b==null?void 0:b.startOffset)!=null?S:0))*L,I=Math.max(E/((M=b==null?void 0:b.startSize)!=null?M:0),-.999999);return b.columnSizingStart.forEach(k=>{let[O,H]=k;d[O]=Math.round(Math.max(H+H*I,0)*100)/100}),{...b,deltaOffset:E,deltaPercentage:I}}),(n.options.columnResizeMode==="onChange"||w==="end")&&n.setColumnSizing(b=>({...b,...d})))},h=w=>f("move",w),g=w=>{f("end",w),n.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},m=ob(t),C={moveHandler:w=>h(w.clientX),upHandler:w=>{m==null||m.removeEventListener("mousemove",C.moveHandler),m==null||m.removeEventListener("mouseup",C.upHandler),g(w.clientX)}},p={moveHandler:w=>(w.cancelable&&(w.preventDefault(),w.stopPropagation()),h(w.touches[0].clientX),!1),upHandler:w=>{var y;m==null||m.removeEventListener("touchmove",p.moveHandler),m==null||m.removeEventListener("touchend",p.upHandler),w.cancelable&&(w.preventDefault(),w.stopPropagation()),g((y=w.touches[0])==null?void 0:y.clientX)}},v=sb()?{passive:!1}:!1;Il(a)?(m==null||m.addEventListener("touchmove",p.moveHandler,v),m==null||m.addEventListener("touchend",p.upHandler,v)):(m==null||m.addEventListener("mousemove",C.moveHandler,v),m==null||m.addEventListener("mouseup",C.upHandler,v)),n.setColumnSizingInfo(w=>({...w,startOffset:u,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:i,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=n=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(n),e.setColumnSizingInfo=n=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(n),e.resetColumnSizing=n=>{var t;e.setColumnSizing(n?{}:(t=e.initialState.columnSizing)!=null?t:{})},e.resetHeaderSizeInfo=n=>{var t;e.setColumnSizingInfo(n?_l():(t=e.initialState.columnSizingInfo)!=null?t:_l())},e.getTotalSize=()=>{var n,t;return(n=(t=e.getHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getLeftTotalSize=()=>{var n,t;return(n=(t=e.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getCenterTotalSize=()=>{var n,t;return(n=(t=e.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getRightTotalSize=()=>{var n,t;return(n=(t=e.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0}}};let Ua=null;function sb(){if(typeof Ua=="boolean")return Ua;let e=!1;try{const n={get passive(){return e=!0,!1}},t=()=>{};window.addEventListener("test",t,n),window.removeEventListener("test",t)}catch{e=!1}return Ua=e,Ua}function Il(e){return e.type==="touchstart"}const ib={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:vt("columnVisibility",e)}),createColumn:(e,n)=>{e.toggleVisibility=t=>{e.getCanHide()&&n.setColumnVisibility(r=>({...r,[e.id]:t??!e.getIsVisible()}))},e.getIsVisible=()=>{var t,r;const o=e.columns;return(t=o.length?o.some(a=>a.getIsVisible()):(r=n.getState().columnVisibility)==null?void 0:r[e.id])!=null?t:!0},e.getCanHide=()=>{var t,r;return((t=e.columnDef.enableHiding)!=null?t:!0)&&((r=n.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,n)=>{e._getAllVisibleCells=de(()=>[e.getAllCells(),n.getState().columnVisibility],t=>t.filter(r=>r.column.getIsVisible()),fe(n.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=de(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(t,r,o)=>[...t,...r,...o],fe(n.options,"debugRows","getVisibleCells"))},createTable:e=>{const n=(t,r)=>de(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),fe(e.options,"debugColumns",t));e.getVisibleFlatColumns=n("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=n("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=n("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=n("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=n("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var r;e.setColumnVisibility(t?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=t=>{var r;t=(r=t)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,a)=>({...o,[a.id]:t||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var r;e.toggleAllColumnsVisible((r=t.target)==null?void 0:r.checked)}}};function ro(e,n){return n?n==="center"?e.getCenterVisibleLeafColumns():n==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const lb={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},cb={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:vt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:n=>{var t;const r=(t=e.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[n.id])==null?void 0:t.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,n)=>{e.getCanGlobalFilter=()=>{var t,r,o,a;return((t=e.columnDef.enableGlobalFilter)!=null?t:!0)&&((r=n.options.enableGlobalFilter)!=null?r:!0)&&((o=n.options.enableFilters)!=null?o:!0)&&((a=n.options.getColumnCanGlobalFilter==null?void 0:n.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>en.includesString,e.getGlobalFilterFn=()=>{var n,t;const{globalFilterFn:r}=e.options;return Ga(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(n=(t=e.options.filterFns)==null?void 0:t[r])!=null?n:en[r]},e.setGlobalFilter=n=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(n)},e.resetGlobalFilter=n=>{e.setGlobalFilter(n?void 0:e.initialState.globalFilter)}}},ub={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:vt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let n=!1,t=!1;e._autoResetExpanded=()=>{var r,o;if(!n){e._queue(()=>{n=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(t)return;t=!0,e._queue(()=>{e.resetExpanded(),t=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,a;e.setExpanded(r?{}:(o=(a=e.initialState)==null?void 0:a.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const s=a.split(".");r=Math.max(r,s.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,n)=>{e.toggleExpanded=t=>{n.setExpanded(r=>{var o;const a=r===!0?!0:!!(r!=null&&r[e.id]);let s={};if(r===!0?Object.keys(n.getRowModel().rowsById).forEach(i=>{s[i]=!0}):s=r,t=(o=t)!=null?o:!a,!a&&t)return{...s,[e.id]:!0};if(a&&!t){const{[e.id]:i,...u}=s;return u}return r})},e.getIsExpanded=()=>{var t;const r=n.getState().expanded;return!!((t=n.options.getIsRowExpanded==null?void 0:n.options.getIsRowExpanded(e))!=null?t:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var t,r,o;return(t=n.options.getRowCanExpand==null?void 0:n.options.getRowCanExpand(e))!=null?t:((r=n.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let t=!0,r=e;for(;t&&r.parentId;)r=n.getRow(r.parentId,!0),t=r.getIsExpanded();return t},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},kl=0,Tl=10,Dl=()=>({pageIndex:kl,pageSize:Tl}),db={getInitialState:e=>({...e,pagination:{...Dl(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:vt("pagination",e)}),createTable:e=>{let n=!1,t=!1;e._autoResetPageIndex=()=>{var r,o;if(!n){e._queue(()=>{n=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(t)return;t=!0,e._queue(()=>{e.resetPageIndex(),t=!1})}},e.setPagination=r=>{const o=a=>yn(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?Dl():(o=e.initialState.pagination)!=null?o:Dl())},e.setPageIndex=r=>{e.setPagination(o=>{let a=yn(r,o.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,s)),{...o,pageIndex:a}})},e.resetPageIndex=r=>{var o,a;e.setPageIndex(r?kl:(o=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?o:kl)},e.resetPageSize=r=>{var o,a;e.setPageSize(r?Tl:(o=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?o:Tl)},e.setPageSize=r=>{e.setPagination(o=>{const a=Math.max(1,yn(r,o.pageSize)),s=o.pageSize*o.pageIndex,i=Math.floor(s/a);return{...o,pageIndex:i,pageSize:a}})},e.setPageCount=r=>e.setPagination(o=>{var a;let s=yn(r,(a=e.options.pageCount)!=null?a:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),e.getPageOptions=de(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((a,s)=>s)),o},fe(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Ol=()=>({top:[],bottom:[]}),fb={getInitialState:e=>({rowPinning:Ol(),...e}),getDefaultOptions:e=>({onRowPinningChange:vt("rowPinning",e)}),createRow:(e,n)=>{e.pin=(t,r,o)=>{const a=r?e.getLeafRows().map(u=>{let{id:d}=u;return d}):[],s=o?e.getParentRows().map(u=>{let{id:d}=u;return d}):[],i=new Set([...s,e.id,...a]);n.setRowPinning(u=>{var d,f;if(t==="bottom"){var h,g;return{top:((h=u==null?void 0:u.top)!=null?h:[]).filter(p=>!(i!=null&&i.has(p))),bottom:[...((g=u==null?void 0:u.bottom)!=null?g:[]).filter(p=>!(i!=null&&i.has(p))),...Array.from(i)]}}if(t==="top"){var m,C;return{top:[...((m=u==null?void 0:u.top)!=null?m:[]).filter(p=>!(i!=null&&i.has(p))),...Array.from(i)],bottom:((C=u==null?void 0:u.bottom)!=null?C:[]).filter(p=>!(i!=null&&i.has(p)))}}return{top:((d=u==null?void 0:u.top)!=null?d:[]).filter(p=>!(i!=null&&i.has(p))),bottom:((f=u==null?void 0:u.bottom)!=null?f:[]).filter(p=>!(i!=null&&i.has(p)))}})},e.getCanPin=()=>{var t;const{enableRowPinning:r,enablePinning:o}=n.options;return typeof r=="function"?r(e):(t=r??o)!=null?t:!0},e.getIsPinned=()=>{const t=[e.id],{top:r,bottom:o}=n.getState().rowPinning,a=t.some(i=>r==null?void 0:r.includes(i)),s=t.some(i=>o==null?void 0:o.includes(i));return a?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var t,r;const o=e.getIsPinned();if(!o)return-1;const a=(t=o==="top"?n.getTopRows():n.getBottomRows())==null?void 0:t.map(s=>{let{id:i}=s;return i});return(r=a==null?void 0:a.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=n=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(n),e.resetRowPinning=n=>{var t,r;return e.setRowPinning(n?Ol():(t=(r=e.initialState)==null?void 0:r.rowPinning)!=null?t:Ol())},e.getIsSomeRowsPinned=n=>{var t;const r=e.getState().rowPinning;if(!n){var o,a;return!!((o=r.top)!=null&&o.length||(a=r.bottom)!=null&&a.length)}return!!((t=r[n])!=null&&t.length)},e._getPinnedRows=(n,t,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(t??[]).map(s=>{const i=e.getRow(s,!0);return i.getIsAllParentsExpanded()?i:null}):(t??[]).map(s=>n.find(i=>i.id===s))).filter(Boolean).map(s=>({...s,position:r}))},e.getTopRows=de(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(n,t)=>e._getPinnedRows(n,t,"top"),fe(e.options,"debugRows","getTopRows")),e.getBottomRows=de(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(n,t)=>e._getPinnedRows(n,t,"bottom"),fe(e.options,"debugRows","getBottomRows")),e.getCenterRows=de(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(n,t,r)=>{const o=new Set([...t??[],...r??[]]);return n.filter(a=>!o.has(a.id))},fe(e.options,"debugRows","getCenterRows"))}},hb={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:vt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=n=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(n),e.resetRowSelection=n=>{var t;return e.setRowSelection(n?{}:(t=e.initialState.rowSelection)!=null?t:{})},e.toggleAllRowsSelected=n=>{e.setRowSelection(t=>{n=typeof n<"u"?n:!e.getIsAllRowsSelected();const r={...t},o=e.getPreGroupedRowModel().flatRows;return n?o.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):o.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=n=>e.setRowSelection(t=>{const r=typeof n<"u"?n:!e.getIsAllPageRowsSelected(),o={...t};return e.getRowModel().rows.forEach(a=>{Vl(o,a.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=de(()=>[e.getState().rowSelection,e.getCoreRowModel()],(n,t)=>Object.keys(n).length?Hl(e,t):{rows:[],flatRows:[],rowsById:{}},fe(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=de(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(n,t)=>Object.keys(n).length?Hl(e,t):{rows:[],flatRows:[],rowsById:{}},fe(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=de(()=>[e.getState().rowSelection,e.getSortedRowModel()],(n,t)=>Object.keys(n).length?Hl(e,t):{rows:[],flatRows:[],rowsById:{}},fe(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const n=e.getFilteredRowModel().flatRows,{rowSelection:t}=e.getState();let r=!!(n.length&&Object.keys(t).length);return r&&n.some(o=>o.getCanSelect()&&!t[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:t}=e.getState();let r=!!n.length;return r&&n.some(o=>!t[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var n;const t=Object.keys((n=e.getState().rowSelection)!=null?n:{}).length;return t>0&&t<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:n.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>n=>{e.toggleAllRowsSelected(n.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>n=>{e.toggleAllPageRowsSelected(n.target.checked)}},createRow:(e,n)=>{e.toggleSelected=(t,r)=>{const o=e.getIsSelected();n.setRowSelection(a=>{var s;if(t=typeof t<"u"?t:!o,e.getCanSelect()&&o===t)return a;const i={...a};return Vl(i,e.id,t,(s=r==null?void 0:r.selectChildren)!=null?s:!0,n),i})},e.getIsSelected=()=>{const{rowSelection:t}=n.getState();return Al(e,t)},e.getIsSomeSelected=()=>{const{rowSelection:t}=n.getState();return Fl(e,t)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=n.getState();return Fl(e,t)==="all"},e.getCanSelect=()=>{var t;return typeof n.options.enableRowSelection=="function"?n.options.enableRowSelection(e):(t=n.options.enableRowSelection)!=null?t:!0},e.getCanSelectSubRows=()=>{var t;return typeof n.options.enableSubRowSelection=="function"?n.options.enableSubRowSelection(e):(t=n.options.enableSubRowSelection)!=null?t:!0},e.getCanMultiSelect=()=>{var t;return typeof n.options.enableMultiRowSelection=="function"?n.options.enableMultiRowSelection(e):(t=n.options.enableMultiRowSelection)!=null?t:!0},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return r=>{var o;t&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Vl=(e,n,t,r,o)=>{var a;const s=o.getRow(n,!0);t?(s.getCanMultiSelect()||Object.keys(e).forEach(i=>delete e[i]),s.getCanSelect()&&(e[n]=!0)):delete e[n],r&&(a=s.subRows)!=null&&a.length&&s.getCanSelectSubRows()&&s.subRows.forEach(i=>Vl(e,i.id,t,r,o))};function Hl(e,n){const t=e.getState().rowSelection,r=[],o={},a=function(s,i){return s.map(u=>{var d;const f=Al(u,t);if(f&&(r.push(u),o[u.id]=u),(d=u.subRows)!=null&&d.length&&(u={...u,subRows:a(u.subRows)}),f)return u}).filter(Boolean)};return{rows:a(n.rows),flatRows:r,rowsById:o}}function Al(e,n){var t;return(t=n[e.id])!=null?t:!1}function Fl(e,n,t){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,a=!1;return e.subRows.forEach(s=>{if(!(a&&!o)&&(s.getCanSelect()&&(Al(s,n)?a=!0:o=!1),s.subRows&&s.subRows.length)){const i=Fl(s,n);i==="all"?a=!0:(i==="some"&&(a=!0),o=!1)}}),o?"all":a?"some":!1}const $l=/([0-9]+)/gm,gb=(e,n,t)=>W0(bn(e.getValue(t)).toLowerCase(),bn(n.getValue(t)).toLowerCase()),pb=(e,n,t)=>W0(bn(e.getValue(t)),bn(n.getValue(t))),mb=(e,n,t)=>zl(bn(e.getValue(t)).toLowerCase(),bn(n.getValue(t)).toLowerCase()),vb=(e,n,t)=>zl(bn(e.getValue(t)),bn(n.getValue(t))),Cb=(e,n,t)=>{const r=e.getValue(t),o=n.getValue(t);return r>o?1:r<o?-1:0},wb=(e,n,t)=>zl(e.getValue(t),n.getValue(t));function zl(e,n){return e===n?0:e>n?1:-1}function bn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function W0(e,n){const t=e.split($l).filter(Boolean),r=n.split($l).filter(Boolean);for(;t.length&&r.length;){const o=t.shift(),a=r.shift(),s=parseInt(o,10),i=parseInt(a,10),u=[s,i].sort();if(isNaN(u[0])){if(o>a)return 1;if(a>o)return-1;continue}if(isNaN(u[1]))return isNaN(s)?-1:1;if(s>i)return 1;if(i>s)return-1}return t.length-r.length}const oo={alphanumeric:gb,alphanumericCaseSensitive:pb,text:mb,textCaseSensitive:vb,datetime:Cb,basic:wb},yb=[Ky,ib,nb,rb,Qy,Jy,lb,cb,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:vt("sorting",e),isMultiSortEvent:n=>n.shiftKey}),createColumn:(e,n)=>{e.getAutoSortingFn=()=>{const t=n.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of t){const a=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return oo.datetime;if(typeof a=="string"&&(r=!0,a.split($l).length>1))return oo.alphanumeric}return r?oo.text:oo.basic},e.getAutoSortDir=()=>{const t=n.getFilteredRowModel().flatRows[0];return typeof(t==null?void 0:t.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var t,r;if(!e)throw new Error;return Ga(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(t=(r=n.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?t:oo[e.columnDef.sortingFn]},e.toggleSorting=(t,r)=>{const o=e.getNextSortingOrder(),a=typeof t<"u"&&t!==null;n.setSorting(s=>{const i=s==null?void 0:s.find(m=>m.id===e.id),u=s==null?void 0:s.findIndex(m=>m.id===e.id);let d=[],f,h=a?t:o==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&r?i?f="toggle":f="add":s!=null&&s.length&&u!==s.length-1?f="replace":i?f="toggle":f="replace",f==="toggle"&&(a||o||(f="remove")),f==="add"){var g;d=[...s,{id:e.id,desc:h}],d.splice(0,d.length-((g=n.options.maxMultiSortColCount)!=null?g:Number.MAX_SAFE_INTEGER))}else f==="toggle"?d=s.map(m=>m.id===e.id?{...m,desc:h}:m):f==="remove"?d=s.filter(m=>m.id!==e.id):d=[{id:e.id,desc:h}];return d})},e.getFirstSortDir=()=>{var t,r;return((t=(r=e.columnDef.sortDescFirst)!=null?r:n.options.sortDescFirst)!=null?t:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=t=>{var r,o;const a=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==a&&((r=n.options.enableSortingRemoval)==null||r)&&(!(t&&(o=n.options.enableMultiRemove)!=null)||o)?!1:s==="desc"?"asc":"desc":a},e.getCanSort=()=>{var t,r;return((t=e.columnDef.enableSorting)!=null?t:!0)&&((r=n.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var t,r;return(t=(r=e.columnDef.enableMultiSort)!=null?r:n.options.enableMultiSort)!=null?t:!!e.accessorFn},e.getIsSorted=()=>{var t;const r=(t=n.getState().sorting)==null?void 0:t.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var t,r;return(t=(r=n.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?t:-1},e.clearSorting=()=>{n.setSorting(t=>t!=null&&t.length?t.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const t=e.getCanSort();return r=>{t&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?n.options.isMultiSortEvent==null?void 0:n.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=n=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(n),e.resetSorting=n=>{var t,r;e.setSorting(n?[]:(t=(r=e.initialState)==null?void 0:r.sorting)!=null?t:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},eb,ub,db,fb,hb,ab];function bb(e){var n,t;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...yb,...(n=e._features)!=null?n:[]];let o={_features:r};const a=o._features.reduce((g,m)=>Object.assign(g,m.getDefaultOptions==null?void 0:m.getDefaultOptions(o)),{}),s=g=>o.options.mergeOptions?o.options.mergeOptions(a,g):{...a,...g};let u={...{},...(t=e.initialState)!=null?t:{}};o._features.forEach(g=>{var m;u=(m=g.getInitialState==null?void 0:g.getInitialState(u))!=null?m:u});const d=[];let f=!1;const h={_features:r,options:{...a,...e},initialState:u,_queue:g=>{d.push(g),f||(f=!0,Promise.resolve().then(()=>{for(;d.length;)d.shift()();f=!1}).catch(m=>setTimeout(()=>{throw m})))},reset:()=>{o.setState(o.initialState)},setOptions:g=>{const m=yn(g,o.options);o.options=s(m)},getState:()=>o.options.state,setState:g=>{o.options.onStateChange==null||o.options.onStateChange(g)},_getRowId:(g,m,C)=>{var p;return(p=o.options.getRowId==null?void 0:o.options.getRowId(g,m,C))!=null?p:`${C?[C.id,m].join("."):m}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(g,m)=>{let C=(m?o.getPrePaginationRowModel():o.getRowModel()).rowsById[g];if(!C&&(C=o.getCoreRowModel().rowsById[g],!C))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${g}`):new Error;return C},_getDefaultColumnDef:de(()=>[o.options.defaultColumn],g=>{var m;return g=(m=g)!=null?m:{},{header:C=>{const p=C.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:C=>{var p,v;return(p=(v=C.renderValue())==null||v.toString==null?void 0:v.toString())!=null?p:null},...o._features.reduce((C,p)=>Object.assign(C,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...g}},fe(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:de(()=>[o._getColumnDefs()],g=>{const m=function(C,p,v){return v===void 0&&(v=0),C.map(w=>{const y=qy(o,w,v,p),b=w;return y.columns=b.columns?m(b.columns,y,v+1):[],y})};return m(g)},fe(e,"debugColumns","getAllColumns")),getAllFlatColumns:de(()=>[o.getAllColumns()],g=>g.flatMap(m=>m.getFlatColumns()),fe(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:de(()=>[o.getAllFlatColumns()],g=>g.reduce((m,C)=>(m[C.id]=C,m),{}),fe(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:de(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(g,m)=>{let C=g.flatMap(p=>p.getLeafColumns());return m(C)},fe(e,"debugColumns","getAllLeafColumns")),getColumn:g=>{const m=o._getAllFlatColumnsById()[g];return process.env.NODE_ENV!=="production"&&!m&&console.error(`[Table] Column with id '${g}' does not exist.`),m}};Object.assign(o,h);for(let g=0;g<o._features.length;g++){const m=o._features[g];m==null||m.createTable==null||m.createTable(o)}return o}function xb(){return e=>de(()=>[e.options.data],n=>{const t={rows:[],flatRows:[],rowsById:{}},r=function(o,a,s){a===void 0&&(a=0);const i=[];for(let d=0;d<o.length;d++){const f=Xy(e,e._getRowId(o[d],d,s),o[d],d,a,void 0,s==null?void 0:s.id);if(t.flatRows.push(f),t.rowsById[f.id]=f,i.push(f),e.options.getSubRows){var u;f.originalSubRows=e.options.getSubRows(o[d],d),(u=f.originalSubRows)!=null&&u.length&&(f.subRows=r(f.originalSubRows,a+1,f))}}return i};return t.rows=r(n),t},fe(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Sb(){return e=>de(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(n,t,r)=>!t.rows.length||n!==!0&&!Object.keys(n??{}).length||!r?t:Eb(t),fe(e.options,"debugTable","getExpandedRowModel"))}function Eb(e){const n=[],t=r=>{var o;n.push(r),(o=r.subRows)!=null&&o.length&&r.getIsExpanded()&&r.subRows.forEach(t)};return e.rows.forEach(t),{rows:n,flatRows:e.flatRows,rowsById:e.rowsById}}/**
|
|
122
|
+
color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,t==null?void 0:t.key)}return o}}function fe(e,n,t,r){return{debug:()=>{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[n]},key:process.env.NODE_ENV==="development"&&t,onChange:r}}function Uy(e,n,t,r){const o=()=>{var s;return(s=a.getValue())!=null?s:e.options.renderFallbackValue},a={id:`${n.id}_${t.id}`,row:n,column:t,getValue:()=>n.getValue(r),renderValue:o,getContext:de(()=>[e,t,n,a],(s,i,u,d)=>({table:s,column:i,row:u,cell:d,getValue:d.getValue,renderValue:d.renderValue}),fe(e.options,"debugCells","cell.getContext"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(a,t,n,e)},{}),a}function qy(e,n,t,r){var o,a;const i={...e._getDefaultColumnDef(),...n},u=i.accessorKey;let d=(o=(a=i.id)!=null?a:u?typeof String.prototype.replaceAll=="function"?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)!=null?o:typeof i.header=="string"?i.header:void 0,f;if(i.accessorFn?f=i.accessorFn:u&&(u.includes(".")?f=g=>{let m=g;for(const p of u.split(".")){var C;m=(C=m)==null?void 0:C[p],process.env.NODE_ENV!=="production"&&m===void 0&&console.warn(`"${p}" in deeply nested key "${u}" returned undefined.`)}return m}:f=g=>g[i.accessorKey]),!d)throw process.env.NODE_ENV!=="production"?new Error(i.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let h={id:`${String(d)}`,accessorFn:f,parent:r,depth:t,columnDef:i,columns:[],getFlatColumns:de(()=>[!0],()=>{var g;return[h,...(g=h.columns)==null?void 0:g.flatMap(m=>m.getFlatColumns())]},fe(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:de(()=>[e._getOrderColumnsFn()],g=>{var m;if((m=h.columns)!=null&&m.length){let C=h.columns.flatMap(p=>p.getLeafColumns());return g(C)}return[h]},fe(e.options,"debugColumns","column.getLeafColumns"))};for(const g of e._features)g.createColumn==null||g.createColumn(h,e);return h}const ot="debugHeaders";function D0(e,n,t){var r;let a={id:(r=t.id)!=null?r:n.id,column:n,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],i=u=>{u.subHeaders&&u.subHeaders.length&&u.subHeaders.map(i),s.push(u)};return i(a),s},getContext:()=>({table:e,header:a,column:n})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(a,e)}),a}const Ky={createTable:e=>{e.getHeaderGroups=de(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,r,o)=>{var a,s;const i=(a=r==null?void 0:r.map(h=>t.find(g=>g.id===h)).filter(Boolean))!=null?a:[],u=(s=o==null?void 0:o.map(h=>t.find(g=>g.id===h)).filter(Boolean))!=null?s:[],d=t.filter(h=>!(r!=null&&r.includes(h.id))&&!(o!=null&&o.includes(h.id)));return ja(n,[...i,...d,...u],e)},fe(e.options,ot,"getHeaderGroups")),e.getCenterHeaderGroups=de(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,r,o)=>(t=t.filter(a=>!(r!=null&&r.includes(a.id))&&!(o!=null&&o.includes(a.id))),ja(n,t,e,"center")),fe(e.options,ot,"getCenterHeaderGroups")),e.getLeftHeaderGroups=de(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(n,t,r)=>{var o;const a=(o=r==null?void 0:r.map(s=>t.find(i=>i.id===s)).filter(Boolean))!=null?o:[];return ja(n,a,e,"left")},fe(e.options,ot,"getLeftHeaderGroups")),e.getRightHeaderGroups=de(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(n,t,r)=>{var o;const a=(o=r==null?void 0:r.map(s=>t.find(i=>i.id===s)).filter(Boolean))!=null?o:[];return ja(n,a,e,"right")},fe(e.options,ot,"getRightHeaderGroups")),e.getFooterGroups=de(()=>[e.getHeaderGroups()],n=>[...n].reverse(),fe(e.options,ot,"getFooterGroups")),e.getLeftFooterGroups=de(()=>[e.getLeftHeaderGroups()],n=>[...n].reverse(),fe(e.options,ot,"getLeftFooterGroups")),e.getCenterFooterGroups=de(()=>[e.getCenterHeaderGroups()],n=>[...n].reverse(),fe(e.options,ot,"getCenterFooterGroups")),e.getRightFooterGroups=de(()=>[e.getRightHeaderGroups()],n=>[...n].reverse(),fe(e.options,ot,"getRightFooterGroups")),e.getFlatHeaders=de(()=>[e.getHeaderGroups()],n=>n.map(t=>t.headers).flat(),fe(e.options,ot,"getFlatHeaders")),e.getLeftFlatHeaders=de(()=>[e.getLeftHeaderGroups()],n=>n.map(t=>t.headers).flat(),fe(e.options,ot,"getLeftFlatHeaders")),e.getCenterFlatHeaders=de(()=>[e.getCenterHeaderGroups()],n=>n.map(t=>t.headers).flat(),fe(e.options,ot,"getCenterFlatHeaders")),e.getRightFlatHeaders=de(()=>[e.getRightHeaderGroups()],n=>n.map(t=>t.headers).flat(),fe(e.options,ot,"getRightFlatHeaders")),e.getCenterLeafHeaders=de(()=>[e.getCenterFlatHeaders()],n=>n.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),fe(e.options,ot,"getCenterLeafHeaders")),e.getLeftLeafHeaders=de(()=>[e.getLeftFlatHeaders()],n=>n.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),fe(e.options,ot,"getLeftLeafHeaders")),e.getRightLeafHeaders=de(()=>[e.getRightFlatHeaders()],n=>n.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),fe(e.options,ot,"getRightLeafHeaders")),e.getLeafHeaders=de(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(n,t,r)=>{var o,a,s,i,u,d;return[...(o=(a=n[0])==null?void 0:a.headers)!=null?o:[],...(s=(i=t[0])==null?void 0:i.headers)!=null?s:[],...(u=(d=r[0])==null?void 0:d.headers)!=null?u:[]].map(f=>f.getLeafHeaders()).flat()},fe(e.options,ot,"getLeafHeaders"))}};function ja(e,n,t,r){var o,a;let s=0;const i=function(g,m){m===void 0&&(m=1),s=Math.max(s,m),g.filter(C=>C.getIsVisible()).forEach(C=>{var p;(p=C.columns)!=null&&p.length&&i(C.columns,m+1)},0)};i(e);let u=[];const d=(g,m)=>{const C={depth:m,id:[r,`${m}`].filter(Boolean).join("_"),headers:[]},p=[];g.forEach(v=>{const w=[...p].reverse()[0],y=v.column.depth===C.depth;let b,S=!1;if(y&&v.column.parent?b=v.column.parent:(b=v.column,S=!0),w&&(w==null?void 0:w.column)===b)w.subHeaders.push(v);else{const M=D0(t,b,{id:[r,m,b.id,v==null?void 0:v.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${p.filter(L=>L.column===b).length}`:void 0,depth:m,index:p.length});M.subHeaders.push(v),p.push(M)}C.headers.push(v),v.headerGroup=C}),u.push(C),m>0&&d(p,m-1)},f=n.map((g,m)=>D0(t,g,{depth:s,index:m}));d(f,s-1),u.reverse();const h=g=>g.filter(C=>C.column.getIsVisible()).map(C=>{let p=0,v=0,w=[0];C.subHeaders&&C.subHeaders.length?(w=[],h(C.subHeaders).forEach(b=>{let{colSpan:S,rowSpan:M}=b;p+=S,w.push(M)})):p=1;const y=Math.min(...w);return v=v+y,C.colSpan=p,C.rowSpan=v,{colSpan:p,rowSpan:v}});return h((o=(a=u[0])==null?void 0:a.headers)!=null?o:[]),u}const Xy=(e,n,t,r,o,a,s)=>{let i={id:n,index:r,original:t,depth:o,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:u=>{if(i._valuesCache.hasOwnProperty(u))return i._valuesCache[u];const d=e.getColumn(u);if(d!=null&&d.accessorFn)return i._valuesCache[u]=d.accessorFn(i.original,r),i._valuesCache[u]},getUniqueValues:u=>{if(i._uniqueValuesCache.hasOwnProperty(u))return i._uniqueValuesCache[u];const d=e.getColumn(u);if(d!=null&&d.accessorFn)return d.columnDef.getUniqueValues?(i._uniqueValuesCache[u]=d.columnDef.getUniqueValues(i.original,r),i._uniqueValuesCache[u]):(i._uniqueValuesCache[u]=[i.getValue(u)],i._uniqueValuesCache[u])},renderValue:u=>{var d;return(d=i.getValue(u))!=null?d:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>Yy(i.subRows,u=>u.subRows),getParentRow:()=>i.parentId?e.getRow(i.parentId,!0):void 0,getParentRows:()=>{let u=[],d=i;for(;;){const f=d.getParentRow();if(!f)break;u.push(f),d=f}return u.reverse()},getAllCells:de(()=>[e.getAllLeafColumns()],u=>u.map(d=>Uy(e,i,d,d.id)),fe(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:de(()=>[i.getAllCells()],u=>u.reduce((d,f)=>(d[f.column.id]=f,d),{}),fe(e.options,"debugRows","getAllCellsByColumnId"))};for(let u=0;u<e._features.length;u++){const d=e._features[u];d==null||d.createRow==null||d.createRow(i,e)}return i},Qy={createColumn:(e,n)=>{e._getFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():n.getPreFilteredRowModel(),e._getFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},O0=(e,n,t)=>{var r,o;const a=t==null||(r=t.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(n))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(a))};O0.autoRemove=e=>Pt(e);const V0=(e,n,t)=>{var r;return!!(!((r=e.getValue(n))==null||(r=r.toString())==null)&&r.includes(t))};V0.autoRemove=e=>Pt(e);const H0=(e,n,t)=>{var r;return((r=e.getValue(n))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(t==null?void 0:t.toLowerCase())};H0.autoRemove=e=>Pt(e);const A0=(e,n,t)=>{var r;return(r=e.getValue(n))==null?void 0:r.includes(t)};A0.autoRemove=e=>Pt(e);const F0=(e,n,t)=>!t.some(r=>{var o;return!((o=e.getValue(n))!=null&&o.includes(r))});F0.autoRemove=e=>Pt(e)||!(e!=null&&e.length);const $0=(e,n,t)=>t.some(r=>{var o;return(o=e.getValue(n))==null?void 0:o.includes(r)});$0.autoRemove=e=>Pt(e)||!(e!=null&&e.length);const z0=(e,n,t)=>e.getValue(n)===t;z0.autoRemove=e=>Pt(e);const B0=(e,n,t)=>e.getValue(n)==t;B0.autoRemove=e=>Pt(e);const Ll=(e,n,t)=>{let[r,o]=t;const a=e.getValue(n);return a>=r&&a<=o};Ll.resolveFilterValue=e=>{let[n,t]=e,r=typeof n!="number"?parseFloat(n):n,o=typeof t!="number"?parseFloat(t):t,a=n===null||Number.isNaN(r)?-1/0:r,s=t===null||Number.isNaN(o)?1/0:o;if(a>s){const i=a;a=s,s=i}return[a,s]},Ll.autoRemove=e=>Pt(e)||Pt(e[0])&&Pt(e[1]);const en={includesString:O0,includesStringSensitive:V0,equalsString:H0,arrIncludes:A0,arrIncludesAll:F0,arrIncludesSome:$0,equals:z0,weakEquals:B0,inNumberRange:Ll};function Pt(e){return e==null||e===""}const Jy={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:vt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,n)=>{e.getAutoFilterFn=()=>{const t=n.getCoreRowModel().flatRows[0],r=t==null?void 0:t.getValue(e.id);return typeof r=="string"?en.includesString:typeof r=="number"?en.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?en.equals:Array.isArray(r)?en.arrIncludes:en.weakEquals},e.getFilterFn=()=>{var t,r;return Ga(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(t=(r=n.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?t:en[e.columnDef.filterFn]},e.getCanFilter=()=>{var t,r,o;return((t=e.columnDef.enableColumnFilter)!=null?t:!0)&&((r=n.options.enableColumnFilters)!=null?r:!0)&&((o=n.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var t;return(t=n.getState().columnFilters)==null||(t=t.find(r=>r.id===e.id))==null?void 0:t.value},e.getFilterIndex=()=>{var t,r;return(t=(r=n.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?t:-1},e.setFilterValue=t=>{n.setColumnFilters(r=>{const o=e.getFilterFn(),a=r==null?void 0:r.find(f=>f.id===e.id),s=yn(t,a?a.value:void 0);if(Z0(o,s,e)){var i;return(i=r==null?void 0:r.filter(f=>f.id!==e.id))!=null?i:[]}const u={id:e.id,value:s};if(a){var d;return(d=r==null?void 0:r.map(f=>f.id===e.id?u:f))!=null?d:[]}return r!=null&&r.length?[...r,u]:[u]})}},createRow:(e,n)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=n=>{const t=e.getAllLeafColumns(),r=o=>{var a;return(a=yn(n,o))==null?void 0:a.filter(s=>{const i=t.find(u=>u.id===s.id);if(i){const u=i.getFilterFn();if(Z0(u,s.value,i))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=n=>{var t,r;e.setColumnFilters(n?[]:(t=(r=e.initialState)==null?void 0:r.columnFilters)!=null?t:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Z0(e,n,t){return(e&&e.autoRemove?e.autoRemove(n,t):!1)||typeof n>"u"||typeof n=="string"&&!n}const Nl={sum:(e,n,t)=>t.reduce((r,o)=>{const a=o.getValue(e);return r+(typeof a=="number"?a:0)},0),min:(e,n,t)=>{let r;return t.forEach(o=>{const a=o.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},max:(e,n,t)=>{let r;return t.forEach(o=>{const a=o.getValue(e);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},extent:(e,n,t)=>{let r,o;return t.forEach(a=>{const s=a.getValue(e);s!=null&&(r===void 0?s>=s&&(r=o=s):(r>s&&(r=s),o<s&&(o=s)))}),[r,o]},mean:(e,n)=>{let t=0,r=0;if(n.forEach(o=>{let a=o.getValue(e);a!=null&&(a=+a)>=a&&(++t,r+=a)}),t)return r/t},median:(e,n)=>{if(!n.length)return;const t=n.map(a=>a.getValue(e));if(!jy(t))return;if(t.length===1)return t[0];const r=Math.floor(t.length/2),o=t.sort((a,s)=>a-s);return t.length%2!==0?o[r]:(o[r-1]+o[r])/2},unique:(e,n)=>Array.from(new Set(n.map(t=>t.getValue(e))).values()),uniqueCount:(e,n)=>new Set(n.map(t=>t.getValue(e))).size,count:(e,n)=>n.length},eb={getDefaultColumnDef:()=>({aggregatedCell:e=>{var n,t;return(n=(t=e.getValue())==null||t.toString==null?void 0:t.toString())!=null?n:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:vt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,n)=>{e.toggleGrouping=()=>{n.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(r=>r!==e.id):[...t??[],e.id])},e.getCanGroup=()=>{var t,r;return((t=e.columnDef.enableGrouping)!=null?t:!0)&&((r=n.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var t;return(t=n.getState().grouping)==null?void 0:t.includes(e.id)},e.getGroupedIndex=()=>{var t;return(t=n.getState().grouping)==null?void 0:t.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const t=n.getCoreRowModel().flatRows[0],r=t==null?void 0:t.getValue(e.id);if(typeof r=="number")return Nl.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Nl.extent},e.getAggregationFn=()=>{var t,r;if(!e)throw new Error;return Ga(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(t=(r=n.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?t:Nl[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=n=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(n),e.resetGrouping=n=>{var t,r;e.setGrouping(n?[]:(t=(r=e.initialState)==null?void 0:r.grouping)!=null?t:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,n)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=t=>{if(e._groupingValuesCache.hasOwnProperty(t))return e._groupingValuesCache[t];const r=n.getColumn(t);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[t]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[t]):e.getValue(t)},e._groupingValuesCache={}},createCell:(e,n,t,r)=>{e.getIsGrouped=()=>n.getIsGrouped()&&n.id===t.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&n.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=t.subRows)!=null&&o.length)}}};function tb(e,n,t){if(!(n!=null&&n.length)||!t)return e;const r=e.filter(a=>!n.includes(a.id));return t==="remove"?r:[...n.map(a=>e.find(s=>s.id===a)).filter(Boolean),...r]}const nb={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:vt("columnOrder",e)}),createColumn:(e,n)=>{e.getIndex=de(t=>[ro(n,t)],t=>t.findIndex(r=>r.id===e.id),fe(n.options,"debugColumns","getIndex")),e.getIsFirstColumn=t=>{var r;return((r=ro(n,t)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=t=>{var r;const o=ro(n,t);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=n=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(n),e.resetColumnOrder=n=>{var t;e.setColumnOrder(n?[]:(t=e.initialState.columnOrder)!=null?t:[])},e._getOrderColumnsFn=de(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(n,t,r)=>o=>{let a=[];if(!(n!=null&&n.length))a=o;else{const s=[...n],i=[...o];for(;i.length&&s.length;){const u=s.shift(),d=i.findIndex(f=>f.id===u);d>-1&&a.push(i.splice(d,1)[0])}a=[...a,...i]}return tb(a,t,r)},fe(e.options,"debugTable","_getOrderColumnsFn"))}},Pl=()=>({left:[],right:[]}),rb={getInitialState:e=>({columnPinning:Pl(),...e}),getDefaultOptions:e=>({onColumnPinningChange:vt("columnPinning",e)}),createColumn:(e,n)=>{e.pin=t=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);n.setColumnPinning(o=>{var a,s;if(t==="right"){var i,u;return{left:((i=o==null?void 0:o.left)!=null?i:[]).filter(h=>!(r!=null&&r.includes(h))),right:[...((u=o==null?void 0:o.right)!=null?u:[]).filter(h=>!(r!=null&&r.includes(h))),...r]}}if(t==="left"){var d,f;return{left:[...((d=o==null?void 0:o.left)!=null?d:[]).filter(h=>!(r!=null&&r.includes(h))),...r],right:((f=o==null?void 0:o.right)!=null?f:[]).filter(h=>!(r!=null&&r.includes(h)))}}return{left:((a=o==null?void 0:o.left)!=null?a:[]).filter(h=>!(r!=null&&r.includes(h))),right:((s=o==null?void 0:o.right)!=null?s:[]).filter(h=>!(r!=null&&r.includes(h)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,a,s;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((a=(s=n.options.enableColumnPinning)!=null?s:n.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const t=e.getLeafColumns().map(i=>i.id),{left:r,right:o}=n.getState().columnPinning,a=t.some(i=>r==null?void 0:r.includes(i)),s=t.some(i=>o==null?void 0:o.includes(i));return a?"left":s?"right":!1},e.getPinnedIndex=()=>{var t,r;const o=e.getIsPinned();return o?(t=(r=n.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?t:-1:0}},createRow:(e,n)=>{e.getCenterVisibleCells=de(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left,n.getState().columnPinning.right],(t,r,o)=>{const a=[...r??[],...o??[]];return t.filter(s=>!a.includes(s.column.id))},fe(n.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=de(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left],(t,r)=>(r??[]).map(a=>t.find(s=>s.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),fe(n.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=de(()=>[e._getAllVisibleCells(),n.getState().columnPinning.right],(t,r)=>(r??[]).map(a=>t.find(s=>s.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),fe(n.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=n=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(n),e.resetColumnPinning=n=>{var t,r;return e.setColumnPinning(n?Pl():(t=(r=e.initialState)==null?void 0:r.columnPinning)!=null?t:Pl())},e.getIsSomeColumnsPinned=n=>{var t;const r=e.getState().columnPinning;if(!n){var o,a;return!!((o=r.left)!=null&&o.length||(a=r.right)!=null&&a.length)}return!!((t=r[n])!=null&&t.length)},e.getLeftLeafColumns=de(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(n,t)=>(t??[]).map(r=>n.find(o=>o.id===r)).filter(Boolean),fe(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=de(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(n,t)=>(t??[]).map(r=>n.find(o=>o.id===r)).filter(Boolean),fe(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=de(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,r)=>{const o=[...t??[],...r??[]];return n.filter(a=>!o.includes(a.id))},fe(e.options,"debugColumns","getCenterLeafColumns"))}};function ob(e){return e||(typeof document<"u"?document:null)}const Ya={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},_l=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),ab={getDefaultColumnDef:()=>Ya,getInitialState:e=>({columnSizing:{},columnSizingInfo:_l(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:vt("columnSizing",e),onColumnSizingInfoChange:vt("columnSizingInfo",e)}),createColumn:(e,n)=>{e.getSize=()=>{var t,r,o;const a=n.getState().columnSizing[e.id];return Math.min(Math.max((t=e.columnDef.minSize)!=null?t:Ya.minSize,(r=a??e.columnDef.size)!=null?r:Ya.size),(o=e.columnDef.maxSize)!=null?o:Ya.maxSize)},e.getStart=de(t=>[t,ro(n,t),n.getState().columnSizing],(t,r)=>r.slice(0,e.getIndex(t)).reduce((o,a)=>o+a.getSize(),0),fe(n.options,"debugColumns","getStart")),e.getAfter=de(t=>[t,ro(n,t),n.getState().columnSizing],(t,r)=>r.slice(e.getIndex(t)+1).reduce((o,a)=>o+a.getSize(),0),fe(n.options,"debugColumns","getAfter")),e.resetSize=()=>{n.setColumnSizing(t=>{let{[e.id]:r,...o}=t;return o})},e.getCanResize=()=>{var t,r;return((t=e.columnDef.enableResizing)!=null?t:!0)&&((r=n.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>n.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,n)=>{e.getSize=()=>{let t=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var a;t+=(a=o.column.getSize())!=null?a:0}};return r(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=t=>{const r=n.getColumn(e.column.id),o=r==null?void 0:r.getCanResize();return a=>{if(!r||!o||(a.persist==null||a.persist(),Il(a)&&a.touches&&a.touches.length>1))return;const s=e.getSize(),i=e?e.getLeafHeaders().map(w=>[w.column.id,w.column.getSize()]):[[r.id,r.getSize()]],u=Il(a)?Math.round(a.touches[0].clientX):a.clientX,d={},f=(w,y)=>{typeof y=="number"&&(n.setColumnSizingInfo(b=>{var S,M;const L=n.options.columnResizeDirection==="rtl"?-1:1,E=(y-((S=b==null?void 0:b.startOffset)!=null?S:0))*L,I=Math.max(E/((M=b==null?void 0:b.startSize)!=null?M:0),-.999999);return b.columnSizingStart.forEach(k=>{let[O,A]=k;d[O]=Math.round(Math.max(A+A*I,0)*100)/100}),{...b,deltaOffset:E,deltaPercentage:I}}),(n.options.columnResizeMode==="onChange"||w==="end")&&n.setColumnSizing(b=>({...b,...d})))},h=w=>f("move",w),g=w=>{f("end",w),n.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},m=ob(t),C={moveHandler:w=>h(w.clientX),upHandler:w=>{m==null||m.removeEventListener("mousemove",C.moveHandler),m==null||m.removeEventListener("mouseup",C.upHandler),g(w.clientX)}},p={moveHandler:w=>(w.cancelable&&(w.preventDefault(),w.stopPropagation()),h(w.touches[0].clientX),!1),upHandler:w=>{var y;m==null||m.removeEventListener("touchmove",p.moveHandler),m==null||m.removeEventListener("touchend",p.upHandler),w.cancelable&&(w.preventDefault(),w.stopPropagation()),g((y=w.touches[0])==null?void 0:y.clientX)}},v=sb()?{passive:!1}:!1;Il(a)?(m==null||m.addEventListener("touchmove",p.moveHandler,v),m==null||m.addEventListener("touchend",p.upHandler,v)):(m==null||m.addEventListener("mousemove",C.moveHandler,v),m==null||m.addEventListener("mouseup",C.upHandler,v)),n.setColumnSizingInfo(w=>({...w,startOffset:u,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:i,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=n=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(n),e.setColumnSizingInfo=n=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(n),e.resetColumnSizing=n=>{var t;e.setColumnSizing(n?{}:(t=e.initialState.columnSizing)!=null?t:{})},e.resetHeaderSizeInfo=n=>{var t;e.setColumnSizingInfo(n?_l():(t=e.initialState.columnSizingInfo)!=null?t:_l())},e.getTotalSize=()=>{var n,t;return(n=(t=e.getHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getLeftTotalSize=()=>{var n,t;return(n=(t=e.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getCenterTotalSize=()=>{var n,t;return(n=(t=e.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getRightTotalSize=()=>{var n,t;return(n=(t=e.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0}}};let Ua=null;function sb(){if(typeof Ua=="boolean")return Ua;let e=!1;try{const n={get passive(){return e=!0,!1}},t=()=>{};window.addEventListener("test",t,n),window.removeEventListener("test",t)}catch{e=!1}return Ua=e,Ua}function Il(e){return e.type==="touchstart"}const ib={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:vt("columnVisibility",e)}),createColumn:(e,n)=>{e.toggleVisibility=t=>{e.getCanHide()&&n.setColumnVisibility(r=>({...r,[e.id]:t??!e.getIsVisible()}))},e.getIsVisible=()=>{var t,r;const o=e.columns;return(t=o.length?o.some(a=>a.getIsVisible()):(r=n.getState().columnVisibility)==null?void 0:r[e.id])!=null?t:!0},e.getCanHide=()=>{var t,r;return((t=e.columnDef.enableHiding)!=null?t:!0)&&((r=n.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,n)=>{e._getAllVisibleCells=de(()=>[e.getAllCells(),n.getState().columnVisibility],t=>t.filter(r=>r.column.getIsVisible()),fe(n.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=de(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(t,r,o)=>[...t,...r,...o],fe(n.options,"debugRows","getVisibleCells"))},createTable:e=>{const n=(t,r)=>de(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),fe(e.options,"debugColumns",t));e.getVisibleFlatColumns=n("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=n("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=n("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=n("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=n("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var r;e.setColumnVisibility(t?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=t=>{var r;t=(r=t)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,a)=>({...o,[a.id]:t||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var r;e.toggleAllColumnsVisible((r=t.target)==null?void 0:r.checked)}}};function ro(e,n){return n?n==="center"?e.getCenterVisibleLeafColumns():n==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const lb={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},cb={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:vt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:n=>{var t;const r=(t=e.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[n.id])==null?void 0:t.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,n)=>{e.getCanGlobalFilter=()=>{var t,r,o,a;return((t=e.columnDef.enableGlobalFilter)!=null?t:!0)&&((r=n.options.enableGlobalFilter)!=null?r:!0)&&((o=n.options.enableFilters)!=null?o:!0)&&((a=n.options.getColumnCanGlobalFilter==null?void 0:n.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>en.includesString,e.getGlobalFilterFn=()=>{var n,t;const{globalFilterFn:r}=e.options;return Ga(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(n=(t=e.options.filterFns)==null?void 0:t[r])!=null?n:en[r]},e.setGlobalFilter=n=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(n)},e.resetGlobalFilter=n=>{e.setGlobalFilter(n?void 0:e.initialState.globalFilter)}}},ub={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:vt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let n=!1,t=!1;e._autoResetExpanded=()=>{var r,o;if(!n){e._queue(()=>{n=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(t)return;t=!0,e._queue(()=>{e.resetExpanded(),t=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,a;e.setExpanded(r?{}:(o=(a=e.initialState)==null?void 0:a.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const s=a.split(".");r=Math.max(r,s.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,n)=>{e.toggleExpanded=t=>{n.setExpanded(r=>{var o;const a=r===!0?!0:!!(r!=null&&r[e.id]);let s={};if(r===!0?Object.keys(n.getRowModel().rowsById).forEach(i=>{s[i]=!0}):s=r,t=(o=t)!=null?o:!a,!a&&t)return{...s,[e.id]:!0};if(a&&!t){const{[e.id]:i,...u}=s;return u}return r})},e.getIsExpanded=()=>{var t;const r=n.getState().expanded;return!!((t=n.options.getIsRowExpanded==null?void 0:n.options.getIsRowExpanded(e))!=null?t:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var t,r,o;return(t=n.options.getRowCanExpand==null?void 0:n.options.getRowCanExpand(e))!=null?t:((r=n.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let t=!0,r=e;for(;t&&r.parentId;)r=n.getRow(r.parentId,!0),t=r.getIsExpanded();return t},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},kl=0,Tl=10,Dl=()=>({pageIndex:kl,pageSize:Tl}),db={getInitialState:e=>({...e,pagination:{...Dl(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:vt("pagination",e)}),createTable:e=>{let n=!1,t=!1;e._autoResetPageIndex=()=>{var r,o;if(!n){e._queue(()=>{n=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(t)return;t=!0,e._queue(()=>{e.resetPageIndex(),t=!1})}},e.setPagination=r=>{const o=a=>yn(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?Dl():(o=e.initialState.pagination)!=null?o:Dl())},e.setPageIndex=r=>{e.setPagination(o=>{let a=yn(r,o.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,s)),{...o,pageIndex:a}})},e.resetPageIndex=r=>{var o,a;e.setPageIndex(r?kl:(o=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?o:kl)},e.resetPageSize=r=>{var o,a;e.setPageSize(r?Tl:(o=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?o:Tl)},e.setPageSize=r=>{e.setPagination(o=>{const a=Math.max(1,yn(r,o.pageSize)),s=o.pageSize*o.pageIndex,i=Math.floor(s/a);return{...o,pageIndex:i,pageSize:a}})},e.setPageCount=r=>e.setPagination(o=>{var a;let s=yn(r,(a=e.options.pageCount)!=null?a:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),e.getPageOptions=de(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((a,s)=>s)),o},fe(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Ol=()=>({top:[],bottom:[]}),fb={getInitialState:e=>({rowPinning:Ol(),...e}),getDefaultOptions:e=>({onRowPinningChange:vt("rowPinning",e)}),createRow:(e,n)=>{e.pin=(t,r,o)=>{const a=r?e.getLeafRows().map(u=>{let{id:d}=u;return d}):[],s=o?e.getParentRows().map(u=>{let{id:d}=u;return d}):[],i=new Set([...s,e.id,...a]);n.setRowPinning(u=>{var d,f;if(t==="bottom"){var h,g;return{top:((h=u==null?void 0:u.top)!=null?h:[]).filter(p=>!(i!=null&&i.has(p))),bottom:[...((g=u==null?void 0:u.bottom)!=null?g:[]).filter(p=>!(i!=null&&i.has(p))),...Array.from(i)]}}if(t==="top"){var m,C;return{top:[...((m=u==null?void 0:u.top)!=null?m:[]).filter(p=>!(i!=null&&i.has(p))),...Array.from(i)],bottom:((C=u==null?void 0:u.bottom)!=null?C:[]).filter(p=>!(i!=null&&i.has(p)))}}return{top:((d=u==null?void 0:u.top)!=null?d:[]).filter(p=>!(i!=null&&i.has(p))),bottom:((f=u==null?void 0:u.bottom)!=null?f:[]).filter(p=>!(i!=null&&i.has(p)))}})},e.getCanPin=()=>{var t;const{enableRowPinning:r,enablePinning:o}=n.options;return typeof r=="function"?r(e):(t=r??o)!=null?t:!0},e.getIsPinned=()=>{const t=[e.id],{top:r,bottom:o}=n.getState().rowPinning,a=t.some(i=>r==null?void 0:r.includes(i)),s=t.some(i=>o==null?void 0:o.includes(i));return a?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var t,r;const o=e.getIsPinned();if(!o)return-1;const a=(t=o==="top"?n.getTopRows():n.getBottomRows())==null?void 0:t.map(s=>{let{id:i}=s;return i});return(r=a==null?void 0:a.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=n=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(n),e.resetRowPinning=n=>{var t,r;return e.setRowPinning(n?Ol():(t=(r=e.initialState)==null?void 0:r.rowPinning)!=null?t:Ol())},e.getIsSomeRowsPinned=n=>{var t;const r=e.getState().rowPinning;if(!n){var o,a;return!!((o=r.top)!=null&&o.length||(a=r.bottom)!=null&&a.length)}return!!((t=r[n])!=null&&t.length)},e._getPinnedRows=(n,t,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(t??[]).map(s=>{const i=e.getRow(s,!0);return i.getIsAllParentsExpanded()?i:null}):(t??[]).map(s=>n.find(i=>i.id===s))).filter(Boolean).map(s=>({...s,position:r}))},e.getTopRows=de(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(n,t)=>e._getPinnedRows(n,t,"top"),fe(e.options,"debugRows","getTopRows")),e.getBottomRows=de(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(n,t)=>e._getPinnedRows(n,t,"bottom"),fe(e.options,"debugRows","getBottomRows")),e.getCenterRows=de(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(n,t,r)=>{const o=new Set([...t??[],...r??[]]);return n.filter(a=>!o.has(a.id))},fe(e.options,"debugRows","getCenterRows"))}},hb={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:vt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=n=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(n),e.resetRowSelection=n=>{var t;return e.setRowSelection(n?{}:(t=e.initialState.rowSelection)!=null?t:{})},e.toggleAllRowsSelected=n=>{e.setRowSelection(t=>{n=typeof n<"u"?n:!e.getIsAllRowsSelected();const r={...t},o=e.getPreGroupedRowModel().flatRows;return n?o.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):o.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=n=>e.setRowSelection(t=>{const r=typeof n<"u"?n:!e.getIsAllPageRowsSelected(),o={...t};return e.getRowModel().rows.forEach(a=>{Vl(o,a.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=de(()=>[e.getState().rowSelection,e.getCoreRowModel()],(n,t)=>Object.keys(n).length?Hl(e,t):{rows:[],flatRows:[],rowsById:{}},fe(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=de(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(n,t)=>Object.keys(n).length?Hl(e,t):{rows:[],flatRows:[],rowsById:{}},fe(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=de(()=>[e.getState().rowSelection,e.getSortedRowModel()],(n,t)=>Object.keys(n).length?Hl(e,t):{rows:[],flatRows:[],rowsById:{}},fe(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const n=e.getFilteredRowModel().flatRows,{rowSelection:t}=e.getState();let r=!!(n.length&&Object.keys(t).length);return r&&n.some(o=>o.getCanSelect()&&!t[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:t}=e.getState();let r=!!n.length;return r&&n.some(o=>!t[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var n;const t=Object.keys((n=e.getState().rowSelection)!=null?n:{}).length;return t>0&&t<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:n.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>n=>{e.toggleAllRowsSelected(n.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>n=>{e.toggleAllPageRowsSelected(n.target.checked)}},createRow:(e,n)=>{e.toggleSelected=(t,r)=>{const o=e.getIsSelected();n.setRowSelection(a=>{var s;if(t=typeof t<"u"?t:!o,e.getCanSelect()&&o===t)return a;const i={...a};return Vl(i,e.id,t,(s=r==null?void 0:r.selectChildren)!=null?s:!0,n),i})},e.getIsSelected=()=>{const{rowSelection:t}=n.getState();return Al(e,t)},e.getIsSomeSelected=()=>{const{rowSelection:t}=n.getState();return Fl(e,t)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=n.getState();return Fl(e,t)==="all"},e.getCanSelect=()=>{var t;return typeof n.options.enableRowSelection=="function"?n.options.enableRowSelection(e):(t=n.options.enableRowSelection)!=null?t:!0},e.getCanSelectSubRows=()=>{var t;return typeof n.options.enableSubRowSelection=="function"?n.options.enableSubRowSelection(e):(t=n.options.enableSubRowSelection)!=null?t:!0},e.getCanMultiSelect=()=>{var t;return typeof n.options.enableMultiRowSelection=="function"?n.options.enableMultiRowSelection(e):(t=n.options.enableMultiRowSelection)!=null?t:!0},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return r=>{var o;t&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Vl=(e,n,t,r,o)=>{var a;const s=o.getRow(n,!0);t?(s.getCanMultiSelect()||Object.keys(e).forEach(i=>delete e[i]),s.getCanSelect()&&(e[n]=!0)):delete e[n],r&&(a=s.subRows)!=null&&a.length&&s.getCanSelectSubRows()&&s.subRows.forEach(i=>Vl(e,i.id,t,r,o))};function Hl(e,n){const t=e.getState().rowSelection,r=[],o={},a=function(s,i){return s.map(u=>{var d;const f=Al(u,t);if(f&&(r.push(u),o[u.id]=u),(d=u.subRows)!=null&&d.length&&(u={...u,subRows:a(u.subRows)}),f)return u}).filter(Boolean)};return{rows:a(n.rows),flatRows:r,rowsById:o}}function Al(e,n){var t;return(t=n[e.id])!=null?t:!1}function Fl(e,n,t){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,a=!1;return e.subRows.forEach(s=>{if(!(a&&!o)&&(s.getCanSelect()&&(Al(s,n)?a=!0:o=!1),s.subRows&&s.subRows.length)){const i=Fl(s,n);i==="all"?a=!0:(i==="some"&&(a=!0),o=!1)}}),o?"all":a?"some":!1}const $l=/([0-9]+)/gm,gb=(e,n,t)=>W0(bn(e.getValue(t)).toLowerCase(),bn(n.getValue(t)).toLowerCase()),pb=(e,n,t)=>W0(bn(e.getValue(t)),bn(n.getValue(t))),mb=(e,n,t)=>zl(bn(e.getValue(t)).toLowerCase(),bn(n.getValue(t)).toLowerCase()),vb=(e,n,t)=>zl(bn(e.getValue(t)),bn(n.getValue(t))),Cb=(e,n,t)=>{const r=e.getValue(t),o=n.getValue(t);return r>o?1:r<o?-1:0},wb=(e,n,t)=>zl(e.getValue(t),n.getValue(t));function zl(e,n){return e===n?0:e>n?1:-1}function bn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function W0(e,n){const t=e.split($l).filter(Boolean),r=n.split($l).filter(Boolean);for(;t.length&&r.length;){const o=t.shift(),a=r.shift(),s=parseInt(o,10),i=parseInt(a,10),u=[s,i].sort();if(isNaN(u[0])){if(o>a)return 1;if(a>o)return-1;continue}if(isNaN(u[1]))return isNaN(s)?-1:1;if(s>i)return 1;if(i>s)return-1}return t.length-r.length}const oo={alphanumeric:gb,alphanumericCaseSensitive:pb,text:mb,textCaseSensitive:vb,datetime:Cb,basic:wb},yb=[Ky,ib,nb,rb,Qy,Jy,lb,cb,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:vt("sorting",e),isMultiSortEvent:n=>n.shiftKey}),createColumn:(e,n)=>{e.getAutoSortingFn=()=>{const t=n.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of t){const a=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return oo.datetime;if(typeof a=="string"&&(r=!0,a.split($l).length>1))return oo.alphanumeric}return r?oo.text:oo.basic},e.getAutoSortDir=()=>{const t=n.getFilteredRowModel().flatRows[0];return typeof(t==null?void 0:t.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var t,r;if(!e)throw new Error;return Ga(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(t=(r=n.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?t:oo[e.columnDef.sortingFn]},e.toggleSorting=(t,r)=>{const o=e.getNextSortingOrder(),a=typeof t<"u"&&t!==null;n.setSorting(s=>{const i=s==null?void 0:s.find(m=>m.id===e.id),u=s==null?void 0:s.findIndex(m=>m.id===e.id);let d=[],f,h=a?t:o==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&r?i?f="toggle":f="add":s!=null&&s.length&&u!==s.length-1?f="replace":i?f="toggle":f="replace",f==="toggle"&&(a||o||(f="remove")),f==="add"){var g;d=[...s,{id:e.id,desc:h}],d.splice(0,d.length-((g=n.options.maxMultiSortColCount)!=null?g:Number.MAX_SAFE_INTEGER))}else f==="toggle"?d=s.map(m=>m.id===e.id?{...m,desc:h}:m):f==="remove"?d=s.filter(m=>m.id!==e.id):d=[{id:e.id,desc:h}];return d})},e.getFirstSortDir=()=>{var t,r;return((t=(r=e.columnDef.sortDescFirst)!=null?r:n.options.sortDescFirst)!=null?t:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=t=>{var r,o;const a=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==a&&((r=n.options.enableSortingRemoval)==null||r)&&(!(t&&(o=n.options.enableMultiRemove)!=null)||o)?!1:s==="desc"?"asc":"desc":a},e.getCanSort=()=>{var t,r;return((t=e.columnDef.enableSorting)!=null?t:!0)&&((r=n.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var t,r;return(t=(r=e.columnDef.enableMultiSort)!=null?r:n.options.enableMultiSort)!=null?t:!!e.accessorFn},e.getIsSorted=()=>{var t;const r=(t=n.getState().sorting)==null?void 0:t.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var t,r;return(t=(r=n.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?t:-1},e.clearSorting=()=>{n.setSorting(t=>t!=null&&t.length?t.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const t=e.getCanSort();return r=>{t&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?n.options.isMultiSortEvent==null?void 0:n.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=n=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(n),e.resetSorting=n=>{var t,r;e.setSorting(n?[]:(t=(r=e.initialState)==null?void 0:r.sorting)!=null?t:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},eb,ub,db,fb,hb,ab];function bb(e){var n,t;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...yb,...(n=e._features)!=null?n:[]];let o={_features:r};const a=o._features.reduce((g,m)=>Object.assign(g,m.getDefaultOptions==null?void 0:m.getDefaultOptions(o)),{}),s=g=>o.options.mergeOptions?o.options.mergeOptions(a,g):{...a,...g};let u={...{},...(t=e.initialState)!=null?t:{}};o._features.forEach(g=>{var m;u=(m=g.getInitialState==null?void 0:g.getInitialState(u))!=null?m:u});const d=[];let f=!1;const h={_features:r,options:{...a,...e},initialState:u,_queue:g=>{d.push(g),f||(f=!0,Promise.resolve().then(()=>{for(;d.length;)d.shift()();f=!1}).catch(m=>setTimeout(()=>{throw m})))},reset:()=>{o.setState(o.initialState)},setOptions:g=>{const m=yn(g,o.options);o.options=s(m)},getState:()=>o.options.state,setState:g=>{o.options.onStateChange==null||o.options.onStateChange(g)},_getRowId:(g,m,C)=>{var p;return(p=o.options.getRowId==null?void 0:o.options.getRowId(g,m,C))!=null?p:`${C?[C.id,m].join("."):m}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(g,m)=>{let C=(m?o.getPrePaginationRowModel():o.getRowModel()).rowsById[g];if(!C&&(C=o.getCoreRowModel().rowsById[g],!C))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${g}`):new Error;return C},_getDefaultColumnDef:de(()=>[o.options.defaultColumn],g=>{var m;return g=(m=g)!=null?m:{},{header:C=>{const p=C.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:C=>{var p,v;return(p=(v=C.renderValue())==null||v.toString==null?void 0:v.toString())!=null?p:null},...o._features.reduce((C,p)=>Object.assign(C,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...g}},fe(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:de(()=>[o._getColumnDefs()],g=>{const m=function(C,p,v){return v===void 0&&(v=0),C.map(w=>{const y=qy(o,w,v,p),b=w;return y.columns=b.columns?m(b.columns,y,v+1):[],y})};return m(g)},fe(e,"debugColumns","getAllColumns")),getAllFlatColumns:de(()=>[o.getAllColumns()],g=>g.flatMap(m=>m.getFlatColumns()),fe(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:de(()=>[o.getAllFlatColumns()],g=>g.reduce((m,C)=>(m[C.id]=C,m),{}),fe(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:de(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(g,m)=>{let C=g.flatMap(p=>p.getLeafColumns());return m(C)},fe(e,"debugColumns","getAllLeafColumns")),getColumn:g=>{const m=o._getAllFlatColumnsById()[g];return process.env.NODE_ENV!=="production"&&!m&&console.error(`[Table] Column with id '${g}' does not exist.`),m}};Object.assign(o,h);for(let g=0;g<o._features.length;g++){const m=o._features[g];m==null||m.createTable==null||m.createTable(o)}return o}function xb(){return e=>de(()=>[e.options.data],n=>{const t={rows:[],flatRows:[],rowsById:{}},r=function(o,a,s){a===void 0&&(a=0);const i=[];for(let d=0;d<o.length;d++){const f=Xy(e,e._getRowId(o[d],d,s),o[d],d,a,void 0,s==null?void 0:s.id);if(t.flatRows.push(f),t.rowsById[f.id]=f,i.push(f),e.options.getSubRows){var u;f.originalSubRows=e.options.getSubRows(o[d],d),(u=f.originalSubRows)!=null&&u.length&&(f.subRows=r(f.originalSubRows,a+1,f))}}return i};return t.rows=r(n),t},fe(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Sb(){return e=>de(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(n,t,r)=>!t.rows.length||n!==!0&&!Object.keys(n??{}).length||!r?t:Eb(t),fe(e.options,"debugTable","getExpandedRowModel"))}function Eb(e){const n=[],t=r=>{var o;n.push(r),(o=r.subRows)!=null&&o.length&&r.getIsExpanded()&&r.subRows.forEach(t)};return e.rows.forEach(t),{rows:n,flatRows:e.flatRows,rowsById:e.rowsById}}/**
|
|
123
123
|
* react-table
|
|
124
124
|
*
|
|
125
125
|
* Copyright (c) TanStack
|
|
@@ -128,13 +128,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${n.do
|
|
|
128
128
|
* LICENSE.md file in the root directory of this source tree.
|
|
129
129
|
*
|
|
130
130
|
* @license MIT
|
|
131
|
-
*/function R0(e,n){return e?Mb(e)?l.createElement(e,n):e:null}function Mb(e){return Lb(e)||typeof e=="function"||Nb(e)}function Lb(e){return typeof e=="function"&&(()=>{const n=Object.getPrototypeOf(e);return n.prototype&&n.prototype.isReactComponent})()}function Nb(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function Pb(e){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=l.useState(()=>({current:bb(n)})),[r,o]=l.useState(()=>t.current.initialState);return t.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:s=>{o(s),e.onStateChange==null||e.onStateChange(s)}})),t.current}const G0="data-table-column-sizing:";function j0(e,n={}){const t=()=>{if(!e)return n;try{const s=localStorage.getItem(G0+e);return s?JSON.parse(s):n}catch{return n}},[r,o]=D.useState(()=>t());return{columnSizing:r,onColumnSizingChange:s=>{o(i=>{const u=typeof s=="function"?s(i):s;if(e)try{localStorage.setItem(G0+e,JSON.stringify(u))}catch{}return u})}}}const ao=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M15.7049 7.41L14.2949 6L8.29492 12L14.2949 18L15.7049 16.59L11.1249 12L15.7049 7.41Z",fill:"currentColor"})),Bl=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M6.29104 8.11L10.181 12L6.29104 15.89C5.90104 16.28 5.90104 16.91 6.29104 17.3C6.68104 17.69 7.31104 17.69 7.70104 17.3L12.291 12.71C12.681 12.32 12.681 11.69 12.291 11.3L7.70104 6.7C7.31104 6.31 6.68104 6.31 6.29104 6.7C5.91104 7.09 5.91104 7.73 6.29104 8.11ZM17.001 6C17.551 6 18.001 6.45 18.001 7V17C18.001 17.55 17.551 18 17.001 18C16.451 18 16.001 17.55 16.001 17V7C16.001 6.45 16.451 6 17.001 6Z",fill:"currentColor"})),Y0=[10,20,30,40,50];function qa({active:e,children:n,onClick:t}){return c.jsx(Ze,{variant:"fade-contrast-transparent",className:N("h-6 w-6 p-0 lg:flex rounded-full",{"bg-background-theme-fade":e}),disabled:e,onClick:t,children:n})}function U0({horizontalPadding:e,className:n,pageSize:t,pageCount:r=0,pageIndex:o=0,canPreviousPage:a,canNextPage:s,selectedCount:i,totalCount:u,compact:d,hideDisplayBy:f,pageSizeOptions:h,previousPage:g,nextPage:m,setPageSize:C,setPageIndex:p}){const{t:v}=rt(),w=h??Y0,b=(t!=null&&!w.includes(t)?[...w,t].sort((H,V)=>H-V):w).map(H=>({value:String(H),label:`${v("displayBy")} ${H}`})),S=()=>{switch(e){case"small":return"px-6";case"large":return"px-10";case"medium":default:return"px-8"}},M=r<=3?o===0:o<r-3,L=()=>r<=3?1:o<r-3?o+1:r-3,E=()=>{if(r<=3)return p==null?void 0:p(0);p==null||p(o<r-3?o:r-4)},I=r<=3?o===1:o===r-3,k=()=>r<=3?2:o<r-3?o+2:r-2,O=()=>{if(r<=3)return p==null?void 0:p(1);p==null||p(o<r-3?o+1:r-3)};return c.jsxs("div",{className:N("mt-auto sticky bottom-0 bg-background flex items-center justify-between min-h-[52px] h-[52px] rounded-bl-3xl rounded-br-3xl border-t border-line-primary",S(),n),children:[!f&&c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Kr,{options:b,triggerClassName:"h-8 text-sm text-foreground-secondary border-none hover:bg-[transparent] px-0",placeholder:`${v("displayBy")} ${t}`,value:`${t}`,onValueChange:H=>C==null?void 0:C(Number(H))}),!!i&&c.jsx("div",{className:"flex-1 text-sm text-foreground-secondary",children:`${v("selected")} ${i} ${v("of")} ${u}`})]}),c.jsx("div",{className:"flex items-center space-x-6 lg:space-x-8",children:c.jsxs("div",{className:"flex items-center text-foreground-secondary",children:[!d&&c.jsxs(Ze,{variant:"fade-contrast-transparent",className:"h-6 w-6 p-0 lg:flex rounded-full",onClick:()=>p==null?void 0:p(0),disabled:!a,children:[c.jsx("span",{className:"sr-only",children:"Go to first page"}),c.jsx(Bl,{className:"h-6 w-6 rotate-180"})]}),c.jsxs(Ze,{variant:"fade-contrast-transparent",className:"h-6 w-6 p-0 rounded-full",onClick:()=>g&&g(),disabled:!a,children:[c.jsx("span",{className:"sr-only",children:"Go to previous page"}),c.jsx(ao,{className:"h-6 w-6"})]}),c.jsx(qa,{active:M,onClick:E,children:L()}),r>1&&c.jsx(qa,{active:I,onClick:O,children:k()}),r>2&&c.jsxs(c.Fragment,{children:[r>3&&c.jsx("span",{className:"cursor-default",children:"..."}),r>3&&c.jsx(qa,{active:o===r-2,onClick:()=>p==null?void 0:p(r-2),children:r-1}),c.jsx(qa,{active:o===r-1,onClick:()=>p==null?void 0:p(r-1),children:r})]}),c.jsxs(Ze,{variant:"fade-contrast-transparent",className:"h-6 w-6 p-0 rounded-full",onClick:()=>m&&m(),disabled:!s,children:[c.jsx("span",{className:"sr-only",children:"Go to next page"}),c.jsx(Vn,{className:"h-6 w-6"})]}),!d&&c.jsxs(Ze,{variant:"fade-contrast-transparent",className:"hidden h-6 w-6 p-0 lg:flex rounded-full",onClick:()=>p==null?void 0:p(r-1),disabled:!s,children:[c.jsx("span",{className:"sr-only",children:"Go to last page"}),c.jsx(Bl,{className:"h-6 w-6"})]})]})})]})}function q0({className:e,...n}){return c.jsx("div",{className:N("animate-pulse rounded-md bg-background-contrast-fade/50",e),...n})}q0.displayName="Skeleton";var _b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ib=_b.reduce((e,n)=>{const t=Wo(`Primitive.${n}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,u=s?t:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...i,ref:a})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),kb="Separator",K0="horizontal",Tb=["horizontal","vertical"],X0=l.forwardRef((e,n)=>{const{decorative:t,orientation:r=K0,...o}=e,a=Db(r)?r:K0,i=t?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return c.jsx(Ib.div,{"data-orientation":a,...i,...o,ref:n})});X0.displayName=kb;function Db(e){return Tb.includes(e)}var Ob=X0;const Fn=l.forwardRef(({className:e,orientation:n="horizontal",decorative:t=!0,intent:r="default",...o},a)=>c.jsx(Ob,{ref:a,decorative:t,orientation:n,className:N("shrink-0",r==="sidebar"?"bg-line-sidebar":"bg-line-primary",n==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));Fn.displayName="Separator";const Q0=l.createContext({striped:!0}),Zl=l.forwardRef(({className:e,rootClassName:n,striped:t=!0,children:r,...o},a)=>c.jsx(Q0.Provider,{value:{striped:t},children:c.jsx("div",{className:N("relative w-full h-full flex items-start overflow-auto",n),children:c.jsx("table",{ref:a,className:N("w-full caption-bottom text-sm",e),...o,children:r})})}));Zl.displayName="Table";const Wl=l.forwardRef(({className:e,sticky:n,children:t,...r},o)=>c.jsxs("thead",{ref:o,className:N("bg-background [&_tr]:border-b",n?"sticky print:static z-30 top-0 [&_tr]:border-none":"",e,n?"border-none [&_tr]:border-none":""),...r,children:[n&&(e==null?void 0:e.includes("border-t"))&&c.jsx(Fn,{className:"absolute w-full"}),t,n&&c.jsx(Fn,{className:"absolute w-full"}),n&&c.jsx(Fn,{className:"bg-[transparent]"})]}));Wl.displayName="TableHeader";const Rl=l.forwardRef(({className:e,...n},t)=>c.jsx("tbody",{ref:t,className:N("[&_tr:last-child]:border-0",e),...n}));Rl.displayName="TableBody";const J0=l.forwardRef(({className:e,...n},t)=>c.jsx("tfoot",{ref:t,className:N("border-t bg-background font-medium [&>tr]:last:border-b-0",e),...n}));J0.displayName="TableFooter";const $n=l.forwardRef(({className:e,dataIndex:n,variant:t="table",isHeader:r=!1,...o},a)=>{const{striped:s}=l.useContext(Q0);return c.jsx("tr",{ref:a,"data-index":n,className:N(t==="list"?"border-b border-line-primary data-[state=selected]:bg-background-tertiary":"transition-colors data-[state=selected]:bg-background-tertiary",!r&&t==="table"?"hover:bg-background-primary-hover":"",s&&"even:bg-background-secondary",e),...o})});$n.displayName="TableRow";const Gl=l.forwardRef(({className:e,variant:n="table",...t},r)=>c.jsx("th",{ref:r,className:N("min-h-9 text-left font-medium text-foreground-primary [&:has([role=checkbox])]:pr-0","align-middle",n==="list"?"py-2 first:pl-0 last:pr-0 [&:not(:first-child)]:pl-2":"p-2 border-r border-line-primary last:border-r-0",e),...t}));Gl.displayName="TableHead";const so=l.forwardRef(({className:e,variant:n="table",...t},r)=>c.jsx("td",{ref:r,className:N("align-top text-foreground-primary","[&:has([role=checkbox])]:pr-0",n==="list"?"py-2 first:pl-0 last:pr-0 [&:not(:first-child)]:pl-2":"p-2 border-r border-line-primary last:border-r-0",e),...t}));so.displayName="TableCell";const ef=l.forwardRef(({className:e,...n},t)=>c.jsx("caption",{ref:t,className:N("mt-4 text-sm text-muted-foreground",e),...n}));ef.displayName="TableCaption";function Vb({columns:e,data:n,horizontalPadding:t="medium",rowCount:r,noResultsText:o="No results.",enableRowSelection:a=!1,enableMultiRowSelection:s=!1,selection:i={},pagination:u,sorting:d,expanded:f,manualSorting:h=!0,paginationProps:g,className:m,additionalSlot:C,selectedRowClassName:p,onSortingChange:v,getRowId:w,onPaginationChange:y,onRowSelectionChange:b,onRowClick:S,onExpandedChange:M,loading:L,skeletonClassName:E="h-5",isStickyHeader:I,headerClassName:k,columnVisibility:O,onColumnVisibilityChange:H,columnFilters:V,onColumnFiltersChange:Y,rowHoverContent:$,hideHeader:U=!1,variant:T="table",striped:W=!0,columnSizingStorageKey:P,enableMultiSort:z=!1,maxMultiSortColumns:q}){var te;const K=D.useRef(null),[Z,A]=D.useState(null),{columnSizing:_,onColumnSizingChange:B}=j0(P),G=Pb({getRowId:w,data:n,columns:e,getCoreRowModel:xb(),getExpandedRowModel:Sb(),manualPagination:!0,rowCount:r,state:{pagination:u,rowSelection:i,sorting:d,expanded:f,columnVisibility:O,columnFilters:V,...P!==void 0?{columnSizing:_}:{}},manualSorting:h,enableMultiSort:z,enableRowSelection:a,enableMultiRowSelection:s,enableColumnResizing:P!==void 0,columnResizeMode:"onChange",onPaginationChange:y,onRowSelectionChange:b,onSortingChange:v,onExpandedChange:M,onColumnVisibilityChange:H,onColumnFiltersChange:Y,...P!==void 0?{onColumnSizingChange:B}:{},...z&&q?{maxMultiSortColCount:q}:{},getSubRows:j=>j.subRows}),F=!!u,R=()=>{if(T==="list")return"first:pl-0 last:pr-0";switch(t){case"small":return"first:pl-4 last:pr-4";case"large":return"first:pl-8 last:pr-8";case"medium":default:return"first:pl-6 last:pr-6"}},Q=(j,ee)=>{if(!$||!K.current)return;const le=j.currentTarget.getBoundingClientRect(),we=K.current.getBoundingClientRect();K.current.style.setProperty("--hover-top",`${le.top-we.top}px`),K.current.style.setProperty("--hover-height",`${le.height}px`),K.current.style.setProperty("--hover-visible","1"),A(ee)},re=()=>{!$||!K.current||K.current.style.setProperty("--hover-visible","0")};return c.jsxs("div",{ref:K,onMouseLeave:re,className:N("relative flex flex-1 flex-col h-full",m),children:[c.jsxs(Zl,{striped:W,className:N("border-t border-line-primary",!F&&"border-b border-line-primary"),children:[!U&&c.jsx(Wl,{className:N("bg-background-secondary",I&&"sticky top-0 z-20",k),children:G.getHeaderGroups().map(j=>c.jsx($n,{className:"border-line-primary",variant:T,isHeader:!0,children:j.headers.map(ee=>{var we;const ie=((we=ee.column.columnDef.meta)==null?void 0:we.hideRightBorder)??!1,le=P!==void 0&&ee.column.getCanResize();return c.jsxs(Gl,{colSpan:ee.colSpan,style:{minWidth:ee.getSize(),width:ee.getSize()},className:N("relative",T==="list"?"":R(),ie&&T==="table"&&"border-r-0"),variant:T,children:[ee.isPlaceholder?null:R0(ee.column.columnDef.header,ee.getContext()),le&&c.jsx("div",{onMouseDown:ee.getResizeHandler(),onTouchStart:ee.getResizeHandler(),className:N("absolute right-0 top-0 h-full w-1 cursor-col-resize select-none touch-none","opacity-0 hover:opacity-100 bg-foreground-theme transition-opacity",ee.column.getIsResizing()&&"opacity-100 bg-foreground-theme"),style:{transform:"translateX(50%)"}})]},ee.id)})},j.id))}),c.jsxs(Rl,{children:[L?G.getHeaderGroups().map(j=>Array.from({length:5}).map((ee,ie)=>c.jsx($n,{variant:T,children:j.headers.map(le=>{var Te;const we=((Te=le.column.columnDef.meta)==null?void 0:Te.hideRightBorder)??!1;return c.jsx(so,{colSpan:le.colSpan,style:{minWidth:le.column.getSize(),width:le.column.getSize()},className:N(T==="list"?"":R(),we&&T==="table"&&"border-r-0"),variant:T,children:c.jsx(q0,{className:N("w-full",E)})},le.id)})},ie))):null,L?null:(te=G.getRowModel().rows)!=null&&te.length?G.getRowModel().rows.map(j=>c.jsxs(D.Fragment,{children:[c.jsx($n,{"data-state":j.getIsSelected()&&!p&&"selected",className:N(j.getIsSelected()?p:""),onClick:()=>S==null?void 0:S(j.original),onMouseEnter:ee=>Q(ee,j.original),variant:T,children:j.getVisibleCells().map(ee=>{var le;const ie=((le=ee.column.columnDef.meta)==null?void 0:le.hideRightBorder)??!1;return c.jsx(so,{style:{minWidth:ee.column.getSize(),width:ee.column.getSize()},className:N(T==="list"?"":R(),ie&&T==="table"&&"border-r-0"),variant:T,children:R0(ee.column.columnDef.cell,ee.getContext())},ee.id)})},j.id),j.getIsExpanded()&&c.jsx($n,{variant:T,children:c.jsx("td",{colSpan:j.getVisibleCells().length,children:j.original.customExpandedContent})},`${j.id}-expanded`)]},j.id)):c.jsx($n,{variant:T,children:c.jsx(so,{colSpan:e.length,className:N("h-24 text-center",T==="list"?"":R()),variant:T,children:o})})]})]}),$&&Z&&c.jsx("div",{className:"absolute bottom-0 left-0 right-0 z-20 pointer-events-none transition-opacity duration-200",style:{top:"var(--hover-top)",height:"var(--hover-height)",opacity:"var(--hover-visible)"},children:c.jsx("div",{className:N("h-full flex items-center justify-end pointer-events-none",R()),children:c.jsx("div",{className:"pointer-events-auto",children:$(Z)})})}),C,F&&c.jsx(tf,{paginationProps:g,table:G,horizontalPadding:t,variant:T})]})}function Hb({width:e,children:n}){return c.jsx("div",{className:"truncate",style:{width:e},title:n,children:n})}function tf({table:e,horizontalPadding:n="medium",paginationProps:t,variant:r="table"}){const o=r==="list"?"bg-background-secondary rounded-none mt-4 border-none":"";return c.jsx(U0,{...t,horizontalPadding:n,className:N(t==null?void 0:t.className,o),pageSize:e.getState().pagination.pageSize,pageCount:e.getPageCount(),pageIndex:e.getState().pagination.pageIndex,canPreviousPage:e.getCanPreviousPage(),canNextPage:e.getCanNextPage(),selectedCount:e.getFilteredSelectedRowModel().rows.length,totalCount:e.getFilteredRowModel().rows.length,previousPage:e.previousPage,nextPage:e.nextPage,setPageSize:e.setPageSize,setPageIndex:e.setPageIndex})}const Ka=e=>e?un(typeof e=="string"?new Date(e):e,"dd.MM.yyyy"):"",io=e=>{const n=e.replace(/\D/g,"");return n.length<=2?n:n.length<=4?`${n.slice(0,2)}.${n.slice(2)}`:`${n.slice(0,2)}.${n.slice(2,4)}.${n.slice(4,8)}`},Ab=e=>{const n=", ",t=e.split(",").map(i=>i.trim()),r=t.map(i=>io(i)),o=e.replace(/\D/g,"").length;if(t.length===1){const i=r[0];return i.length===10&&o>8?i+n:i}const a=r[r.length-1],s=t[t.length-1].replace(/\D/g,"").length;return a.length===10&&s>8?r.join(n)+n:a===""&&t[t.length-1].trim()===""?(r.pop(),r.join(n)+n):r.join(n)},Fb=e=>{const n=" — ",t=e.split(n);if(t.length===1){const a=io(e);return a.length===10&&e.replace(/\D/g,"").length>8?a+n:a}const r=io(t[0].trim()),o=io(t.slice(1).join("").trim());return o?r+n+o:r+n},lo=e=>{if(!e||e.trim()==="")return null;const n=e.trim();if(!/^(\d{2})\.(\d{2})\.(\d{4})$/.test(n))return null;const r=Bh(n,"dd.MM.yyyy",new Date,{locale:ai});return ou(r)?r:null},$b=e=>{if(!e||e.trim()==="")return[];const n=e.split(",").map(r=>r.trim()),t=[];for(const r of n){const o=lo(r);o&&t.push(o)}return t},zb=e=>{if(!e||e.trim()==="")return null;const t=e.split(" — ");if(t.length===1){const r=lo(t[0].trim());return r?{from:r,to:void 0}:null}if(t.length===2){const r=lo(t[0].trim()),o=lo(t[1].trim());return r?{from:r,to:o||void 0}:null}return null},jl=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19 4H18V2H16V4H8V2H6V4H5C3.89 4 3.01 4.9 3.01 6L3 20C3 21.1 3.89 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM19 20H5V10H19V20ZM19 8H5V6H19V8ZM9 14H7V12H9V14ZM13 14H11V12H13V14ZM17 14H15V12H17V14ZM9 18H7V16H9V18ZM13 18H11V16H13V18ZM17 18H15V16H17V18Z"})),nf=e=>l.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.96409 5.50008C9.54988 5.50183 9.21268 5.16746 9.21093 4.75325C9.20918 4.33904 9.54354 4.00184 9.95775 4.00009C12.004 3.99576 14.1048 4.55116 15.8761 5.57766C17.5665 6.55736 19 8.06774 19 10C19 11.003 18.6069 11.9011 18.0013 12.6586C17.7427 12.9821 17.2707 13.0347 16.9472 12.7761C16.6237 12.5174 16.5711 12.0454 16.8298 11.7219C17.2721 11.1686 17.5 10.5911 17.5 10C17.5 8.86976 16.6418 7.75514 15.1239 6.87546C13.5824 5.9821 11.7449 5.49632 9.96409 5.50008Z",fill:"#99A2AD"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.12393 14.4223C5.84342 15.4189 8.03582 16 10 16C11.6051 16 13.3554 15.6123 14.8731 14.9338L15.7197 15.7803C16.0126 16.0732 16.4874 16.0732 16.7803 15.7803C17.0732 15.4874 17.0732 15.0126 16.7803 14.7197L5.28033 3.21967C4.98744 2.92678 4.51256 2.92678 4.21967 3.21967C3.92678 3.51256 3.92678 3.98744 4.21967 4.28033L5.04335 5.10401C4.06903 5.54898 3.17342 6.1239 2.4732 6.81589C1.60643 7.67246 1 8.75167 1 10C1 11.9323 2.43347 13.4426 4.12393 14.4223ZM8.5 10C8.5 10.8284 9.17157 11.5 10 11.5C10.3988 11.5 10.7612 11.3444 11.0299 11.0906L8.90944 8.9701C8.65562 9.23878 8.5 9.60122 8.5 10ZM7 10C7 11.6569 8.34315 13 10 13C10.813 13 11.5505 12.6766 12.0908 12.1514L13.7252 13.7859C12.5236 14.2443 11.2017 14.5 10 14.5C8.29751 14.5 6.36491 13.9874 4.87607 13.1245C3.3582 12.2449 2.5 11.1302 2.5 10C2.5 9.26893 2.85091 8.5515 3.52757 7.8828C4.18791 7.23023 5.121 6.66551 6.18727 6.24793L7.84857 7.90923C7.3234 8.44953 7 9.187 7 10Z",fill:"#99A2AD"})),Yl=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M6.50006 1C9.53765 1 12.0001 3.46256 12.0001 6.50029C12.0001 7.74868 11.5842 8.89993 10.8835 9.82304L14.7791 13.7233C15.0718 14.0164 15.0715 14.4913 14.7785 14.784C14.4854 15.0767 14.0105 15.0764 13.7178 14.7834L9.82266 10.8839C8.89959 11.5847 7.74839 12.0006 6.50006 12.0006C3.46246 12.0006 1 9.53802 1 6.50029C1 3.46256 3.46246 1 6.50006 1ZM6.50006 2.5C4.2909 2.5 2.5 4.29098 2.5 6.50029C2.5 8.70961 4.2909 10.5006 6.50006 10.5006C8.70921 10.5006 10.5001 8.70961 10.5001 6.50029C10.5001 4.29098 8.70921 2.5 6.50006 2.5Z",fill:"currentColor"})),rf=e=>l.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"view_outline_20"},l.createElement("g",{id:"â³ Icon Color"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 10C13 11.6569 11.6569 13 10 13C8.34315 13 7 11.6569 7 10C7 8.34315 8.34315 7 10 7C11.6569 7 13 8.34315 13 10ZM11.5 10C11.5 10.8284 10.8284 11.5 10 11.5C9.17157 11.5 8.5 10.8284 8.5 10C8.5 9.17157 9.17157 8.5 10 8.5C10.8284 8.5 11.5 9.17157 11.5 10Z",fill:"#99A2AD"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 10C19 13.5 14 16 10 16C6 16 1 13.5 1 10C1 6.5 6 4 10 4C14 4 19 6.5 19 10ZM17.5 10C17.5 10.9827 16.7806 12.0838 15.2215 13.0303C13.7054 13.9508 11.7245 14.5 10 14.5C8.27549 14.5 6.29462 13.9508 4.77847 13.0303C3.21944 12.0838 2.5 10.9827 2.5 10C2.5 9.01731 3.21944 7.91623 4.77847 6.96968C6.29462 6.04916 8.27549 5.5 10 5.5C11.7245 5.5 13.7054 6.04916 15.2215 6.96968C16.7806 7.91623 17.5 9.01731 17.5 10Z",fill:"#99A2AD"})))),tn=l.forwardRef(({className:e,type:n,error:t,asSearch:r,rightIcon:o,withCount:a,onEnter:s,value:i="",...u},d)=>{const[f,h]=l.useState(!1),[g,m]=l.useState(i.toString().length),C=r||n==="password"||o||a,p=w=>{var y;m(w.target.value.length),(y=u.onChange)==null||y.call(u,w)},v=c.jsxs(c.Fragment,{children:[c.jsx("input",{type:f?"text":n,className:N("flex h-9 w-full rounded-lg border border-line-primary bg-[transparent] blur-none pl-3 py-2 text-sm tracking-[0.1px] leading-5 transition-colors duration-300 ease-in-out ring-offset-background file:border-0 file:bg-[transparent] file:text-sm font-normal placeholder:text-foreground-secondary focus-visible:outline-none focus-visible:border-line-focused disabled:cursor-not-allowed disabled:opacity-50 truncate line-clamp-1",t?"border-line-error focus-visible:border-line-error":"",!C&&e,o||a||n==="password"?"pr-8":"pr-3",u.readOnly&&"cursor-not-allowed pointer-events-none opacity-95"),ref:d,placeholder:r?u.placeholder||"Search":u.placeholder,onKeyDown:w=>{w.key==="Enter"&&(w.preventDefault(),s==null||s(w.target.value))},value:i,...u,onChange:p}),o&&c.jsx("span",{className:"absolute right-1.5 top-1/2 -translate-y-1/2",children:o}),a&&c.jsx("span",{className:`absolute right-1.5 top-1/2 -translate-y-1/2
|
|
132
|
-
text-foreground-tertiary text-xs`,children:g}),r&&c.jsx(Yl,{className:"absolute top-[10px] right-3 text-icon-fade-contrast"}),n==="password"&&c.jsx("span",{className:"absolute bottom-2 right-2 cursor-pointer",onClick:()=>h(!f),children:f?c.jsx(nf,{}):c.jsx(rf,{})})]});return C?c.jsx("span",{className:N("relative transition-colors",C&&e),children:v}):v});tn.displayName="Input";var Bb="Portal",of=l.forwardRef((e,n)=>{var i;const{container:t,...r}=e,[o,a]=l.useState(!1);He(()=>a(!0),[]);const s=t||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Yt.createPortal(c.jsx(oe.div,{...r,ref:n}),s):null});of.displayName=Bb;function Zb(e){const n=Wb(e),t=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),u=i.find(Gb);if(u){const d=u.props.children,f=i.map(h=>h===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:h);return c.jsx(n,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return c.jsx(n,{...s,ref:o,children:a})});return t.displayName=`${e}.Slot`,t}function Wb(e){const n=l.forwardRef((t,r)=>{const{children:o,...a}=t;if(l.isValidElement(o)){const s=Yb(o),i=jb(a,o.props);return o.type!==l.Fragment&&(i.ref=r?st(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var Rb=Symbol("radix.slottable");function Gb(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Rb}function jb(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(t[r]=o):r==="style"?t[r]={...o,...a}:r==="className"&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function Yb(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Xa="Popover",[af]=nt(Xa,[gn]),co=gn(),[Ub,xn]=af(Xa),sf=e=>{const{__scopePopover:n,children:t,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=co(n),u=l.useRef(null),[d,f]=l.useState(!1),[h,g]=ht({prop:r,defaultProp:o??!1,onChange:a,caller:Xa});return c.jsx(jr,{...i,children:c.jsx(Ub,{scope:n,contentId:qe(),triggerRef:u,open:h,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(m=>!m),[g]),hasCustomAnchor:d,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:s,children:t})})};sf.displayName=Xa;var lf="PopoverAnchor",cf=l.forwardRef((e,n)=>{const{__scopePopover:t,...r}=e,o=xn(lf,t),a=co(t),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),c.jsx(Yr,{...a,...r,ref:n})});cf.displayName=lf;var uf="PopoverTrigger",df=l.forwardRef((e,n)=>{const{__scopePopover:t,...r}=e,o=xn(uf,t),a=co(t),s=he(n,o.triggerRef),i=c.jsx(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":vf(o.open),...r,ref:s,onClick:ne(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:c.jsx(Yr,{asChild:!0,...a,children:i})});df.displayName=uf;var Ul="PopoverPortal",[qb,Kb]=af(Ul,{forceMount:void 0}),ff=e=>{const{__scopePopover:n,forceMount:t,children:r,container:o}=e,a=xn(Ul,n);return c.jsx(qb,{scope:n,forceMount:t,children:c.jsx(Ke,{present:t||a.open,children:c.jsx(of,{asChild:!0,container:o,children:r})})})};ff.displayName=Ul;var yr="PopoverContent",hf=l.forwardRef((e,n)=>{const t=Kb(yr,e.__scopePopover),{forceMount:r=t.forceMount,...o}=e,a=xn(yr,e.__scopePopover);return c.jsx(Ke,{present:r||a.open,children:a.modal?c.jsx(Qb,{...o,ref:n}):c.jsx(Jb,{...o,ref:n})})});hf.displayName=yr;var Xb=Zb("PopoverContent.RemoveScroll"),Qb=l.forwardRef((e,n)=>{const t=xn(yr,e.__scopePopover),r=l.useRef(null),o=he(n,r),a=l.useRef(!1);return l.useEffect(()=>{const s=r.current;if(s)return ha(s)},[]),c.jsx(Ur,{as:Xb,allowPinchZoom:!0,children:c.jsx(gf,{...e,ref:o,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ne(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=t.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ne(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0,d=i.button===2||u;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:ne(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Jb=l.forwardRef((e,n)=>{const t=xn(yr,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return c.jsx(gf,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=t.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var u,d;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=t.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),gf=l.forwardRef((e,n)=>{const{__scopePopover:t,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,...h}=e,g=xn(yr,t),m=co(t);return qo(),c.jsx(Wr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:c.jsx(kn,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:c.jsx(ia,{"data-state":vf(g.open),role:"dialog",id:g.contentId,...m,...h,ref:n,style:{...h.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)"}})})})}),pf="PopoverClose",mf=l.forwardRef((e,n)=>{const{__scopePopover:t,...r}=e,o=xn(pf,t);return c.jsx(oe.button,{type:"button",...r,ref:n,onClick:ne(e.onClick,()=>o.onOpenChange(!1))})});mf.displayName=pf;var ex="PopoverArrow",tx=l.forwardRef((e,n)=>{const{__scopePopover:t,...r}=e,o=co(t);return c.jsx(la,{...o,...r,ref:n})});tx.displayName=ex;function vf(e){return e?"open":"closed"}var nx=sf,Cf=cf,rx=df,ox=ff,wf=hf,ax=mf;const zn=nx,Bn=rx,sx=ax,yf=Cf;yf.displayName=Cf.displayName;const Sn=l.forwardRef(({className:e,align:n="center",sideOffset:t=4,...r},o)=>c.jsx(ox,{children:c.jsx(wf,{ref:o,align:n,sideOffset:t,className:N("z-50 w-72 rounded-md 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",e),...r})}));Sn.displayName=wf.displayName;function bf({className:e,locale:n,iconClassName:t,...r}){const o={...r,value:r.value??void 0},{t:a}=rt(),s=l.useRef(null),[i,u]=l.useState(""),[d,f]=l.useState(!1),[h,g]=l.useState(!1),m="placeholder"in o?o.placeholder:void 0,C="innerLabel"in o?o.innerLabel:void 0,p=()=>n||((navigator.language||navigator.languages[0]).includes("ru")?ai:Fr),v=(P,z)=>P.getFullYear()===z.getFullYear()&&P.getMonth()===z.getMonth()&&P.getDate()===z.getDate(),w=()=>{const P=o.selected||o.value;if(P instanceof Date)return P;if(typeof P=="string"&&P)return new Date(P)},y=l.useCallback(()=>{var P;switch(o.mode){case"single":return o.value?Ka(o.value):"";case"multiple":return(P=o.value)!=null&&P.length?o.value.map(Ka).join(", "):"";case"range":{const z=o.selected||o.value;if(!(z!=null&&z.from))return"";const q=z!=null&&z.to?" — "+Ka(z.to):"";return Ka(z.from)+q}default:return""}},[o.mode,o.value,o.selected]),b=()=>{switch(o.mode){case"single":return"__.__.__";case"multiple":return"__.__.__, __.__.__";case"range":return"__.__.__ — __.__.__";default:return"__.__.__"}},S=()=>{var P;switch(o.mode){case"single":return!!o.value;case"multiple":return!!((P=o.value)!=null&&P.length&&o.value.length>0);case"range":{const z=o.selected||o.value;return!!(z!=null&&z.from)}}},M=()=>{if(o.readOnly)return;f(!0),g(!0);const P=y();P?u(P):(u(b()),setTimeout(()=>{s.current&&s.current.select()},0))},L=P=>{if(o.readOnly)return;const z=P.target.value;if(z===b()){u("");return}let q="";switch(o.mode){case"single":q=io(z);break;case"multiple":q=Ab(z);break;case"range":q=Fb(z);break}u(q)},E=()=>{if(!o.onChange||i.trim()===""||i===b()){u(y());return}const P=y();if(i===P)return;const z={};switch(o.mode){case"single":{const q=lo(i);if(q){const K=w();if(K&&v(K,q)){u(y());break}const Z=o.onChange;Z(q,q,{},z)}else u("");break}case"multiple":{const q=$b(i);if(q.length>0){const K=o.onChange;K(q,new Date,{},z)}else u("");break}case"range":{const q=zb(i);if(q&&q.from){const K=o.onChange,Z={from:q.from,to:q.to};K(Z,q.from,{},z)}else u("");break}}},I=()=>{h||(f(!1),E())},k=P=>{if(P.stopPropagation(),!o.readOnly){if(u(""),f(!1),o.onRemoveClick){o.onRemoveClick();return}if(o.onChange)switch(o.mode){case"single":{const z=o.onChange;z(void 0,new Date,{},P);break}case"multiple":{const z=o.onChange;z([],new Date,{},P);break}case"range":{const z=o.onChange;z({from:void 0,to:void 0},new Date,{},P);break}}}},O=P=>(z,q,K,Z)=>{if(!P)return;const A=o.selected||o.value;if(z===void 0&&A&&q&&A instanceof Date){const _=new Date(A.getFullYear(),A.getMonth(),A.getDate()),B=new Date(q.getFullYear(),q.getMonth(),q.getDate());if(_.getTime()===B.getTime())return}P(z,q,K,Z)},H=P=>(z,q,K,Z)=>{if(!P||!q)return;const A=o.selected||o.value;if(A&&typeof A=="object"&&"from"in A){const _=A;if(!_.from)P({from:q,to:void 0},q,K,Z);else if(_.to)P({from:q,to:void 0},q,K,Z);else{const B=q<_.from?{from:q,to:_.from}:{from:_.from,to:q};P(B,q,K,Z)}}else P({from:q,to:void 0},q,K,Z)},V={...o,selected:o.selected||o.value,onSelect:o.onSelect||(o.mode==="single"?O(o.onChange):o.mode==="range"?H(o.onChange):o.onChange)},Y=P=>{g(P),!P&&d&&(f(!1),E())};l.useEffect(()=>{const P=y();d?h&&P&&u(P):u(P)},[o.value,o.selected,o.mode,d,h,y]);const $=d?i:S()?y():"",U=b(),T=m||a("selectDate"),W=!S()&&!d?C?"":T:"";return c.jsxs(zn,{open:h,onOpenChange:Y,children:[c.jsx(Bn,{asChild:!0,children:c.jsxs(Ze,{variant:"fade-contrast-outlined",size:"sm",className:N("justify-start text-left font-normal px-3 text-sm focus-visible:outline-none focus-visible:border-line-focused data-[state=open]:border-line-focused w-full",!S()&&!d&&"text-foreground-secondary",o.error?"border-line-error focus-visible:border-line-error":"",e,o.readOnly&&"cursor-not-allowed pointer-events-none opacity-95"),onClick:()=>{var P;o.readOnly||(g(!0),(P=s.current)==null||P.focus())},children:[c.jsxs("div",{className:"flex items-center flex-shrink-0",onClick:P=>{var z;P.stopPropagation(),o.readOnly||(g(!0),(z=s.current)==null||z.focus())},children:[C&&c.jsxs("span",{className:"text-foreground-secondary font-normal mr-1 whitespace-nowrap",children:[C,":"]}),c.jsxs("div",{className:"inline-grid [grid-template-areas:'stack'] items-center min-w-[20px] w-fit",children:[(d||S())&&c.jsx("span",{"aria-hidden":"true",className:"[grid-area:stack] invisible whitespace-pre px-0 py-0 text-sm font-normal tracking-[0.1px] leading-5 pointer-events-none",children:U}),!C&&T&&c.jsx("span",{"aria-hidden":"true",className:"[grid-area:stack] invisible whitespace-pre px-0 py-0 text-sm font-normal tracking-[0.1px] leading-5 pointer-events-none",children:T}),c.jsx("span",{"aria-hidden":"true",className:"[grid-area:stack] invisible whitespace-pre px-0 py-0 text-sm font-normal tracking-[0.1px] leading-5 pointer-events-none",children:$||" "}),c.jsx(tn,{ref:s,type:"text",value:$,onChange:L,onFocus:M,onBlur:I,placeholder:W,className:"[grid-area:stack] w-[0px] min-w-full h-auto border-none !p-0 !bg-transparent",readOnly:o.readOnly})]})]}),(o.showReset||o.onRemoveClick)&&S()?c.jsx("div",{className:N("flex items-center justify-center w-6 h-6 shrink-0 cursor-pointer ml-auto",o.readOnly&&"cursor-not-allowed opacity-50"),onClick:k,children:c.jsx(La,{className:"w-6 h-6 text-icon-fade-contrast"})}):c.jsx(jl,{className:N("ml-auto text-foreground-secondary",t)})]})}),c.jsx(Sn,{className:"w-auto p-0 rounded-lg",children:c.jsx(Ta,{className:"bg-background rounded-lg",locale:p(),...V,initialFocus:!0})})]})}var ix="Portal",xf=l.forwardRef((e,n)=>{var i;const{container:t,...r}=e,[o,a]=l.useState(!1);He(()=>a(!0),[]);const s=t||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Yt.createPortal(c.jsx(oe.div,{...r,ref:n}),s):null});xf.displayName=ix;var ql="rovingFocusGroup.onEntryFocus",lx={bubbles:!1,cancelable:!0},uo="RovingFocusGroup",[Kl,Sf,cx]=Uo(uo),[ux,br]=nt(uo,[cx]),[dx,fx]=ux(uo),Ef=l.forwardRef((e,n)=>c.jsx(Kl.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Kl.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(hx,{...e,ref:n})})}));Ef.displayName=uo;var hx=l.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:t,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...h}=e,g=l.useRef(null),m=he(n,g),C=ar(a),[p,v]=ht({prop:s,defaultProp:i??null,onChange:u,caller:uo}),[w,y]=l.useState(!1),b=Re(d),S=Sf(t),M=l.useRef(!1),[L,E]=l.useState(0);return l.useEffect(()=>{const I=g.current;if(I)return I.addEventListener(ql,b),()=>I.removeEventListener(ql,b)},[b]),c.jsx(dx,{scope:t,orientation:r,dir:C,loop:o,currentTabStopId:p,onItemFocus:l.useCallback(I=>v(I),[v]),onItemShiftTab:l.useCallback(()=>y(!0),[]),onFocusableItemAdd:l.useCallback(()=>E(I=>I+1),[]),onFocusableItemRemove:l.useCallback(()=>E(I=>I-1),[]),children:c.jsx(oe.div,{tabIndex:w||L===0?-1:0,"data-orientation":r,...h,ref:m,style:{outline:"none",...e.style},onMouseDown:ne(e.onMouseDown,()=>{M.current=!0}),onFocus:ne(e.onFocus,I=>{const k=!M.current;if(I.target===I.currentTarget&&k&&!w){const O=new CustomEvent(ql,lx);if(I.currentTarget.dispatchEvent(O),!O.defaultPrevented){const H=S().filter(T=>T.focusable),V=H.find(T=>T.active),Y=H.find(T=>T.id===p),U=[V,Y,...H].filter(Boolean).map(T=>T.ref.current);Nf(U,f)}}M.current=!1}),onBlur:ne(e.onBlur,()=>y(!1))})})}),Mf="RovingFocusGroupItem",Lf=l.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:t,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,u=qe(),d=a||u,f=fx(Mf,t),h=f.currentTabStopId===d,g=Sf(t),{onFocusableItemAdd:m,onFocusableItemRemove:C,currentTabStopId:p}=f;return l.useEffect(()=>{if(r)return m(),()=>C()},[r,m,C]),c.jsx(Kl.ItemSlot,{scope:t,id:d,focusable:r,active:o,children:c.jsx(oe.span,{tabIndex:h?0:-1,"data-orientation":f.orientation,...i,ref:n,onMouseDown:ne(e.onMouseDown,v=>{r?f.onItemFocus(d):v.preventDefault()}),onFocus:ne(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:ne(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const w=mx(v,f.orientation,f.dir);if(w!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let b=g().filter(S=>S.focusable).map(S=>S.ref.current);if(w==="last")b.reverse();else if(w==="prev"||w==="next"){w==="prev"&&b.reverse();const S=b.indexOf(v.currentTarget);b=f.loop?vx(b,S+1):b.slice(S+1)}setTimeout(()=>Nf(b))}}),children:typeof s=="function"?s({isCurrentTabStop:h,hasTabStop:p!=null}):s})})});Lf.displayName=Mf;var gx={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function px(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function mx(e,n,t){const r=px(e.key,t);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return gx[r]}function Nf(e,n=!1){const t=document.activeElement;for(const r of e)if(r===t||(r.focus({preventScroll:n}),document.activeElement!==t))return}function vx(e,n){return e.map((t,r)=>e[(n+r)%e.length])}var Xl=Ef,Ql=Lf;function Cx(e){const n=wx(e),t=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),u=i.find(bx);if(u){const d=u.props.children,f=i.map(h=>h===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:h);return c.jsx(n,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return c.jsx(n,{...s,ref:o,children:a})});return t.displayName=`${e}.Slot`,t}function wx(e){const n=l.forwardRef((t,r)=>{const{children:o,...a}=t;if(l.isValidElement(o)){const s=Sx(o),i=xx(a,o.props);return o.type!==l.Fragment&&(i.ref=r?st(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var yx=Symbol("radix.slottable");function bx(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yx}function xx(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(t[r]=o):r==="style"?t[r]={...o,...a}:r==="className"&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function Sx(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Jl=["Enter"," "],Ex=["ArrowDown","PageUp","Home"],Pf=["ArrowUp","PageDown","End"],Mx=[...Ex,...Pf],Lx={ltr:[...Jl,"ArrowRight"],rtl:[...Jl,"ArrowLeft"]},Nx={ltr:["ArrowLeft"],rtl:["ArrowRight"]},fo="Menu",[ho,Px,_x]=Uo(fo),[Zn,_f]=nt(fo,[_x,gn,br]),go=gn(),If=br(),[kf,En]=Zn(fo),[Ix,po]=Zn(fo),Tf=e=>{const{__scopeMenu:n,open:t=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=go(n),[u,d]=l.useState(null),f=l.useRef(!1),h=Re(a),g=ar(o);return l.useEffect(()=>{const m=()=>{f.current=!0,document.addEventListener("pointerdown",C,{capture:!0,once:!0}),document.addEventListener("pointermove",C,{capture:!0,once:!0})},C=()=>f.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",C,{capture:!0}),document.removeEventListener("pointermove",C,{capture:!0})}},[]),c.jsx(jr,{...i,children:c.jsx(kf,{scope:n,open:t,onOpenChange:h,content:u,onContentChange:d,children:c.jsx(Ix,{scope:n,onClose:l.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:f,dir:g,modal:s,children:r})})})};Tf.displayName=fo;var kx="MenuAnchor",e1=l.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,o=go(t);return c.jsx(Yr,{...o,...r,ref:n})});e1.displayName=kx;var t1="MenuPortal",[Tx,Df]=Zn(t1,{forceMount:void 0}),Of=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:o}=e,a=En(t1,n);return c.jsx(Tx,{scope:n,forceMount:t,children:c.jsx(Ke,{present:t||a.open,children:c.jsx(xf,{asChild:!0,container:o,children:r})})})};Of.displayName=t1;var yt="MenuContent",[Dx,n1]=Zn(yt),Vf=l.forwardRef((e,n)=>{const t=Df(yt,e.__scopeMenu),{forceMount:r=t.forceMount,...o}=e,a=En(yt,e.__scopeMenu),s=po(yt,e.__scopeMenu);return c.jsx(ho.Provider,{scope:e.__scopeMenu,children:c.jsx(Ke,{present:r||a.open,children:c.jsx(ho.Slot,{scope:e.__scopeMenu,children:s.modal?c.jsx(Ox,{...o,ref:n}):c.jsx(Vx,{...o,ref:n})})})})}),Ox=l.forwardRef((e,n)=>{const t=En(yt,e.__scopeMenu),r=l.useRef(null),o=he(n,r);return l.useEffect(()=>{const a=r.current;if(a)return ha(a)},[]),c.jsx(r1,{...e,ref:o,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:ne(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),Vx=l.forwardRef((e,n)=>{const t=En(yt,e.__scopeMenu);return c.jsx(r1,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),Hx=Cx("MenuContent.ScrollLock"),r1=l.forwardRef((e,n)=>{const{__scopeMenu:t,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:h,onInteractOutside:g,onDismiss:m,disableOutsideScroll:C,...p}=e,v=En(yt,t),w=po(yt,t),y=go(t),b=If(t),S=Px(t),[M,L]=l.useState(null),E=l.useRef(null),I=he(n,E,v.onContentChange),k=l.useRef(0),O=l.useRef(""),H=l.useRef(0),V=l.useRef(null),Y=l.useRef("right"),$=l.useRef(0),U=C?Ur:l.Fragment,T=C?{as:Hx,allowPinchZoom:!0}:void 0,W=z=>{var F,R;const q=O.current+z,K=S().filter(Q=>!Q.disabled),Z=document.activeElement,A=(F=K.find(Q=>Q.ref.current===Z))==null?void 0:F.textValue,_=K.map(Q=>Q.textValue),B=Ux(_,q,A),G=(R=K.find(Q=>Q.textValue===B))==null?void 0:R.ref.current;(function Q(re){O.current=re,window.clearTimeout(k.current),re!==""&&(k.current=window.setTimeout(()=>Q(""),1e3))})(q),G&&setTimeout(()=>G.focus())};l.useEffect(()=>()=>window.clearTimeout(k.current),[]),qo();const P=l.useCallback(z=>{var K,Z;return Y.current===((K=V.current)==null?void 0:K.side)&&Kx(z,(Z=V.current)==null?void 0:Z.area)},[]);return c.jsx(Dx,{scope:t,searchRef:O,onItemEnter:l.useCallback(z=>{P(z)&&z.preventDefault()},[P]),onItemLeave:l.useCallback(z=>{var q;P(z)||((q=E.current)==null||q.focus(),L(null))},[P]),onTriggerLeave:l.useCallback(z=>{P(z)&&z.preventDefault()},[P]),pointerGraceTimerRef:H,onPointerGraceIntentChange:l.useCallback(z=>{V.current=z},[]),children:c.jsx(U,{...T,children:c.jsx(Wr,{asChild:!0,trapped:o,onMountAutoFocus:ne(a,z=>{var q;z.preventDefault(),(q=E.current)==null||q.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:c.jsx(kn,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:h,onInteractOutside:g,onDismiss:m,children:c.jsx(Xl,{asChild:!0,...b,dir:w.dir,orientation:"vertical",loop:r,currentTabStopId:M,onCurrentTabStopIdChange:L,onEntryFocus:ne(u,z=>{w.isUsingKeyboardRef.current||z.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(ia,{role:"menu","aria-orientation":"vertical","data-state":Jf(v.open),"data-radix-menu-content":"",dir:w.dir,...y,...p,ref:I,style:{outline:"none",...p.style},onKeyDown:ne(p.onKeyDown,z=>{const K=z.target.closest("[data-radix-menu-content]")===z.currentTarget,Z=z.ctrlKey||z.altKey||z.metaKey,A=z.key.length===1;K&&(z.key==="Tab"&&z.preventDefault(),!Z&&A&&W(z.key));const _=E.current;if(z.target!==_||!Mx.includes(z.key))return;z.preventDefault();const G=S().filter(F=>!F.disabled).map(F=>F.ref.current);Pf.includes(z.key)&&G.reverse(),jx(G)}),onBlur:ne(e.onBlur,z=>{z.currentTarget.contains(z.target)||(window.clearTimeout(k.current),O.current="")}),onPointerMove:ne(e.onPointerMove,vo(z=>{const q=z.target,K=$.current!==z.clientX;if(z.currentTarget.contains(q)&&K){const Z=z.clientX>$.current?"right":"left";Y.current=Z,$.current=z.clientX}}))})})})})})})});Vf.displayName=yt;var Ax="MenuGroup",o1=l.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return c.jsx(oe.div,{role:"group",...r,ref:n})});o1.displayName=Ax;var Fx="MenuLabel",Hf=l.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return c.jsx(oe.div,{...r,ref:n})});Hf.displayName=Fx;var Qa="MenuItem",Af="menu.itemSelect",Ja=l.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:r,...o}=e,a=l.useRef(null),s=po(Qa,e.__scopeMenu),i=n1(Qa,e.__scopeMenu),u=he(n,a),d=l.useRef(!1),f=()=>{const h=a.current;if(!t&&h){const g=new CustomEvent(Af,{bubbles:!0,cancelable:!0});h.addEventListener(Af,m=>r==null?void 0:r(m),{once:!0}),Ci(h,g),g.defaultPrevented?d.current=!1:s.onClose()}};return c.jsx(Ff,{...o,ref:u,disabled:t,onClick:ne(e.onClick,f),onPointerDown:h=>{var g;(g=e.onPointerDown)==null||g.call(e,h),d.current=!0},onPointerUp:ne(e.onPointerUp,h=>{var g;d.current||(g=h.currentTarget)==null||g.click()}),onKeyDown:ne(e.onKeyDown,h=>{const g=i.searchRef.current!=="";t||g&&h.key===" "||Jl.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});Ja.displayName=Qa;var Ff=l.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:r=!1,textValue:o,...a}=e,s=n1(Qa,t),i=If(t),u=l.useRef(null),d=he(n,u),[f,h]=l.useState(!1),[g,m]=l.useState("");return l.useEffect(()=>{const C=u.current;C&&m((C.textContent??"").trim())},[a.children]),c.jsx(ho.ItemSlot,{scope:t,disabled:r,textValue:o??g,children:c.jsx(Ql,{asChild:!0,...i,focusable:!r,children:c.jsx(oe.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:d,onPointerMove:ne(e.onPointerMove,vo(C=>{r?s.onItemLeave(C):(s.onItemEnter(C),C.defaultPrevented||C.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ne(e.onPointerLeave,vo(C=>s.onItemLeave(C))),onFocus:ne(e.onFocus,()=>h(!0)),onBlur:ne(e.onBlur,()=>h(!1))})})})}),$x="MenuCheckboxItem",$f=l.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:r,...o}=e;return c.jsx(Rf,{scope:e.__scopeMenu,checked:t,children:c.jsx(Ja,{role:"menuitemcheckbox","aria-checked":es(t)?"mixed":t,...o,ref:n,"data-state":i1(t),onSelect:ne(o.onSelect,()=>r==null?void 0:r(es(t)?!0:!t),{checkForDefaultPrevented:!1})})})});$f.displayName=$x;var zf="MenuRadioGroup",[zx,Bx]=Zn(zf,{value:void 0,onValueChange:()=>{}}),Bf=l.forwardRef((e,n)=>{const{value:t,onValueChange:r,...o}=e,a=Re(r);return c.jsx(zx,{scope:e.__scopeMenu,value:t,onValueChange:a,children:c.jsx(o1,{...o,ref:n})})});Bf.displayName=zf;var Zf="MenuRadioItem",Wf=l.forwardRef((e,n)=>{const{value:t,...r}=e,o=Bx(Zf,e.__scopeMenu),a=t===o.value;return c.jsx(Rf,{scope:e.__scopeMenu,checked:a,children:c.jsx(Ja,{role:"menuitemradio","aria-checked":a,...r,ref:n,"data-state":i1(a),onSelect:ne(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,t)},{checkForDefaultPrevented:!1})})})});Wf.displayName=Zf;var a1="MenuItemIndicator",[Rf,Zx]=Zn(a1,{checked:!1}),Gf=l.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:r,...o}=e,a=Zx(a1,t);return c.jsx(Ke,{present:r||es(a.checked)||a.checked===!0,children:c.jsx(oe.span,{...o,ref:n,"data-state":i1(a.checked)})})});Gf.displayName=a1;var Wx="MenuSeparator",jf=l.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return c.jsx(oe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:n})});jf.displayName=Wx;var Rx="MenuArrow",Yf=l.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,o=go(t);return c.jsx(la,{...o,...r,ref:n})});Yf.displayName=Rx;var s1="MenuSub",[Gx,Uf]=Zn(s1),qf=e=>{const{__scopeMenu:n,children:t,open:r=!1,onOpenChange:o}=e,a=En(s1,n),s=go(n),[i,u]=l.useState(null),[d,f]=l.useState(null),h=Re(o);return l.useEffect(()=>(a.open===!1&&h(!1),()=>h(!1)),[a.open,h]),c.jsx(jr,{...s,children:c.jsx(kf,{scope:n,open:r,onOpenChange:h,content:d,onContentChange:f,children:c.jsx(Gx,{scope:n,contentId:qe(),triggerId:qe(),trigger:i,onTriggerChange:u,children:t})})})};qf.displayName=s1;var mo="MenuSubTrigger",Kf=l.forwardRef((e,n)=>{const t=En(mo,e.__scopeMenu),r=po(mo,e.__scopeMenu),o=Uf(mo,e.__scopeMenu),a=n1(mo,e.__scopeMenu),s=l.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:u}=a,d={__scopeMenu:e.__scopeMenu},f=l.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return l.useEffect(()=>f,[f]),l.useEffect(()=>{const h=i.current;return()=>{window.clearTimeout(h),u(null)}},[i,u]),c.jsx(e1,{asChild:!0,...d,children:c.jsx(Ff,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":o.contentId,"data-state":Jf(t.open),...e,ref:st(n,o.onTriggerChange),onClick:h=>{var g;(g=e.onClick)==null||g.call(e,h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:ne(e.onPointerMove,vo(h=>{a.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!t.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{t.onOpenChange(!0),f()},100))})),onPointerLeave:ne(e.onPointerLeave,vo(h=>{var m,C;f();const g=(m=t.content)==null?void 0:m.getBoundingClientRect();if(g){const p=(C=t.content)==null?void 0:C.dataset.side,v=p==="right",w=v?-5:5,y=g[v?"left":"right"],b=g[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:h.clientX+w,y:h.clientY},{x:y,y:g.top},{x:b,y:g.top},{x:b,y:g.bottom},{x:y,y:g.bottom}],side:p}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(h),h.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:ne(e.onKeyDown,h=>{var m;const g=a.searchRef.current!=="";e.disabled||g&&h.key===" "||Lx[r.dir].includes(h.key)&&(t.onOpenChange(!0),(m=t.content)==null||m.focus(),h.preventDefault())})})})});Kf.displayName=mo;var Xf="MenuSubContent",Qf=l.forwardRef((e,n)=>{const t=Df(yt,e.__scopeMenu),{forceMount:r=t.forceMount,...o}=e,a=En(yt,e.__scopeMenu),s=po(yt,e.__scopeMenu),i=Uf(Xf,e.__scopeMenu),u=l.useRef(null),d=he(n,u);return c.jsx(ho.Provider,{scope:e.__scopeMenu,children:c.jsx(Ke,{present:r||a.open,children:c.jsx(ho.Slot,{scope:e.__scopeMenu,children:c.jsx(r1,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var h;s.isUsingKeyboardRef.current&&((h=u.current)==null||h.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:ne(e.onFocusOutside,f=>{f.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:ne(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:ne(e.onKeyDown,f=>{var m;const h=f.currentTarget.contains(f.target),g=Nx[s.dir].includes(f.key);h&&g&&(a.onOpenChange(!1),(m=i.trigger)==null||m.focus(),f.preventDefault())})})})})})});Qf.displayName=Xf;function Jf(e){return e?"open":"closed"}function es(e){return e==="indeterminate"}function i1(e){return es(e)?"indeterminate":e?"checked":"unchecked"}function jx(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function Yx(e,n){return e.map((t,r)=>e[(n+r)%e.length])}function Ux(e,n,t){const o=n.length>1&&Array.from(n).every(d=>d===n[0])?n[0]:n,a=t?e.indexOf(t):-1;let s=Yx(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==t));const u=s.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return u!==t?u:void 0}function qx(e,n){const{x:t,y:r}=e;let o=!1;for(let a=0,s=n.length-1;a<n.length;s=a++){const i=n[a],u=n[s],d=i.x,f=i.y,h=u.x,g=u.y;f>r!=g>r&&t<(h-d)*(r-f)/(g-f)+d&&(o=!o)}return o}function Kx(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return qx(t,n)}function vo(e){return n=>n.pointerType==="mouse"?e(n):void 0}var Xx=Tf,Qx=e1,Jx=Of,eS=Vf,tS=o1,nS=Hf,rS=Ja,oS=$f,aS=Bf,sS=Wf,iS=Gf,lS=jf,cS=Yf,uS=qf,dS=Kf,fS=Qf,ts="DropdownMenu",[hS]=nt(ts,[_f]),at=_f(),[gS,e5]=hS(ts),t5=e=>{const{__scopeDropdownMenu:n,children:t,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,u=at(n),d=l.useRef(null),[f,h]=ht({prop:o,defaultProp:a??!1,onChange:s,caller:ts});return c.jsx(gS,{scope:n,triggerId:qe(),triggerRef:d,contentId:qe(),open:f,onOpenChange:h,onOpenToggle:l.useCallback(()=>h(g=>!g),[h]),modal:i,children:c.jsx(Xx,{...u,open:f,onOpenChange:h,dir:r,modal:i,children:t})})};t5.displayName=ts;var n5="DropdownMenuTrigger",r5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,disabled:r=!1,...o}=e,a=e5(n5,t),s=at(t);return c.jsx(Qx,{asChild:!0,...s,children:c.jsx(oe.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":r?"":void 0,disabled:r,...o,ref:st(n,a.triggerRef),onPointerDown:ne(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:ne(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});r5.displayName=n5;var pS="DropdownMenuPortal",o5=e=>{const{__scopeDropdownMenu:n,...t}=e,r=at(n);return c.jsx(Jx,{...r,...t})};o5.displayName=pS;var a5="DropdownMenuContent",s5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=e5(a5,t),a=at(t),s=l.useRef(!1);return c.jsx(eS,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:n,onCloseAutoFocus:ne(e.onCloseAutoFocus,i=>{var u;s.current||(u=o.triggerRef.current)==null||u.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:ne(e.onInteractOutside,i=>{const u=i.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,f=u.button===2||d;(!o.modal||f)&&(s.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)"}})});s5.displayName=a5;var mS="DropdownMenuGroup",i5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(tS,{...o,...r,ref:n})});i5.displayName=mS;var vS="DropdownMenuLabel",l5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(nS,{...o,...r,ref:n})});l5.displayName=vS;var CS="DropdownMenuItem",c5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(rS,{...o,...r,ref:n})});c5.displayName=CS;var wS="DropdownMenuCheckboxItem",u5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(oS,{...o,...r,ref:n})});u5.displayName=wS;var yS="DropdownMenuRadioGroup",d5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(aS,{...o,...r,ref:n})});d5.displayName=yS;var bS="DropdownMenuRadioItem",f5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(sS,{...o,...r,ref:n})});f5.displayName=bS;var xS="DropdownMenuItemIndicator",h5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(iS,{...o,...r,ref:n})});h5.displayName=xS;var SS="DropdownMenuSeparator",g5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(lS,{...o,...r,ref:n})});g5.displayName=SS;var ES="DropdownMenuArrow",MS=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(cS,{...o,...r,ref:n})});MS.displayName=ES;var LS=e=>{const{__scopeDropdownMenu:n,children:t,open:r,onOpenChange:o,defaultOpen:a}=e,s=at(n),[i,u]=ht({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return c.jsx(uS,{...s,open:i,onOpenChange:u,children:t})},NS="DropdownMenuSubTrigger",p5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(dS,{...o,...r,ref:n})});p5.displayName=NS;var PS="DropdownMenuSubContent",m5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(fS,{...o,...r,ref:n,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)"}})});m5.displayName=PS;var _S=t5,v5=r5,C5=o5,w5=s5,IS=i5,y5=l5,b5=c5,x5=u5,kS=d5,S5=f5,E5=h5,M5=g5,TS=LS,L5=p5,N5=m5;const l1=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 8C13.1 8 14 7.1 14 6C14 4.9 13.1 4 12 4C10.9 4 10 4.9 10 6C10 7.1 10.9 8 12 8ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM12 16C10.9 16 10 16.9 10 18C10 19.1 10.9 20 12 20C13.1 20 14 19.1 14 18C14 16.9 13.1 16 12 16Z",fill:"currentColor"})),c1=_S,ns=l.forwardRef(({className:e,...n},t)=>c.jsx(v5,{ref:t,className:N("outline-none",e),...n}));ns.displayName=v5.displayName;const DS=IS,OS=C5,VS=TS,HS=kS,P5=l.forwardRef(({className:e,inset:n,children:t,...r},o)=>c.jsxs(L5,{ref:o,className:N("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-background-theme data-[state=open]:bg-background-theme",n&&"pl-8",e),...r,children:[t,c.jsx(M2,{className:"ml-auto h-4 w-4"})]}));P5.displayName=L5.displayName;const _5=l.forwardRef(({className:e,...n},t)=>c.jsx(N5,{ref:t,className:N("z-50 min-w-[8rem] overflow-hidden rounded-md border border-line-primary bg-background p-1 text-foreground 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",e),...n}));_5.displayName=N5.displayName;const rs=l.forwardRef(({className:e,sideOffset:n=4,...t},r)=>c.jsx(C5,{children:c.jsx(w5,{ref:r,sideOffset:n,className:N("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-line-primary bg-background py-1 text-foreground 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",e),...t})}));rs.displayName=w5.displayName;const os=l.forwardRef(({className:e,inset:n,...t},r)=>c.jsx(b5,{ref:r,className:N("relative flex cursor-default select-none items-center gap-2 pl-4 pr-3 py-2 text-sm outline-none transition-colors focus:bg-background-theme-fade focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",e),...t,onClick:o=>{var a;o.stopPropagation(),(a=t.onClick)==null||a.call(t,o)}}));os.displayName=b5.displayName;const I5=l.forwardRef(({className:e,children:n,checked:t,...r},o)=>c.jsxs(x5,{ref:o,className:N("relative flex cursor-default select-none items-center py-2 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",e),checked:t,...r,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(E5,{children:c.jsx(Xi,{className:"h-4 w-4"})})}),n]}));I5.displayName=x5.displayName;const k5=l.forwardRef(({className:e,children:n,...t},r)=>c.jsxs(S5,{ref:r,className:N("relative flex cursor-default select-none items-center py-2 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",e),...t,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(E5,{children:c.jsx(L2,{className:"h-2 w-2 fill-current"})})}),n]}));k5.displayName=S5.displayName;const T5=l.forwardRef(({className:e,inset:n,...t},r)=>c.jsx(y5,{ref:r,className:N("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...t}));T5.displayName=y5.displayName;const D5=l.forwardRef(({className:e,...n},t)=>c.jsx(M5,{ref:t,className:N("-mx-1 my-1 h-px bg-muted",e),...n}));D5.displayName=M5.displayName;const O5=({className:e,...n})=>c.jsx("span",{className:N("ml-auto text-xs tracking-widest opacity-60",e),...n});O5.displayName="DropdownMenuShortcut";const AS=({triggerClassName:e,actions:n,children:t,renderItem:r})=>c.jsxs(c1,{children:[c.jsx(ns,{className:e,children:t||c.jsx(l1,{})}),c.jsx(rs,{children:n.map(o=>o?(r==null?void 0:r(o))||c.jsxs(os,{onClick:o.onClick,children:[o.icon,o.label]},o.label):null)})]}),u1=l.createContext({}),d1=l.createContext({}),Co=()=>{const e=l.useContext(u1),n=l.useContext(d1),{getFieldState:t,formState:r}=Qn.useFormContext(),o=t(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=n;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}};var FS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$S=FS.reduce((e,n)=>{const t=Wo(`Primitive.${n}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,u=s?t:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...i,ref:a})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),zS="Label",V5=l.forwardRef((e,n)=>c.jsx($S.label,{...e,ref:n,onMouseDown:t=>{var o;t.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));V5.displayName=zS;var H5=V5;const BS=ln("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{required:{true:'after:content-["*"] after:ml-0.5 after:text-foreground-error'}},defaultVariants:{required:!1}}),f1=l.forwardRef(({className:e,required:n,...t},r)=>c.jsx(H5,{ref:r,className:N(BS({required:n}),e),...t}));f1.displayName=H5.displayName;const ZS=({loading:e,hasMore:n,next:t,threshold:r=1,root:o=null,rootMargin:a="0px",reverse:s,children:i})=>{const u=l.useRef(null),d=l.useCallback(h=>{let g=r;(r<0||r>1)&&(console.warn("threshold should be between 0 and 1. You are exceed the range. will use default value: 1"),g=1),!e&&(u.current&&u.current.disconnect(),h&&(u.current=new IntersectionObserver(m=>{m[0].isIntersecting&&n&&t()},{threshold:g,root:o,rootMargin:a}),u.current.observe(h)))},[n,e,t,r,o,a]);l.useEffect(()=>()=>{u.current&&u.current.disconnect()},[]);const f=l.useMemo(()=>l.Children.toArray(i),[i]);return c.jsx(c.Fragment,{children:f.map((h,g)=>{if(!l.isValidElement(h))return process.env.NODE_ENV==="development"&&console.warn("You should use a valid element with InfiniteScroll"),h;const C=(s?g===0:g===f.length-1)?d:null;return l.cloneElement(h,{ref:C})})})},wo=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M18.3 5.70973C17.91 5.31973 17.28 5.31973 16.89 5.70973L12 10.5897L7.10997 5.69973C6.71997 5.30973 6.08997 5.30973 5.69997 5.69973C5.30997 6.08973 5.30997 6.71973 5.69997 7.10973L10.59 11.9997L5.69997 16.8897C5.30997 17.2797 5.30997 17.9097 5.69997 18.2997C6.08997 18.6897 6.71997 18.6897 7.10997 18.2997L12 13.4097L16.89 18.2997C17.28 18.6897 17.91 18.6897 18.3 18.2997C18.69 17.9097 18.69 17.2797 18.3 16.8897L13.41 11.9997L18.3 7.10973C18.68 6.72973 18.68 6.08973 18.3 5.70973Z"})),A5=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M16.59 8.29498L12 12.875L7.41 8.29498L6 9.70498L12 15.705L18 9.70498L16.59 8.29498Z",fill:"currentColor"})),as=Symbol("all"),WS=340,F5=36,RS=({search:e,onCreate:n,createLabel:t})=>c.jsxs("div",{tabIndex:0,onClick:n,onKeyDown:r=>{r.key==="Enter"&&n()},className:N("flex w-full text-blue-500 cursor-pointer text-sm px-2 py-1.5 rounded-sm items-center focus:outline-none","hover:bg-blue-200 focus:!bg-blue-200"),children:[t," ",e]}),h1=l.forwardRef(({className:e,triggerClassName:n,popoverContentClassName:t,variant:r="fade-contrast-outlined",placeholder:o,options:a,value:s,maxSelected:i,shouldFilter:u=!0,open:d,children:f,isLoading:h,isError:g,disabled:m,searchPlaceholder:C,showAllOption:p=!1,showReset:v,required:w,showBadge:y=!1,maxVisibleRowsBadge:b,showCountBadge:S=!0,defaultSearchedValue:M,createLabel:L,autoSelectSingleOption:E,onCreate:I,renderOption:k,renderBadge:O,onRefetch:H,onOpenChange:V,onSearch:Y,isLoadingMore:$,hasMore:U,onLoadMore:T,onChange:W,onClick:P,onRemoveClick:z,...q},K)=>{const{t:Z}=rt(),[A,_]=l.useState(M||""),[B,G]=l.useState(!!L),F=l.useRef(!1);l.useEffect(()=>{Y==null||Y(A)},[A,Y]);const R=l.useMemo(()=>{const J=[],ce=Ee=>{Ee.forEach(Me=>{const ke=Me==null?void 0:Me.children;Array.isArray(ke)&&ke.length>0?ce(ke):Me.hidden||J.push(Me)})};return ce(a),J},[a]);l.useEffect(()=>{if(E&&R.length===1&&s.length===0&&!F.current){const J=R[0];W==null||W([J.value],[J.label]),F.current=!0}},[E,R,s.length,W]);const Q=l.useMemo(()=>({label:Z("all"),value:as}),[Z]),re=R.length>0&&R.every(J=>s.includes(J.value)),te=l.useMemo(()=>a.map(J=>({...J})),[a]),j=l.useMemo(()=>te.some(J=>{var ce;return Array.isArray(J.children)&&(((ce=J.children)==null?void 0:ce.length)||0)>0}),[te]),[ee,ie]=l.useState({}),le=l.useCallback((J,ce)=>(J.forEach(Ee=>{const Me=String(Ee.value);if(typeof Ee.value!="symbol"){ce[Me]===void 0&&(ce[Me]=Ee.defaultExpanded??!1);const ke=Ee.children||[];Array.isArray(ke)&&ke.length>0&&le(ke,ce)}}),ce),[]);l.useEffect(()=>{j&&ie(J=>{const ce={...J};return le(te,ce)})},[te,j,le]);const we=l.useCallback(J=>{typeof J!="symbol"&&ie(ce=>({...ce,[J]:!ce[J]}))},[]);l.useEffect(()=>{if(L){const J=!a.some(ce=>ce.label===A||ce.value===A);G(!!(A&&J))}},[A,a,L]);const Te=()=>{A&&(I==null||I(A),xe({value:A,label:A}))},xe=l.useCallback(J=>{if(!W||J.disabled&&!s.includes(J.value))return;if(J.value===as){if(re)W([],[]);else{const[ke,Fe]=R.reduce((_e,Ae)=>(_e[0].push(Ae.value),_e[1].push(Ae.label),_e),[[],[]]);W(ke,Fe)}V==null||V(i!==1);return}let ce=s.includes(J.value)?s.filter(ke=>ke!==J.value):[...s,J.value];i&&ce.length>=i&&(ce=ce.reverse().slice(0,i));const Me=ce.map(ke=>{const Fe=R.find(({value:_e})=>_e===ke);return((Fe==null?void 0:Fe.label)||String(ke)).trim()});W(ce,Me),V==null||V(i!==1)},[W,re,R,V,i,s]),Pe=l.useMemo(()=>p?[Q,...te]:te,[p,Q,te]),Be=l.useMemo(()=>u?Pe.filter(({hidden:J})=>!J).filter(J=>u?J.label.toLowerCase().includes(A.toLowerCase()):!0):Pe,[Pe,A,u]),Je=l.useRef(!1),ct=!!T,X=l.useCallback(()=>{!T||!U||$||Je.current||(Je.current=!0,Promise.resolve(T()).finally(()=>{Je.current=!1}))},[T,U,$]);l.useEffect(()=>{$||(Je.current=!1)},[$]);const se=l.useMemo(()=>Be.length+(ct&&(U||$)?1:0),[Be.length,ct,U,$]),pe=l.useMemo(()=>{const J=se*F5;return Math.min(J,WS)},[se]),ge=l.useCallback(({visibleStopIndex:J})=>{!ct||!U||Be.length===0||J>=Be.length-1&&X()},[ct,U,Be.length,X]),be=l.useMemo(()=>re&&p&&s.length>1?Z("all"):s.map(J=>{var ce;return(((ce=R.find(({value:Ee})=>Ee===J))==null?void 0:ce.label)||J).trim()}).join(", "),[s,R,re,p,Z]),Le=l.useCallback(()=>{if(!y)return c.jsx("div",{className:"truncate text-nowrap whitespace-nowrap text-sm text-foreground-primary font-normal",title:be,children:be});const J=28;let ce=[...s],Ee=0,Me=!1;if(b){const _e=Math.floor(2.5)||1,Ae=b*_e;s.length>Ae&&(ce=s.slice(0,Ae),Ee=s.length-Ae,Me=!0)}return c.jsxs("div",{className:N("flex flex-wrap gap-1",b&&`max-h-[${b*J}px] overflow-hidden`),children:[ce.map(ke=>{const Fe=R.find(_e=>_e.value===ke);if(Fe){const _e=Ae=>{Ae&&Ae.stopPropagation(),xe(Fe)};return O?c.jsx(l.Fragment,{children:O(Fe,_e)},Fe.value):c.jsxs("div",{className:"flex items-center justify-center bg-background-secondary rounded-full p-1 pl-3 text-xs gap-2",children:[c.jsx("span",{className:"truncate whitespace-nowrap w-[100px]",children:Fe.label}),c.jsx("span",{className:"w-5 h-5 flex items-center justify-center cursor-pointer rounded-full bg-background-primary",onClick:_e,children:c.jsx(wo,{className:"w-4 h-4 bg-icon-tertiary text-foreground-tertiary"})})]},Fe.value)}return null}),Me&&c.jsxs("div",{className:"flex items-center justify-center bg-background-secondary rounded-full px-3 py-1 text-xs gap-2",children:["+",Ee,"..."]})]})},[s,R,xe,y,b,be,O]),je="relative flex cursor-default select-none items-center text-sm outline-none rounded-none py-2 px-3 aria-selected:bg-background-theme-fade aria-selected:text-foreground",Se=l.useCallback(J=>String(J.value),[]),Xe=l.useCallback((J,ce)=>{const Ee=J.value;return k&&Ee!==as?c.jsx(l.Fragment,{children:k(J,ce)},Se(J)):c.jsxs(c.Fragment,{children:[c.jsx(Cn,{className:"mr-2",checked:ce,disabled:J==null?void 0:J.disabled}),c.jsx("span",{title:J.label,className:"truncate",children:J.label})]})},[k,Se]),Qe=l.useCallback(({opt:J,isChecked:ce,style:Ee,hidden:Me,onSelect:ke})=>c.jsx(Ml,{style:Ee,className:N(je,ce&&"bg-background-theme-fade text-foreground",Me&&"hidden",(J==null?void 0:J.disabled)&&"cursor-not-allowed"),onSelect:()=>{J!=null&&J.disabled||(ke?ke():xe(J))},disabled:J==null?void 0:J.disabled,children:Xe(J,ce)},Se(J)),[Se,je,xe,Xe]),et=l.useCallback((J,ce)=>{const Ee=J.children||[];return Array.isArray(Ee)&&Ee.length>0?Ee.some(Me=>et(Me,ce)):J.hidden?!1:J.label.toLowerCase().includes(ce.toLowerCase())},[]),wt=l.useMemo(()=>!u||!A?!0:te.some(J=>et(J,A)),[u,A,te,et]),ut=l.useCallback((J,ce=0)=>{const Ee=String(J.value),Me=J.children||[];if(!(Array.isArray(Me)&&Me.length>0)){const on=s.includes(J.value),Xn=u?!J.label.toLowerCase().includes(A.toLowerCase()):!1;return Qe({opt:J,isChecked:on,hidden:Xn})}const Fe=!!ee[Ee],_e=u?et(J,A):!0,Ae=u?Me.filter(on=>{const Xn=on.children||[];return Array.isArray(Xn)&&Xn.length>0?et(on,A):(on.label||"").toLowerCase().includes(A.toLowerCase())}):Me;return u&&!_e?null:c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:N("flex items-center text-sm px-3 py-2 cursor-pointer select-none","hover:bg-background-theme-fade",J.disabled&&"opacity-50 pointer-events-none cursor-not-allowed"),onClick:()=>we(J.value),children:[c.jsx(A5,{className:N("w-4 h-4 mr-2 text-icon-fade-contrast transition-transform",Fe?"rotate-180":"rotate-0")}),c.jsx("span",{title:J.label,className:"truncate",children:J.label})]}),c.jsx("div",{className:N("pl-6 overflow-hidden transition-[max-height] duration-200 ease-in-out",Fe?"max-h-[999px]":"max-h-0"),children:Ae.map(on=>ut(on,ce+1))})]},Ee)},[ee,u,A,we,s,Qe,et]);return c.jsxs(zn,{open:d,onOpenChange:V,modal:!0,...q,children:[c.jsx(Bn,{asChild:!0,children:c.jsx(Ze,{ref:K,variant:r,size:"sm",role:"combobox","aria-expanded":d,disabled:m,className:N("w-full justify-between px-3 overflow-hidden disabled:opacity-50 font-normal",n,{"h-auto overflow-visible hover:bg-[transparent] active:bg-[transparent]":y}),onClick:P||(()=>V==null?void 0:V(!d)),children:f||c.jsxs(c.Fragment,{children:[!(s!=null&&s.length)&&c.jsxs("span",{className:"text-foreground-secondary text-sm",children:[o,w&&c.jsx("span",{className:"text-foreground-error ml-1",children:"*"})]}),Le(),S&&s.length>1&&c.jsx("div",{className:"bg-background-contrast-fade flex items-center justify-center h-4 px-2 py-1 rounded-[4px] shrink-0",children:c.jsx("span",{className:"text-xs text-foreground-primary leading-4 tracking-[0.4px]",children:s.length})}),(v||z)&&be?c.jsx("div",{className:N("flex items-center justify-center w-6 h-6 shrink-0 cursor-pointer ml-auto",m&&"cursor-not-allowed opacity-50"),onClick:J=>{J.stopPropagation(),!m&&(z?(F.current=!0,z()):v&&W&&(F.current=!0,W([],[])))},children:c.jsx(La,{className:"w-6 h-6 text-icon-fade-contrast"})}):c.jsx(Hr,{className:"w-6 h-6 shrink-0 text-icon-fade-contrast ml-auto"})]})})}),c.jsx(Sn,{className:N("w-full p-0 min-w-[var(--radix-popover-trigger-width)] overflow-auto",t),children:c.jsxs(Ra,{shouldFilter:!1,className:e,children:[u&&c.jsx(Sl,{placeholder:C||Z("search"),value:A,onValueChange:_}),c.jsx(Pa,{isLoading:h,isError:g,textSize:"sm",center:!0,onRefetch:H}),!h&&!g&&!B&&!wt&&c.jsx("div",{className:"py-6 text-center text-sm",children:Z("notFound")}),c.jsxs(El,{className:N("py-1 px-0 max-h-[340px]",j?"overflow-auto":"overflow-hidden"),children:[B&&!!L&&a.length===0&&c.jsx(RS,{search:A,onCreate:()=>Te(),createLabel:L}),j?c.jsxs("div",{className:"flex flex-col",children:[p&&Qe({opt:Q,isChecked:re}),te.map(J=>ut(J)),ct&&c.jsx(ZS,{hasMore:U,loading:$,next:X,threshold:1,children:c.jsx("div",{children:($||U)&&c.jsx(vr,{className:"h-fit py-2"})})})]}):c.jsx(S2,{height:pe,itemCount:se,itemSize:F5,width:"100%",onItemsRendered:ge,children:({index:J,style:ce})=>{if(J>=Be.length)return c.jsx("div",{style:ce,className:"flex items-center justify-center px-3",children:($||U)&&c.jsx(vr,{className:"h-fit py-2 [&>svg]:h-5 [&>svg]:w-5"})});const Me=Be[J],ke=Me.value===as?re:s.includes(Me.value);return Qe({opt:Me,isChecked:ke,style:ce})}})]})]})})]})});h1.displayName="MultiSelect";const $5=Qn.FormProvider,z5=({...e})=>c.jsx(u1.Provider,{value:{name:e.name},children:c.jsx(Qn.Controller,{...e})}),Wn=l.forwardRef(({className:e,horizontal:n,...t},r)=>{const o=l.useId();return c.jsx(d1.Provider,{value:{id:o},children:c.jsx("div",{ref:r,className:N("flex text-sm",n?"space-x-3 items-center":"space-y-2 flex-col",e),...t})})});Wn.displayName="FormItem";const B5=l.forwardRef(({className:e,required:n,...t},r)=>{const{formItemId:o}=Co();return c.jsx(f1,{ref:r,className:N("text-sm text-foreground-secondary font-normal blur-none",e),htmlFor:o,required:n,...t})});B5.displayName="FormLabel";const Rn=l.forwardRef(({...e},n)=>{const{error:t,formItemId:r,formDescriptionId:o,formMessageId:a}=Co();return c.jsx(nu,{ref:n,id:r,"aria-describedby":t?`${o} ${a}`:`${o}`,"aria-invalid":!!t,...e})});Rn.displayName="FormControl";const Z5=l.forwardRef(({className:e,...n},t)=>{const{formDescriptionId:r}=Co();return c.jsx("p",{ref:t,id:r,className:N("text-[13px] text-muted-foreground tracking-[0.2px] mt-6 blur-none",e),...n})});Z5.displayName="FormDescription";const g1=l.forwardRef(({className:e,children:n,...t},r)=>{const{error:o,formMessageId:a}=Co(),s=n||(o?String(o==null?void 0:o.message):null);return s?c.jsx("p",{ref:r,id:a,className:N("text-xs text-foreground-error blur-none",e),...t,children:s}):null});g1.displayName="FormMessage";const GS=l.forwardRef((e,n)=>c.jsx(Wn,{children:c.jsx(Rn,{children:c.jsx(tn,{ref:n,...e})})})),W5=l.forwardRef((e,n)=>c.jsx(Wn,{children:c.jsx(Rn,{children:c.jsx(Kr,{ref:n,...e})})}));W5.displayName="FormItemSelect";const R5=l.forwardRef((e,n)=>c.jsx(Wn,{ref:n,children:c.jsx(Rn,{children:c.jsx(h1,{...e})})}));R5.displayName="FormItemMultiSelect";const G5=l.forwardRef((e,n)=>c.jsx(Wn,{ref:n,children:c.jsx(Rn,{children:c.jsx(bf,{...e})})}));G5.displayName="FormItemDatePicker";const p1=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M9.97576 6.17574C10.2101 5.94142 10.59 5.94142 10.8243 6.17574C11.0586 6.41005 11.0586 6.78995 10.8243 7.02427L7.75762 10.0909C7.5233 10.3252 7.1434 10.3252 6.90909 10.0909L5.17576 8.3576C4.94144 8.12328 4.94144 7.74339 5.17576 7.50907C5.41007 7.27476 5.78997 7.27476 6.02428 7.50907L7.33335 8.81814L9.97576 6.17574Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00002 1.39999C11.6448 1.39999 14.6 4.35524 14.6 7.99999C14.6 11.6447 11.6448 14.6 8.00002 14.6C4.35528 14.6 1.40002 11.6447 1.40002 7.99999C1.40002 4.35524 4.35528 1.39999 8.00002 1.39999ZM8.00002 2.59999C5.01735 2.59999 2.60002 5.01732 2.60002 7.99999C2.60002 10.9827 5.01735 13.4 8.00002 13.4C10.9827 13.4 13.4 10.9827 13.4 7.99999C13.4 5.01732 10.9827 2.59999 8.00002 2.59999Z",fill:"currentColor"})),m1=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{clipPath:"url(#clip0_3446_27389)"},l.createElement("path",{d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_3446_27389"},l.createElement("rect",{width:24,height:24,fill:"white"})))),j5=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"})),Y5=ln("relative flex w-full items-center gap-3 rounded-lg border shadow-sm transition-all",{variants:{variant:{error:"bg-background-error-fade text-foreground-error border-line-primary",success:"bg-background-success-fade text-foreground-success border-line-primary",info:"bg-background-theme-fade text-foreground-theme border-line-primary"},size:{sm:"py-2 px-3 gap-2",default:"py-3 px-4 gap-3"}},defaultVariants:{variant:"info",size:"default"}}),U5=l.forwardRef(({className:e,variant:n,size:t,showClose:r=!1,onClose:o,icon:a,children:s,...i},u)=>{const f=a!==void 0?a:(()=>{const m=t==="sm"?"min-w-5 h-5":"min-w-6 h-6";switch(n){case"success":return c.jsx(p1,{className:N(m,"flex-shrink-0")});case"error":return c.jsx(m1,{className:N(m,"flex-shrink-0")});case"info":return c.jsx(j5,{className:N(m,"flex-shrink-0")});default:return null}})(),h=t==="sm"?"h-3 w-3":"h-4 w-4",g=t==="sm"?"leading-5":"leading-6";return c.jsxs("div",{ref:u,className:N(Y5({variant:n,size:t}),e),...i,children:[f&&c.jsx("div",{className:"flex-shrink-0 self-start",children:f}),c.jsx("div",{className:N("flex-1 min-w-0 text-sm",g),children:s}),r&&c.jsx(Ze,{type:"button",variant:"fade-contrast-transparent",size:"icon",onClick:o,className:N("flex-shrink-0 h-auto w-auto p-1 text-foreground/50 hover:text-foreground self-start",n==="error"&&"text-red-300 hover:text-red-50"),"aria-label":"Закрыть уведомление",children:c.jsx(Ma,{className:h})})]})});U5.displayName="Notification";const v1=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z",fill:"currentColor"})),ss=D.createContext(null);ss.displayName="PanelGroupContext";const Ge={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},C1=10,Gn=D.useLayoutEffect,q5=l.useId,jS=typeof q5=="function"?q5:()=>null;let YS=0;function w1(e=null){const n=jS(),t=D.useRef(e||n||null);return t.current===null&&(t.current=""+YS++),e??t.current}function K5({children:e,className:n="",collapsedSize:t,collapsible:r,defaultSize:o,forwardedRef:a,id:s,maxSize:i,minSize:u,onCollapse:d,onExpand:f,onResize:h,order:g,style:m,tagName:C="div",...p}){const v=D.useContext(ss);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:w,expandPanel:y,getPanelSize:b,getPanelStyle:S,groupId:M,isPanelCollapsed:L,reevaluatePanelConstraints:E,registerPanel:I,resizePanel:k,unregisterPanel:O}=v,H=w1(s),V=D.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:h},constraints:{collapsedSize:t,collapsible:r,defaultSize:o,maxSize:i,minSize:u},id:H,idIsFromProps:s!==void 0,order:g});D.useRef({didLogMissingDefaultSizeWarning:!1}),Gn(()=>{const{callbacks:$,constraints:U}=V.current,T={...U};V.current.id=H,V.current.idIsFromProps=s!==void 0,V.current.order=g,$.onCollapse=d,$.onExpand=f,$.onResize=h,U.collapsedSize=t,U.collapsible=r,U.defaultSize=o,U.maxSize=i,U.minSize=u,(T.collapsedSize!==U.collapsedSize||T.collapsible!==U.collapsible||T.maxSize!==U.maxSize||T.minSize!==U.minSize)&&E(V.current,T)}),Gn(()=>{const $=V.current;return I($),()=>{O($)}},[g,H,I,O]),D.useImperativeHandle(a,()=>({collapse:()=>{w(V.current)},expand:$=>{y(V.current,$)},getId(){return H},getSize(){return b(V.current)},isCollapsed(){return L(V.current)},isExpanded(){return!L(V.current)},resize:$=>{k(V.current,$)}}),[w,y,b,L,H,k]);const Y=S(V.current,o);return D.createElement(C,{...p,children:e,className:n,id:H,style:{...Y,...m},[Ge.groupId]:M,[Ge.panel]:"",[Ge.panelCollapsible]:r||void 0,[Ge.panelId]:H,[Ge.panelSize]:parseFloat(""+Y.flexGrow).toFixed(1)})}const X5=D.forwardRef((e,n)=>D.createElement(K5,{...e,forwardedRef:n}));K5.displayName="Panel",X5.displayName="forwardRef(Panel)";let y1=null,is=-1,Mn=null;function US(e,n){if(n){const t=(n&a9)!==0,r=(n&s9)!==0,o=(n&i9)!==0,a=(n&l9)!==0;if(t)return o?"se-resize":a?"ne-resize":"e-resize";if(r)return o?"sw-resize":a?"nw-resize":"w-resize";if(o)return"s-resize";if(a)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function qS(){Mn!==null&&(document.head.removeChild(Mn),y1=null,Mn=null,is=-1)}function b1(e,n){var t,r;const o=US(e,n);if(y1!==o){if(y1=o,Mn===null&&(Mn=document.createElement("style"),document.head.appendChild(Mn)),is>=0){var a;(a=Mn.sheet)===null||a===void 0||a.removeRule(is)}is=(t=(r=Mn.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${o} !important;}`))!==null&&t!==void 0?t:-1}}function Q5(e){return e.type==="keydown"}function J5(e){return e.type.startsWith("pointer")}function e9(e){return e.type.startsWith("mouse")}function ls(e){if(J5(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(e9(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function KS(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function XS(e,n,t){return e.x<n.x+n.width&&e.x+e.width>n.x&&e.y<n.y+n.height&&e.y+e.height>n.y}function QS(e,n){if(e===n)throw new Error("Cannot compare node with itself");const t={a:r9(e),b:r9(n)};let r;for(;t.a.at(-1)===t.b.at(-1);)e=t.a.pop(),n=t.b.pop(),r=e;Ce(r,"Stacking order can only be calculated for elements with a common ancestor");const o={a:n9(t9(t.a)),b:n9(t9(t.b))};if(o.a===o.b){const a=r.childNodes,s={a:t.a.at(-1),b:t.b.at(-1)};let i=a.length;for(;i--;){const u=a[i];if(u===s.a)return 1;if(u===s.b)return-1}}return Math.sign(o.a-o.b)}const JS=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function eE(e){var n;const t=getComputedStyle((n=o9(e))!==null&&n!==void 0?n:e).display;return t==="flex"||t==="inline-flex"}function tE(e){const n=getComputedStyle(e);return!!(n.position==="fixed"||n.zIndex!=="auto"&&(n.position!=="static"||eE(e))||+n.opacity<1||"transform"in n&&n.transform!=="none"||"webkitTransform"in n&&n.webkitTransform!=="none"||"mixBlendMode"in n&&n.mixBlendMode!=="normal"||"filter"in n&&n.filter!=="none"||"webkitFilter"in n&&n.webkitFilter!=="none"||"isolation"in n&&n.isolation==="isolate"||JS.test(n.willChange)||n.webkitOverflowScrolling==="touch")}function t9(e){let n=e.length;for(;n--;){const t=e[n];if(Ce(t,"Missing node"),tE(t))return t}return null}function n9(e){return e&&Number(getComputedStyle(e).zIndex)||0}function r9(e){const n=[];for(;e;)n.push(e),e=o9(e);return n}function o9(e){const{parentNode:n}=e;return n&&n instanceof ShadowRoot?n.host:n}const a9=1,s9=2,i9=4,l9=8,nE=KS()==="coarse";let _t=[],xr=!1,jn=new Map,cs=new Map;const yo=new Set;function rE(e,n,t,r,o){var a;const{ownerDocument:s}=n,i={direction:t,element:n,hitAreaMargins:r,setResizeHandlerState:o},u=(a=jn.get(s))!==null&&a!==void 0?a:0;return jn.set(s,u+1),yo.add(i),us(),function(){var f;cs.delete(e),yo.delete(i);const h=(f=jn.get(s))!==null&&f!==void 0?f:1;if(jn.set(s,h-1),us(),h===1&&jn.delete(s),_t.includes(i)){const g=_t.indexOf(i);g>=0&&_t.splice(g,1),L1(),o("up",!0,null)}}}function oE(e){const{target:n}=e,{x:t,y:r}=ls(e);xr=!0,E1({target:n,x:t,y:r}),us(),_t.length>0&&(ds("down",e),e.preventDefault(),c9(n)||e.stopImmediatePropagation())}function x1(e){const{x:n,y:t}=ls(e);if(xr&&e.buttons===0&&(xr=!1,ds("up",e)),!xr){const{target:r}=e;E1({target:r,x:n,y:t})}ds("move",e),L1(),_t.length>0&&e.preventDefault()}function S1(e){const{target:n}=e,{x:t,y:r}=ls(e);cs.clear(),xr=!1,_t.length>0&&(e.preventDefault(),c9(n)||e.stopImmediatePropagation()),ds("up",e),E1({target:n,x:t,y:r}),L1(),us()}function c9(e){let n=e;for(;n;){if(n.hasAttribute(Ge.resizeHandle))return!0;n=n.parentElement}return!1}function E1({target:e,x:n,y:t}){_t.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),yo.forEach(o=>{const{element:a,hitAreaMargins:s}=o,i=a.getBoundingClientRect(),{bottom:u,left:d,right:f,top:h}=i,g=nE?s.coarse:s.fine;if(n>=d-g&&n<=f+g&&t>=h-g&&t<=u+g){if(r!==null&&document.contains(r)&&a!==r&&!a.contains(r)&&!r.contains(a)&&QS(r,a)>0){let C=r,p=!1;for(;C&&!C.contains(a);){if(XS(C.getBoundingClientRect(),i)){p=!0;break}C=C.parentElement}if(p)return}_t.push(o)}})}function M1(e,n){cs.set(e,n)}function L1(){let e=!1,n=!1;_t.forEach(r=>{const{direction:o}=r;o==="horizontal"?e=!0:n=!0});let t=0;cs.forEach(r=>{t|=r}),e&&n?b1("intersection",t):e?b1("horizontal",t):n?b1("vertical",t):qS()}let N1=new AbortController;function us(){N1.abort(),N1=new AbortController;const e={capture:!0,signal:N1.signal};yo.size&&(xr?(_t.length>0&&jn.forEach((n,t)=>{const{body:r}=t;n>0&&(r.addEventListener("contextmenu",S1,e),r.addEventListener("pointerleave",x1,e),r.addEventListener("pointermove",x1,e))}),window.addEventListener("pointerup",S1,e),window.addEventListener("pointercancel",S1,e)):jn.forEach((n,t)=>{const{body:r}=t;n>0&&(r.addEventListener("pointerdown",oE,e),r.addEventListener("pointermove",x1,e))}))}function ds(e,n){yo.forEach(t=>{const{setResizeHandlerState:r}=t,o=_t.includes(t);r(e,o,n)})}function aE(){const[e,n]=D.useState(0);return D.useCallback(()=>n(t=>t+1),[])}function Ce(e,n){if(!e)throw console.error(n),Error(n)}function Yn(e,n,t=C1){return e.toFixed(t)===n.toFixed(t)?0:e>n?1:-1}function nn(e,n,t=C1){return Yn(e,n,t)===0}function Ct(e,n,t){return Yn(e,n,t)===0}function sE(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){const o=e[r],a=n[r];if(!Ct(o,a,t))return!1}return!0}function Sr({panelConstraints:e,panelIndex:n,size:t}){const r=e[n];Ce(r!=null,`Panel constraints not found for index ${n}`);let{collapsedSize:o=0,collapsible:a,maxSize:s=100,minSize:i=0}=r;if(Yn(t,i)<0)if(a){const u=(o+i)/2;Yn(t,u)<0?t=o:t=i}else t=i;return t=Math.min(s,t),t=parseFloat(t.toFixed(C1)),t}function bo({delta:e,initialLayout:n,panelConstraints:t,pivotIndices:r,prevLayout:o,trigger:a}){if(Ct(e,0))return n;const s=[...n],[i,u]=r;Ce(i!=null,"Invalid first pivot index"),Ce(u!=null,"Invalid second pivot index");let d=0;if(a==="keyboard"){{const h=e<0?u:i,g=t[h];Ce(g,`Panel constraints not found for index ${h}`);const{collapsedSize:m=0,collapsible:C,minSize:p=0}=g;if(C){const v=n[h];if(Ce(v!=null,`Previous layout not found for panel index ${h}`),Ct(v,m)){const w=p-v;Yn(w,Math.abs(e))>0&&(e=e<0?0-w:w)}}}{const h=e<0?i:u,g=t[h];Ce(g,`No panel constraints found for index ${h}`);const{collapsedSize:m=0,collapsible:C,minSize:p=0}=g;if(C){const v=n[h];if(Ce(v!=null,`Previous layout not found for panel index ${h}`),Ct(v,p)){const w=v-m;Yn(w,Math.abs(e))>0&&(e=e<0?0-w:w)}}}}{const h=e<0?1:-1;let g=e<0?u:i,m=0;for(;;){const p=n[g];Ce(p!=null,`Previous layout not found for panel index ${g}`);const w=Sr({panelConstraints:t,panelIndex:g,size:100})-p;if(m+=w,g+=h,g<0||g>=t.length)break}const C=Math.min(Math.abs(e),Math.abs(m));e=e<0?0-C:C}{let g=e<0?i:u;for(;g>=0&&g<t.length;){const m=Math.abs(e)-Math.abs(d),C=n[g];Ce(C!=null,`Previous layout not found for panel index ${g}`);const p=C-m,v=Sr({panelConstraints:t,panelIndex:g,size:p});if(!Ct(C,v)&&(d+=C-v,s[g]=v,d.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(sE(o,s))return o;{const h=e<0?u:i,g=n[h];Ce(g!=null,`Previous layout not found for panel index ${h}`);const m=g+d,C=Sr({panelConstraints:t,panelIndex:h,size:m});if(s[h]=C,!Ct(C,m)){let p=m-C,w=e<0?u:i;for(;w>=0&&w<t.length;){const y=s[w];Ce(y!=null,`Previous layout not found for panel index ${w}`);const b=y+p,S=Sr({panelConstraints:t,panelIndex:w,size:b});if(Ct(y,S)||(p-=S-y,s[w]=S),Ct(p,0))break;e>0?w--:w++}}}const f=s.reduce((h,g)=>g+h,0);return Ct(f,100)?s:o}function iE({layout:e,panelsArray:n,pivotIndices:t}){let r=0,o=100,a=0,s=0;const i=t[0];Ce(i!=null,"No pivot index found"),n.forEach((h,g)=>{const{constraints:m}=h,{maxSize:C=100,minSize:p=0}=m;g===i?(r=p,o=C):(a+=p,s+=C)});const u=Math.min(o,100-a),d=Math.max(r,100-s),f=e[i];return{valueMax:u,valueMin:d,valueNow:f}}function xo(e,n=document){return Array.from(n.querySelectorAll(`[${Ge.resizeHandleId}][data-panel-group-id="${e}"]`))}function u9(e,n,t=document){const o=xo(e,t).findIndex(a=>a.getAttribute(Ge.resizeHandleId)===n);return o??null}function d9(e,n,t){const r=u9(e,n,t);return r!=null?[r,r+1]:[-1,-1]}function f9(e,n=document){var t;if(n instanceof HTMLElement&&(n==null||(t=n.dataset)===null||t===void 0?void 0:t.panelGroupId)==e)return n;const r=n.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function fs(e,n=document){const t=n.querySelector(`[${Ge.resizeHandleId}="${e}"]`);return t||null}function lE(e,n,t,r=document){var o,a,s,i;const u=fs(n,r),d=xo(e,r),f=u?d.indexOf(u):-1,h=(o=(a=t[f])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null,g=(s=(i=t[f+1])===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:null;return[h,g]}function cE({committedValuesRef:e,eagerValuesRef:n,groupId:t,layout:r,panelDataArray:o,panelGroupElement:a,setLayout:s}){D.useRef({didWarnAboutMissingResizeHandle:!1}),Gn(()=>{if(!a)return;const i=xo(t,a);for(let u=0;u<o.length-1;u++){const{valueMax:d,valueMin:f,valueNow:h}=iE({layout:r,panelsArray:o,pivotIndices:[u,u+1]}),g=i[u];if(g!=null){const m=o[u];Ce(m,`No panel data found for index "${u}"`),g.setAttribute("aria-controls",m.id),g.setAttribute("aria-valuemax",""+Math.round(d)),g.setAttribute("aria-valuemin",""+Math.round(f)),g.setAttribute("aria-valuenow",h!=null?""+Math.round(h):"")}}return()=>{i.forEach((u,d)=>{u.removeAttribute("aria-controls"),u.removeAttribute("aria-valuemax"),u.removeAttribute("aria-valuemin"),u.removeAttribute("aria-valuenow")})}},[t,r,o,a]),D.useEffect(()=>{if(!a)return;const i=n.current;Ce(i,"Eager values not found");const{panelDataArray:u}=i,d=f9(t,a);Ce(d!=null,`No group found for id "${t}"`);const f=xo(t,a);Ce(f,`No resize handles found for group id "${t}"`);const h=f.map(g=>{const m=g.getAttribute(Ge.resizeHandleId);Ce(m,"Resize handle element has no handle id attribute");const[C,p]=lE(t,m,u,a);if(C==null||p==null)return()=>{};const v=w=>{if(!w.defaultPrevented)switch(w.key){case"Enter":{w.preventDefault();const y=u.findIndex(b=>b.id===C);if(y>=0){const b=u[y];Ce(b,`No panel data found for index ${y}`);const S=r[y],{collapsedSize:M=0,collapsible:L,minSize:E=0}=b.constraints;if(S!=null&&L){const I=bo({delta:Ct(S,M)?E-M:M-S,initialLayout:r,panelConstraints:u.map(k=>k.constraints),pivotIndices:d9(t,m,a),prevLayout:r,trigger:"keyboard"});r!==I&&s(I)}}break}}};return g.addEventListener("keydown",v),()=>{g.removeEventListener("keydown",v)}});return()=>{h.forEach(g=>g())}},[a,e,n,t,r,o,s])}function h9(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}function g9(e,n){const t=e==="horizontal",{x:r,y:o}=ls(n);return t?r:o}function uE(e,n,t,r,o){const a=t==="horizontal",s=fs(n,o);Ce(s,`No resize handle element found for id "${n}"`);const i=s.getAttribute(Ge.groupId);Ce(i,"Resize handle element has no group id attribute");let{initialCursorPosition:u}=r;const d=g9(t,e),f=f9(i,o);Ce(f,`No group element found for id "${i}"`);const h=f.getBoundingClientRect(),g=a?h.width:h.height;return(d-u)/g*100}function dE(e,n,t,r,o,a){if(Q5(e)){const s=t==="horizontal";let i=0;e.shiftKey?i=100:o!=null?i=o:i=10;let u=0;switch(e.key){case"ArrowDown":u=s?0:i;break;case"ArrowLeft":u=s?-i:0;break;case"ArrowRight":u=s?i:0;break;case"ArrowUp":u=s?0:-i;break;case"End":u=100;break;case"Home":u=-100;break}return u}else return r==null?0:uE(e,n,t,r,a)}function fE({panelDataArray:e}){const n=Array(e.length),t=e.map(a=>a.constraints);let r=0,o=100;for(let a=0;a<e.length;a++){const s=t[a];Ce(s,`Panel constraints not found for index ${a}`);const{defaultSize:i}=s;i!=null&&(r++,n[a]=i,o-=i)}for(let a=0;a<e.length;a++){const s=t[a];Ce(s,`Panel constraints not found for index ${a}`);const{defaultSize:i}=s;if(i!=null)continue;const u=e.length-r,d=o/u;r++,n[a]=d,o-=d}return n}function Er(e,n,t){n.forEach((r,o)=>{const a=e[o];Ce(a,`Panel data not found for index ${o}`);const{callbacks:s,constraints:i,id:u}=a,{collapsedSize:d=0,collapsible:f}=i,h=t[u];if(h==null||r!==h){t[u]=r;const{onCollapse:g,onExpand:m,onResize:C}=s;C&&C(r,h),f&&(g||m)&&(m&&(h==null||nn(h,d))&&!nn(r,d)&&m(),g&&(h==null||!nn(h,d))&&nn(r,d)&&g())}})}function hs(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!=n[t])return!1;return!0}function hE({defaultSize:e,dragState:n,layout:t,panelData:r,panelIndex:o,precision:a=3}){const s=t[o];let i;return s==null?i=e!=null?e.toPrecision(a):"1":r.length===1?i="1":i=s.toPrecision(a),{flexBasis:0,flexGrow:i,flexShrink:1,overflow:"hidden",pointerEvents:n!==null?"none":void 0}}function gE(e,n=10){let t=null;return(...o)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{e(...o)},n)}}function p9(e){try{if(typeof localStorage<"u")e.getItem=n=>localStorage.getItem(n),e.setItem=(n,t)=>{localStorage.setItem(n,t)};else throw new Error("localStorage not supported in this environment")}catch(n){console.error(n),e.getItem=()=>null,e.setItem=()=>{}}}function m9(e){return`react-resizable-panels:${e}`}function v9(e){return e.map(n=>{const{constraints:t,id:r,idIsFromProps:o,order:a}=n;return o?r:a?`${a}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((n,t)=>n.localeCompare(t)).join(",")}function C9(e,n){try{const t=m9(e),r=n.getItem(t);if(r){const o=JSON.parse(r);if(typeof o=="object"&&o!=null)return o}}catch{}return null}function pE(e,n,t){var r,o;const a=(r=C9(e,t))!==null&&r!==void 0?r:{},s=v9(n);return(o=a[s])!==null&&o!==void 0?o:null}function mE(e,n,t,r,o){var a;const s=m9(e),i=v9(n),u=(a=C9(e,o))!==null&&a!==void 0?a:{};u[i]={expandToSizes:Object.fromEntries(t.entries()),layout:r};try{o.setItem(s,JSON.stringify(u))}catch(d){console.error(d)}}function w9({layout:e,panelConstraints:n}){const t=[...e],r=t.reduce((a,s)=>a+s,0);if(t.length!==n.length)throw Error(`Invalid ${n.length} panel layout: ${t.map(a=>`${a}%`).join(", ")}`);if(!Ct(r,100)&&t.length>0)for(let a=0;a<n.length;a++){const s=t[a];Ce(s!=null,`No layout data found for index ${a}`);const i=100/r*s;t[a]=i}let o=0;for(let a=0;a<n.length;a++){const s=t[a];Ce(s!=null,`No layout data found for index ${a}`);const i=Sr({panelConstraints:n,panelIndex:a,size:s});s!=i&&(o+=s-i,t[a]=i)}if(!Ct(o,0))for(let a=0;a<n.length;a++){const s=t[a];Ce(s!=null,`No layout data found for index ${a}`);const i=s+o,u=Sr({panelConstraints:n,panelIndex:a,size:i});if(s!==u&&(o-=u-s,t[a]=u,Ct(o,0)))break}return t}const vE=100,So={getItem:e=>(p9(So),So.getItem(e)),setItem:(e,n)=>{p9(So),So.setItem(e,n)}},y9={};function b9({autoSaveId:e=null,children:n,className:t="",direction:r,forwardedRef:o,id:a=null,onLayout:s=null,keyboardResizeBy:i=null,storage:u=So,style:d,tagName:f="div",...h}){const g=w1(a),m=D.useRef(null),[C,p]=D.useState(null),[v,w]=D.useState([]),y=aE(),b=D.useRef({}),S=D.useRef(new Map),M=D.useRef(0),L=D.useRef({autoSaveId:e,direction:r,dragState:C,id:g,keyboardResizeBy:i,onLayout:s,storage:u}),E=D.useRef({layout:v,panelDataArray:[],panelDataArrayChanged:!1});D.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),D.useImperativeHandle(o,()=>({getId:()=>L.current.id,getLayout:()=>{const{layout:A}=E.current;return A},setLayout:A=>{const{onLayout:_}=L.current,{layout:B,panelDataArray:G}=E.current,F=w9({layout:A,panelConstraints:G.map(R=>R.constraints)});h9(B,F)||(w(F),E.current.layout=F,_&&_(F),Er(G,F,b.current))}}),[]),Gn(()=>{L.current.autoSaveId=e,L.current.direction=r,L.current.dragState=C,L.current.id=g,L.current.onLayout=s,L.current.storage=u}),cE({committedValuesRef:L,eagerValuesRef:E,groupId:g,layout:v,panelDataArray:E.current.panelDataArray,setLayout:w,panelGroupElement:m.current}),D.useEffect(()=>{const{panelDataArray:A}=E.current;if(e){if(v.length===0||v.length!==A.length)return;let _=y9[e];_==null&&(_=gE(mE,vE),y9[e]=_);const B=[...A],G=new Map(S.current);_(e,B,G,v,u)}},[e,v,u]),D.useEffect(()=>{});const I=D.useCallback(A=>{const{onLayout:_}=L.current,{layout:B,panelDataArray:G}=E.current;if(A.constraints.collapsible){const F=G.map(te=>te.constraints),{collapsedSize:R=0,panelSize:Q,pivotIndices:re}=Un(G,A,B);if(Ce(Q!=null,`Panel size not found for panel "${A.id}"`),!nn(Q,R)){S.current.set(A.id,Q);const j=Mr(G,A)===G.length-1?Q-R:R-Q,ee=bo({delta:j,initialLayout:B,panelConstraints:F,pivotIndices:re,prevLayout:B,trigger:"imperative-api"});hs(B,ee)||(w(ee),E.current.layout=ee,_&&_(ee),Er(G,ee,b.current))}}},[]),k=D.useCallback((A,_)=>{const{onLayout:B}=L.current,{layout:G,panelDataArray:F}=E.current;if(A.constraints.collapsible){const R=F.map(ie=>ie.constraints),{collapsedSize:Q=0,panelSize:re=0,minSize:te=0,pivotIndices:j}=Un(F,A,G),ee=_??te;if(nn(re,Q)){const ie=S.current.get(A.id),le=ie!=null&&ie>=ee?ie:ee,Te=Mr(F,A)===F.length-1?re-le:le-re,xe=bo({delta:Te,initialLayout:G,panelConstraints:R,pivotIndices:j,prevLayout:G,trigger:"imperative-api"});hs(G,xe)||(w(xe),E.current.layout=xe,B&&B(xe),Er(F,xe,b.current))}}},[]),O=D.useCallback(A=>{const{layout:_,panelDataArray:B}=E.current,{panelSize:G}=Un(B,A,_);return Ce(G!=null,`Panel size not found for panel "${A.id}"`),G},[]),H=D.useCallback((A,_)=>{const{panelDataArray:B}=E.current,G=Mr(B,A);return hE({defaultSize:_,dragState:C,layout:v,panelData:B,panelIndex:G})},[C,v]),V=D.useCallback(A=>{const{layout:_,panelDataArray:B}=E.current,{collapsedSize:G=0,collapsible:F,panelSize:R}=Un(B,A,_);return Ce(R!=null,`Panel size not found for panel "${A.id}"`),F===!0&&nn(R,G)},[]),Y=D.useCallback(A=>{const{layout:_,panelDataArray:B}=E.current,{collapsedSize:G=0,collapsible:F,panelSize:R}=Un(B,A,_);return Ce(R!=null,`Panel size not found for panel "${A.id}"`),!F||Yn(R,G)>0},[]),$=D.useCallback(A=>{const{panelDataArray:_}=E.current;_.push(A),_.sort((B,G)=>{const F=B.order,R=G.order;return F==null&&R==null?0:F==null?-1:R==null?1:F-R}),E.current.panelDataArrayChanged=!0,y()},[y]);Gn(()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:A,onLayout:_,storage:B}=L.current,{layout:G,panelDataArray:F}=E.current;let R=null;if(A){const re=pE(A,F,B);re&&(S.current=new Map(Object.entries(re.expandToSizes)),R=re.layout)}R==null&&(R=fE({panelDataArray:F}));const Q=w9({layout:R,panelConstraints:F.map(re=>re.constraints)});h9(G,Q)||(w(Q),E.current.layout=Q,_&&_(Q),Er(F,Q,b.current))}}),Gn(()=>{const A=E.current;return()=>{A.layout=[]}},[]);const U=D.useCallback(A=>{let _=!1;const B=m.current;return B&&window.getComputedStyle(B,null).getPropertyValue("direction")==="rtl"&&(_=!0),function(F){F.preventDefault();const R=m.current;if(!R)return()=>null;const{direction:Q,dragState:re,id:te,keyboardResizeBy:j,onLayout:ee}=L.current,{layout:ie,panelDataArray:le}=E.current,{initialLayout:we}=re??{},Te=d9(te,A,R);let xe=dE(F,A,Q,re,j,R);const Pe=Q==="horizontal";Pe&&_&&(xe=-xe);const Be=le.map(X=>X.constraints),Je=bo({delta:xe,initialLayout:we??ie,panelConstraints:Be,pivotIndices:Te,prevLayout:ie,trigger:Q5(F)?"keyboard":"mouse-or-touch"}),ct=!hs(ie,Je);(J5(F)||e9(F))&&M.current!=xe&&(M.current=xe,!ct&&xe!==0?Pe?M1(A,xe<0?a9:s9):M1(A,xe<0?i9:l9):M1(A,0)),ct&&(w(Je),E.current.layout=Je,ee&&ee(Je),Er(le,Je,b.current))}},[]),T=D.useCallback((A,_)=>{const{onLayout:B}=L.current,{layout:G,panelDataArray:F}=E.current,R=F.map(ie=>ie.constraints),{panelSize:Q,pivotIndices:re}=Un(F,A,G);Ce(Q!=null,`Panel size not found for panel "${A.id}"`);const j=Mr(F,A)===F.length-1?Q-_:_-Q,ee=bo({delta:j,initialLayout:G,panelConstraints:R,pivotIndices:re,prevLayout:G,trigger:"imperative-api"});hs(G,ee)||(w(ee),E.current.layout=ee,B&&B(ee),Er(F,ee,b.current))},[]),W=D.useCallback((A,_)=>{const{layout:B,panelDataArray:G}=E.current,{collapsedSize:F=0,collapsible:R}=_,{collapsedSize:Q=0,collapsible:re,maxSize:te=100,minSize:j=0}=A.constraints,{panelSize:ee}=Un(G,A,B);ee!=null&&(R&&re&&nn(ee,F)?nn(F,Q)||T(A,Q):ee<j?T(A,j):ee>te&&T(A,te))},[T]),P=D.useCallback((A,_)=>{const{direction:B}=L.current,{layout:G}=E.current;if(!m.current)return;const F=fs(A,m.current);Ce(F,`Drag handle element not found for id "${A}"`);const R=g9(B,_);p({dragHandleId:A,dragHandleRect:F.getBoundingClientRect(),initialCursorPosition:R,initialLayout:G})},[]),z=D.useCallback(()=>{p(null)},[]),q=D.useCallback(A=>{const{panelDataArray:_}=E.current,B=Mr(_,A);B>=0&&(_.splice(B,1),delete b.current[A.id],E.current.panelDataArrayChanged=!0,y())},[y]),K=D.useMemo(()=>({collapsePanel:I,direction:r,dragState:C,expandPanel:k,getPanelSize:O,getPanelStyle:H,groupId:g,isPanelCollapsed:V,isPanelExpanded:Y,reevaluatePanelConstraints:W,registerPanel:$,registerResizeHandle:U,resizePanel:T,startDragging:P,stopDragging:z,unregisterPanel:q,panelGroupElement:m.current}),[I,C,r,k,O,H,g,V,Y,W,$,U,T,P,z,q]),Z={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return D.createElement(ss.Provider,{value:K},D.createElement(f,{...h,children:n,className:t,id:a,ref:m,style:{...Z,...d},[Ge.group]:"",[Ge.groupDirection]:r,[Ge.groupId]:g}))}const x9=D.forwardRef((e,n)=>D.createElement(b9,{...e,forwardedRef:n}));b9.displayName="PanelGroup",x9.displayName="forwardRef(PanelGroup)";function Mr(e,n){return e.findIndex(t=>t===n||t.id===n.id)}function Un(e,n,t){const r=Mr(e,n),a=r===e.length-1?[r-1,r]:[r,r+1],s=t[r];return{...n.constraints,panelSize:s,pivotIndices:a}}function CE({disabled:e,handleId:n,resizeHandler:t,panelGroupElement:r}){D.useEffect(()=>{if(e||t==null||r==null)return;const o=fs(n,r);if(o==null)return;const a=s=>{if(!s.defaultPrevented)switch(s.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{s.preventDefault(),t(s);break}case"F6":{s.preventDefault();const i=o.getAttribute(Ge.groupId);Ce(i,`No group element found for id "${i}"`);const u=xo(i,r),d=u9(i,n,r);Ce(d!==null,`No resize element found for id "${n}"`);const f=s.shiftKey?d>0?d-1:u.length-1:d+1<u.length?d+1:0;u[f].focus();break}}};return o.addEventListener("keydown",a),()=>{o.removeEventListener("keydown",a)}},[r,e,n,t])}function S9({children:e=null,className:n="",disabled:t=!1,hitAreaMargins:r,id:o,onBlur:a,onClick:s,onDragging:i,onFocus:u,onPointerDown:d,onPointerUp:f,style:h={},tabIndex:g=0,tagName:m="div",...C}){var p,v;const w=D.useRef(null),y=D.useRef({onClick:s,onDragging:i,onPointerDown:d,onPointerUp:f});D.useEffect(()=>{y.current.onClick=s,y.current.onDragging=i,y.current.onPointerDown=d,y.current.onPointerUp=f});const b=D.useContext(ss);if(b===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:S,groupId:M,registerResizeHandle:L,startDragging:E,stopDragging:I,panelGroupElement:k}=b,O=w1(o),[H,V]=D.useState("inactive"),[Y,$]=D.useState(!1),[U,T]=D.useState(null),W=D.useRef({state:H});Gn(()=>{W.current.state=H}),D.useEffect(()=>{if(t)T(null);else{const K=L(O);T(()=>K)}},[t,O,L]);const P=(p=r==null?void 0:r.coarse)!==null&&p!==void 0?p:15,z=(v=r==null?void 0:r.fine)!==null&&v!==void 0?v:5;D.useEffect(()=>{if(t||U==null)return;const K=w.current;Ce(K,"Element ref not attached");let Z=!1;return rE(O,K,S,{coarse:P,fine:z},(_,B,G)=>{if(!B){V("inactive");return}switch(_){case"down":{V("drag"),Z=!1,Ce(G,'Expected event to be defined for "down" action'),E(O,G);const{onDragging:F,onPointerDown:R}=y.current;F==null||F(!0),R==null||R();break}case"move":{const{state:F}=W.current;Z=!0,F!=="drag"&&V("hover"),Ce(G,'Expected event to be defined for "move" action'),U(G);break}case"up":{V("hover"),I();const{onClick:F,onDragging:R,onPointerUp:Q}=y.current;R==null||R(!1),Q==null||Q(),Z||F==null||F();break}}})},[P,S,t,z,L,O,U,E,I]),CE({disabled:t,handleId:O,resizeHandler:U,panelGroupElement:k});const q={touchAction:"none",userSelect:"none"};return D.createElement(m,{...C,children:e,className:n,id:o,onBlur:()=>{$(!1),a==null||a()},onFocus:()=>{$(!0),u==null||u()},ref:w,role:"separator",style:{...q,...h},tabIndex:g,[Ge.groupDirection]:S,[Ge.groupId]:M,[Ge.resizeHandle]:"",[Ge.resizeHandleActive]:H==="drag"?"pointer":Y?"keyboard":void 0,[Ge.resizeHandleEnabled]:!t,[Ge.resizeHandleId]:O,[Ge.resizeHandleState]:H})}S9.displayName="PanelResizeHandle";const P1=l.forwardRef(({className:e,...n},t)=>c.jsx(x9,{ref:t,className:N("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...n}));P1.displayName="ResizablePanelGroup";const _1=X5,E9=({withHandle:e,className:n,...t})=>c.jsx(S9,{className:N("relative flex w-px items-center justify-center transition-colors bg-line-primary-disabled hover:bg-line-primary [&:hover>div]:border-line-primary [&:hover>div]:text-foreground-primary after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),...t,children:e&&c.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm transition-colors text-foreground-primary-disabled bg-background-primary border border-line-primary-disabled hover:text-foreground-primary hover:border-line-primary",children:c.jsx(Bw,{className:"h-2.5 w-2.5"})})}),M9=({titlePrefix:e,titleText:n,buttonsSlot:t,dropDownButtons:r,onBack:o,className:a})=>c.jsxs("div",{className:N("flex items-center justify-between px-6 py-4 border-b border-line-primary",a),children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1 text-2xl font-medium",children:[o&&c.jsx("div",{className:"p-2 cursor-pointer hover:text-foreground-primary-disabled flex-shrink-0",onClick:o,children:c.jsx(v1,{})}),e&&c.jsx("span",{className:"text-foreground-secondary whitespace-nowrap",children:e}),n&&c.jsx("span",{className:"text-foreground-primary truncate",title:n,children:n})]}),c.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[t,r&&r.length>0&&c.jsxs(c1,{children:[c.jsx(ns,{asChild:!0,children:c.jsx(Ze,{variant:"fade-contrast-transparent",size:"icon",children:c.jsx(l1,{})})}),c.jsx(rs,{children:r.map((s,i)=>c.jsx(os,{onClick:s.onClick,disabled:s.disabled,children:s.text},i))})]})]})]});M9.displayName="PostCardHeader";const L9=({sections:e,className:n})=>!e||e.length===0?null:c.jsx("div",{className:N("flex flex-col",n),children:e.map((t,r)=>c.jsx("div",{className:"py-4 border-b border-line-primary first:pt-0 last:border-b-0 last:pb-0",children:c.jsx("table",{className:"w-full border-separate border-spacing-0",children:c.jsx("tbody",{children:t.fields.map((o,a)=>c.jsxs("tr",{className:"align-text-top first:[&>td]:pt-0 last:[&>td]:pb-0",children:[c.jsx("td",{className:"min-w-[160px] w-[160px] pr-1 py-1 text-foreground-primary text-sm leading-5 font-medium tracking-[0.25px]",children:o.label}),c.jsx("td",{className:"py-1 px-1 text-foreground-primary text-sm leading-5 max-w-[1px] tracking-[0.25px]",children:o.value||"-"})]},a))})})},r))});L9.displayName="PostCardBody";const N9=({children:e,className:n})=>c.jsx("div",{className:N("flex flex-col gap-2",n),children:e});N9.displayName="PostCardSidebar";const P9=({headerSlot:e,contentSlot:n,footerSlot:t,selected:r,onClick:o,className:a})=>e||n||t?c.jsxs("li",{className:N("px-4 py-3 flex flex-col gap-2 text-sm leading-5 border-t border-line-primary first:border-t-0 text-foreground-primary cursor-pointer",{"bg-background-primary-selected":r},a),onClick:o,children:[e&&c.jsx("div",{className:"flex items-center justify-between gap-4",children:e}),n&&c.jsx("div",{children:n}),t&&c.jsx("div",{className:"flex items-center justify-between gap-4",children:t})]}):null;P9.displayName="PostCardLeftPanelItem";const _9=({sortSlot:e,children:n,paginationSlot:t,className:r})=>c.jsxs("div",{className:N("flex flex-col bg-background-primary border-r border-line-primary h-full min-h-0",r),children:[e&&c.jsx("div",{className:"px-4 py-1 border-b border-line-primary flex-shrink-0",children:e}),c.jsx("ul",{className:"flex flex-col overflow-y-auto flex-1 min-h-0",children:n}),t&&c.jsx("div",{className:"px-4 border-t border-line-primary flex-shrink-0 [&>*:first-child]:px-0 [&>*]:border-none [&>*]:p-0 [&>*]:h-[unset] [&>*]:min-h-[unset] [&>*]:w-full [&>*]:rounded-none",children:t})]});_9.displayName="PostCardLeftPanel";const I9=({leftPanelSlot:e,leftPanelResizable:n,headerSlot:t,bodySlot:r,sidebarSlot:o,contentSlot:a,className:s,withTopBorder:i=!1,fixedHeight:u=!1})=>{if(!(e||t||r||o||a))return null;const f=c.jsxs(c.Fragment,{children:[(r||o)&&c.jsxs("div",{className:"flex gap-6 px-6 py-6",children:[r&&c.jsx("div",{className:"flex-1 min-w-0",children:r}),o&&c.jsx("div",{className:"w-[340px] flex-shrink-0",children:o})]}),a&&c.jsx("div",{className:"px-6 pb-6",children:a})]}),h=c.jsxs("div",{className:N("flex flex-col flex-1 min-w-0 min-h-0",u&&"overflow-hidden"),children:[t&&c.jsx("div",{className:"flex-shrink-0",children:t}),c.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto flex flex-col",children:f})]});if(e&&n){const{defaultSize:g=25,minSize:m=15,maxSize:C=50,autoSaveId:p}=n;return c.jsx("div",{className:N("bg-background-primary flex w-full h-full flex-1 flex flex-col",{"border-t border-line-primary":i},s),children:c.jsxs(P1,{direction:"horizontal",className:"flex-1 overflow-hidden",autoSaveId:p,children:[c.jsx(_1,{defaultSize:g,minSize:m,maxSize:C,className:"overflow-auto flex-1",children:c.jsx("div",{className:"h-full bg-background-primary border-r border-line-primary",children:e})}),c.jsx(E9,{withHandle:!0}),c.jsx(_1,{minSize:50,className:"flex flex-col min-h-0 overflow-hidden",children:h})]})})}return c.jsxs("div",{className:N("bg-background-primary flex w-full flex-1 min-h-0",u&&"h-full overflow-hidden",{"border-t border-line-primary":i},s),children:[e&&c.jsx("div",{className:N("w-[346px] flex-shrink-0 border-r border-line-primary",u&&"h-full min-h-0 overflow-hidden flex flex-col"),children:e}),h]})};I9.displayName="PostCard";const k9=l.forwardRef(({className:e,avatarUrl:n,avatarAlt:t,name:r,email:o,role:a,...s},i)=>c.jsxs("div",{ref:i,className:N("flex items-center gap-3 rounded-lg bg-background-secondary p-2",e),...s,children:[n&&c.jsx("img",{src:n,alt:t||r,className:"h-10 w-10 min-w-10 rounded-full border border-line-primary object-cover flex-shrink-0"}),c.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-[2px]",children:[c.jsx("span",{className:"text-sm font-normal leading-5 text-foreground",children:r}),(o||a)&&c.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-normal leading-4",children:[o&&c.jsx("a",{href:`mailto:${o}`,className:"text-foreground-theme hover:underline",children:o}),o&&a&&c.jsx(tl,{className:"text-foreground-secondary"}),a&&c.jsx("span",{className:"text-foreground-secondary",children:a})]})]})]}));k9.displayName="Profile";function Lr(e,n,t){let r=t.initialDeps??[],o,a=!0;function s(){var i,u,d;let f;t.key&&((i=t.debug)!=null&&i.call(t))&&(f=Date.now());const h=e();if(!(h.length!==r.length||h.some((C,p)=>r[p]!==C)))return o;r=h;let m;if(t.key&&((u=t.debug)!=null&&u.call(t))&&(m=Date.now()),o=n(...h),t.key&&((d=t.debug)!=null&&d.call(t))){const C=Math.round((Date.now()-f)*100)/100,p=Math.round((Date.now()-m)*100)/100,v=p/16,w=(y,b)=>{for(y=String(y);y.length<b;)y=" "+y;return y};console.info(`%c⏱ ${w(p,5)} /${w(C,5)} ms`,`
|
|
131
|
+
*/function R0(e,n){return e?Mb(e)?l.createElement(e,n):e:null}function Mb(e){return Lb(e)||typeof e=="function"||Nb(e)}function Lb(e){return typeof e=="function"&&(()=>{const n=Object.getPrototypeOf(e);return n.prototype&&n.prototype.isReactComponent})()}function Nb(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function Pb(e){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=l.useState(()=>({current:bb(n)})),[r,o]=l.useState(()=>t.current.initialState);return t.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:s=>{o(s),e.onStateChange==null||e.onStateChange(s)}})),t.current}const G0="data-table-column-sizing:";function j0(e,n={}){const t=()=>{if(!e)return n;try{const s=localStorage.getItem(G0+e);return s?JSON.parse(s):n}catch{return n}},[r,o]=D.useState(()=>t());return{columnSizing:r,onColumnSizingChange:s=>{o(i=>{const u=typeof s=="function"?s(i):s;if(e)try{localStorage.setItem(G0+e,JSON.stringify(u))}catch{}return u})}}}const ao=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M15.7049 7.41L14.2949 6L8.29492 12L14.2949 18L15.7049 16.59L11.1249 12L15.7049 7.41Z",fill:"currentColor"})),Bl=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M6.29104 8.11L10.181 12L6.29104 15.89C5.90104 16.28 5.90104 16.91 6.29104 17.3C6.68104 17.69 7.31104 17.69 7.70104 17.3L12.291 12.71C12.681 12.32 12.681 11.69 12.291 11.3L7.70104 6.7C7.31104 6.31 6.68104 6.31 6.29104 6.7C5.91104 7.09 5.91104 7.73 6.29104 8.11ZM17.001 6C17.551 6 18.001 6.45 18.001 7V17C18.001 17.55 17.551 18 17.001 18C16.451 18 16.001 17.55 16.001 17V7C16.001 6.45 16.451 6 17.001 6Z",fill:"currentColor"})),Y0=[10,20,30,40,50];function qa({active:e,children:n,onClick:t}){return c.jsx(Ze,{variant:"fade-contrast-transparent",className:N("h-6 w-6 p-0 lg:flex rounded-full",{"bg-background-theme-fade":e}),disabled:e,onClick:t,children:n})}function U0({horizontalPadding:e,className:n,pageSize:t,pageCount:r=0,pageIndex:o=0,canPreviousPage:a,canNextPage:s,selectedCount:i,totalCount:u,compact:d,hideDisplayBy:f,pageSizeOptions:h,previousPage:g,nextPage:m,setPageSize:C,setPageIndex:p}){const{t:v}=rt(),w=h??Y0,b=(t!=null&&!w.includes(t)?[...w,t].sort((A,V)=>A-V):w).map(A=>({value:String(A),label:`${v("displayBy")} ${A}`})),S=()=>{switch(e){case"small":return"px-6";case"large":return"px-10";case"medium":default:return"px-8"}},M=r<=3?o===0:o<r-3,L=()=>r<=3?1:o<r-3?o+1:r-3,E=()=>{if(r<=3)return p==null?void 0:p(0);p==null||p(o<r-3?o:r-4)},I=r<=3?o===1:o===r-3,k=()=>r<=3?2:o<r-3?o+2:r-2,O=()=>{if(r<=3)return p==null?void 0:p(1);p==null||p(o<r-3?o+1:r-3)};return c.jsxs("div",{className:N("mt-auto sticky bottom-0 bg-background flex items-center justify-between min-h-[52px] h-[52px] rounded-bl-3xl rounded-br-3xl border-t border-line-primary",S(),n),children:[!f&&c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Kr,{options:b,triggerClassName:"h-8 text-sm text-foreground-secondary border-none hover:bg-[transparent] px-0",placeholder:`${v("displayBy")} ${t}`,value:`${t}`,onValueChange:A=>C==null?void 0:C(Number(A))}),!!i&&c.jsx("div",{className:"flex-1 text-sm text-foreground-secondary",children:`${v("selected")} ${i} ${v("of")} ${u}`})]}),c.jsx("div",{className:"flex items-center space-x-6 lg:space-x-8",children:c.jsxs("div",{className:"flex items-center text-foreground-secondary",children:[!d&&c.jsxs(Ze,{variant:"fade-contrast-transparent",className:"h-6 w-6 p-0 lg:flex rounded-full",onClick:()=>p==null?void 0:p(0),disabled:!a,children:[c.jsx("span",{className:"sr-only",children:"Go to first page"}),c.jsx(Bl,{className:"h-6 w-6 rotate-180"})]}),c.jsxs(Ze,{variant:"fade-contrast-transparent",className:"h-6 w-6 p-0 rounded-full",onClick:()=>g&&g(),disabled:!a,children:[c.jsx("span",{className:"sr-only",children:"Go to previous page"}),c.jsx(ao,{className:"h-6 w-6"})]}),c.jsx(qa,{active:M,onClick:E,children:L()}),r>1&&c.jsx(qa,{active:I,onClick:O,children:k()}),r>2&&c.jsxs(c.Fragment,{children:[r>3&&c.jsx("span",{className:"cursor-default",children:"..."}),r>3&&c.jsx(qa,{active:o===r-2,onClick:()=>p==null?void 0:p(r-2),children:r-1}),c.jsx(qa,{active:o===r-1,onClick:()=>p==null?void 0:p(r-1),children:r})]}),c.jsxs(Ze,{variant:"fade-contrast-transparent",className:"h-6 w-6 p-0 rounded-full",onClick:()=>m&&m(),disabled:!s,children:[c.jsx("span",{className:"sr-only",children:"Go to next page"}),c.jsx(Vn,{className:"h-6 w-6"})]}),!d&&c.jsxs(Ze,{variant:"fade-contrast-transparent",className:"hidden h-6 w-6 p-0 lg:flex rounded-full",onClick:()=>p==null?void 0:p(r-1),disabled:!s,children:[c.jsx("span",{className:"sr-only",children:"Go to last page"}),c.jsx(Bl,{className:"h-6 w-6"})]})]})})]})}function q0({className:e,...n}){return c.jsx("div",{className:N("animate-pulse rounded-md bg-background-contrast-fade/50",e),...n})}q0.displayName="Skeleton";var _b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ib=_b.reduce((e,n)=>{const t=Wo(`Primitive.${n}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,u=s?t:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...i,ref:a})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),kb="Separator",K0="horizontal",Tb=["horizontal","vertical"],X0=l.forwardRef((e,n)=>{const{decorative:t,orientation:r=K0,...o}=e,a=Db(r)?r:K0,i=t?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return c.jsx(Ib.div,{"data-orientation":a,...i,...o,ref:n})});X0.displayName=kb;function Db(e){return Tb.includes(e)}var Ob=X0;const Fn=l.forwardRef(({className:e,orientation:n="horizontal",decorative:t=!0,intent:r="default",...o},a)=>c.jsx(Ob,{ref:a,decorative:t,orientation:n,className:N("shrink-0",r==="sidebar"?"bg-line-sidebar":"bg-line-primary",n==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));Fn.displayName="Separator";const Q0=l.createContext({striped:!0}),Zl=l.forwardRef(({className:e,rootClassName:n,striped:t=!0,children:r,...o},a)=>c.jsx(Q0.Provider,{value:{striped:t},children:c.jsx("div",{className:N("relative w-full h-full flex items-start overflow-auto",n),children:c.jsx("table",{ref:a,className:N("w-full caption-bottom text-sm",e),...o,children:r})})}));Zl.displayName="Table";const Wl=l.forwardRef(({className:e,sticky:n,children:t,...r},o)=>c.jsxs("thead",{ref:o,className:N("bg-background [&_tr]:border-b",n?"sticky print:static z-30 top-0 [&_tr]:border-none":"",e,n?"border-none [&_tr]:border-none":""),...r,children:[n&&(e==null?void 0:e.includes("border-t"))&&c.jsx(Fn,{className:"absolute w-full"}),t,n&&c.jsx(Fn,{className:"absolute w-full"}),n&&c.jsx(Fn,{className:"bg-[transparent]"})]}));Wl.displayName="TableHeader";const Rl=l.forwardRef(({className:e,...n},t)=>c.jsx("tbody",{ref:t,className:N("[&_tr:last-child]:border-0",e),...n}));Rl.displayName="TableBody";const J0=l.forwardRef(({className:e,...n},t)=>c.jsx("tfoot",{ref:t,className:N("border-t bg-background font-medium [&>tr]:last:border-b-0",e),...n}));J0.displayName="TableFooter";const $n=l.forwardRef(({className:e,dataIndex:n,variant:t="table",isHeader:r=!1,...o},a)=>{const{striped:s}=l.useContext(Q0);return c.jsx("tr",{ref:a,"data-index":n,className:N(t==="list"?"border-b border-line-primary data-[state=selected]:bg-background-tertiary":"transition-colors data-[state=selected]:bg-background-tertiary",!r&&t==="table"?"hover:bg-background-primary-hover":"",s&&"even:bg-background-secondary",e),...o})});$n.displayName="TableRow";const Gl=l.forwardRef(({className:e,variant:n="table",...t},r)=>c.jsx("th",{ref:r,className:N("min-h-9 text-left font-medium text-foreground-primary [&:has([role=checkbox])]:pr-0","align-middle",n==="list"?"py-2 first:pl-0 last:pr-0 [&:not(:first-child)]:pl-2":"p-2 border-r border-line-primary last:border-r-0",e),...t}));Gl.displayName="TableHead";const so=l.forwardRef(({className:e,variant:n="table",...t},r)=>c.jsx("td",{ref:r,className:N("align-top text-foreground-primary","[&:has([role=checkbox])]:pr-0",n==="list"?"py-2 first:pl-0 last:pr-0 [&:not(:first-child)]:pl-2":"p-2 border-r border-line-primary last:border-r-0",e),...t}));so.displayName="TableCell";const ef=l.forwardRef(({className:e,...n},t)=>c.jsx("caption",{ref:t,className:N("mt-4 text-sm text-muted-foreground",e),...n}));ef.displayName="TableCaption";function Vb({columns:e,data:n,horizontalPadding:t="medium",rowCount:r,noResultsText:o="No results.",enableRowSelection:a=!1,enableMultiRowSelection:s=!1,selection:i={},pagination:u,sorting:d,expanded:f,manualSorting:h=!0,paginationProps:g,className:m,additionalSlot:C,selectedRowClassName:p,onSortingChange:v,getRowId:w,onPaginationChange:y,onRowSelectionChange:b,onRowClick:S,onExpandedChange:M,loading:L,skeletonClassName:E="h-5",isStickyHeader:I,headerClassName:k,columnVisibility:O,onColumnVisibilityChange:A,columnFilters:V,onColumnFiltersChange:Y,rowHoverContent:$,hideHeader:U=!1,variant:T="table",striped:W=!0,columnSizingStorageKey:P,enableMultiSort:z=!1,maxMultiSortColumns:q}){var te;const K=D.useRef(null),[Z,H]=D.useState(null),{columnSizing:_,onColumnSizingChange:B}=j0(P),G=Pb({getRowId:w,data:n,columns:e,getCoreRowModel:xb(),getExpandedRowModel:Sb(),manualPagination:!0,rowCount:r,state:{pagination:u,rowSelection:i,sorting:d,expanded:f,columnVisibility:O,columnFilters:V,...P!==void 0?{columnSizing:_}:{}},manualSorting:h,enableMultiSort:z,enableRowSelection:a,enableMultiRowSelection:s,enableColumnResizing:P!==void 0,columnResizeMode:"onChange",onPaginationChange:y,onRowSelectionChange:b,onSortingChange:v,onExpandedChange:M,onColumnVisibilityChange:A,onColumnFiltersChange:Y,...P!==void 0?{onColumnSizingChange:B}:{},...z&&q?{maxMultiSortColCount:q}:{},getSubRows:j=>j.subRows}),F=!!u,R=()=>{if(T==="list")return"first:pl-0 last:pr-0";switch(t){case"small":return"first:pl-4 last:pr-4";case"large":return"first:pl-8 last:pr-8";case"medium":default:return"first:pl-6 last:pr-6"}},Q=(j,ee)=>{if(!$||!K.current)return;const le=j.currentTarget.getBoundingClientRect(),we=K.current.getBoundingClientRect();K.current.style.setProperty("--hover-top",`${le.top-we.top}px`),K.current.style.setProperty("--hover-height",`${le.height}px`),K.current.style.setProperty("--hover-visible","1"),H(ee)},re=()=>{!$||!K.current||K.current.style.setProperty("--hover-visible","0")};return c.jsxs("div",{ref:K,onMouseLeave:re,className:N("relative flex flex-1 flex-col h-full",m),children:[c.jsxs(Zl,{striped:W,className:N("border-t border-line-primary",!F&&"border-b border-line-primary"),children:[!U&&c.jsx(Wl,{className:N("bg-background-secondary",I&&"sticky top-0 z-20",k),children:G.getHeaderGroups().map(j=>c.jsx($n,{className:"border-line-primary",variant:T,isHeader:!0,children:j.headers.map(ee=>{var we;const ie=((we=ee.column.columnDef.meta)==null?void 0:we.hideRightBorder)??!1,le=P!==void 0&&ee.column.getCanResize();return c.jsxs(Gl,{colSpan:ee.colSpan,style:{minWidth:ee.getSize(),width:ee.getSize()},className:N("relative",T==="list"?"":R(),ie&&T==="table"&&"border-r-0"),variant:T,children:[ee.isPlaceholder?null:R0(ee.column.columnDef.header,ee.getContext()),le&&c.jsx("div",{onMouseDown:ee.getResizeHandler(),onTouchStart:ee.getResizeHandler(),className:N("absolute right-0 top-0 h-full w-1 cursor-col-resize select-none touch-none","opacity-0 hover:opacity-100 bg-foreground-theme transition-opacity",ee.column.getIsResizing()&&"opacity-100 bg-foreground-theme"),style:{transform:"translateX(50%)"}})]},ee.id)})},j.id))}),c.jsxs(Rl,{children:[L?G.getHeaderGroups().map(j=>Array.from({length:5}).map((ee,ie)=>c.jsx($n,{variant:T,children:j.headers.map(le=>{var Te;const we=((Te=le.column.columnDef.meta)==null?void 0:Te.hideRightBorder)??!1;return c.jsx(so,{colSpan:le.colSpan,style:{minWidth:le.column.getSize(),width:le.column.getSize()},className:N(T==="list"?"":R(),we&&T==="table"&&"border-r-0"),variant:T,children:c.jsx(q0,{className:N("w-full",E)})},le.id)})},ie))):null,L?null:(te=G.getRowModel().rows)!=null&&te.length?G.getRowModel().rows.map(j=>c.jsxs(D.Fragment,{children:[c.jsx($n,{"data-state":j.getIsSelected()&&!p&&"selected",className:N(j.getIsSelected()?p:""),onClick:()=>S==null?void 0:S(j.original),onMouseEnter:ee=>Q(ee,j.original),variant:T,children:j.getVisibleCells().map(ee=>{var le;const ie=((le=ee.column.columnDef.meta)==null?void 0:le.hideRightBorder)??!1;return c.jsx(so,{style:{minWidth:ee.column.getSize(),width:ee.column.getSize()},className:N(T==="list"?"":R(),ie&&T==="table"&&"border-r-0"),variant:T,children:R0(ee.column.columnDef.cell,ee.getContext())},ee.id)})},j.id),j.getIsExpanded()&&c.jsx($n,{variant:T,children:c.jsx("td",{colSpan:j.getVisibleCells().length,children:j.original.customExpandedContent})},`${j.id}-expanded`)]},j.id)):c.jsx($n,{variant:T,children:c.jsx(so,{colSpan:e.length,className:N("h-24 text-center",T==="list"?"":R()),variant:T,children:o})})]})]}),$&&Z&&c.jsx("div",{className:"absolute bottom-0 left-0 right-0 z-20 pointer-events-none transition-opacity duration-200",style:{top:"var(--hover-top)",height:"var(--hover-height)",opacity:"var(--hover-visible)"},children:c.jsx("div",{className:N("h-full flex items-center justify-end pointer-events-none",R()),children:c.jsx("div",{className:"pointer-events-auto",children:$(Z)})})}),C,F&&c.jsx(tf,{paginationProps:g,table:G,horizontalPadding:t,variant:T})]})}function Hb({width:e,children:n}){return c.jsx("div",{className:"truncate",style:{width:e},title:n,children:n})}function tf({table:e,horizontalPadding:n="medium",paginationProps:t,variant:r="table"}){const o=r==="list"?"bg-background-secondary rounded-none mt-4 border-none":"";return c.jsx(U0,{...t,horizontalPadding:n,className:N(t==null?void 0:t.className,o),pageSize:e.getState().pagination.pageSize,pageCount:e.getPageCount(),pageIndex:e.getState().pagination.pageIndex,canPreviousPage:e.getCanPreviousPage(),canNextPage:e.getCanNextPage(),selectedCount:e.getFilteredSelectedRowModel().rows.length,totalCount:e.getFilteredRowModel().rows.length,previousPage:e.previousPage,nextPage:e.nextPage,setPageSize:e.setPageSize,setPageIndex:e.setPageIndex})}const Ka=e=>e?un(typeof e=="string"?new Date(e):e,"dd.MM.yyyy"):"",io=e=>{const n=e.replace(/\D/g,"");return n.length<=2?n:n.length<=4?`${n.slice(0,2)}.${n.slice(2)}`:`${n.slice(0,2)}.${n.slice(2,4)}.${n.slice(4,8)}`},Ab=e=>{const n=", ",t=e.split(",").map(i=>i.trim()),r=t.map(i=>io(i)),o=e.replace(/\D/g,"").length;if(t.length===1){const i=r[0];return i.length===10&&o>8?i+n:i}const a=r[r.length-1],s=t[t.length-1].replace(/\D/g,"").length;return a.length===10&&s>8?r.join(n)+n:a===""&&t[t.length-1].trim()===""?(r.pop(),r.join(n)+n):r.join(n)},Fb=e=>{const n=" — ",t=e.split(n);if(t.length===1){const a=io(e);return a.length===10&&e.replace(/\D/g,"").length>8?a+n:a}const r=io(t[0].trim()),o=io(t.slice(1).join("").trim());return o?r+n+o:r+n},lo=e=>{if(!e||e.trim()==="")return null;const n=e.trim();if(!/^(\d{2})\.(\d{2})\.(\d{4})$/.test(n))return null;const r=Bh(n,"dd.MM.yyyy",new Date,{locale:ai});return ou(r)?r:null},$b=e=>{if(!e||e.trim()==="")return[];const n=e.split(",").map(r=>r.trim()),t=[];for(const r of n){const o=lo(r);o&&t.push(o)}return t},zb=e=>{if(!e||e.trim()==="")return null;const t=e.split(" — ");if(t.length===1){const r=lo(t[0].trim());return r?{from:r,to:void 0}:null}if(t.length===2){const r=lo(t[0].trim()),o=lo(t[1].trim());return r?{from:r,to:o||void 0}:null}return null},jl=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19 4H18V2H16V4H8V2H6V4H5C3.89 4 3.01 4.9 3.01 6L3 20C3 21.1 3.89 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM19 20H5V10H19V20ZM19 8H5V6H19V8ZM9 14H7V12H9V14ZM13 14H11V12H13V14ZM17 14H15V12H17V14ZM9 18H7V16H9V18ZM13 18H11V16H13V18ZM17 18H15V16H17V18Z"})),nf=e=>l.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.96409 5.50008C9.54988 5.50183 9.21268 5.16746 9.21093 4.75325C9.20918 4.33904 9.54354 4.00184 9.95775 4.00009C12.004 3.99576 14.1048 4.55116 15.8761 5.57766C17.5665 6.55736 19 8.06774 19 10C19 11.003 18.6069 11.9011 18.0013 12.6586C17.7427 12.9821 17.2707 13.0347 16.9472 12.7761C16.6237 12.5174 16.5711 12.0454 16.8298 11.7219C17.2721 11.1686 17.5 10.5911 17.5 10C17.5 8.86976 16.6418 7.75514 15.1239 6.87546C13.5824 5.9821 11.7449 5.49632 9.96409 5.50008Z",fill:"#99A2AD"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.12393 14.4223C5.84342 15.4189 8.03582 16 10 16C11.6051 16 13.3554 15.6123 14.8731 14.9338L15.7197 15.7803C16.0126 16.0732 16.4874 16.0732 16.7803 15.7803C17.0732 15.4874 17.0732 15.0126 16.7803 14.7197L5.28033 3.21967C4.98744 2.92678 4.51256 2.92678 4.21967 3.21967C3.92678 3.51256 3.92678 3.98744 4.21967 4.28033L5.04335 5.10401C4.06903 5.54898 3.17342 6.1239 2.4732 6.81589C1.60643 7.67246 1 8.75167 1 10C1 11.9323 2.43347 13.4426 4.12393 14.4223ZM8.5 10C8.5 10.8284 9.17157 11.5 10 11.5C10.3988 11.5 10.7612 11.3444 11.0299 11.0906L8.90944 8.9701C8.65562 9.23878 8.5 9.60122 8.5 10ZM7 10C7 11.6569 8.34315 13 10 13C10.813 13 11.5505 12.6766 12.0908 12.1514L13.7252 13.7859C12.5236 14.2443 11.2017 14.5 10 14.5C8.29751 14.5 6.36491 13.9874 4.87607 13.1245C3.3582 12.2449 2.5 11.1302 2.5 10C2.5 9.26893 2.85091 8.5515 3.52757 7.8828C4.18791 7.23023 5.121 6.66551 6.18727 6.24793L7.84857 7.90923C7.3234 8.44953 7 9.187 7 10Z",fill:"#99A2AD"})),Yl=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M6.50006 1C9.53765 1 12.0001 3.46256 12.0001 6.50029C12.0001 7.74868 11.5842 8.89993 10.8835 9.82304L14.7791 13.7233C15.0718 14.0164 15.0715 14.4913 14.7785 14.784C14.4854 15.0767 14.0105 15.0764 13.7178 14.7834L9.82266 10.8839C8.89959 11.5847 7.74839 12.0006 6.50006 12.0006C3.46246 12.0006 1 9.53802 1 6.50029C1 3.46256 3.46246 1 6.50006 1ZM6.50006 2.5C4.2909 2.5 2.5 4.29098 2.5 6.50029C2.5 8.70961 4.2909 10.5006 6.50006 10.5006C8.70921 10.5006 10.5001 8.70961 10.5001 6.50029C10.5001 4.29098 8.70921 2.5 6.50006 2.5Z",fill:"currentColor"})),rf=e=>l.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"view_outline_20"},l.createElement("g",{id:"â³ Icon Color"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 10C13 11.6569 11.6569 13 10 13C8.34315 13 7 11.6569 7 10C7 8.34315 8.34315 7 10 7C11.6569 7 13 8.34315 13 10ZM11.5 10C11.5 10.8284 10.8284 11.5 10 11.5C9.17157 11.5 8.5 10.8284 8.5 10C8.5 9.17157 9.17157 8.5 10 8.5C10.8284 8.5 11.5 9.17157 11.5 10Z",fill:"#99A2AD"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 10C19 13.5 14 16 10 16C6 16 1 13.5 1 10C1 6.5 6 4 10 4C14 4 19 6.5 19 10ZM17.5 10C17.5 10.9827 16.7806 12.0838 15.2215 13.0303C13.7054 13.9508 11.7245 14.5 10 14.5C8.27549 14.5 6.29462 13.9508 4.77847 13.0303C3.21944 12.0838 2.5 10.9827 2.5 10C2.5 9.01731 3.21944 7.91623 4.77847 6.96968C6.29462 6.04916 8.27549 5.5 10 5.5C11.7245 5.5 13.7054 6.04916 15.2215 6.96968C16.7806 7.91623 17.5 9.01731 17.5 10Z",fill:"#99A2AD"})))),tn=l.forwardRef(({className:e,type:n,error:t,asSearch:r,rightIcon:o,withCount:a,onEnter:s,value:i="",...u},d)=>{const[f,h]=l.useState(!1),[g,m]=l.useState(i.toString().length),C=r||n==="password"||o||a,p=w=>{var y;m(w.target.value.length),(y=u.onChange)==null||y.call(u,w)},v=c.jsxs(c.Fragment,{children:[c.jsx("input",{type:f?"text":n,className:N("flex h-9 w-full rounded-lg border border-line-primary bg-[transparent] blur-none pl-3 py-2 text-sm tracking-[0.1px] leading-5 transition-colors duration-300 ease-in-out ring-offset-background file:border-0 file:bg-[transparent] file:text-sm font-normal placeholder:text-foreground-secondary focus-visible:outline-none focus-visible:border-line-focused disabled:cursor-not-allowed disabled:opacity-50 truncate line-clamp-1",t?"border-line-error focus-visible:border-line-error":"",!C&&e,o||a||n==="password"?"pr-8":"pr-3",u.readOnly&&"cursor-not-allowed pointer-events-none opacity-95"),ref:d,placeholder:r?u.placeholder||"Search":u.placeholder,onKeyDown:w=>{w.key==="Enter"&&(w.preventDefault(),s==null||s(w.target.value))},value:i,...u,onChange:p}),o&&c.jsx("span",{className:"absolute right-1.5 top-1/2 -translate-y-1/2",children:o}),a&&c.jsx("span",{className:`absolute right-1.5 top-1/2 -translate-y-1/2
|
|
132
|
+
text-foreground-tertiary text-xs`,children:g}),r&&c.jsx(Yl,{className:"absolute top-[10px] right-3 text-icon-fade-contrast"}),n==="password"&&c.jsx("span",{className:"absolute bottom-2 right-2 cursor-pointer",onClick:()=>h(!f),children:f?c.jsx(nf,{}):c.jsx(rf,{})})]});return C?c.jsx("span",{className:N("relative transition-colors",C&&e),children:v}):v});tn.displayName="Input";var Bb="Portal",of=l.forwardRef((e,n)=>{var i;const{container:t,...r}=e,[o,a]=l.useState(!1);He(()=>a(!0),[]);const s=t||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Yt.createPortal(c.jsx(oe.div,{...r,ref:n}),s):null});of.displayName=Bb;function Zb(e){const n=Wb(e),t=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),u=i.find(Gb);if(u){const d=u.props.children,f=i.map(h=>h===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:h);return c.jsx(n,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return c.jsx(n,{...s,ref:o,children:a})});return t.displayName=`${e}.Slot`,t}function Wb(e){const n=l.forwardRef((t,r)=>{const{children:o,...a}=t;if(l.isValidElement(o)){const s=Yb(o),i=jb(a,o.props);return o.type!==l.Fragment&&(i.ref=r?st(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var Rb=Symbol("radix.slottable");function Gb(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Rb}function jb(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(t[r]=o):r==="style"?t[r]={...o,...a}:r==="className"&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function Yb(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Xa="Popover",[af]=nt(Xa,[gn]),co=gn(),[Ub,xn]=af(Xa),sf=e=>{const{__scopePopover:n,children:t,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=co(n),u=l.useRef(null),[d,f]=l.useState(!1),[h,g]=ht({prop:r,defaultProp:o??!1,onChange:a,caller:Xa});return c.jsx(jr,{...i,children:c.jsx(Ub,{scope:n,contentId:qe(),triggerRef:u,open:h,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(m=>!m),[g]),hasCustomAnchor:d,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:s,children:t})})};sf.displayName=Xa;var lf="PopoverAnchor",cf=l.forwardRef((e,n)=>{const{__scopePopover:t,...r}=e,o=xn(lf,t),a=co(t),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),c.jsx(Yr,{...a,...r,ref:n})});cf.displayName=lf;var uf="PopoverTrigger",df=l.forwardRef((e,n)=>{const{__scopePopover:t,...r}=e,o=xn(uf,t),a=co(t),s=he(n,o.triggerRef),i=c.jsx(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":vf(o.open),...r,ref:s,onClick:ne(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:c.jsx(Yr,{asChild:!0,...a,children:i})});df.displayName=uf;var Ul="PopoverPortal",[qb,Kb]=af(Ul,{forceMount:void 0}),ff=e=>{const{__scopePopover:n,forceMount:t,children:r,container:o}=e,a=xn(Ul,n);return c.jsx(qb,{scope:n,forceMount:t,children:c.jsx(Ke,{present:t||a.open,children:c.jsx(of,{asChild:!0,container:o,children:r})})})};ff.displayName=Ul;var yr="PopoverContent",hf=l.forwardRef((e,n)=>{const t=Kb(yr,e.__scopePopover),{forceMount:r=t.forceMount,...o}=e,a=xn(yr,e.__scopePopover);return c.jsx(Ke,{present:r||a.open,children:a.modal?c.jsx(Qb,{...o,ref:n}):c.jsx(Jb,{...o,ref:n})})});hf.displayName=yr;var Xb=Zb("PopoverContent.RemoveScroll"),Qb=l.forwardRef((e,n)=>{const t=xn(yr,e.__scopePopover),r=l.useRef(null),o=he(n,r),a=l.useRef(!1);return l.useEffect(()=>{const s=r.current;if(s)return ha(s)},[]),c.jsx(Ur,{as:Xb,allowPinchZoom:!0,children:c.jsx(gf,{...e,ref:o,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ne(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=t.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ne(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0,d=i.button===2||u;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:ne(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Jb=l.forwardRef((e,n)=>{const t=xn(yr,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return c.jsx(gf,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=t.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var u,d;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=t.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),gf=l.forwardRef((e,n)=>{const{__scopePopover:t,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,...h}=e,g=xn(yr,t),m=co(t);return qo(),c.jsx(Wr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:c.jsx(kn,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:c.jsx(ia,{"data-state":vf(g.open),role:"dialog",id:g.contentId,...m,...h,ref:n,style:{...h.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)"}})})})}),pf="PopoverClose",mf=l.forwardRef((e,n)=>{const{__scopePopover:t,...r}=e,o=xn(pf,t);return c.jsx(oe.button,{type:"button",...r,ref:n,onClick:ne(e.onClick,()=>o.onOpenChange(!1))})});mf.displayName=pf;var ex="PopoverArrow",tx=l.forwardRef((e,n)=>{const{__scopePopover:t,...r}=e,o=co(t);return c.jsx(la,{...o,...r,ref:n})});tx.displayName=ex;function vf(e){return e?"open":"closed"}var nx=sf,Cf=cf,rx=df,ox=ff,wf=hf,ax=mf;const zn=nx,Bn=rx,sx=ax,yf=Cf;yf.displayName=Cf.displayName;const Sn=l.forwardRef(({className:e,align:n="center",sideOffset:t=4,...r},o)=>c.jsx(ox,{children:c.jsx(wf,{ref:o,align:n,sideOffset:t,className:N("z-50 w-72 rounded-md 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",e),...r})}));Sn.displayName=wf.displayName;function bf({className:e,locale:n,iconClassName:t,...r}){const o={...r,value:r.value??void 0},{t:a}=rt(),s=l.useRef(null),[i,u]=l.useState(""),[d,f]=l.useState(!1),[h,g]=l.useState(!1),m="placeholder"in o?o.placeholder:void 0,C="innerLabel"in o?o.innerLabel:void 0,p=()=>n||((navigator.language||navigator.languages[0]).includes("ru")?ai:Fr),v=(P,z)=>P.getFullYear()===z.getFullYear()&&P.getMonth()===z.getMonth()&&P.getDate()===z.getDate(),w=()=>{const P=o.selected||o.value;if(P instanceof Date)return P;if(typeof P=="string"&&P)return new Date(P)},y=l.useCallback(()=>{var P;switch(o.mode){case"single":return o.value?Ka(o.value):"";case"multiple":return(P=o.value)!=null&&P.length?o.value.map(Ka).join(", "):"";case"range":{const z=o.selected||o.value;if(!(z!=null&&z.from))return"";const q=z!=null&&z.to?" — "+Ka(z.to):"";return Ka(z.from)+q}default:return""}},[o.mode,o.value,o.selected]),b=()=>{switch(o.mode){case"single":return"__.__.__";case"multiple":return"__.__.__, __.__.__";case"range":return"__.__.__ — __.__.__";default:return"__.__.__"}},S=()=>{var P;switch(o.mode){case"single":return!!o.value;case"multiple":return!!((P=o.value)!=null&&P.length&&o.value.length>0);case"range":{const z=o.selected||o.value;return!!(z!=null&&z.from)}}},M=()=>{if(o.readOnly)return;f(!0),g(!0);const P=y();P?u(P):(u(b()),setTimeout(()=>{s.current&&s.current.select()},0))},L=P=>{if(o.readOnly)return;const z=P.target.value;if(z===b()){u("");return}let q="";switch(o.mode){case"single":q=io(z);break;case"multiple":q=Ab(z);break;case"range":q=Fb(z);break}u(q)},E=()=>{if(!o.onChange||i.trim()===""||i===b()){u(y());return}const P=y();if(i===P)return;const z={};switch(o.mode){case"single":{const q=lo(i);if(q){const K=w();if(K&&v(K,q)){u(y());break}const Z=o.onChange;Z(q,q,{},z)}else u("");break}case"multiple":{const q=$b(i);if(q.length>0){const K=o.onChange;K(q,new Date,{},z)}else u("");break}case"range":{const q=zb(i);if(q&&q.from){const K=o.onChange,Z={from:q.from,to:q.to};K(Z,q.from,{},z)}else u("");break}}},I=()=>{h||(f(!1),E())},k=P=>{if(P.stopPropagation(),!o.readOnly){if(u(""),f(!1),o.onRemoveClick){o.onRemoveClick();return}if(o.onChange)switch(o.mode){case"single":{const z=o.onChange;z(void 0,new Date,{},P);break}case"multiple":{const z=o.onChange;z([],new Date,{},P);break}case"range":{const z=o.onChange;z({from:void 0,to:void 0},new Date,{},P);break}}}},O=P=>(z,q,K,Z)=>{if(!P)return;const H=o.selected||o.value;if(z===void 0&&H&&q&&H instanceof Date){const _=new Date(H.getFullYear(),H.getMonth(),H.getDate()),B=new Date(q.getFullYear(),q.getMonth(),q.getDate());if(_.getTime()===B.getTime())return}P(z,q,K,Z)},A=P=>(z,q,K,Z)=>{if(!P||!q)return;const H=o.selected||o.value;if(H&&typeof H=="object"&&"from"in H){const _=H;if(!_.from)P({from:q,to:void 0},q,K,Z);else if(_.to)P({from:q,to:void 0},q,K,Z);else{const B=q<_.from?{from:q,to:_.from}:{from:_.from,to:q};P(B,q,K,Z)}}else P({from:q,to:void 0},q,K,Z)},V={...o,selected:o.selected||o.value,onSelect:o.onSelect||(o.mode==="single"?O(o.onChange):o.mode==="range"?A(o.onChange):o.onChange)},Y=P=>{g(P),!P&&d&&(f(!1),E())};l.useEffect(()=>{const P=y();d?h&&P&&u(P):u(P)},[o.value,o.selected,o.mode,d,h,y]);const $=d?i:S()?y():"",U=b(),T=m||a("selectDate"),W=!S()&&!d?C?"":T:"";return c.jsxs(zn,{open:h,onOpenChange:Y,children:[c.jsx(Bn,{asChild:!0,children:c.jsxs(Ze,{variant:"fade-contrast-outlined",size:"sm",className:N("justify-start text-left font-normal px-3 text-sm focus-visible:outline-none focus-visible:border-line-focused data-[state=open]:border-line-focused w-full",!S()&&!d&&"text-foreground-secondary",o.error?"border-line-error focus-visible:border-line-error":"",e,o.readOnly&&"cursor-not-allowed pointer-events-none opacity-95"),onClick:()=>{var P;o.readOnly||(g(!0),(P=s.current)==null||P.focus())},children:[c.jsxs("div",{className:"flex items-center flex-shrink-0",onClick:P=>{var z;P.stopPropagation(),o.readOnly||(g(!0),(z=s.current)==null||z.focus())},children:[C&&c.jsxs("span",{className:"text-foreground-secondary font-normal mr-1 whitespace-nowrap",children:[C,":"]}),c.jsxs("div",{className:"inline-grid [grid-template-areas:'stack'] items-center min-w-[20px] w-fit",children:[(d||S())&&c.jsx("span",{"aria-hidden":"true",className:"[grid-area:stack] invisible whitespace-pre px-0 py-0 text-sm font-normal tracking-[0.1px] leading-5 pointer-events-none",children:U}),!C&&T&&c.jsx("span",{"aria-hidden":"true",className:"[grid-area:stack] invisible whitespace-pre px-0 py-0 text-sm font-normal tracking-[0.1px] leading-5 pointer-events-none",children:T}),c.jsx("span",{"aria-hidden":"true",className:"[grid-area:stack] invisible whitespace-pre px-0 py-0 text-sm font-normal tracking-[0.1px] leading-5 pointer-events-none",children:$||" "}),c.jsx(tn,{ref:s,type:"text",value:$,onChange:L,onFocus:M,onBlur:I,placeholder:W,className:"[grid-area:stack] w-[0px] min-w-full h-auto border-none !p-0 !bg-transparent",readOnly:o.readOnly})]})]}),(o.showReset||o.onRemoveClick)&&S()?c.jsx("div",{className:N("flex items-center justify-center w-6 h-6 shrink-0 cursor-pointer ml-auto",o.readOnly&&"cursor-not-allowed opacity-50"),onClick:k,children:c.jsx(La,{className:"w-6 h-6 text-icon-fade-contrast"})}):c.jsx(jl,{className:N("ml-auto text-foreground-secondary",t)})]})}),c.jsx(Sn,{className:"w-auto p-0 rounded-lg",children:c.jsx(Ta,{className:"bg-background rounded-lg",locale:p(),...V,initialFocus:!0})})]})}var ix="Portal",xf=l.forwardRef((e,n)=>{var i;const{container:t,...r}=e,[o,a]=l.useState(!1);He(()=>a(!0),[]);const s=t||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Yt.createPortal(c.jsx(oe.div,{...r,ref:n}),s):null});xf.displayName=ix;var ql="rovingFocusGroup.onEntryFocus",lx={bubbles:!1,cancelable:!0},uo="RovingFocusGroup",[Kl,Sf,cx]=Uo(uo),[ux,br]=nt(uo,[cx]),[dx,fx]=ux(uo),Ef=l.forwardRef((e,n)=>c.jsx(Kl.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Kl.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(hx,{...e,ref:n})})}));Ef.displayName=uo;var hx=l.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:t,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...h}=e,g=l.useRef(null),m=he(n,g),C=ar(a),[p,v]=ht({prop:s,defaultProp:i??null,onChange:u,caller:uo}),[w,y]=l.useState(!1),b=Re(d),S=Sf(t),M=l.useRef(!1),[L,E]=l.useState(0);return l.useEffect(()=>{const I=g.current;if(I)return I.addEventListener(ql,b),()=>I.removeEventListener(ql,b)},[b]),c.jsx(dx,{scope:t,orientation:r,dir:C,loop:o,currentTabStopId:p,onItemFocus:l.useCallback(I=>v(I),[v]),onItemShiftTab:l.useCallback(()=>y(!0),[]),onFocusableItemAdd:l.useCallback(()=>E(I=>I+1),[]),onFocusableItemRemove:l.useCallback(()=>E(I=>I-1),[]),children:c.jsx(oe.div,{tabIndex:w||L===0?-1:0,"data-orientation":r,...h,ref:m,style:{outline:"none",...e.style},onMouseDown:ne(e.onMouseDown,()=>{M.current=!0}),onFocus:ne(e.onFocus,I=>{const k=!M.current;if(I.target===I.currentTarget&&k&&!w){const O=new CustomEvent(ql,lx);if(I.currentTarget.dispatchEvent(O),!O.defaultPrevented){const A=S().filter(T=>T.focusable),V=A.find(T=>T.active),Y=A.find(T=>T.id===p),U=[V,Y,...A].filter(Boolean).map(T=>T.ref.current);Nf(U,f)}}M.current=!1}),onBlur:ne(e.onBlur,()=>y(!1))})})}),Mf="RovingFocusGroupItem",Lf=l.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:t,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,u=qe(),d=a||u,f=fx(Mf,t),h=f.currentTabStopId===d,g=Sf(t),{onFocusableItemAdd:m,onFocusableItemRemove:C,currentTabStopId:p}=f;return l.useEffect(()=>{if(r)return m(),()=>C()},[r,m,C]),c.jsx(Kl.ItemSlot,{scope:t,id:d,focusable:r,active:o,children:c.jsx(oe.span,{tabIndex:h?0:-1,"data-orientation":f.orientation,...i,ref:n,onMouseDown:ne(e.onMouseDown,v=>{r?f.onItemFocus(d):v.preventDefault()}),onFocus:ne(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:ne(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const w=mx(v,f.orientation,f.dir);if(w!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let b=g().filter(S=>S.focusable).map(S=>S.ref.current);if(w==="last")b.reverse();else if(w==="prev"||w==="next"){w==="prev"&&b.reverse();const S=b.indexOf(v.currentTarget);b=f.loop?vx(b,S+1):b.slice(S+1)}setTimeout(()=>Nf(b))}}),children:typeof s=="function"?s({isCurrentTabStop:h,hasTabStop:p!=null}):s})})});Lf.displayName=Mf;var gx={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function px(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function mx(e,n,t){const r=px(e.key,t);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return gx[r]}function Nf(e,n=!1){const t=document.activeElement;for(const r of e)if(r===t||(r.focus({preventScroll:n}),document.activeElement!==t))return}function vx(e,n){return e.map((t,r)=>e[(n+r)%e.length])}var Xl=Ef,Ql=Lf;function Cx(e){const n=wx(e),t=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),u=i.find(bx);if(u){const d=u.props.children,f=i.map(h=>h===u?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:h);return c.jsx(n,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return c.jsx(n,{...s,ref:o,children:a})});return t.displayName=`${e}.Slot`,t}function wx(e){const n=l.forwardRef((t,r)=>{const{children:o,...a}=t;if(l.isValidElement(o)){const s=Sx(o),i=xx(a,o.props);return o.type!==l.Fragment&&(i.ref=r?st(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var yx=Symbol("radix.slottable");function bx(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yx}function xx(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(t[r]=o):r==="style"?t[r]={...o,...a}:r==="className"&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function Sx(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Jl=["Enter"," "],Ex=["ArrowDown","PageUp","Home"],Pf=["ArrowUp","PageDown","End"],Mx=[...Ex,...Pf],Lx={ltr:[...Jl,"ArrowRight"],rtl:[...Jl,"ArrowLeft"]},Nx={ltr:["ArrowLeft"],rtl:["ArrowRight"]},fo="Menu",[ho,Px,_x]=Uo(fo),[Zn,_f]=nt(fo,[_x,gn,br]),go=gn(),If=br(),[kf,En]=Zn(fo),[Ix,po]=Zn(fo),Tf=e=>{const{__scopeMenu:n,open:t=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=go(n),[u,d]=l.useState(null),f=l.useRef(!1),h=Re(a),g=ar(o);return l.useEffect(()=>{const m=()=>{f.current=!0,document.addEventListener("pointerdown",C,{capture:!0,once:!0}),document.addEventListener("pointermove",C,{capture:!0,once:!0})},C=()=>f.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",C,{capture:!0}),document.removeEventListener("pointermove",C,{capture:!0})}},[]),c.jsx(jr,{...i,children:c.jsx(kf,{scope:n,open:t,onOpenChange:h,content:u,onContentChange:d,children:c.jsx(Ix,{scope:n,onClose:l.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:f,dir:g,modal:s,children:r})})})};Tf.displayName=fo;var kx="MenuAnchor",e1=l.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,o=go(t);return c.jsx(Yr,{...o,...r,ref:n})});e1.displayName=kx;var t1="MenuPortal",[Tx,Df]=Zn(t1,{forceMount:void 0}),Of=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:o}=e,a=En(t1,n);return c.jsx(Tx,{scope:n,forceMount:t,children:c.jsx(Ke,{present:t||a.open,children:c.jsx(xf,{asChild:!0,container:o,children:r})})})};Of.displayName=t1;var yt="MenuContent",[Dx,n1]=Zn(yt),Vf=l.forwardRef((e,n)=>{const t=Df(yt,e.__scopeMenu),{forceMount:r=t.forceMount,...o}=e,a=En(yt,e.__scopeMenu),s=po(yt,e.__scopeMenu);return c.jsx(ho.Provider,{scope:e.__scopeMenu,children:c.jsx(Ke,{present:r||a.open,children:c.jsx(ho.Slot,{scope:e.__scopeMenu,children:s.modal?c.jsx(Ox,{...o,ref:n}):c.jsx(Vx,{...o,ref:n})})})})}),Ox=l.forwardRef((e,n)=>{const t=En(yt,e.__scopeMenu),r=l.useRef(null),o=he(n,r);return l.useEffect(()=>{const a=r.current;if(a)return ha(a)},[]),c.jsx(r1,{...e,ref:o,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:ne(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),Vx=l.forwardRef((e,n)=>{const t=En(yt,e.__scopeMenu);return c.jsx(r1,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),Hx=Cx("MenuContent.ScrollLock"),r1=l.forwardRef((e,n)=>{const{__scopeMenu:t,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:h,onInteractOutside:g,onDismiss:m,disableOutsideScroll:C,...p}=e,v=En(yt,t),w=po(yt,t),y=go(t),b=If(t),S=Px(t),[M,L]=l.useState(null),E=l.useRef(null),I=he(n,E,v.onContentChange),k=l.useRef(0),O=l.useRef(""),A=l.useRef(0),V=l.useRef(null),Y=l.useRef("right"),$=l.useRef(0),U=C?Ur:l.Fragment,T=C?{as:Hx,allowPinchZoom:!0}:void 0,W=z=>{var F,R;const q=O.current+z,K=S().filter(Q=>!Q.disabled),Z=document.activeElement,H=(F=K.find(Q=>Q.ref.current===Z))==null?void 0:F.textValue,_=K.map(Q=>Q.textValue),B=Ux(_,q,H),G=(R=K.find(Q=>Q.textValue===B))==null?void 0:R.ref.current;(function Q(re){O.current=re,window.clearTimeout(k.current),re!==""&&(k.current=window.setTimeout(()=>Q(""),1e3))})(q),G&&setTimeout(()=>G.focus())};l.useEffect(()=>()=>window.clearTimeout(k.current),[]),qo();const P=l.useCallback(z=>{var K,Z;return Y.current===((K=V.current)==null?void 0:K.side)&&Kx(z,(Z=V.current)==null?void 0:Z.area)},[]);return c.jsx(Dx,{scope:t,searchRef:O,onItemEnter:l.useCallback(z=>{P(z)&&z.preventDefault()},[P]),onItemLeave:l.useCallback(z=>{var q;P(z)||((q=E.current)==null||q.focus(),L(null))},[P]),onTriggerLeave:l.useCallback(z=>{P(z)&&z.preventDefault()},[P]),pointerGraceTimerRef:A,onPointerGraceIntentChange:l.useCallback(z=>{V.current=z},[]),children:c.jsx(U,{...T,children:c.jsx(Wr,{asChild:!0,trapped:o,onMountAutoFocus:ne(a,z=>{var q;z.preventDefault(),(q=E.current)==null||q.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:c.jsx(kn,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:h,onInteractOutside:g,onDismiss:m,children:c.jsx(Xl,{asChild:!0,...b,dir:w.dir,orientation:"vertical",loop:r,currentTabStopId:M,onCurrentTabStopIdChange:L,onEntryFocus:ne(u,z=>{w.isUsingKeyboardRef.current||z.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(ia,{role:"menu","aria-orientation":"vertical","data-state":Jf(v.open),"data-radix-menu-content":"",dir:w.dir,...y,...p,ref:I,style:{outline:"none",...p.style},onKeyDown:ne(p.onKeyDown,z=>{const K=z.target.closest("[data-radix-menu-content]")===z.currentTarget,Z=z.ctrlKey||z.altKey||z.metaKey,H=z.key.length===1;K&&(z.key==="Tab"&&z.preventDefault(),!Z&&H&&W(z.key));const _=E.current;if(z.target!==_||!Mx.includes(z.key))return;z.preventDefault();const G=S().filter(F=>!F.disabled).map(F=>F.ref.current);Pf.includes(z.key)&&G.reverse(),jx(G)}),onBlur:ne(e.onBlur,z=>{z.currentTarget.contains(z.target)||(window.clearTimeout(k.current),O.current="")}),onPointerMove:ne(e.onPointerMove,vo(z=>{const q=z.target,K=$.current!==z.clientX;if(z.currentTarget.contains(q)&&K){const Z=z.clientX>$.current?"right":"left";Y.current=Z,$.current=z.clientX}}))})})})})})})});Vf.displayName=yt;var Ax="MenuGroup",o1=l.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return c.jsx(oe.div,{role:"group",...r,ref:n})});o1.displayName=Ax;var Fx="MenuLabel",Hf=l.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return c.jsx(oe.div,{...r,ref:n})});Hf.displayName=Fx;var Qa="MenuItem",Af="menu.itemSelect",Ja=l.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:r,...o}=e,a=l.useRef(null),s=po(Qa,e.__scopeMenu),i=n1(Qa,e.__scopeMenu),u=he(n,a),d=l.useRef(!1),f=()=>{const h=a.current;if(!t&&h){const g=new CustomEvent(Af,{bubbles:!0,cancelable:!0});h.addEventListener(Af,m=>r==null?void 0:r(m),{once:!0}),Ci(h,g),g.defaultPrevented?d.current=!1:s.onClose()}};return c.jsx(Ff,{...o,ref:u,disabled:t,onClick:ne(e.onClick,f),onPointerDown:h=>{var g;(g=e.onPointerDown)==null||g.call(e,h),d.current=!0},onPointerUp:ne(e.onPointerUp,h=>{var g;d.current||(g=h.currentTarget)==null||g.click()}),onKeyDown:ne(e.onKeyDown,h=>{const g=i.searchRef.current!=="";t||g&&h.key===" "||Jl.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});Ja.displayName=Qa;var Ff=l.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:r=!1,textValue:o,...a}=e,s=n1(Qa,t),i=If(t),u=l.useRef(null),d=he(n,u),[f,h]=l.useState(!1),[g,m]=l.useState("");return l.useEffect(()=>{const C=u.current;C&&m((C.textContent??"").trim())},[a.children]),c.jsx(ho.ItemSlot,{scope:t,disabled:r,textValue:o??g,children:c.jsx(Ql,{asChild:!0,...i,focusable:!r,children:c.jsx(oe.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:d,onPointerMove:ne(e.onPointerMove,vo(C=>{r?s.onItemLeave(C):(s.onItemEnter(C),C.defaultPrevented||C.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ne(e.onPointerLeave,vo(C=>s.onItemLeave(C))),onFocus:ne(e.onFocus,()=>h(!0)),onBlur:ne(e.onBlur,()=>h(!1))})})})}),$x="MenuCheckboxItem",$f=l.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:r,...o}=e;return c.jsx(Rf,{scope:e.__scopeMenu,checked:t,children:c.jsx(Ja,{role:"menuitemcheckbox","aria-checked":es(t)?"mixed":t,...o,ref:n,"data-state":i1(t),onSelect:ne(o.onSelect,()=>r==null?void 0:r(es(t)?!0:!t),{checkForDefaultPrevented:!1})})})});$f.displayName=$x;var zf="MenuRadioGroup",[zx,Bx]=Zn(zf,{value:void 0,onValueChange:()=>{}}),Bf=l.forwardRef((e,n)=>{const{value:t,onValueChange:r,...o}=e,a=Re(r);return c.jsx(zx,{scope:e.__scopeMenu,value:t,onValueChange:a,children:c.jsx(o1,{...o,ref:n})})});Bf.displayName=zf;var Zf="MenuRadioItem",Wf=l.forwardRef((e,n)=>{const{value:t,...r}=e,o=Bx(Zf,e.__scopeMenu),a=t===o.value;return c.jsx(Rf,{scope:e.__scopeMenu,checked:a,children:c.jsx(Ja,{role:"menuitemradio","aria-checked":a,...r,ref:n,"data-state":i1(a),onSelect:ne(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,t)},{checkForDefaultPrevented:!1})})})});Wf.displayName=Zf;var a1="MenuItemIndicator",[Rf,Zx]=Zn(a1,{checked:!1}),Gf=l.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:r,...o}=e,a=Zx(a1,t);return c.jsx(Ke,{present:r||es(a.checked)||a.checked===!0,children:c.jsx(oe.span,{...o,ref:n,"data-state":i1(a.checked)})})});Gf.displayName=a1;var Wx="MenuSeparator",jf=l.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return c.jsx(oe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:n})});jf.displayName=Wx;var Rx="MenuArrow",Yf=l.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,o=go(t);return c.jsx(la,{...o,...r,ref:n})});Yf.displayName=Rx;var s1="MenuSub",[Gx,Uf]=Zn(s1),qf=e=>{const{__scopeMenu:n,children:t,open:r=!1,onOpenChange:o}=e,a=En(s1,n),s=go(n),[i,u]=l.useState(null),[d,f]=l.useState(null),h=Re(o);return l.useEffect(()=>(a.open===!1&&h(!1),()=>h(!1)),[a.open,h]),c.jsx(jr,{...s,children:c.jsx(kf,{scope:n,open:r,onOpenChange:h,content:d,onContentChange:f,children:c.jsx(Gx,{scope:n,contentId:qe(),triggerId:qe(),trigger:i,onTriggerChange:u,children:t})})})};qf.displayName=s1;var mo="MenuSubTrigger",Kf=l.forwardRef((e,n)=>{const t=En(mo,e.__scopeMenu),r=po(mo,e.__scopeMenu),o=Uf(mo,e.__scopeMenu),a=n1(mo,e.__scopeMenu),s=l.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:u}=a,d={__scopeMenu:e.__scopeMenu},f=l.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return l.useEffect(()=>f,[f]),l.useEffect(()=>{const h=i.current;return()=>{window.clearTimeout(h),u(null)}},[i,u]),c.jsx(e1,{asChild:!0,...d,children:c.jsx(Ff,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":o.contentId,"data-state":Jf(t.open),...e,ref:st(n,o.onTriggerChange),onClick:h=>{var g;(g=e.onClick)==null||g.call(e,h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:ne(e.onPointerMove,vo(h=>{a.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!t.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{t.onOpenChange(!0),f()},100))})),onPointerLeave:ne(e.onPointerLeave,vo(h=>{var m,C;f();const g=(m=t.content)==null?void 0:m.getBoundingClientRect();if(g){const p=(C=t.content)==null?void 0:C.dataset.side,v=p==="right",w=v?-5:5,y=g[v?"left":"right"],b=g[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:h.clientX+w,y:h.clientY},{x:y,y:g.top},{x:b,y:g.top},{x:b,y:g.bottom},{x:y,y:g.bottom}],side:p}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(h),h.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:ne(e.onKeyDown,h=>{var m;const g=a.searchRef.current!=="";e.disabled||g&&h.key===" "||Lx[r.dir].includes(h.key)&&(t.onOpenChange(!0),(m=t.content)==null||m.focus(),h.preventDefault())})})})});Kf.displayName=mo;var Xf="MenuSubContent",Qf=l.forwardRef((e,n)=>{const t=Df(yt,e.__scopeMenu),{forceMount:r=t.forceMount,...o}=e,a=En(yt,e.__scopeMenu),s=po(yt,e.__scopeMenu),i=Uf(Xf,e.__scopeMenu),u=l.useRef(null),d=he(n,u);return c.jsx(ho.Provider,{scope:e.__scopeMenu,children:c.jsx(Ke,{present:r||a.open,children:c.jsx(ho.Slot,{scope:e.__scopeMenu,children:c.jsx(r1,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var h;s.isUsingKeyboardRef.current&&((h=u.current)==null||h.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:ne(e.onFocusOutside,f=>{f.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:ne(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:ne(e.onKeyDown,f=>{var m;const h=f.currentTarget.contains(f.target),g=Nx[s.dir].includes(f.key);h&&g&&(a.onOpenChange(!1),(m=i.trigger)==null||m.focus(),f.preventDefault())})})})})})});Qf.displayName=Xf;function Jf(e){return e?"open":"closed"}function es(e){return e==="indeterminate"}function i1(e){return es(e)?"indeterminate":e?"checked":"unchecked"}function jx(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function Yx(e,n){return e.map((t,r)=>e[(n+r)%e.length])}function Ux(e,n,t){const o=n.length>1&&Array.from(n).every(d=>d===n[0])?n[0]:n,a=t?e.indexOf(t):-1;let s=Yx(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==t));const u=s.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return u!==t?u:void 0}function qx(e,n){const{x:t,y:r}=e;let o=!1;for(let a=0,s=n.length-1;a<n.length;s=a++){const i=n[a],u=n[s],d=i.x,f=i.y,h=u.x,g=u.y;f>r!=g>r&&t<(h-d)*(r-f)/(g-f)+d&&(o=!o)}return o}function Kx(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return qx(t,n)}function vo(e){return n=>n.pointerType==="mouse"?e(n):void 0}var Xx=Tf,Qx=e1,Jx=Of,eS=Vf,tS=o1,nS=Hf,rS=Ja,oS=$f,aS=Bf,sS=Wf,iS=Gf,lS=jf,cS=Yf,uS=qf,dS=Kf,fS=Qf,ts="DropdownMenu",[hS]=nt(ts,[_f]),at=_f(),[gS,e5]=hS(ts),t5=e=>{const{__scopeDropdownMenu:n,children:t,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,u=at(n),d=l.useRef(null),[f,h]=ht({prop:o,defaultProp:a??!1,onChange:s,caller:ts});return c.jsx(gS,{scope:n,triggerId:qe(),triggerRef:d,contentId:qe(),open:f,onOpenChange:h,onOpenToggle:l.useCallback(()=>h(g=>!g),[h]),modal:i,children:c.jsx(Xx,{...u,open:f,onOpenChange:h,dir:r,modal:i,children:t})})};t5.displayName=ts;var n5="DropdownMenuTrigger",r5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,disabled:r=!1,...o}=e,a=e5(n5,t),s=at(t);return c.jsx(Qx,{asChild:!0,...s,children:c.jsx(oe.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":r?"":void 0,disabled:r,...o,ref:st(n,a.triggerRef),onPointerDown:ne(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:ne(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});r5.displayName=n5;var pS="DropdownMenuPortal",o5=e=>{const{__scopeDropdownMenu:n,...t}=e,r=at(n);return c.jsx(Jx,{...r,...t})};o5.displayName=pS;var a5="DropdownMenuContent",s5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=e5(a5,t),a=at(t),s=l.useRef(!1);return c.jsx(eS,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:n,onCloseAutoFocus:ne(e.onCloseAutoFocus,i=>{var u;s.current||(u=o.triggerRef.current)==null||u.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:ne(e.onInteractOutside,i=>{const u=i.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,f=u.button===2||d;(!o.modal||f)&&(s.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)"}})});s5.displayName=a5;var mS="DropdownMenuGroup",i5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(tS,{...o,...r,ref:n})});i5.displayName=mS;var vS="DropdownMenuLabel",l5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(nS,{...o,...r,ref:n})});l5.displayName=vS;var CS="DropdownMenuItem",c5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(rS,{...o,...r,ref:n})});c5.displayName=CS;var wS="DropdownMenuCheckboxItem",u5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(oS,{...o,...r,ref:n})});u5.displayName=wS;var yS="DropdownMenuRadioGroup",d5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(aS,{...o,...r,ref:n})});d5.displayName=yS;var bS="DropdownMenuRadioItem",f5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(sS,{...o,...r,ref:n})});f5.displayName=bS;var xS="DropdownMenuItemIndicator",h5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(iS,{...o,...r,ref:n})});h5.displayName=xS;var SS="DropdownMenuSeparator",g5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(lS,{...o,...r,ref:n})});g5.displayName=SS;var ES="DropdownMenuArrow",MS=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(cS,{...o,...r,ref:n})});MS.displayName=ES;var LS=e=>{const{__scopeDropdownMenu:n,children:t,open:r,onOpenChange:o,defaultOpen:a}=e,s=at(n),[i,u]=ht({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return c.jsx(uS,{...s,open:i,onOpenChange:u,children:t})},NS="DropdownMenuSubTrigger",p5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(dS,{...o,...r,ref:n})});p5.displayName=NS;var PS="DropdownMenuSubContent",m5=l.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return c.jsx(fS,{...o,...r,ref:n,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)"}})});m5.displayName=PS;var _S=t5,v5=r5,C5=o5,w5=s5,IS=i5,y5=l5,b5=c5,x5=u5,kS=d5,S5=f5,E5=h5,M5=g5,TS=LS,L5=p5,N5=m5;const l1=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 8C13.1 8 14 7.1 14 6C14 4.9 13.1 4 12 4C10.9 4 10 4.9 10 6C10 7.1 10.9 8 12 8ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM12 16C10.9 16 10 16.9 10 18C10 19.1 10.9 20 12 20C13.1 20 14 19.1 14 18C14 16.9 13.1 16 12 16Z",fill:"currentColor"})),c1=_S,ns=l.forwardRef(({className:e,...n},t)=>c.jsx(v5,{ref:t,className:N("outline-none",e),...n}));ns.displayName=v5.displayName;const DS=IS,OS=C5,VS=TS,HS=kS,P5=l.forwardRef(({className:e,inset:n,children:t,...r},o)=>c.jsxs(L5,{ref:o,className:N("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-background-theme data-[state=open]:bg-background-theme",n&&"pl-8",e),...r,children:[t,c.jsx(M2,{className:"ml-auto h-4 w-4"})]}));P5.displayName=L5.displayName;const _5=l.forwardRef(({className:e,...n},t)=>c.jsx(N5,{ref:t,className:N("z-50 min-w-[8rem] overflow-hidden rounded-md border border-line-primary bg-background p-1 text-foreground 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",e),...n}));_5.displayName=N5.displayName;const rs=l.forwardRef(({className:e,sideOffset:n=4,...t},r)=>c.jsx(C5,{children:c.jsx(w5,{ref:r,sideOffset:n,className:N("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-line-primary bg-background py-1 text-foreground 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",e),...t})}));rs.displayName=w5.displayName;const os=l.forwardRef(({className:e,inset:n,...t},r)=>c.jsx(b5,{ref:r,className:N("relative flex cursor-default select-none items-center gap-2 pl-4 pr-3 py-2 text-sm outline-none transition-colors focus:bg-background-theme-fade focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",e),...t,onClick:o=>{var a;o.stopPropagation(),(a=t.onClick)==null||a.call(t,o)}}));os.displayName=b5.displayName;const I5=l.forwardRef(({className:e,children:n,checked:t,...r},o)=>c.jsxs(x5,{ref:o,className:N("relative flex cursor-default select-none items-center py-2 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",e),checked:t,...r,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(E5,{children:c.jsx(Xi,{className:"h-4 w-4"})})}),n]}));I5.displayName=x5.displayName;const k5=l.forwardRef(({className:e,children:n,...t},r)=>c.jsxs(S5,{ref:r,className:N("relative flex cursor-default select-none items-center py-2 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",e),...t,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(E5,{children:c.jsx(L2,{className:"h-2 w-2 fill-current"})})}),n]}));k5.displayName=S5.displayName;const T5=l.forwardRef(({className:e,inset:n,...t},r)=>c.jsx(y5,{ref:r,className:N("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...t}));T5.displayName=y5.displayName;const D5=l.forwardRef(({className:e,...n},t)=>c.jsx(M5,{ref:t,className:N("-mx-1 my-1 h-px bg-muted",e),...n}));D5.displayName=M5.displayName;const O5=({className:e,...n})=>c.jsx("span",{className:N("ml-auto text-xs tracking-widest opacity-60",e),...n});O5.displayName="DropdownMenuShortcut";const AS=({triggerClassName:e,actions:n,children:t,renderItem:r})=>c.jsxs(c1,{children:[c.jsx(ns,{className:e,children:t||c.jsx(l1,{})}),c.jsx(rs,{children:n.map(o=>o?(r==null?void 0:r(o))||c.jsxs(os,{onClick:o.onClick,children:[o.icon,o.label]},o.label):null)})]}),u1=l.createContext({}),d1=l.createContext({}),Co=()=>{const e=l.useContext(u1),n=l.useContext(d1),{getFieldState:t,formState:r}=Qn.useFormContext(),o=t(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=n;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}};var FS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$S=FS.reduce((e,n)=>{const t=Wo(`Primitive.${n}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,u=s?t:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...i,ref:a})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),zS="Label",V5=l.forwardRef((e,n)=>c.jsx($S.label,{...e,ref:n,onMouseDown:t=>{var o;t.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));V5.displayName=zS;var H5=V5;const BS=ln("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{required:{true:'after:content-["*"] after:ml-0.5 after:text-foreground-error'}},defaultVariants:{required:!1}}),f1=l.forwardRef(({className:e,required:n,...t},r)=>c.jsx(H5,{ref:r,className:N(BS({required:n}),e),...t}));f1.displayName=H5.displayName;const ZS=({loading:e,hasMore:n,next:t,threshold:r=1,root:o=null,rootMargin:a="0px",reverse:s,children:i})=>{const u=l.useRef(null),d=l.useCallback(h=>{let g=r;(r<0||r>1)&&(console.warn("threshold should be between 0 and 1. You are exceed the range. will use default value: 1"),g=1),!e&&(u.current&&u.current.disconnect(),h&&(u.current=new IntersectionObserver(m=>{m[0].isIntersecting&&n&&t()},{threshold:g,root:o,rootMargin:a}),u.current.observe(h)))},[n,e,t,r,o,a]);l.useEffect(()=>()=>{u.current&&u.current.disconnect()},[]);const f=l.useMemo(()=>l.Children.toArray(i),[i]);return c.jsx(c.Fragment,{children:f.map((h,g)=>{if(!l.isValidElement(h))return process.env.NODE_ENV==="development"&&console.warn("You should use a valid element with InfiniteScroll"),h;const C=(s?g===0:g===f.length-1)?d:null;return l.cloneElement(h,{ref:C})})})},wo=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M18.3 5.70973C17.91 5.31973 17.28 5.31973 16.89 5.70973L12 10.5897L7.10997 5.69973C6.71997 5.30973 6.08997 5.30973 5.69997 5.69973C5.30997 6.08973 5.30997 6.71973 5.69997 7.10973L10.59 11.9997L5.69997 16.8897C5.30997 17.2797 5.30997 17.9097 5.69997 18.2997C6.08997 18.6897 6.71997 18.6897 7.10997 18.2997L12 13.4097L16.89 18.2997C17.28 18.6897 17.91 18.6897 18.3 18.2997C18.69 17.9097 18.69 17.2797 18.3 16.8897L13.41 11.9997L18.3 7.10973C18.68 6.72973 18.68 6.08973 18.3 5.70973Z"})),A5=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M16.59 8.29498L12 12.875L7.41 8.29498L6 9.70498L12 15.705L18 9.70498L16.59 8.29498Z",fill:"currentColor"})),as=Symbol("all"),WS=340,F5=36,RS=({search:e,onCreate:n,createLabel:t})=>c.jsxs("div",{tabIndex:0,onClick:n,onKeyDown:r=>{r.key==="Enter"&&n()},className:N("flex w-full text-blue-500 cursor-pointer text-sm px-2 py-1.5 rounded-sm items-center focus:outline-none","hover:bg-blue-200 focus:!bg-blue-200"),children:[t," ",e]}),h1=l.forwardRef(({className:e,triggerClassName:n,popoverContentClassName:t,variant:r="fade-contrast-outlined",placeholder:o,options:a,value:s,maxSelected:i,shouldFilter:u=!0,open:d,children:f,isLoading:h,isError:g,disabled:m,searchPlaceholder:C,showAllOption:p=!1,showReset:v,required:w,showBadge:y=!1,maxVisibleRowsBadge:b,showCountBadge:S=!0,defaultSearchedValue:M,createLabel:L,autoSelectSingleOption:E,onCreate:I,renderOption:k,renderBadge:O,onRefetch:A,onOpenChange:V,onSearch:Y,isLoadingMore:$,hasMore:U,onLoadMore:T,onChange:W,onClick:P,onRemoveClick:z,...q},K)=>{const{t:Z}=rt(),[H,_]=l.useState(M||""),[B,G]=l.useState(!!L),F=l.useRef(!1);l.useEffect(()=>{Y==null||Y(H)},[H,Y]);const R=l.useMemo(()=>{const J=[],ce=Ee=>{Ee.forEach(Me=>{const ke=Me==null?void 0:Me.children;Array.isArray(ke)&&ke.length>0?ce(ke):Me.hidden||J.push(Me)})};return ce(a),J},[a]);l.useEffect(()=>{if(E&&R.length===1&&s.length===0&&!F.current){const J=R[0];W==null||W([J.value],[J.label]),F.current=!0}},[E,R,s.length,W]);const Q=l.useMemo(()=>({label:Z("all"),value:as}),[Z]),re=R.length>0&&R.every(J=>s.includes(J.value)),te=l.useMemo(()=>a.map(J=>({...J})),[a]),j=l.useMemo(()=>te.some(J=>{var ce;return Array.isArray(J.children)&&(((ce=J.children)==null?void 0:ce.length)||0)>0}),[te]),[ee,ie]=l.useState({}),le=l.useCallback((J,ce)=>(J.forEach(Ee=>{const Me=String(Ee.value);if(typeof Ee.value!="symbol"){ce[Me]===void 0&&(ce[Me]=Ee.defaultExpanded??!1);const ke=Ee.children||[];Array.isArray(ke)&&ke.length>0&&le(ke,ce)}}),ce),[]);l.useEffect(()=>{j&&ie(J=>{const ce={...J};return le(te,ce)})},[te,j,le]);const we=l.useCallback(J=>{typeof J!="symbol"&&ie(ce=>({...ce,[J]:!ce[J]}))},[]);l.useEffect(()=>{if(L){const J=!a.some(ce=>ce.label===H||ce.value===H);G(!!(H&&J))}},[H,a,L]);const Te=()=>{H&&(I==null||I(H),xe({value:H,label:H}))},xe=l.useCallback(J=>{if(!W||J.disabled&&!s.includes(J.value))return;if(J.value===as){if(re)W([],[]);else{const[ke,Fe]=R.reduce((Pe,Ae)=>(Pe[0].push(Ae.value),Pe[1].push(Ae.label),Pe),[[],[]]);W(ke,Fe)}V==null||V(i!==1);return}let ce=s.includes(J.value)?s.filter(ke=>ke!==J.value):[...s,J.value];i&&ce.length>=i&&(ce=ce.reverse().slice(0,i));const Me=ce.map(ke=>{const Fe=R.find(({value:Pe})=>Pe===ke);return((Fe==null?void 0:Fe.label)||String(ke)).trim()});W(ce,Me),V==null||V(i!==1)},[W,re,R,V,i,s]),_e=l.useMemo(()=>p?[Q,...te]:te,[p,Q,te]),Be=l.useMemo(()=>u?_e.filter(({hidden:J})=>!J).filter(J=>u?J.label.toLowerCase().includes(H.toLowerCase()):!0):_e,[_e,H,u]),Je=l.useRef(!1),ct=!!T,X=l.useCallback(()=>{!T||!U||$||Je.current||(Je.current=!0,Promise.resolve(T()).finally(()=>{Je.current=!1}))},[T,U,$]);l.useEffect(()=>{$||(Je.current=!1)},[$]);const se=l.useMemo(()=>Be.length+(ct&&(U||$)?1:0),[Be.length,ct,U,$]),pe=l.useMemo(()=>{const J=se*F5;return Math.min(J,WS)},[se]),ge=l.useCallback(({visibleStopIndex:J})=>{!ct||!U||Be.length===0||J>=Be.length-1&&X()},[ct,U,Be.length,X]),be=l.useMemo(()=>re&&p&&s.length>1?Z("all"):s.map(J=>{var ce;return(((ce=R.find(({value:Ee})=>Ee===J))==null?void 0:ce.label)||J).trim()}).join(", "),[s,R,re,p,Z]),Le=l.useCallback(()=>{if(!y)return c.jsx("div",{className:"truncate text-nowrap whitespace-nowrap text-sm text-foreground-primary font-normal",title:be,children:be});const J=28;let ce=[...s],Ee=0,Me=!1;if(b){const Pe=Math.floor(2.5)||1,Ae=b*Pe;s.length>Ae&&(ce=s.slice(0,Ae),Ee=s.length-Ae,Me=!0)}return c.jsxs("div",{className:N("flex flex-wrap gap-1",b&&`max-h-[${b*J}px] overflow-hidden`),children:[ce.map(ke=>{const Fe=R.find(Pe=>Pe.value===ke);if(Fe){const Pe=Ae=>{Ae&&Ae.stopPropagation(),xe(Fe)};return O?c.jsx(l.Fragment,{children:O(Fe,Pe)},Fe.value):c.jsxs("div",{className:"flex items-center justify-center bg-background-secondary rounded-full p-1 pl-3 text-xs gap-2",children:[c.jsx("span",{className:"truncate whitespace-nowrap w-[100px]",children:Fe.label}),c.jsx("span",{className:"w-5 h-5 flex items-center justify-center cursor-pointer rounded-full bg-background-primary",onClick:Pe,children:c.jsx(wo,{className:"w-4 h-4 bg-icon-tertiary text-foreground-tertiary"})})]},Fe.value)}return null}),Me&&c.jsxs("div",{className:"flex items-center justify-center bg-background-secondary rounded-full px-3 py-1 text-xs gap-2",children:["+",Ee,"..."]})]})},[s,R,xe,y,b,be,O]),je="relative flex cursor-default select-none items-center text-sm outline-none rounded-none py-2 px-3 aria-selected:bg-background-theme-fade aria-selected:text-foreground",Se=l.useCallback(J=>String(J.value),[]),Xe=l.useCallback((J,ce)=>{const Ee=J.value;return k&&Ee!==as?c.jsx(l.Fragment,{children:k(J,ce)},Se(J)):c.jsxs(c.Fragment,{children:[c.jsx(Cn,{className:"mr-2",checked:ce,disabled:J==null?void 0:J.disabled}),c.jsx("span",{title:J.label,className:"truncate",children:J.label})]})},[k,Se]),Qe=l.useCallback(({opt:J,isChecked:ce,style:Ee,hidden:Me,onSelect:ke})=>c.jsx(Ml,{style:Ee,className:N(je,ce&&"bg-background-theme-fade text-foreground",Me&&"hidden",(J==null?void 0:J.disabled)&&"cursor-not-allowed"),onSelect:()=>{J!=null&&J.disabled||(ke?ke():xe(J))},disabled:J==null?void 0:J.disabled,children:Xe(J,ce)},Se(J)),[Se,je,xe,Xe]),et=l.useCallback((J,ce)=>{const Ee=J.children||[];return Array.isArray(Ee)&&Ee.length>0?Ee.some(Me=>et(Me,ce)):J.hidden?!1:J.label.toLowerCase().includes(ce.toLowerCase())},[]),wt=l.useMemo(()=>!u||!H?!0:te.some(J=>et(J,H)),[u,H,te,et]),ut=l.useCallback((J,ce=0)=>{const Ee=String(J.value),Me=J.children||[];if(!(Array.isArray(Me)&&Me.length>0)){const on=s.includes(J.value),Xn=u?!J.label.toLowerCase().includes(H.toLowerCase()):!1;return Qe({opt:J,isChecked:on,hidden:Xn})}const Fe=u?et(J,H):!0,Pe=H?Fe:!!ee[Ee],Ae=u?Me.filter(on=>{const Xn=on.children||[];return Array.isArray(Xn)&&Xn.length>0?et(on,H):(on.label||"").toLowerCase().includes(H.toLowerCase())}):Me;return u&&!Fe?null:c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:N("flex items-center text-sm px-3 py-2 cursor-pointer select-none","hover:bg-background-theme-fade",J.disabled&&"opacity-50 pointer-events-none cursor-not-allowed"),onClick:()=>{H||we(J.value)},children:[c.jsx(A5,{className:N("w-4 h-4 mr-2 text-icon-fade-contrast transition-transform",Pe?"rotate-180":"rotate-0")}),c.jsx("span",{title:J.label,className:"truncate",children:J.label})]}),c.jsx("div",{className:N("pl-6 overflow-hidden transition-[max-height] duration-200 ease-in-out",Pe?"max-h-[999px]":"max-h-0"),children:Ae.map(on=>ut(on,ce+1))})]},Ee)},[ee,u,H,we,s,Qe,et]);return c.jsxs(zn,{open:d,onOpenChange:V,modal:!0,...q,children:[c.jsx(Bn,{asChild:!0,children:c.jsx(Ze,{ref:K,variant:r,size:"sm",role:"combobox","aria-expanded":d,disabled:m,className:N("w-full justify-between px-3 overflow-hidden disabled:opacity-50 font-normal",n,{"h-auto overflow-visible hover:bg-[transparent] active:bg-[transparent]":y}),onClick:P||(()=>V==null?void 0:V(!d)),children:f||c.jsxs(c.Fragment,{children:[!(s!=null&&s.length)&&c.jsxs("span",{className:"text-foreground-secondary text-sm",children:[o,w&&c.jsx("span",{className:"text-foreground-error ml-1",children:"*"})]}),Le(),S&&s.length>1&&c.jsx("div",{className:"bg-background-contrast-fade flex items-center justify-center h-4 px-2 py-1 rounded-[4px] shrink-0",children:c.jsx("span",{className:"text-xs text-foreground-primary leading-4 tracking-[0.4px]",children:s.length})}),(v||z)&&be?c.jsx("div",{className:N("flex items-center justify-center w-6 h-6 shrink-0 cursor-pointer ml-auto",m&&"cursor-not-allowed opacity-50"),onClick:J=>{J.stopPropagation(),!m&&(z?(F.current=!0,z()):v&&W&&(F.current=!0,W([],[])))},children:c.jsx(La,{className:"w-6 h-6 text-icon-fade-contrast"})}):c.jsx(Hr,{className:"w-6 h-6 shrink-0 text-icon-fade-contrast ml-auto"})]})})}),c.jsx(Sn,{className:N("w-full p-0 min-w-[var(--radix-popover-trigger-width)] overflow-auto",t),children:c.jsxs(Ra,{shouldFilter:!1,className:e,children:[u&&c.jsx(Sl,{placeholder:C||Z("search"),value:H,onValueChange:_}),c.jsx(Pa,{isLoading:h,isError:g,textSize:"sm",center:!0,onRefetch:A}),!h&&!g&&!B&&!wt&&c.jsx("div",{className:"py-6 text-center text-sm",children:Z("notFound")}),c.jsxs(El,{className:N("py-1 px-0 max-h-[340px]",j?"overflow-auto":"overflow-hidden"),children:[B&&!!L&&a.length===0&&c.jsx(RS,{search:H,onCreate:()=>Te(),createLabel:L}),j?c.jsxs("div",{className:"flex flex-col",children:[p&&Qe({opt:Q,isChecked:re}),te.map(J=>ut(J)),ct&&c.jsx(ZS,{hasMore:U,loading:$,next:X,threshold:1,children:c.jsx("div",{children:($||U)&&c.jsx(vr,{className:"h-fit py-2"})})})]}):c.jsx(S2,{height:pe,itemCount:se,itemSize:F5,width:"100%",onItemsRendered:ge,children:({index:J,style:ce})=>{if(J>=Be.length)return c.jsx("div",{style:ce,className:"flex items-center justify-center px-3",children:($||U)&&c.jsx(vr,{className:"h-fit py-2 [&>svg]:h-5 [&>svg]:w-5"})});const Me=Be[J],ke=Me.value===as?re:s.includes(Me.value);return Qe({opt:Me,isChecked:ke,style:ce})}})]})]})})]})});h1.displayName="MultiSelect";const $5=Qn.FormProvider,z5=({...e})=>c.jsx(u1.Provider,{value:{name:e.name},children:c.jsx(Qn.Controller,{...e})}),Wn=l.forwardRef(({className:e,horizontal:n,...t},r)=>{const o=l.useId();return c.jsx(d1.Provider,{value:{id:o},children:c.jsx("div",{ref:r,className:N("flex text-sm",n?"space-x-3 items-center":"space-y-2 flex-col",e),...t})})});Wn.displayName="FormItem";const B5=l.forwardRef(({className:e,required:n,...t},r)=>{const{formItemId:o}=Co();return c.jsx(f1,{ref:r,className:N("text-sm text-foreground-secondary font-normal blur-none",e),htmlFor:o,required:n,...t})});B5.displayName="FormLabel";const Rn=l.forwardRef(({...e},n)=>{const{error:t,formItemId:r,formDescriptionId:o,formMessageId:a}=Co();return c.jsx(nu,{ref:n,id:r,"aria-describedby":t?`${o} ${a}`:`${o}`,"aria-invalid":!!t,...e})});Rn.displayName="FormControl";const Z5=l.forwardRef(({className:e,...n},t)=>{const{formDescriptionId:r}=Co();return c.jsx("p",{ref:t,id:r,className:N("text-[13px] text-muted-foreground tracking-[0.2px] mt-6 blur-none",e),...n})});Z5.displayName="FormDescription";const g1=l.forwardRef(({className:e,children:n,...t},r)=>{const{error:o,formMessageId:a}=Co(),s=n||(o?String(o==null?void 0:o.message):null);return s?c.jsx("p",{ref:r,id:a,className:N("text-xs text-foreground-error blur-none",e),...t,children:s}):null});g1.displayName="FormMessage";const GS=l.forwardRef((e,n)=>c.jsx(Wn,{children:c.jsx(Rn,{children:c.jsx(tn,{ref:n,...e})})})),W5=l.forwardRef((e,n)=>c.jsx(Wn,{children:c.jsx(Rn,{children:c.jsx(Kr,{ref:n,...e})})}));W5.displayName="FormItemSelect";const R5=l.forwardRef((e,n)=>c.jsx(Wn,{ref:n,children:c.jsx(Rn,{children:c.jsx(h1,{...e})})}));R5.displayName="FormItemMultiSelect";const G5=l.forwardRef((e,n)=>c.jsx(Wn,{ref:n,children:c.jsx(Rn,{children:c.jsx(bf,{...e})})}));G5.displayName="FormItemDatePicker";const p1=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M9.97576 6.17574C10.2101 5.94142 10.59 5.94142 10.8243 6.17574C11.0586 6.41005 11.0586 6.78995 10.8243 7.02427L7.75762 10.0909C7.5233 10.3252 7.1434 10.3252 6.90909 10.0909L5.17576 8.3576C4.94144 8.12328 4.94144 7.74339 5.17576 7.50907C5.41007 7.27476 5.78997 7.27476 6.02428 7.50907L7.33335 8.81814L9.97576 6.17574Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00002 1.39999C11.6448 1.39999 14.6 4.35524 14.6 7.99999C14.6 11.6447 11.6448 14.6 8.00002 14.6C4.35528 14.6 1.40002 11.6447 1.40002 7.99999C1.40002 4.35524 4.35528 1.39999 8.00002 1.39999ZM8.00002 2.59999C5.01735 2.59999 2.60002 5.01732 2.60002 7.99999C2.60002 10.9827 5.01735 13.4 8.00002 13.4C10.9827 13.4 13.4 10.9827 13.4 7.99999C13.4 5.01732 10.9827 2.59999 8.00002 2.59999Z",fill:"currentColor"})),m1=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{clipPath:"url(#clip0_3446_27389)"},l.createElement("path",{d:"M11 15H13V17H11V15ZM11 7H13V13H11V7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_3446_27389"},l.createElement("rect",{width:24,height:24,fill:"white"})))),j5=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"})),Y5=ln("relative flex w-full items-center gap-3 rounded-lg border shadow-sm transition-all",{variants:{variant:{error:"bg-background-error-fade text-foreground-error border-line-primary",success:"bg-background-success-fade text-foreground-success border-line-primary",info:"bg-background-theme-fade text-foreground-theme border-line-primary"},size:{sm:"py-2 px-3 gap-2",default:"py-3 px-4 gap-3"}},defaultVariants:{variant:"info",size:"default"}}),U5=l.forwardRef(({className:e,variant:n,size:t,showClose:r=!1,onClose:o,icon:a,children:s,...i},u)=>{const f=a!==void 0?a:(()=>{const m=t==="sm"?"min-w-5 h-5":"min-w-6 h-6";switch(n){case"success":return c.jsx(p1,{className:N(m,"flex-shrink-0")});case"error":return c.jsx(m1,{className:N(m,"flex-shrink-0")});case"info":return c.jsx(j5,{className:N(m,"flex-shrink-0")});default:return null}})(),h=t==="sm"?"h-3 w-3":"h-4 w-4",g=t==="sm"?"leading-5":"leading-6";return c.jsxs("div",{ref:u,className:N(Y5({variant:n,size:t}),e),...i,children:[f&&c.jsx("div",{className:"flex-shrink-0 self-start",children:f}),c.jsx("div",{className:N("flex-1 min-w-0 text-sm",g),children:s}),r&&c.jsx(Ze,{type:"button",variant:"fade-contrast-transparent",size:"icon",onClick:o,className:N("flex-shrink-0 h-auto w-auto p-1 text-foreground/50 hover:text-foreground self-start",n==="error"&&"text-red-300 hover:text-red-50"),"aria-label":"Закрыть уведомление",children:c.jsx(Ma,{className:h})})]})});U5.displayName="Notification";const v1=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z",fill:"currentColor"})),ss=D.createContext(null);ss.displayName="PanelGroupContext";const Ge={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},C1=10,Gn=D.useLayoutEffect,q5=l.useId,jS=typeof q5=="function"?q5:()=>null;let YS=0;function w1(e=null){const n=jS(),t=D.useRef(e||n||null);return t.current===null&&(t.current=""+YS++),e??t.current}function K5({children:e,className:n="",collapsedSize:t,collapsible:r,defaultSize:o,forwardedRef:a,id:s,maxSize:i,minSize:u,onCollapse:d,onExpand:f,onResize:h,order:g,style:m,tagName:C="div",...p}){const v=D.useContext(ss);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:w,expandPanel:y,getPanelSize:b,getPanelStyle:S,groupId:M,isPanelCollapsed:L,reevaluatePanelConstraints:E,registerPanel:I,resizePanel:k,unregisterPanel:O}=v,A=w1(s),V=D.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:h},constraints:{collapsedSize:t,collapsible:r,defaultSize:o,maxSize:i,minSize:u},id:A,idIsFromProps:s!==void 0,order:g});D.useRef({didLogMissingDefaultSizeWarning:!1}),Gn(()=>{const{callbacks:$,constraints:U}=V.current,T={...U};V.current.id=A,V.current.idIsFromProps=s!==void 0,V.current.order=g,$.onCollapse=d,$.onExpand=f,$.onResize=h,U.collapsedSize=t,U.collapsible=r,U.defaultSize=o,U.maxSize=i,U.minSize=u,(T.collapsedSize!==U.collapsedSize||T.collapsible!==U.collapsible||T.maxSize!==U.maxSize||T.minSize!==U.minSize)&&E(V.current,T)}),Gn(()=>{const $=V.current;return I($),()=>{O($)}},[g,A,I,O]),D.useImperativeHandle(a,()=>({collapse:()=>{w(V.current)},expand:$=>{y(V.current,$)},getId(){return A},getSize(){return b(V.current)},isCollapsed(){return L(V.current)},isExpanded(){return!L(V.current)},resize:$=>{k(V.current,$)}}),[w,y,b,L,A,k]);const Y=S(V.current,o);return D.createElement(C,{...p,children:e,className:n,id:A,style:{...Y,...m},[Ge.groupId]:M,[Ge.panel]:"",[Ge.panelCollapsible]:r||void 0,[Ge.panelId]:A,[Ge.panelSize]:parseFloat(""+Y.flexGrow).toFixed(1)})}const X5=D.forwardRef((e,n)=>D.createElement(K5,{...e,forwardedRef:n}));K5.displayName="Panel",X5.displayName="forwardRef(Panel)";let y1=null,is=-1,Mn=null;function US(e,n){if(n){const t=(n&a9)!==0,r=(n&s9)!==0,o=(n&i9)!==0,a=(n&l9)!==0;if(t)return o?"se-resize":a?"ne-resize":"e-resize";if(r)return o?"sw-resize":a?"nw-resize":"w-resize";if(o)return"s-resize";if(a)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function qS(){Mn!==null&&(document.head.removeChild(Mn),y1=null,Mn=null,is=-1)}function b1(e,n){var t,r;const o=US(e,n);if(y1!==o){if(y1=o,Mn===null&&(Mn=document.createElement("style"),document.head.appendChild(Mn)),is>=0){var a;(a=Mn.sheet)===null||a===void 0||a.removeRule(is)}is=(t=(r=Mn.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${o} !important;}`))!==null&&t!==void 0?t:-1}}function Q5(e){return e.type==="keydown"}function J5(e){return e.type.startsWith("pointer")}function e9(e){return e.type.startsWith("mouse")}function ls(e){if(J5(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(e9(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function KS(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function XS(e,n,t){return e.x<n.x+n.width&&e.x+e.width>n.x&&e.y<n.y+n.height&&e.y+e.height>n.y}function QS(e,n){if(e===n)throw new Error("Cannot compare node with itself");const t={a:r9(e),b:r9(n)};let r;for(;t.a.at(-1)===t.b.at(-1);)e=t.a.pop(),n=t.b.pop(),r=e;Ce(r,"Stacking order can only be calculated for elements with a common ancestor");const o={a:n9(t9(t.a)),b:n9(t9(t.b))};if(o.a===o.b){const a=r.childNodes,s={a:t.a.at(-1),b:t.b.at(-1)};let i=a.length;for(;i--;){const u=a[i];if(u===s.a)return 1;if(u===s.b)return-1}}return Math.sign(o.a-o.b)}const JS=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function eE(e){var n;const t=getComputedStyle((n=o9(e))!==null&&n!==void 0?n:e).display;return t==="flex"||t==="inline-flex"}function tE(e){const n=getComputedStyle(e);return!!(n.position==="fixed"||n.zIndex!=="auto"&&(n.position!=="static"||eE(e))||+n.opacity<1||"transform"in n&&n.transform!=="none"||"webkitTransform"in n&&n.webkitTransform!=="none"||"mixBlendMode"in n&&n.mixBlendMode!=="normal"||"filter"in n&&n.filter!=="none"||"webkitFilter"in n&&n.webkitFilter!=="none"||"isolation"in n&&n.isolation==="isolate"||JS.test(n.willChange)||n.webkitOverflowScrolling==="touch")}function t9(e){let n=e.length;for(;n--;){const t=e[n];if(Ce(t,"Missing node"),tE(t))return t}return null}function n9(e){return e&&Number(getComputedStyle(e).zIndex)||0}function r9(e){const n=[];for(;e;)n.push(e),e=o9(e);return n}function o9(e){const{parentNode:n}=e;return n&&n instanceof ShadowRoot?n.host:n}const a9=1,s9=2,i9=4,l9=8,nE=KS()==="coarse";let _t=[],xr=!1,jn=new Map,cs=new Map;const yo=new Set;function rE(e,n,t,r,o){var a;const{ownerDocument:s}=n,i={direction:t,element:n,hitAreaMargins:r,setResizeHandlerState:o},u=(a=jn.get(s))!==null&&a!==void 0?a:0;return jn.set(s,u+1),yo.add(i),us(),function(){var f;cs.delete(e),yo.delete(i);const h=(f=jn.get(s))!==null&&f!==void 0?f:1;if(jn.set(s,h-1),us(),h===1&&jn.delete(s),_t.includes(i)){const g=_t.indexOf(i);g>=0&&_t.splice(g,1),L1(),o("up",!0,null)}}}function oE(e){const{target:n}=e,{x:t,y:r}=ls(e);xr=!0,E1({target:n,x:t,y:r}),us(),_t.length>0&&(ds("down",e),e.preventDefault(),c9(n)||e.stopImmediatePropagation())}function x1(e){const{x:n,y:t}=ls(e);if(xr&&e.buttons===0&&(xr=!1,ds("up",e)),!xr){const{target:r}=e;E1({target:r,x:n,y:t})}ds("move",e),L1(),_t.length>0&&e.preventDefault()}function S1(e){const{target:n}=e,{x:t,y:r}=ls(e);cs.clear(),xr=!1,_t.length>0&&(e.preventDefault(),c9(n)||e.stopImmediatePropagation()),ds("up",e),E1({target:n,x:t,y:r}),L1(),us()}function c9(e){let n=e;for(;n;){if(n.hasAttribute(Ge.resizeHandle))return!0;n=n.parentElement}return!1}function E1({target:e,x:n,y:t}){_t.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),yo.forEach(o=>{const{element:a,hitAreaMargins:s}=o,i=a.getBoundingClientRect(),{bottom:u,left:d,right:f,top:h}=i,g=nE?s.coarse:s.fine;if(n>=d-g&&n<=f+g&&t>=h-g&&t<=u+g){if(r!==null&&document.contains(r)&&a!==r&&!a.contains(r)&&!r.contains(a)&&QS(r,a)>0){let C=r,p=!1;for(;C&&!C.contains(a);){if(XS(C.getBoundingClientRect(),i)){p=!0;break}C=C.parentElement}if(p)return}_t.push(o)}})}function M1(e,n){cs.set(e,n)}function L1(){let e=!1,n=!1;_t.forEach(r=>{const{direction:o}=r;o==="horizontal"?e=!0:n=!0});let t=0;cs.forEach(r=>{t|=r}),e&&n?b1("intersection",t):e?b1("horizontal",t):n?b1("vertical",t):qS()}let N1=new AbortController;function us(){N1.abort(),N1=new AbortController;const e={capture:!0,signal:N1.signal};yo.size&&(xr?(_t.length>0&&jn.forEach((n,t)=>{const{body:r}=t;n>0&&(r.addEventListener("contextmenu",S1,e),r.addEventListener("pointerleave",x1,e),r.addEventListener("pointermove",x1,e))}),window.addEventListener("pointerup",S1,e),window.addEventListener("pointercancel",S1,e)):jn.forEach((n,t)=>{const{body:r}=t;n>0&&(r.addEventListener("pointerdown",oE,e),r.addEventListener("pointermove",x1,e))}))}function ds(e,n){yo.forEach(t=>{const{setResizeHandlerState:r}=t,o=_t.includes(t);r(e,o,n)})}function aE(){const[e,n]=D.useState(0);return D.useCallback(()=>n(t=>t+1),[])}function Ce(e,n){if(!e)throw console.error(n),Error(n)}function Yn(e,n,t=C1){return e.toFixed(t)===n.toFixed(t)?0:e>n?1:-1}function nn(e,n,t=C1){return Yn(e,n,t)===0}function Ct(e,n,t){return Yn(e,n,t)===0}function sE(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){const o=e[r],a=n[r];if(!Ct(o,a,t))return!1}return!0}function Sr({panelConstraints:e,panelIndex:n,size:t}){const r=e[n];Ce(r!=null,`Panel constraints not found for index ${n}`);let{collapsedSize:o=0,collapsible:a,maxSize:s=100,minSize:i=0}=r;if(Yn(t,i)<0)if(a){const u=(o+i)/2;Yn(t,u)<0?t=o:t=i}else t=i;return t=Math.min(s,t),t=parseFloat(t.toFixed(C1)),t}function bo({delta:e,initialLayout:n,panelConstraints:t,pivotIndices:r,prevLayout:o,trigger:a}){if(Ct(e,0))return n;const s=[...n],[i,u]=r;Ce(i!=null,"Invalid first pivot index"),Ce(u!=null,"Invalid second pivot index");let d=0;if(a==="keyboard"){{const h=e<0?u:i,g=t[h];Ce(g,`Panel constraints not found for index ${h}`);const{collapsedSize:m=0,collapsible:C,minSize:p=0}=g;if(C){const v=n[h];if(Ce(v!=null,`Previous layout not found for panel index ${h}`),Ct(v,m)){const w=p-v;Yn(w,Math.abs(e))>0&&(e=e<0?0-w:w)}}}{const h=e<0?i:u,g=t[h];Ce(g,`No panel constraints found for index ${h}`);const{collapsedSize:m=0,collapsible:C,minSize:p=0}=g;if(C){const v=n[h];if(Ce(v!=null,`Previous layout not found for panel index ${h}`),Ct(v,p)){const w=v-m;Yn(w,Math.abs(e))>0&&(e=e<0?0-w:w)}}}}{const h=e<0?1:-1;let g=e<0?u:i,m=0;for(;;){const p=n[g];Ce(p!=null,`Previous layout not found for panel index ${g}`);const w=Sr({panelConstraints:t,panelIndex:g,size:100})-p;if(m+=w,g+=h,g<0||g>=t.length)break}const C=Math.min(Math.abs(e),Math.abs(m));e=e<0?0-C:C}{let g=e<0?i:u;for(;g>=0&&g<t.length;){const m=Math.abs(e)-Math.abs(d),C=n[g];Ce(C!=null,`Previous layout not found for panel index ${g}`);const p=C-m,v=Sr({panelConstraints:t,panelIndex:g,size:p});if(!Ct(C,v)&&(d+=C-v,s[g]=v,d.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(sE(o,s))return o;{const h=e<0?u:i,g=n[h];Ce(g!=null,`Previous layout not found for panel index ${h}`);const m=g+d,C=Sr({panelConstraints:t,panelIndex:h,size:m});if(s[h]=C,!Ct(C,m)){let p=m-C,w=e<0?u:i;for(;w>=0&&w<t.length;){const y=s[w];Ce(y!=null,`Previous layout not found for panel index ${w}`);const b=y+p,S=Sr({panelConstraints:t,panelIndex:w,size:b});if(Ct(y,S)||(p-=S-y,s[w]=S),Ct(p,0))break;e>0?w--:w++}}}const f=s.reduce((h,g)=>g+h,0);return Ct(f,100)?s:o}function iE({layout:e,panelsArray:n,pivotIndices:t}){let r=0,o=100,a=0,s=0;const i=t[0];Ce(i!=null,"No pivot index found"),n.forEach((h,g)=>{const{constraints:m}=h,{maxSize:C=100,minSize:p=0}=m;g===i?(r=p,o=C):(a+=p,s+=C)});const u=Math.min(o,100-a),d=Math.max(r,100-s),f=e[i];return{valueMax:u,valueMin:d,valueNow:f}}function xo(e,n=document){return Array.from(n.querySelectorAll(`[${Ge.resizeHandleId}][data-panel-group-id="${e}"]`))}function u9(e,n,t=document){const o=xo(e,t).findIndex(a=>a.getAttribute(Ge.resizeHandleId)===n);return o??null}function d9(e,n,t){const r=u9(e,n,t);return r!=null?[r,r+1]:[-1,-1]}function f9(e,n=document){var t;if(n instanceof HTMLElement&&(n==null||(t=n.dataset)===null||t===void 0?void 0:t.panelGroupId)==e)return n;const r=n.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function fs(e,n=document){const t=n.querySelector(`[${Ge.resizeHandleId}="${e}"]`);return t||null}function lE(e,n,t,r=document){var o,a,s,i;const u=fs(n,r),d=xo(e,r),f=u?d.indexOf(u):-1,h=(o=(a=t[f])===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null,g=(s=(i=t[f+1])===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:null;return[h,g]}function cE({committedValuesRef:e,eagerValuesRef:n,groupId:t,layout:r,panelDataArray:o,panelGroupElement:a,setLayout:s}){D.useRef({didWarnAboutMissingResizeHandle:!1}),Gn(()=>{if(!a)return;const i=xo(t,a);for(let u=0;u<o.length-1;u++){const{valueMax:d,valueMin:f,valueNow:h}=iE({layout:r,panelsArray:o,pivotIndices:[u,u+1]}),g=i[u];if(g!=null){const m=o[u];Ce(m,`No panel data found for index "${u}"`),g.setAttribute("aria-controls",m.id),g.setAttribute("aria-valuemax",""+Math.round(d)),g.setAttribute("aria-valuemin",""+Math.round(f)),g.setAttribute("aria-valuenow",h!=null?""+Math.round(h):"")}}return()=>{i.forEach((u,d)=>{u.removeAttribute("aria-controls"),u.removeAttribute("aria-valuemax"),u.removeAttribute("aria-valuemin"),u.removeAttribute("aria-valuenow")})}},[t,r,o,a]),D.useEffect(()=>{if(!a)return;const i=n.current;Ce(i,"Eager values not found");const{panelDataArray:u}=i,d=f9(t,a);Ce(d!=null,`No group found for id "${t}"`);const f=xo(t,a);Ce(f,`No resize handles found for group id "${t}"`);const h=f.map(g=>{const m=g.getAttribute(Ge.resizeHandleId);Ce(m,"Resize handle element has no handle id attribute");const[C,p]=lE(t,m,u,a);if(C==null||p==null)return()=>{};const v=w=>{if(!w.defaultPrevented)switch(w.key){case"Enter":{w.preventDefault();const y=u.findIndex(b=>b.id===C);if(y>=0){const b=u[y];Ce(b,`No panel data found for index ${y}`);const S=r[y],{collapsedSize:M=0,collapsible:L,minSize:E=0}=b.constraints;if(S!=null&&L){const I=bo({delta:Ct(S,M)?E-M:M-S,initialLayout:r,panelConstraints:u.map(k=>k.constraints),pivotIndices:d9(t,m,a),prevLayout:r,trigger:"keyboard"});r!==I&&s(I)}}break}}};return g.addEventListener("keydown",v),()=>{g.removeEventListener("keydown",v)}});return()=>{h.forEach(g=>g())}},[a,e,n,t,r,o,s])}function h9(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}function g9(e,n){const t=e==="horizontal",{x:r,y:o}=ls(n);return t?r:o}function uE(e,n,t,r,o){const a=t==="horizontal",s=fs(n,o);Ce(s,`No resize handle element found for id "${n}"`);const i=s.getAttribute(Ge.groupId);Ce(i,"Resize handle element has no group id attribute");let{initialCursorPosition:u}=r;const d=g9(t,e),f=f9(i,o);Ce(f,`No group element found for id "${i}"`);const h=f.getBoundingClientRect(),g=a?h.width:h.height;return(d-u)/g*100}function dE(e,n,t,r,o,a){if(Q5(e)){const s=t==="horizontal";let i=0;e.shiftKey?i=100:o!=null?i=o:i=10;let u=0;switch(e.key){case"ArrowDown":u=s?0:i;break;case"ArrowLeft":u=s?-i:0;break;case"ArrowRight":u=s?i:0;break;case"ArrowUp":u=s?0:-i;break;case"End":u=100;break;case"Home":u=-100;break}return u}else return r==null?0:uE(e,n,t,r,a)}function fE({panelDataArray:e}){const n=Array(e.length),t=e.map(a=>a.constraints);let r=0,o=100;for(let a=0;a<e.length;a++){const s=t[a];Ce(s,`Panel constraints not found for index ${a}`);const{defaultSize:i}=s;i!=null&&(r++,n[a]=i,o-=i)}for(let a=0;a<e.length;a++){const s=t[a];Ce(s,`Panel constraints not found for index ${a}`);const{defaultSize:i}=s;if(i!=null)continue;const u=e.length-r,d=o/u;r++,n[a]=d,o-=d}return n}function Er(e,n,t){n.forEach((r,o)=>{const a=e[o];Ce(a,`Panel data not found for index ${o}`);const{callbacks:s,constraints:i,id:u}=a,{collapsedSize:d=0,collapsible:f}=i,h=t[u];if(h==null||r!==h){t[u]=r;const{onCollapse:g,onExpand:m,onResize:C}=s;C&&C(r,h),f&&(g||m)&&(m&&(h==null||nn(h,d))&&!nn(r,d)&&m(),g&&(h==null||!nn(h,d))&&nn(r,d)&&g())}})}function hs(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!=n[t])return!1;return!0}function hE({defaultSize:e,dragState:n,layout:t,panelData:r,panelIndex:o,precision:a=3}){const s=t[o];let i;return s==null?i=e!=null?e.toPrecision(a):"1":r.length===1?i="1":i=s.toPrecision(a),{flexBasis:0,flexGrow:i,flexShrink:1,overflow:"hidden",pointerEvents:n!==null?"none":void 0}}function gE(e,n=10){let t=null;return(...o)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{e(...o)},n)}}function p9(e){try{if(typeof localStorage<"u")e.getItem=n=>localStorage.getItem(n),e.setItem=(n,t)=>{localStorage.setItem(n,t)};else throw new Error("localStorage not supported in this environment")}catch(n){console.error(n),e.getItem=()=>null,e.setItem=()=>{}}}function m9(e){return`react-resizable-panels:${e}`}function v9(e){return e.map(n=>{const{constraints:t,id:r,idIsFromProps:o,order:a}=n;return o?r:a?`${a}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((n,t)=>n.localeCompare(t)).join(",")}function C9(e,n){try{const t=m9(e),r=n.getItem(t);if(r){const o=JSON.parse(r);if(typeof o=="object"&&o!=null)return o}}catch{}return null}function pE(e,n,t){var r,o;const a=(r=C9(e,t))!==null&&r!==void 0?r:{},s=v9(n);return(o=a[s])!==null&&o!==void 0?o:null}function mE(e,n,t,r,o){var a;const s=m9(e),i=v9(n),u=(a=C9(e,o))!==null&&a!==void 0?a:{};u[i]={expandToSizes:Object.fromEntries(t.entries()),layout:r};try{o.setItem(s,JSON.stringify(u))}catch(d){console.error(d)}}function w9({layout:e,panelConstraints:n}){const t=[...e],r=t.reduce((a,s)=>a+s,0);if(t.length!==n.length)throw Error(`Invalid ${n.length} panel layout: ${t.map(a=>`${a}%`).join(", ")}`);if(!Ct(r,100)&&t.length>0)for(let a=0;a<n.length;a++){const s=t[a];Ce(s!=null,`No layout data found for index ${a}`);const i=100/r*s;t[a]=i}let o=0;for(let a=0;a<n.length;a++){const s=t[a];Ce(s!=null,`No layout data found for index ${a}`);const i=Sr({panelConstraints:n,panelIndex:a,size:s});s!=i&&(o+=s-i,t[a]=i)}if(!Ct(o,0))for(let a=0;a<n.length;a++){const s=t[a];Ce(s!=null,`No layout data found for index ${a}`);const i=s+o,u=Sr({panelConstraints:n,panelIndex:a,size:i});if(s!==u&&(o-=u-s,t[a]=u,Ct(o,0)))break}return t}const vE=100,So={getItem:e=>(p9(So),So.getItem(e)),setItem:(e,n)=>{p9(So),So.setItem(e,n)}},y9={};function b9({autoSaveId:e=null,children:n,className:t="",direction:r,forwardedRef:o,id:a=null,onLayout:s=null,keyboardResizeBy:i=null,storage:u=So,style:d,tagName:f="div",...h}){const g=w1(a),m=D.useRef(null),[C,p]=D.useState(null),[v,w]=D.useState([]),y=aE(),b=D.useRef({}),S=D.useRef(new Map),M=D.useRef(0),L=D.useRef({autoSaveId:e,direction:r,dragState:C,id:g,keyboardResizeBy:i,onLayout:s,storage:u}),E=D.useRef({layout:v,panelDataArray:[],panelDataArrayChanged:!1});D.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),D.useImperativeHandle(o,()=>({getId:()=>L.current.id,getLayout:()=>{const{layout:H}=E.current;return H},setLayout:H=>{const{onLayout:_}=L.current,{layout:B,panelDataArray:G}=E.current,F=w9({layout:H,panelConstraints:G.map(R=>R.constraints)});h9(B,F)||(w(F),E.current.layout=F,_&&_(F),Er(G,F,b.current))}}),[]),Gn(()=>{L.current.autoSaveId=e,L.current.direction=r,L.current.dragState=C,L.current.id=g,L.current.onLayout=s,L.current.storage=u}),cE({committedValuesRef:L,eagerValuesRef:E,groupId:g,layout:v,panelDataArray:E.current.panelDataArray,setLayout:w,panelGroupElement:m.current}),D.useEffect(()=>{const{panelDataArray:H}=E.current;if(e){if(v.length===0||v.length!==H.length)return;let _=y9[e];_==null&&(_=gE(mE,vE),y9[e]=_);const B=[...H],G=new Map(S.current);_(e,B,G,v,u)}},[e,v,u]),D.useEffect(()=>{});const I=D.useCallback(H=>{const{onLayout:_}=L.current,{layout:B,panelDataArray:G}=E.current;if(H.constraints.collapsible){const F=G.map(te=>te.constraints),{collapsedSize:R=0,panelSize:Q,pivotIndices:re}=Un(G,H,B);if(Ce(Q!=null,`Panel size not found for panel "${H.id}"`),!nn(Q,R)){S.current.set(H.id,Q);const j=Mr(G,H)===G.length-1?Q-R:R-Q,ee=bo({delta:j,initialLayout:B,panelConstraints:F,pivotIndices:re,prevLayout:B,trigger:"imperative-api"});hs(B,ee)||(w(ee),E.current.layout=ee,_&&_(ee),Er(G,ee,b.current))}}},[]),k=D.useCallback((H,_)=>{const{onLayout:B}=L.current,{layout:G,panelDataArray:F}=E.current;if(H.constraints.collapsible){const R=F.map(ie=>ie.constraints),{collapsedSize:Q=0,panelSize:re=0,minSize:te=0,pivotIndices:j}=Un(F,H,G),ee=_??te;if(nn(re,Q)){const ie=S.current.get(H.id),le=ie!=null&&ie>=ee?ie:ee,Te=Mr(F,H)===F.length-1?re-le:le-re,xe=bo({delta:Te,initialLayout:G,panelConstraints:R,pivotIndices:j,prevLayout:G,trigger:"imperative-api"});hs(G,xe)||(w(xe),E.current.layout=xe,B&&B(xe),Er(F,xe,b.current))}}},[]),O=D.useCallback(H=>{const{layout:_,panelDataArray:B}=E.current,{panelSize:G}=Un(B,H,_);return Ce(G!=null,`Panel size not found for panel "${H.id}"`),G},[]),A=D.useCallback((H,_)=>{const{panelDataArray:B}=E.current,G=Mr(B,H);return hE({defaultSize:_,dragState:C,layout:v,panelData:B,panelIndex:G})},[C,v]),V=D.useCallback(H=>{const{layout:_,panelDataArray:B}=E.current,{collapsedSize:G=0,collapsible:F,panelSize:R}=Un(B,H,_);return Ce(R!=null,`Panel size not found for panel "${H.id}"`),F===!0&&nn(R,G)},[]),Y=D.useCallback(H=>{const{layout:_,panelDataArray:B}=E.current,{collapsedSize:G=0,collapsible:F,panelSize:R}=Un(B,H,_);return Ce(R!=null,`Panel size not found for panel "${H.id}"`),!F||Yn(R,G)>0},[]),$=D.useCallback(H=>{const{panelDataArray:_}=E.current;_.push(H),_.sort((B,G)=>{const F=B.order,R=G.order;return F==null&&R==null?0:F==null?-1:R==null?1:F-R}),E.current.panelDataArrayChanged=!0,y()},[y]);Gn(()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:H,onLayout:_,storage:B}=L.current,{layout:G,panelDataArray:F}=E.current;let R=null;if(H){const re=pE(H,F,B);re&&(S.current=new Map(Object.entries(re.expandToSizes)),R=re.layout)}R==null&&(R=fE({panelDataArray:F}));const Q=w9({layout:R,panelConstraints:F.map(re=>re.constraints)});h9(G,Q)||(w(Q),E.current.layout=Q,_&&_(Q),Er(F,Q,b.current))}}),Gn(()=>{const H=E.current;return()=>{H.layout=[]}},[]);const U=D.useCallback(H=>{let _=!1;const B=m.current;return B&&window.getComputedStyle(B,null).getPropertyValue("direction")==="rtl"&&(_=!0),function(F){F.preventDefault();const R=m.current;if(!R)return()=>null;const{direction:Q,dragState:re,id:te,keyboardResizeBy:j,onLayout:ee}=L.current,{layout:ie,panelDataArray:le}=E.current,{initialLayout:we}=re??{},Te=d9(te,H,R);let xe=dE(F,H,Q,re,j,R);const _e=Q==="horizontal";_e&&_&&(xe=-xe);const Be=le.map(X=>X.constraints),Je=bo({delta:xe,initialLayout:we??ie,panelConstraints:Be,pivotIndices:Te,prevLayout:ie,trigger:Q5(F)?"keyboard":"mouse-or-touch"}),ct=!hs(ie,Je);(J5(F)||e9(F))&&M.current!=xe&&(M.current=xe,!ct&&xe!==0?_e?M1(H,xe<0?a9:s9):M1(H,xe<0?i9:l9):M1(H,0)),ct&&(w(Je),E.current.layout=Je,ee&&ee(Je),Er(le,Je,b.current))}},[]),T=D.useCallback((H,_)=>{const{onLayout:B}=L.current,{layout:G,panelDataArray:F}=E.current,R=F.map(ie=>ie.constraints),{panelSize:Q,pivotIndices:re}=Un(F,H,G);Ce(Q!=null,`Panel size not found for panel "${H.id}"`);const j=Mr(F,H)===F.length-1?Q-_:_-Q,ee=bo({delta:j,initialLayout:G,panelConstraints:R,pivotIndices:re,prevLayout:G,trigger:"imperative-api"});hs(G,ee)||(w(ee),E.current.layout=ee,B&&B(ee),Er(F,ee,b.current))},[]),W=D.useCallback((H,_)=>{const{layout:B,panelDataArray:G}=E.current,{collapsedSize:F=0,collapsible:R}=_,{collapsedSize:Q=0,collapsible:re,maxSize:te=100,minSize:j=0}=H.constraints,{panelSize:ee}=Un(G,H,B);ee!=null&&(R&&re&&nn(ee,F)?nn(F,Q)||T(H,Q):ee<j?T(H,j):ee>te&&T(H,te))},[T]),P=D.useCallback((H,_)=>{const{direction:B}=L.current,{layout:G}=E.current;if(!m.current)return;const F=fs(H,m.current);Ce(F,`Drag handle element not found for id "${H}"`);const R=g9(B,_);p({dragHandleId:H,dragHandleRect:F.getBoundingClientRect(),initialCursorPosition:R,initialLayout:G})},[]),z=D.useCallback(()=>{p(null)},[]),q=D.useCallback(H=>{const{panelDataArray:_}=E.current,B=Mr(_,H);B>=0&&(_.splice(B,1),delete b.current[H.id],E.current.panelDataArrayChanged=!0,y())},[y]),K=D.useMemo(()=>({collapsePanel:I,direction:r,dragState:C,expandPanel:k,getPanelSize:O,getPanelStyle:A,groupId:g,isPanelCollapsed:V,isPanelExpanded:Y,reevaluatePanelConstraints:W,registerPanel:$,registerResizeHandle:U,resizePanel:T,startDragging:P,stopDragging:z,unregisterPanel:q,panelGroupElement:m.current}),[I,C,r,k,O,A,g,V,Y,W,$,U,T,P,z,q]),Z={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return D.createElement(ss.Provider,{value:K},D.createElement(f,{...h,children:n,className:t,id:a,ref:m,style:{...Z,...d},[Ge.group]:"",[Ge.groupDirection]:r,[Ge.groupId]:g}))}const x9=D.forwardRef((e,n)=>D.createElement(b9,{...e,forwardedRef:n}));b9.displayName="PanelGroup",x9.displayName="forwardRef(PanelGroup)";function Mr(e,n){return e.findIndex(t=>t===n||t.id===n.id)}function Un(e,n,t){const r=Mr(e,n),a=r===e.length-1?[r-1,r]:[r,r+1],s=t[r];return{...n.constraints,panelSize:s,pivotIndices:a}}function CE({disabled:e,handleId:n,resizeHandler:t,panelGroupElement:r}){D.useEffect(()=>{if(e||t==null||r==null)return;const o=fs(n,r);if(o==null)return;const a=s=>{if(!s.defaultPrevented)switch(s.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{s.preventDefault(),t(s);break}case"F6":{s.preventDefault();const i=o.getAttribute(Ge.groupId);Ce(i,`No group element found for id "${i}"`);const u=xo(i,r),d=u9(i,n,r);Ce(d!==null,`No resize element found for id "${n}"`);const f=s.shiftKey?d>0?d-1:u.length-1:d+1<u.length?d+1:0;u[f].focus();break}}};return o.addEventListener("keydown",a),()=>{o.removeEventListener("keydown",a)}},[r,e,n,t])}function S9({children:e=null,className:n="",disabled:t=!1,hitAreaMargins:r,id:o,onBlur:a,onClick:s,onDragging:i,onFocus:u,onPointerDown:d,onPointerUp:f,style:h={},tabIndex:g=0,tagName:m="div",...C}){var p,v;const w=D.useRef(null),y=D.useRef({onClick:s,onDragging:i,onPointerDown:d,onPointerUp:f});D.useEffect(()=>{y.current.onClick=s,y.current.onDragging=i,y.current.onPointerDown=d,y.current.onPointerUp=f});const b=D.useContext(ss);if(b===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:S,groupId:M,registerResizeHandle:L,startDragging:E,stopDragging:I,panelGroupElement:k}=b,O=w1(o),[A,V]=D.useState("inactive"),[Y,$]=D.useState(!1),[U,T]=D.useState(null),W=D.useRef({state:A});Gn(()=>{W.current.state=A}),D.useEffect(()=>{if(t)T(null);else{const K=L(O);T(()=>K)}},[t,O,L]);const P=(p=r==null?void 0:r.coarse)!==null&&p!==void 0?p:15,z=(v=r==null?void 0:r.fine)!==null&&v!==void 0?v:5;D.useEffect(()=>{if(t||U==null)return;const K=w.current;Ce(K,"Element ref not attached");let Z=!1;return rE(O,K,S,{coarse:P,fine:z},(_,B,G)=>{if(!B){V("inactive");return}switch(_){case"down":{V("drag"),Z=!1,Ce(G,'Expected event to be defined for "down" action'),E(O,G);const{onDragging:F,onPointerDown:R}=y.current;F==null||F(!0),R==null||R();break}case"move":{const{state:F}=W.current;Z=!0,F!=="drag"&&V("hover"),Ce(G,'Expected event to be defined for "move" action'),U(G);break}case"up":{V("hover"),I();const{onClick:F,onDragging:R,onPointerUp:Q}=y.current;R==null||R(!1),Q==null||Q(),Z||F==null||F();break}}})},[P,S,t,z,L,O,U,E,I]),CE({disabled:t,handleId:O,resizeHandler:U,panelGroupElement:k});const q={touchAction:"none",userSelect:"none"};return D.createElement(m,{...C,children:e,className:n,id:o,onBlur:()=>{$(!1),a==null||a()},onFocus:()=>{$(!0),u==null||u()},ref:w,role:"separator",style:{...q,...h},tabIndex:g,[Ge.groupDirection]:S,[Ge.groupId]:M,[Ge.resizeHandle]:"",[Ge.resizeHandleActive]:A==="drag"?"pointer":Y?"keyboard":void 0,[Ge.resizeHandleEnabled]:!t,[Ge.resizeHandleId]:O,[Ge.resizeHandleState]:A})}S9.displayName="PanelResizeHandle";const P1=l.forwardRef(({className:e,...n},t)=>c.jsx(x9,{ref:t,className:N("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...n}));P1.displayName="ResizablePanelGroup";const _1=X5,E9=({withHandle:e,className:n,...t})=>c.jsx(S9,{className:N("relative flex w-px items-center justify-center transition-colors bg-line-primary-disabled hover:bg-line-primary [&:hover>div]:border-line-primary [&:hover>div]:text-foreground-primary after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),...t,children:e&&c.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm transition-colors text-foreground-primary-disabled bg-background-primary border border-line-primary-disabled hover:text-foreground-primary hover:border-line-primary",children:c.jsx(Bw,{className:"h-2.5 w-2.5"})})}),M9=({titlePrefix:e,titleText:n,buttonsSlot:t,dropDownButtons:r,onBack:o,className:a})=>c.jsxs("div",{className:N("flex items-center justify-between px-6 py-4 border-b border-line-primary",a),children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1 text-2xl font-medium",children:[o&&c.jsx("div",{className:"p-2 cursor-pointer hover:text-foreground-primary-disabled flex-shrink-0",onClick:o,children:c.jsx(v1,{})}),e&&c.jsx("span",{className:"text-foreground-secondary whitespace-nowrap",children:e}),n&&c.jsx("span",{className:"text-foreground-primary truncate",title:n,children:n})]}),c.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[t,r&&r.length>0&&c.jsxs(c1,{children:[c.jsx(ns,{asChild:!0,children:c.jsx(Ze,{variant:"fade-contrast-transparent",size:"icon",children:c.jsx(l1,{})})}),c.jsx(rs,{children:r.map((s,i)=>c.jsx(os,{onClick:s.onClick,disabled:s.disabled,children:s.text},i))})]})]})]});M9.displayName="PostCardHeader";const L9=({sections:e,className:n})=>!e||e.length===0?null:c.jsx("div",{className:N("flex flex-col",n),children:e.map((t,r)=>c.jsx("div",{className:"py-4 border-b border-line-primary first:pt-0 last:border-b-0 last:pb-0",children:c.jsx("table",{className:"w-full border-separate border-spacing-0",children:c.jsx("tbody",{children:t.fields.map((o,a)=>c.jsxs("tr",{className:"align-text-top first:[&>td]:pt-0 last:[&>td]:pb-0",children:[c.jsx("td",{className:"min-w-[160px] w-[160px] pr-1 py-1 text-foreground-primary text-sm leading-5 font-medium tracking-[0.25px]",children:o.label}),c.jsx("td",{className:"py-1 px-1 text-foreground-primary text-sm leading-5 max-w-[1px] tracking-[0.25px]",children:o.value||"-"})]},a))})})},r))});L9.displayName="PostCardBody";const N9=({children:e,className:n})=>c.jsx("div",{className:N("flex flex-col gap-2",n),children:e});N9.displayName="PostCardSidebar";const P9=({headerSlot:e,contentSlot:n,footerSlot:t,selected:r,onClick:o,className:a})=>e||n||t?c.jsxs("li",{className:N("px-4 py-3 flex flex-col gap-2 text-sm leading-5 border-t border-line-primary first:border-t-0 text-foreground-primary cursor-pointer",{"bg-background-primary-selected":r},a),onClick:o,children:[e&&c.jsx("div",{className:"flex items-center justify-between gap-4",children:e}),n&&c.jsx("div",{children:n}),t&&c.jsx("div",{className:"flex items-center justify-between gap-4",children:t})]}):null;P9.displayName="PostCardLeftPanelItem";const _9=({sortSlot:e,children:n,paginationSlot:t,className:r})=>c.jsxs("div",{className:N("flex flex-col bg-background-primary border-r border-line-primary h-full min-h-0",r),children:[e&&c.jsx("div",{className:"px-4 py-1 border-b border-line-primary flex-shrink-0",children:e}),c.jsx("ul",{className:"flex flex-col overflow-y-auto flex-1 min-h-0",children:n}),t&&c.jsx("div",{className:"px-4 border-t border-line-primary flex-shrink-0 [&>*:first-child]:px-0 [&>*]:border-none [&>*]:p-0 [&>*]:h-[unset] [&>*]:min-h-[unset] [&>*]:w-full [&>*]:rounded-none",children:t})]});_9.displayName="PostCardLeftPanel";const I9=({leftPanelSlot:e,leftPanelResizable:n,headerSlot:t,bodySlot:r,sidebarSlot:o,contentSlot:a,className:s,withTopBorder:i=!1,fixedHeight:u=!1})=>{if(!(e||t||r||o||a))return null;const f=c.jsxs(c.Fragment,{children:[(r||o)&&c.jsxs("div",{className:"flex gap-6 px-6 py-6",children:[r&&c.jsx("div",{className:"flex-1 min-w-0",children:r}),o&&c.jsx("div",{className:"w-[340px] flex-shrink-0",children:o})]}),a&&c.jsx("div",{className:"px-6 pb-6",children:a})]}),h=c.jsxs("div",{className:N("flex flex-col flex-1 min-w-0 min-h-0",u&&"overflow-hidden"),children:[t&&c.jsx("div",{className:"flex-shrink-0",children:t}),c.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto flex flex-col",children:f})]});if(e&&n){const{defaultSize:g=25,minSize:m=15,maxSize:C=50,autoSaveId:p}=n;return c.jsx("div",{className:N("bg-background-primary flex w-full h-full flex-1 flex flex-col",{"border-t border-line-primary":i},s),children:c.jsxs(P1,{direction:"horizontal",className:"flex-1 overflow-hidden",autoSaveId:p,children:[c.jsx(_1,{defaultSize:g,minSize:m,maxSize:C,className:"overflow-auto flex-1",children:c.jsx("div",{className:"h-full bg-background-primary border-r border-line-primary",children:e})}),c.jsx(E9,{withHandle:!0}),c.jsx(_1,{minSize:50,className:"flex flex-col min-h-0 overflow-hidden",children:h})]})})}return c.jsxs("div",{className:N("bg-background-primary flex w-full flex-1 min-h-0",u&&"h-full overflow-hidden",{"border-t border-line-primary":i},s),children:[e&&c.jsx("div",{className:N("w-[346px] flex-shrink-0 border-r border-line-primary",u&&"h-full min-h-0 overflow-hidden flex flex-col"),children:e}),h]})};I9.displayName="PostCard";const k9=l.forwardRef(({className:e,avatarUrl:n,avatarAlt:t,name:r,email:o,role:a,...s},i)=>c.jsxs("div",{ref:i,className:N("flex items-center gap-3 rounded-lg bg-background-secondary p-2",e),...s,children:[n&&c.jsx("img",{src:n,alt:t||r,className:"h-10 w-10 min-w-10 rounded-full border border-line-primary object-cover flex-shrink-0"}),c.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-[2px]",children:[c.jsx("span",{className:"text-sm font-normal leading-5 text-foreground",children:r}),(o||a)&&c.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-normal leading-4",children:[o&&c.jsx("a",{href:`mailto:${o}`,className:"text-foreground-theme hover:underline",children:o}),o&&a&&c.jsx(tl,{className:"text-foreground-secondary"}),a&&c.jsx("span",{className:"text-foreground-secondary",children:a})]})]})]}));k9.displayName="Profile";function Lr(e,n,t){let r=t.initialDeps??[],o,a=!0;function s(){var i,u,d;let f;t.key&&((i=t.debug)!=null&&i.call(t))&&(f=Date.now());const h=e();if(!(h.length!==r.length||h.some((C,p)=>r[p]!==C)))return o;r=h;let m;if(t.key&&((u=t.debug)!=null&&u.call(t))&&(m=Date.now()),o=n(...h),t.key&&((d=t.debug)!=null&&d.call(t))){const C=Math.round((Date.now()-f)*100)/100,p=Math.round((Date.now()-m)*100)/100,v=p/16,w=(y,b)=>{for(y=String(y);y.length<b;)y=" "+y;return y};console.info(`%c⏱ ${w(p,5)} /${w(C,5)} ms`,`
|
|
133
133
|
font-size: .6rem;
|
|
134
134
|
font-weight: bold;
|
|
135
|
-
color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,t==null?void 0:t.key)}return t!=null&&t.onChange&&!(a&&t.skipInitialOnChange)&&t.onChange(o),a=!1,o}return s.updateDeps=i=>{r=i},s}function T9(e,n){if(e===void 0)throw new Error("Unexpected undefined");return e}const wE=(e,n)=>Math.abs(e-n)<1.01,yE=(e,n,t)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>n.apply(this,o),t)}},D9=e=>{const{offsetWidth:n,offsetHeight:t}=e;return{width:n,height:t}},bE=e=>e,xE=e=>{const n=Math.max(e.startIndex-e.overscan,0),t=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=n;o<=t;o++)r.push(o);return r},SE=(e,n)=>{const t=e.scrollElement;if(!t)return;const r=e.targetWindow;if(!r)return;const o=s=>{const{width:i,height:u}=s;n({width:Math.round(i),height:Math.round(u)})};if(o(D9(t)),!r.ResizeObserver)return()=>{};const a=new r.ResizeObserver(s=>{const i=()=>{const u=s[0];if(u!=null&&u.borderBoxSize){const d=u.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(D9(t))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return a.observe(t,{box:"border-box"}),()=>{a.unobserve(t)}},O9={passive:!0},V9=typeof window>"u"?!0:"onscrollend"in window,EE=(e,n)=>{const t=e.scrollElement;if(!t)return;const r=e.targetWindow;if(!r)return;let o=0;const a=e.options.useScrollendEvent&&V9?()=>{}:yE(r,()=>{n(o,!1)},e.options.isScrollingResetDelay),s=f=>()=>{const{horizontal:h,isRtl:g}=e.options;o=h?t.scrollLeft*(g&&-1||1):t.scrollTop,a(),n(o,f)},i=s(!0),u=s(!1);t.addEventListener("scroll",i,O9);const d=e.options.useScrollendEvent&&V9;return d&&t.addEventListener("scrollend",u,O9),()=>{t.removeEventListener("scroll",i),d&&t.removeEventListener("scrollend",u)}},ME=(e,n,t)=>{if(n!=null&&n.borderBoxSize){const r=n.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return e[t.options.horizontal?"offsetWidth":"offsetHeight"]},LE=(e,{adjustments:n=0,behavior:t},r)=>{var o,a;const s=e+n;(a=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:t})};class NE{constructor(n){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(o=>{o.forEach(a=>{const s=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),t=null},observe:o=>{var a;return(a=r())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=r())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,o])=>{typeof o>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:bE,rangeExtractor:xE,onChange:()=>{},measureElement:ME,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var r,o;(o=(r=this.options).onChange)==null||o.call(r,this,t)},this.maybeNotify=Lr(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=a,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,r)=>{const o=new Map,a=new Map;for(let s=r-1;s>=0;s--){const i=t[s];if(o.has(i.lane))continue;const u=a.get(i.lane);if(u==null||i.end>u.end?a.set(i.lane,i):i.end<u.end&&o.set(i.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,i)=>s.end===i.end?s.index-i.index:s.end-i.end)[0]:void 0},this.getMeasurementOptions=Lr(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(t,r,o,a,s,i)=>(this.prevLanes!==void 0&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s,lanes:i}),{key:!1}),this.getMeasurements=Lr(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s,lanes:i},u)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>t)for(const g of this.laneAssignments.keys())g>=t&&this.laneAssignments.delete(g);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(g=>{this.itemSizeCache.set(g.key,g.size)}));const d=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===t&&(this.lanesSettling=!1);const f=this.measurementsCache.slice(0,d),h=new Array(i).fill(void 0);for(let g=0;g<d;g++){const m=f[g];m&&(h[m.lane]=g)}for(let g=d;g<t;g++){const m=a(g),C=this.laneAssignments.get(g);let p,v;if(C!==void 0&&this.options.lanes>1){p=C;const S=h[p],M=S!==void 0?f[S]:void 0;v=M?M.end+this.options.gap:r+o}else{const S=this.options.lanes===1?f[g-1]:this.getFurthestMeasurement(f,g);v=S?S.end+this.options.gap:r+o,p=S?S.lane:g%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(g,p)}const w=u.get(m),y=typeof w=="number"?w:this.options.estimateSize(g),b=v+y;f[g]={index:g,start:v,size:y,end:b,key:m,lane:p},h[p]=g}return this.measurementsCache=f,f},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Lr(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,r,o,a)=>this.range=t.length>0&&r>0?PE({measurements:t,outerSize:r,scrollOffset:o,lanes:a}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Lr(()=>{let t=null,r=null;const o=this.calculateRange();return o&&(t=o.startIndex,r=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,r]},(t,r,o,a,s)=>a===null||s===null?[]:t({startIndex:a,endIndex:s,overscan:r,count:o}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=t=>{const r=this.options.indexAttribute,o=t.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{const o=this.indexFromElement(t),a=this.measurementsCache[o];if(!a)return;const s=a.key,i=this.elementsCache.get(s);i!==t&&(i&&this.observer.unobserve(i),this.observer.observe(t),this.elementsCache.set(s,t)),t.isConnected&&this.resizeItem(o,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{const o=this.measurementsCache[t];if(!o)return;const a=this.itemSizeCache.get(o.key)??o.size,s=r-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",s),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(t,void 0)},this.getVirtualItems=Lr(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,r)=>{const o=[];for(let a=0,s=t.length;a<s;a++){const i=t[a],u=r[i];o.push(u)}return o},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const r=this.getMeasurements();if(r.length!==0)return T9(r[H9(0,r.length-1,o=>T9(r[o]).start,t)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const t=this.scrollElement.document.documentElement;return this.options.horizontal?t.scrollWidth-this.scrollElement.innerWidth:t.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(t,r,o=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),s=this.getScrollOffset();r==="auto"&&(r=t>=s+a?"end":"start"),r==="center"?t+=(o-a)/2:r==="end"&&(t-=a);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const o=this.measurementsCache[t];if(!o)return;const a=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+a-this.options.scrollPaddingEnd)r="end";else if(o.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];if(r==="end"&&t===this.options.count-1)return[this.getMaxScrollOffset(),r];const i=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,r,o.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:r="start",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(t,{align:r="auto",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1)),this.currentScrollToIndex=t;let a=0;const s=10,i=d=>{if(!this.targetWindow)return;const f=this.getOffsetForIndex(t,d);if(!f){console.warn("Failed to get offset for index:",t);return}const[h,g]=f;this._scrollToOffset(h,{adjustments:void 0,behavior:o}),this.targetWindow.requestAnimationFrame(()=>{const m=()=>{if(this.currentScrollToIndex!==t)return;const C=this.getScrollOffset(),p=this.getOffsetForIndex(t,g);if(!p){console.warn("Failed to get offset for index:",t);return}wE(p[0],C)||u(g)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(m):m()})},u=d=>{this.targetWindow&&this.currentScrollToIndex===t&&(a++,a<s?(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("Schedule retry",a,s),this.targetWindow.requestAnimationFrame(()=>i(d))):console.warn(`Failed to scroll to index ${t} after ${s} attempts.`))};i(r)},this.scrollBy=(t,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var t;const r=this.getMeasurements();let o;if(r.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=((t=r[r.length-1])==null?void 0:t.end)??0;else{const a=Array(this.options.lanes).fill(null);let s=r.length-1;for(;s>=0&&a.some(i=>i===null);){const i=r[s];a[i.lane]===null&&(a[i.lane]=i.end),s--}o=Math.max(...a.filter(i=>i!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:o})=>{this.options.scrollToFn(t,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(n)}}const H9=(e,n,t,r)=>{for(;e<=n;){const o=(e+n)/2|0,a=t(o);if(a<r)e=o+1;else if(a>r)n=o-1;else return o}return e>0?e-1:0};function PE({measurements:e,outerSize:n,scrollOffset:t,lanes:r}){const o=e.length-1,a=u=>e[u].start;if(e.length<=r)return{startIndex:0,endIndex:o};let s=H9(0,o,a,t),i=s;if(r===1)for(;i<o&&e[i].end<t+n;)i++;else if(r>1){const u=Array(r).fill(0);for(;i<o&&u.some(f=>f<t+n);){const f=e[i];u[f.lane]=f.end,i++}const d=Array(r).fill(t+n);for(;s>=0&&d.some(f=>f>=t);){const f=e[s];d[f.lane]=f.start,s--}s=Math.max(0,s-s%r),i=Math.min(o,i+(r-1-i%r))}return{startIndex:s,endIndex:i}}const A9=typeof document<"u"?l.useLayoutEffect:l.useEffect;function _E({useFlushSync:e=!0,...n}){const t=l.useReducer(()=>({}),{})[1],r={...n,onChange:(a,s)=>{var i;e&&s?Yt.flushSync(t):t(),(i=n.onChange)==null||i.call(n,a,s)}},[o]=l.useState(()=>new NE(r));return o.setOptions(r),A9(()=>o._didMount(),[]),A9(()=>o._willUpdate()),o}function IE(e){return _E({observeElementRect:SE,observeElementOffset:EE,scrollToFn:LE,...e})}const kE=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM5.59619 7.83594V8.14795C5.59619 9.88379 6.42676 11.1055 7.97803 11.1055C9.61279 11.1055 10.395 9.75635 10.395 8.14795V7.83594C10.395 6.08691 9.56885 4.896 8.01318 4.896C6.4707 4.896 5.59619 6.1001 5.59619 7.83594ZM7.17383 8.14355V7.84033C7.17383 6.67578 7.49902 6.13965 7.99561 6.13965C8.49219 6.13965 8.82178 6.68457 8.82178 7.84033V8.14355C8.82178 9.30371 8.49219 9.86182 7.99561 9.86182C7.49902 9.86182 7.17383 9.30811 7.17383 8.14355Z",fill:"currentColor"})),TE=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM7.70996 6.4209V10.2046C7.70996 10.8154 8.06592 11.0352 8.49219 11.0352C8.92285 11.0352 9.27002 10.8154 9.27002 10.2046V5.91113C9.27002 5.41895 8.98877 4.96631 8.34717 4.96631C8.03076 4.96631 7.68359 5.07617 7.33643 5.2915L6.65088 5.73535C6.42236 5.88037 6.23779 6.06934 6.23779 6.3418C6.23779 6.63623 6.43115 6.88232 6.76953 6.88232C6.92773 6.88232 7.05957 6.82959 7.30566 6.68018L7.69678 6.4209H7.70996Z",fill:"currentColor"})),DE=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM6.4751 9.36963C6.06201 9.76514 5.84229 10.0376 5.84229 10.354C5.84229 10.6836 6.0752 11 6.58496 11H9.604C10.0522 11 10.3203 10.7715 10.3203 10.3848C10.3203 10.0068 10.0522 9.76514 9.604 9.76514H7.89014V9.69922L9.07666 8.54346C9.63477 8.00732 10.0962 7.42725 10.0962 6.6582C10.0962 5.62549 9.26123 4.896 7.94727 4.896C6.49707 4.896 5.77637 5.78809 5.77637 6.45605C5.77637 6.86475 6.05322 7.10205 6.42236 7.10205C6.7124 7.10205 6.86182 6.95264 6.98486 6.79883C7.00304 6.77175 7.02106 6.74436 7.03912 6.7169C7.23506 6.41905 7.43621 6.11328 7.89893 6.11328C8.36035 6.11328 8.60645 6.4165 8.60645 6.78125C8.60645 7.20752 8.25049 7.58984 7.93848 7.89746L6.4751 9.36963Z",fill:"currentColor"})),OE=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM6.34766 9.08838C5.94336 9.08838 5.68848 9.36523 5.68848 9.73438C5.68848 10.4727 6.69482 11.1055 7.93408 11.1055C9.21289 11.1055 10.3335 10.4551 10.3335 9.29053C10.3335 8.39844 9.68311 7.91064 9.08545 7.8667V7.7876C9.53809 7.73486 10.1709 7.31299 10.1709 6.51318C10.1709 5.52002 9.19531 4.896 7.93408 4.896C6.60254 4.896 5.74121 5.59473 5.74121 6.28467C5.74121 6.67578 6.03125 6.89551 6.40039 6.89551C6.66406 6.89551 6.81787 6.77686 6.9541 6.62744C6.96237 6.61792 6.97065 6.60837 6.97894 6.5988C7.20417 6.33884 7.44148 6.06494 7.90771 6.06494C8.37793 6.06494 8.68994 6.3374 8.68994 6.70215C8.68994 7.06689 8.37354 7.34814 7.91211 7.34814H7.4375C7.22656 7.34814 6.87939 7.50195 6.87939 7.91064C6.87939 8.31055 7.21777 8.49951 7.4375 8.49951H7.9209C8.50098 8.49951 8.82178 8.82031 8.82178 9.22461C8.82178 9.60693 8.52295 9.94092 7.9209 9.94092C7.40234 9.94092 7.13867 9.69922 6.94092 9.42676C6.7959 9.25098 6.65088 9.08838 6.34766 9.08838Z",fill:"currentColor"})),VE=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8.34717 8.79395H6.80908V8.77197C7.23096 7.87549 7.75391 7.01416 8.3208 6.14404H8.34717V8.79395ZM8.34717 10.0112V10.2529C8.34717 10.7539 8.646 11.0352 9.07227 11.0352C9.49854 11.0352 9.81055 10.7539 9.81055 10.2529V10.0112H9.95117C10.3291 10.0112 10.5752 9.7959 10.5752 9.40918C10.5752 9.02246 10.3291 8.79395 9.95117 8.79395H9.81055V5.93311C9.81055 5.25195 9.26562 4.90918 8.5625 4.90918C7.90771 4.90918 7.55615 5.20361 7.13428 5.81445C6.56299 6.64502 6.01807 7.57666 5.63135 8.37646C5.48193 8.69727 5.40723 8.93896 5.40723 9.19824C5.40723 9.67285 5.67529 10.0112 6.26855 10.0112H8.34717Z",fill:"currentColor"})),HE=e=>l.createElement("svg",{width:111,height:90,viewBox:"0 0 111 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 13.2058C0.5 6.06347 6.29003 0.273438 13.4324 0.273438H97.5676C104.71 0.273438 110.5 6.06347 110.5 13.2058V74.5831V76.2513C110.5 83.3937 104.71 89.1837 97.5676 89.1837H13.4324C6.29003 89.1837 0.5 83.3937 0.5 76.2513V13.2058ZM107.087 23.265V29.8617V74.1158V76.237C107.087 81.5938 102.745 85.9363 97.3877 85.9363H13.2525C7.89575 85.9363 3.55323 81.5938 3.55323 76.237V23.265H107.087Z",fill:"#868DA1"}),l.createElement("path",{d:"M64.9831 35.8279C64.0463 34.1843 62.6858 32.8193 61.0419 31.8739C59.3981 30.9285 57.5306 30.4369 55.6321 30.4498C53.7155 30.451 51.8323 30.9504 50.1691 31.8985C48.5201 32.8594 47.1469 34.2262 46.1815 35.8676L31.0486 62.0832C30.0981 63.7178 29.5977 65.5729 29.5977 67.4615C29.5977 69.3501 30.0982 71.2052 31.0487 72.8397C31.9993 74.4743 33.3661 75.8303 35.0114 76.771C36.6566 77.7117 38.5221 78.2038 40.4195 78.1976H70.8648C72.7621 78.2038 74.6276 77.7117 76.2729 76.771C77.9181 75.8303 79.285 74.4743 80.2355 72.8397C81.186 71.2052 81.6865 69.3501 81.6865 67.4615C81.6866 65.5729 81.1861 63.7178 80.2356 62.0832L64.9831 35.8279ZM76.9459 70.9144C76.3433 71.9653 75.4732 72.8396 74.4231 73.4493C73.373 74.059 72.1801 74.3825 70.9645 74.3873H40.3995C39.1804 74.3805 37.9845 74.0551 36.9315 73.4435C35.8785 72.8319 35.0054 71.9557 34.3997 70.9026C33.794 69.8495 33.4768 68.6565 33.4801 67.4431C33.4833 66.2296 33.8068 65.0383 34.4181 63.9884L49.6507 37.7331C50.2591 36.6768 51.1313 35.7949 52.1829 35.173C53.2344 34.5779 54.4226 34.2635 55.6321 34.2601C56.8486 34.2609 58.0431 34.5827 59.0939 35.1928C60.1447 35.8029 61.0141 36.6794 61.6135 37.7331L76.8462 63.9884C77.4756 65.0363 77.813 66.2323 77.8235 67.4532C77.8341 68.6741 77.5173 69.8757 76.906 70.9342L76.9459 70.9144Z",fill:"#868DA1"}),l.createElement("path",{d:"M57.4667 41.3049C57.2349 41.0496 56.9519 40.8455 56.6359 40.7059C56.32 40.5662 55.9781 40.494 55.6324 40.494C55.2867 40.494 54.9448 40.5662 54.6289 40.7059C54.3129 40.8455 54.0299 41.0496 53.7981 41.3049C53.5524 41.5691 53.3679 41.8838 53.2577 42.2267C53.1474 42.5696 53.1141 42.9324 53.1601 43.2895L54.5757 57.5185C54.5757 57.7975 54.687 58.065 54.8852 58.2623C55.0834 58.4595 55.3521 58.5703 55.6324 58.5703C55.9127 58.5703 56.1814 58.4595 56.3796 58.2623C56.5778 58.065 56.6891 57.7975 56.6891 57.5185L58.1047 43.2895C58.1507 42.9324 58.1174 42.5696 58.0071 42.2267C57.8969 41.8838 57.7124 41.5691 57.4667 41.3049Z",fill:"#868DA1"}),l.createElement("path",{d:"M55.6323 68.1555C57.273 68.1555 58.603 66.8316 58.603 65.1985C58.603 63.5655 57.273 62.2416 55.6323 62.2416C53.9916 62.2416 52.6615 63.5655 52.6615 65.1985C52.6615 66.8316 53.9916 68.1555 55.6323 68.1555Z",fill:"#868DA1"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M107.267 13.2064V20.0468H3.7331V13.2064C3.7331 7.84968 8.07562 3.50715 13.4324 3.50715H97.5676C102.924 3.50715 107.267 7.84967 107.267 13.2064ZM15.8572 16.4396C18.0892 16.4396 19.8986 14.6302 19.8986 12.3982C19.8986 10.1662 18.0892 8.3568 15.8572 8.3568C13.6252 8.3568 11.8158 10.1662 11.8158 12.3982C11.8158 14.6302 13.6252 16.4396 15.8572 16.4396ZM31.2144 12.3982C31.2144 14.6302 29.4051 16.4396 27.1731 16.4396C24.9411 16.4396 23.1317 14.6302 23.1317 12.3982C23.1317 10.1662 24.9411 8.3568 27.1731 8.3568C29.4051 8.3568 31.2144 10.1662 31.2144 12.3982Z",fill:"#868DA1"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M107.267 13.2065V20.0468H3.7328V13.2065C3.7328 7.84973 8.07533 3.5072 13.4321 3.5072H97.5673C102.924 3.5072 107.267 7.84973 107.267 13.2065ZM15.8569 16.4396C18.0889 16.4396 19.8983 14.6302 19.8983 12.3982C19.8983 10.1662 18.0889 8.35685 15.8569 8.35685C13.6249 8.35685 11.8156 10.1662 11.8156 12.3982C11.8156 14.6302 13.6249 16.4396 15.8569 16.4396ZM31.2141 12.3982C31.2141 14.6302 29.4048 16.4396 27.1728 16.4396C24.9408 16.4396 23.1314 14.6302 23.1314 12.3982C23.1314 10.1662 24.9408 8.35685 27.1728 8.35685C29.4048 8.35685 31.2141 10.1662 31.2141 12.3982Z",fill:"#20242F"})),AE=e=>l.createElement("svg",{width:111,height:90,viewBox:"0 0 111 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 13.2058C0.5 6.06347 6.29003 0.273438 13.4324 0.273438H97.5676C104.71 0.273438 110.5 6.06347 110.5 13.2058V74.5831V76.2513C110.5 83.3937 104.71 89.1837 97.5676 89.1837H13.4324C6.29003 89.1837 0.5 83.3937 0.5 76.2513V13.2058ZM107.087 23.265V29.8617V74.1158V76.237C107.087 81.5938 102.745 85.9363 97.3877 85.9363H13.2525C7.89575 85.9363 3.55323 81.5938 3.55323 76.237V23.265H107.087Z",fill:"#37394A"}),l.createElement("path",{d:"M64.983 35.8279C64.0462 34.1843 62.6857 32.8193 61.0419 31.8739C59.3981 30.9285 57.5306 30.4369 55.6321 30.4498C53.7154 30.451 51.8323 30.9504 50.1691 31.8985C48.52 32.8594 47.1469 34.2262 46.1815 35.8676L31.0486 62.0832C30.0981 63.7178 29.5976 65.5729 29.5977 67.4615C29.5977 69.3501 30.0982 71.2052 31.0487 72.8397C31.9992 74.4743 33.3661 75.8303 35.0113 76.771C36.6566 77.7117 38.522 78.2038 40.4194 78.1976H70.8647C72.7621 78.2038 74.6276 77.7117 76.2728 76.771C77.9181 75.8303 79.2849 74.4743 80.2354 72.8397C81.1859 71.2052 81.6865 69.3501 81.6865 67.4615C81.6865 65.5729 81.186 63.7178 80.2356 62.0832L64.983 35.8279ZM76.9458 70.9144C76.3432 71.9653 75.4731 72.8396 74.423 73.4493C73.373 74.059 72.1801 74.3825 70.9644 74.3873H40.3995C39.1804 74.3805 37.9844 74.0551 36.9314 73.4435C35.8785 72.8319 35.0054 71.9557 34.3997 70.9026C33.7939 69.8495 33.4768 68.6565 33.48 67.4431C33.4833 66.2296 33.8067 65.0383 34.4181 63.9884L49.6507 37.7331C50.259 36.6768 51.1313 35.7949 52.1828 35.173C53.2343 34.5779 54.4225 34.2635 55.6321 34.2601C56.8486 34.2609 58.0431 34.5827 59.0939 35.1928C60.1446 35.8029 61.0141 36.6794 61.6135 37.7331L76.8461 63.9884C77.4756 65.0363 77.813 66.2323 77.8235 67.4532C77.834 68.6741 77.5173 69.8757 76.9059 70.9342L76.9458 70.9144Z",fill:"#37394A"}),l.createElement("path",{d:"M57.4667 41.3049C57.2349 41.0496 56.9519 40.8455 56.6359 40.7059C56.32 40.5662 55.9781 40.494 55.6324 40.494C55.2867 40.494 54.9448 40.5662 54.6288 40.7059C54.3129 40.8455 54.0299 41.0496 53.7981 41.3049C53.5524 41.5691 53.3679 41.8838 53.2576 42.2267C53.1474 42.5696 53.1141 42.9324 53.1601 43.2895L54.5757 57.5185C54.5757 57.7975 54.687 58.065 54.8852 58.2623C55.0833 58.4595 55.3521 58.5703 55.6324 58.5703C55.9126 58.5703 56.1814 58.4595 56.3796 58.2623C56.5778 58.065 56.6891 57.7975 56.6891 57.5185L58.1047 43.2895C58.1507 42.9324 58.1174 42.5696 58.0071 42.2267C57.8969 41.8838 57.7124 41.5691 57.4667 41.3049Z",fill:"#37394A"}),l.createElement("path",{d:"M55.6323 68.1555C57.273 68.1555 58.603 66.8316 58.603 65.1985C58.603 63.5655 57.273 62.2416 55.6323 62.2416C53.9916 62.2416 52.6615 63.5655 52.6615 65.1985C52.6615 66.8316 53.9916 68.1555 55.6323 68.1555Z",fill:"#37394A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M107.267 13.2064V20.0468H3.7331V13.2064C3.7331 7.84968 8.07562 3.50715 13.4324 3.50715H97.5676C102.924 3.50715 107.267 7.84967 107.267 13.2064ZM15.8572 16.4396C18.0892 16.4396 19.8986 14.6302 19.8986 12.3982C19.8986 10.1662 18.0892 8.3568 15.8572 8.3568C13.6252 8.3568 11.8158 10.1662 11.8158 12.3982C11.8158 14.6302 13.6252 16.4396 15.8572 16.4396ZM31.2144 12.3982C31.2144 14.6302 29.4051 16.4396 27.1731 16.4396C24.9411 16.4396 23.1317 14.6302 23.1317 12.3982C23.1317 10.1662 24.9411 8.3568 27.1731 8.3568C29.4051 8.3568 31.2144 10.1662 31.2144 12.3982Z",fill:"#37394A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M107.267 13.2065V20.0468H3.73279V13.2065C3.73279 7.84973 8.07531 3.5072 13.4321 3.5072H97.5673C102.924 3.5072 107.267 7.84973 107.267 13.2065ZM15.8569 16.4396C18.0889 16.4396 19.8983 14.6302 19.8983 12.3982C19.8983 10.1662 18.0889 8.35685 15.8569 8.35685C13.6249 8.35685 11.8155 10.1662 11.8155 12.3982C11.8155 14.6302 13.6249 16.4396 15.8569 16.4396ZM31.2141 12.3982C31.2141 14.6302 29.4047 16.4396 27.1728 16.4396C24.9408 16.4396 23.1314 14.6302 23.1314 12.3982C23.1314 10.1662 24.9408 8.35685 27.1728 8.35685C29.4047 8.35685 31.2141 10.1662 31.2141 12.3982Z",fill:"white"})),FE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{opacity:.5,clipPath:"url(#clip0_5311_17878)"},l.createElement("path",{d:"M6.5 10H4.5V17H6.5V10ZM12.5 10H10.5V17H12.5V10ZM21 19H2V21H21V19ZM18.5 10H16.5V17H18.5V10ZM11.5 3.26L16.71 6H6.29L11.5 3.26ZM11.5 1L2 6V8H21V6L11.5 1Z",fill:"currentColor"})),l.createElement("clipPath",{id:"clip0_5311_17878"},l.createElement("rect",{width:24,height:24,fill:"currentColor"}))),$E=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM12 6C13.93 6 15.5 7.57 15.5 9.5C15.5 11.43 13.93 13 12 13C10.07 13 8.5 11.43 8.5 9.5C8.5 7.57 10.07 6 12 6ZM19 19H5V18.77C5 18.15 5.28 17.57 5.76 17.19C7.47 15.82 9.64 15 12 15C14.36 15 16.53 15.82 18.24 17.19C18.72 17.57 19 18.16 19 18.77V19Z",fill:"currentColor"})),zE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 6C13.93 6 15.5 7.57 15.5 9.5C15.5 11.43 13.93 13 12 13C10.07 13 8.5 11.43 8.5 9.5C8.5 7.57 10.07 6 12 6ZM12 20C9.97 20 7.57 19.18 5.86 17.12C7.55 15.8 9.68 15 12 15C14.32 15 16.45 15.8 18.14 17.12C16.43 19.18 14.03 20 12 20Z",fill:"currentColor"})),BE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M22 11V3H15V6H9V3H2V11H9V8H11V18H15V21H22V13H15V16H13V8H15V11H22ZM7 9H4V5H7V9ZM17 15H20V19H17V15ZM17 5H20V9H17V5Z"})),ZE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M18 13H13V18C13 18.55 12.55 19 12 19C11.45 19 11 18.55 11 18V13H6C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11H11V6C11 5.45 11.45 5 12 5C12.55 5 13 5.45 13 6V11H18C18.55 11 19 11.45 19 12C19 12.55 18.55 13 18 13Z",fill:"currentColor"})),WE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19 3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM16 13H13V16C13 16.55 12.55 17 12 17C11.45 17 11 16.55 11 16V13H8C7.45 13 7 12.55 7 12C7 11.45 7.45 11 8 11H11V8C11 7.45 11.45 7 12 7C12.55 7 13 7.45 13 8V11H16C16.55 11 17 11.45 17 12C17 12.55 16.55 13 16 13Z",fill:"currentColor"})),RE=e=>l.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M14 2C20.6274 2 26 7.37258 26 14C26 20.6274 20.6274 26 14 26C7.37258 26 2 20.6274 2 14C2 7.37258 7.37258 2 14 2ZM14 4C8.47715 4 4 8.47715 4 14C4 19.5228 8.47715 24 14 24C19.5228 24 24 19.5228 24 14C24 8.47715 19.5228 4 14 4ZM14 8C14.5523 8 15 8.44772 15 9V13H19C19.5523 13 20 13.4477 20 14C20 14.5523 19.5523 15 19 15H15V19C15 19.5523 14.5523 20 14 20C13.4477 20 13 19.5523 13 19V15H9C8.44772 15 8 14.5523 8 14C8 13.4477 8.44772 13 9 13H13V9C13 8.44772 13.4477 8 14 8Z",fill:"currentColor"})),GE=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},l.createElement("path",{d:"M16.9597 5.62049L16.3221 7.01311L14.9194 7.64611L16.3221 8.27912L16.9597 9.67173L17.5973 8.27912L19 7.64611L17.5973 7.01311L16.9597 5.62049Z",fill:"currentColor"}),l.createElement("path",{d:"M10.0228 4C11.7063 4 12.8897 4.93756 13.6395 6.18941C14.3588 7.39039 14.7386 8.95377 14.9314 10.5389C14.9435 10.6385 14.9525 10.739 14.9633 10.8396C15.6154 10.8273 16.3067 10.8426 17.0386 10.8895L18.1839 10.9631V19.7998H15.7355V13.2688C15.5188 13.2651 15.3082 13.2637 15.1035 13.2664C15.1385 15.7089 14.8949 18.1863 14.6054 19.9913L12.1874 19.6083C12.4563 17.9313 12.6756 15.6786 12.6576 13.4832C10.617 13.849 9.47727 14.624 8.83766 15.4091C7.81417 16.6655 7.75223 18.3272 7.96577 19.5996L5.55091 20L5.4736 19.5181C5.09287 17.0409 4.81228 13.5412 5.15401 10.5476C5.33494 8.96265 5.70262 7.39784 6.41404 6.19495C7.15666 4.93933 8.33745 4.00002 10.0228 4ZM10.0228 6.43074C9.42306 6.43075 8.95067 6.70683 8.52525 7.42614C8.06871 8.19823 7.75309 9.36818 7.5872 10.8214C7.49639 11.6169 7.45523 12.461 7.45012 13.3163C8.59359 12.2051 10.2431 11.4013 12.5229 11.043C12.5151 10.9718 12.5092 10.9006 12.5006 10.8301C12.3238 9.37693 11.999 8.20565 11.5355 7.43168C11.1024 6.70865 10.6243 6.43074 10.0228 6.43074Z",fill:"currentColor"})),jE=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},l.createElement("path",{d:"M3.67124 20.4L21.1212 12.92C21.9312 12.57 21.9312 11.43 21.1212 11.08L3.67124 3.60002C3.01124 3.31002 2.28124 3.80002 2.28124 4.51002L2.27124 9.12002C2.27124 9.62002 2.64124 10.05 3.14124 10.11L17.2712 12L3.14124 13.88C2.64124 13.95 2.27124 14.38 2.27124 14.88L2.28124 19.49C2.28124 20.2 3.01124 20.69 3.67124 20.4Z",fill:"white"})),YE=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.1924 6.50411C13.2689 6.50414 11.1605 8.07723 9.64638 10.2303C9.87288 10.3006 10.0972 10.3847 10.3166 10.4852C11.2203 10.8992 11.98 11.5506 12.5773 12.4498C12.8641 12.8817 13.1128 13.3704 13.3248 13.9186C14.6585 13.5957 16.1474 13.4095 17.8207 13.4095H19.1579V20H16.4827V15.9918C15.5754 16.0575 14.7403 16.1885 13.9688 16.3766C14.1454 17.4381 14.2441 18.6425 14.2673 20H11.5913C11.5721 18.9661 11.507 18.071 11.4046 17.2969C9.92785 18.016 8.73133 18.9644 7.69243 20H4.00082L4 4H6.67516V9.99178C8.34421 7.14048 11.0957 4.31036 15.403 4H16.1924V6.50411ZM8.32895 12.5263C7.57025 14.1325 7.14247 15.6756 6.91283 17.1891C8.01231 16.2597 9.28565 15.4143 10.8002 14.759C10.6514 14.3802 10.4896 14.0618 10.3141 13.7977C9.96296 13.269 9.56999 12.9579 9.15214 12.7664C8.91199 12.6565 8.63923 12.5762 8.32895 12.5263Z",fill:"currentColor"}),l.createElement("path",{d:"M17.8947 7.36842L17.2368 8.81579L15.7895 9.47368L17.2368 10.1316L17.8947 11.5789L18.5526 10.1316L20 9.47368L18.5526 8.81579L17.8947 7.36842Z",fill:"currentColor"})),UE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM8 17C7.45 17 7 16.55 7 16V13C7 12.45 7.45 12 8 12C8.55 12 9 12.45 9 13V16C9 16.55 8.55 17 8 17ZM12 17C11.45 17 11 16.55 11 16V15C11 14.45 11.45 14 12 14C12.55 14 13 14.45 13 15V16C13 16.55 12.55 17 12 17ZM12 12C11.45 12 11 11.55 11 11C11 10.45 11.45 10 12 10C12.55 10 13 10.45 13 11C13 11.55 12.55 12 12 12ZM16 17C15.45 17 15 16.55 15 16V8C15 7.45 15.45 7 16 7C16.55 7 17 7.45 17 8V16C17 16.55 16.55 17 16 17Z",fill:"currentColor"})),qE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M18.71 3H5.29L3 5.79V21H21V5.79L18.71 3ZM12 17.5L6.5 12H10V10H14V12H17.5L12 17.5ZM5.12 5L5.93 4H17.93L18.87 5H5.12Z"})),KE=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z"})),XE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19 4H14.82C14.4 2.84 13.3 2 12 2C10.7 2 9.6 2.84 9.18 4H5C3.9 4 3 4.9 3 6V20C3 21.1 3.9 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM12 4C12.55 4 13 4.45 13 5C13 5.55 12.55 6 12 6C11.45 6 11 5.55 11 5C11 4.45 11.45 4 12 4ZM13 18H8C7.45 18 7 17.55 7 17C7 16.45 7.45 16 8 16H13C13.55 16 14 16.45 14 17C14 17.55 13.55 18 13 18ZM16 14H8C7.45 14 7 13.55 7 13C7 12.45 7.45 12 8 12H16C16.55 12 17 12.45 17 13C17 13.55 16.55 14 16 14ZM16 10H8C7.45 10 7 9.55 7 9C7 8.45 7.45 8 8 8H16C16.55 8 17 8.45 17 9C17 9.55 16.55 10 16 10Z",fill:"currentColor"})),QE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19 4H14.82C14.4 2.84 13.3 2 12 2C10.7 2 9.6 2.84 9.18 4H5C3.9 4 3 4.9 3 6V20C3 21.1 3.9 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM12 4C12.55 4 13 4.45 13 5C13 5.55 12.55 6 12 6C11.45 6 11 5.55 11 5C11 4.45 11.45 4 12 4ZM9.29 17.29L6.7 14.7C6.31 14.31 6.31 13.68 6.7 13.29C7.09 12.9 7.72 12.9 8.11 13.29L10 15.17L15.88 9.29C16.27 8.9 16.9 8.9 17.29 9.29C17.68 9.68 17.68 10.31 17.29 10.7L10.7 17.29C10.32 17.68 9.68 17.68 9.29 17.29Z",fill:"currentColor"})),F9=e=>l.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M16 7.2477V17.8277C16 19.9177 14.47 21.7777 12.39 21.9777C10 22.2077 8 20.3377 8 17.9977V5.6377C8 4.3277 8.94 3.1377 10.24 3.0077C11.74 2.8577 13 4.0277 13 5.4977V15.9977C13 16.5477 12.55 16.9977 12 16.9977C11.45 16.9977 11 16.5477 11 15.9977V7.2477C11 6.8377 10.66 6.4977 10.25 6.4977C9.84 6.4977 9.5 6.8377 9.5 7.2477V15.8577C9.5 17.1677 10.44 18.3577 11.74 18.4877C13.24 18.6377 14.5 17.4677 14.5 15.9977V5.6677C14.5 3.5777 12.97 1.7177 10.89 1.5177C8.51 1.2877 6.5 3.1577 6.5 5.4977V17.7677C6.5 20.6377 8.6 23.2077 11.46 23.4777C14.75 23.7777 17.5 21.2177 17.5 17.9977V7.2477C17.5 6.8377 17.16 6.4977 16.75 6.4977C16.34 6.4977 16 6.8377 16 7.2477Z",fill:"currentColor"})),I1=e=>l.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19.41 7.91L14.58 3.08C14.21 2.71 13.7 2.5 13.17 2.5H6C4.9 2.5 4.01 3.4 4.01 4.5L4 20.5C4 21.6 4.89 22.5 5.99 22.5H18C19.1 22.5 20 21.6 20 20.5V9.33C20 8.8 19.79 8.29 19.41 7.91ZM15 13.5H13V17.11C13 18.39 12 19.52 10.72 19.5C9.28 19.48 8.16 18.11 8.59 16.59C8.8 15.87 9.39 15.28 10.12 15.08C10.82 14.89 11.48 15.03 12 15.37V12.5C12 11.95 12.45 11.5 13 11.5H15C15.55 11.5 16 11.95 16 12.5C16 13.05 15.55 13.5 15 13.5ZM14 9.5C13.45 9.5 13 9.05 13 8.5V4L18.5 9.5H14Z"})),JE=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M8 9H4V20H8V9Z"}),l.createElement("path",{d:"M20 13H16V20H20V13Z"}),l.createElement("path",{d:"M14 4H10V20H14V4Z"})),eM=e=>l.createElement("svg",{width:1311,height:980,viewBox:"0 0 1311 980",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{opacity:.5,d:"M1741.94 269.154C1699.1 418.49 1550.05 1031.55 1165.11 902.161C683.944 740.431 626.772 253.779 784.743 22.5768C942.713 -208.626 1276.19 -94.8007 1215.69 170.186C1155.19 435.173 573.38 886.719 274.35 788.034C-246.712 616.075 202.468 -453.374 1418.5 22.5763",stroke:"url(#paint0_linear_836_26982)",strokeWidth:120}),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_836_26982",x1:1302.33,y1:579.42,x2:-156.443,y2:285.477,gradientUnits:"userSpaceOnUse"},l.createElement("stop",{offset:.0789474,stopColor:"#151924"}),l.createElement("stop",{offset:.340478,stopColor:"#0613AF"}),l.createElement("stop",{offset:.526371,stopColor:"#262CFE"}),l.createElement("stop",{offset:.766928,stopColor:"#615BFE"}),l.createElement("stop",{offset:.917746,stopColor:"#A488FF"})))),tM=e=>l.createElement("svg",{width:1311,height:980,viewBox:"0 0 1311 980",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{opacity:.2,d:"M1741.94 269.154C1699.1 418.49 1550.05 1031.55 1165.11 902.161C683.944 740.431 626.772 253.779 784.743 22.5768C942.713 -208.626 1276.19 -94.8007 1215.69 170.186C1155.19 435.173 573.38 886.719 274.351 788.034C-246.712 616.075 202.469 -453.374 1418.5 22.5763",stroke:"url(#paint0_linear_761_8753)",strokeWidth:120}),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_761_8753",x1:1302.33,y1:579.42,x2:-156.443,y2:285.477,gradientUnits:"userSpaceOnUse"},l.createElement("stop",{offset:.0789474,stopColor:"#E5E5E5"}),l.createElement("stop",{offset:.25,stopColor:"#3A49FF",stopOpacity:.84}),l.createElement("stop",{offset:.51,stopColor:"#972FFF"}),l.createElement("stop",{offset:.79,stopColor:"#8B10EC"}),l.createElement("stop",{offset:.917746,stopColor:"#3C00FF"})))),$9=e=>l.createElement("svg",{width:160,height:160,viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("ellipse",{opacity:.1,cx:80,cy:155.2,rx:80,ry:4.8,fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.9313 35.2C62.9759 31.5064 66.3719 28.8 70.4 28.8H102.856C100.15 30.4303 97.8172 32.6163 96.015 35.2H61.9313ZM94.1556 38.4H47.2C41.8981 38.4 37.6 42.6981 37.6 48V107.2H87.2H88C88.8836 107.2 89.6 107.916 89.6 108.8V117.2C89.6 124.048 95.1517 129.6 102 129.6C108.848 129.6 114.4 124.048 114.4 117.2V70.4C102.029 70.4 92 60.3712 92 48C92 44.5645 92.7734 41.3096 94.1556 38.4ZM117.6 70.1732V115.067C122.14 114.306 125.6 110.357 125.6 105.6V67.4033C123.183 68.8017 120.48 69.7613 117.6 70.1732ZM128.8 65.1588V105.6C128.8 112.141 123.894 117.536 117.561 118.306C116.994 126.405 110.244 132.8 102 132.8C101.86 132.8 101.721 132.798 101.582 132.795L101.6 132.8H44C35.1634 132.8 28 125.637 28 116.8V113.6C28 110.065 30.8654 107.2 34.4 107.2V48C34.4 40.9308 40.1308 35.2 47.2 35.2H58.64C59.7519 29.7226 64.5945 25.6 70.4 25.6H112.8V25.6563C113.328 25.619 113.862 25.6 114.4 25.6C126.771 25.6 136.8 35.6288 136.8 48C136.8 54.8879 133.691 61.0497 128.8 65.1588ZM19.2 122.8C19.2 122.137 19.7373 121.6 20.4 121.6C21.0627 121.6 21.6 122.137 21.6 122.8V123.2C21.6 132.037 28.7634 139.2 37.6 139.2H41.28C41.8986 139.2 42.4 139.701 42.4 140.32C42.4 140.939 41.8986 141.44 41.28 141.44H37.6C26.9791 141.44 19.2 133.787 19.2 123.2V122.8ZM20.4 118.4C17.9699 118.4 16 120.37 16 122.8V123.2C16 135.588 25.2459 144.64 37.6 144.64H41.28C43.6659 144.64 45.6 142.706 45.6 140.32C45.6 137.934 43.6659 136 41.28 136H37.6C30.5308 136 24.8 130.269 24.8 123.2V122.8C24.8 120.37 22.8301 118.4 20.4 118.4ZM45.6 93.6C45.6 91.3909 47.3909 89.6 49.6 89.6H97.6C99.8091 89.6 101.6 91.3909 101.6 93.6C101.6 95.8091 99.8091 97.6 97.6 97.6H49.6C47.3909 97.6 45.6 95.8091 45.6 93.6ZM49.6 92.8C49.1582 92.8 48.8 93.1582 48.8 93.6C48.8 94.0418 49.1582 94.4 49.6 94.4H97.6C98.0418 94.4 98.4 94.0418 98.4 93.6C98.4 93.1582 98.0418 92.8 97.6 92.8H49.6ZM95.2 48C95.2 37.3961 103.796 28.8 114.4 28.8C125.004 28.8 133.6 37.3961 133.6 48C133.6 58.6039 125.004 67.2 114.4 67.2C103.796 67.2 95.2 58.6039 95.2 48ZM110.4 37.6C110.4 35.3909 112.191 33.6 114.4 33.6C116.609 33.6 118.4 35.3909 118.4 37.6V47.2C118.4 49.4091 116.609 51.2 114.4 51.2C112.191 51.2 110.4 49.4091 110.4 47.2V37.6ZM114.4 36.8C113.958 36.8 113.6 37.1582 113.6 37.6V47.2C113.6 47.6418 113.958 48 114.4 48C114.842 48 115.2 47.6418 115.2 47.2V37.6C115.2 37.1582 114.842 36.8 114.4 36.8ZM114.4 62.4C112.191 62.4 110.4 60.6091 110.4 58.4C110.4 56.1909 112.191 54.4 114.4 54.4C116.609 54.4 118.4 56.1909 118.4 58.4C118.4 60.6091 116.609 62.4 114.4 62.4ZM113.6 58.4C113.6 58.8418 113.958 59.2 114.4 59.2C114.842 59.2 115.2 58.8418 115.2 58.4C115.2 57.9582 114.842 57.6 114.4 57.6C113.958 57.6 113.6 57.9582 113.6 58.4Z",fill:"currentColor"}),l.createElement("rect",{x:47.5,y:65.5,width:29,height:5,rx:2.5,stroke:"currentColor",strokeWidth:3}),l.createElement("rect",{x:47.5,y:78.5,width:29,height:5,rx:2.5,stroke:"currentColor",strokeWidth:3})),nM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM4 12C4 7.58 7.58 4 12 4C13.85 4 15.55 4.63 16.9 5.69L5.69 16.9C4.63 15.55 4 13.85 4 12ZM12 20C10.15 20 8.45 19.37 7.1 18.31L18.31 7.1C19.37 8.45 20 10.15 20 12C20 16.42 16.42 20 12 20Z"})),rM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M22.728 18.9501L13.628 9.85008C14.528 7.55008 14.028 4.85008 12.128 2.95008C10.128 0.950078 7.12802 0.550078 4.72802 1.65008L9.02802 5.95008L6.02802 8.95008L1.62802 4.65008C0.428015 7.05008 0.928016 10.0501 2.92802 12.0501C4.82802 13.9501 7.52802 14.4501 9.82802 13.5501L18.928 22.6501C19.328 23.0501 19.928 23.0501 20.328 22.6501L22.628 20.3501C23.128 19.9501 23.128 19.2501 22.728 18.9501Z"})),oM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM16.54 15.85L15.85 16.54C15.46 16.93 14.83 16.93 14.44 16.54L11.39 13.49C10.17 13.92 8.75 13.66 7.77 12.68C6.66 11.57 6.47 9.89 7.18 8.58L9.53 10.93L10.94 9.52L8.58 7.17C9.9 6.46 11.57 6.65 12.68 7.76C13.66 8.74 13.92 10.16 13.49 11.38L16.54 14.43C16.93 14.82 16.93 15.46 16.54 15.85Z"})),aM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.49 11.38C13.92 10.16 13.66 8.74 12.68 7.76C11.57 6.65 9.89 6.46 8.58 7.17L10.93 9.52L9.52 10.93L7.17 8.58C6.46 9.9 6.65 11.57 7.76 12.68C8.74 13.66 10.16 13.92 11.38 13.49L14.79 16.9C14.99 17.1 15.3 17.1 15.5 16.9L16.9 15.5C17.1 15.3 17.1 14.99 16.9 14.79L13.49 11.38Z"})),sM=e=>l.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M3.52508 2.46445C3.23219 2.17156 2.75731 2.17156 2.46442 2.46445C2.17153 2.75734 2.17153 3.23222 2.46442 3.52511L4.93929 5.99999L2.46442 8.47486C2.17153 8.76775 2.17153 9.24263 2.46442 9.53552C2.75731 9.82841 3.23219 9.82841 3.52508 9.53552L5.99995 7.06065L8.47483 9.53552C8.76772 9.82841 9.2426 9.82841 9.53549 9.53552C9.82838 9.24263 9.82838 8.76775 9.53549 8.47486L7.06062 5.99999L9.53549 3.52511C9.82838 3.23222 9.82838 2.75734 9.53549 2.46445C9.2426 2.17156 8.76772 2.17156 8.47483 2.46445L5.99995 4.93933L3.52508 2.46445Z",fill:"currentColor"})),iM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("rect",{width:24,height:24,rx:12,fill:"white"}),l.createElement("path",{d:"M12 1.71436C17.6806 1.71436 22.2857 6.31943 22.2857 12.0001C22.2857 17.6807 17.6806 22.2858 12 22.2858C6.31935 22.2858 1.71428 17.6807 1.71428 12.0001C1.71428 6.31943 6.31935 1.71436 12 1.71436ZM12 3.42864C7.26612 3.42864 3.42857 7.2662 3.42857 12.0001C3.42857 16.7339 7.26612 20.5715 12 20.5715C16.7339 20.5715 20.5714 16.7339 20.5714 12.0001C20.5714 7.2662 16.7339 3.42864 12 3.42864ZM8.3939 8.39398C8.72864 8.05924 9.27135 8.05924 9.60609 8.39398L12 10.7872L14.3939 8.39398C14.7029 8.08499 15.1891 8.06122 15.5253 8.32267L15.6061 8.39398C15.9408 8.72871 15.9408 9.27143 15.6061 9.60616L13.2129 12.0001L15.6061 14.394C15.9151 14.703 15.9388 15.1892 15.6774 15.5254L15.6061 15.6062C15.2714 15.9409 14.7286 15.9409 14.3939 15.6062L12 13.2129L9.60609 15.6062C9.2971 15.9151 8.8109 15.9389 8.47465 15.6775L8.3939 15.6062C8.05917 15.2714 8.05917 14.7287 8.3939 14.394L10.7871 12.0001L8.3939 9.60616C8.08492 9.29718 8.06115 8.81098 8.3226 8.47473L8.3939 8.39398Z",fill:"currentColor"})),lM=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M3.50908 3.50908C3.7434 3.27476 4.1233 3.27477 4.35761 3.50908L8 7.15149L11.6424 3.50909C11.8767 3.27478 12.2566 3.27478 12.4909 3.5091C12.7253 3.74341 12.7253 4.12331 12.4909 4.35762L8.84853 8.00002L12.4909 11.6424C12.7252 11.8768 12.7252 12.2567 12.4909 12.491C12.2566 12.7253 11.8767 12.7253 11.6424 12.491L8 8.84855L4.35759 12.4909C4.12328 12.7253 3.74338 12.7253 3.50906 12.4909C3.27475 12.2566 3.27475 11.8767 3.50907 11.6424L7.15147 8.00002L3.50908 4.35761C3.27477 4.12329 3.27477 3.74339 3.50908 3.50908Z",fill:"currentColor"})),cM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M10.65 2.93996L6.93 9.01996C6.52 9.67996 7 10.54 7.78 10.54H15.21C15.99 10.54 16.47 9.67996 16.06 9.01996L12.35 2.93996C11.96 2.29996 11.04 2.29996 10.65 2.93996Z",fill:"currentColor"}),l.createElement("path",{d:"M17 21.54C19.4853 21.54 21.5 19.5252 21.5 17.04C21.5 14.5547 19.4853 12.54 17 12.54C14.5147 12.54 12.5 14.5547 12.5 17.04C12.5 19.5252 14.5147 21.54 17 21.54Z",fill:"currentColor"}),l.createElement("path",{d:"M3.5 21.04H9.5C10.05 21.04 10.5 20.59 10.5 20.04V14.04C10.5 13.49 10.05 13.04 9.5 13.04H3.5C2.95 13.04 2.5 13.49 2.5 14.04V20.04C2.5 20.59 2.95 21.04 3.5 21.04Z",fill:"currentColor"})),uM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00002 16.1996L4.80002 11.9996L3.40002 13.3996L9.00002 18.9996L21 6.99961L19.6 5.59961L9.00002 16.1996Z",fill:"currentColor"})),dM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M20 6H12L10 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V8C22 6.9 21.1 6 20 6ZM7.83 16L5 13.17L6.41 11.76L7.82 13.17L11.36 9.63L12.77 11.04L7.83 16ZM17.41 13L19 14.59L17.59 16L16 14.41L14.41 16L13 14.59L14.59 13L13 11.41L14.41 10L16 11.59L17.59 10L19 11.41L17.41 13Z"})),fM=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.1576 4.62424C12.3919 4.38992 12.3919 4.01003 12.1576 3.77571C11.9233 3.5414 11.5434 3.5414 11.3091 3.77571L4.33334 10.7514L1.35761 7.77571C1.12329 7.5414 0.743394 7.5414 0.509079 7.77571C0.274765 8.01003 0.274765 8.38992 0.509079 8.62424L3.90908 12.0242C4.0216 12.1368 4.17421 12.2 4.33334 12.2C4.49247 12.2 4.64509 12.1368 4.75761 12.0242L12.1576 4.62424Z"}),l.createElement("path",{d:"M15.4909 4.62424C15.7252 4.38992 15.7252 4.01003 15.4909 3.77571C15.2566 3.5414 14.8767 3.5414 14.6424 3.77571L7.2424 11.1757C7.00808 11.41 7.00808 11.7899 7.2424 12.0242C7.47671 12.2586 7.85661 12.2586 8.09093 12.0242L15.4909 4.62424Z"})),hM=e=>l.createElement("svg",{width:20,height:16,viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.21911 5.87534C4.56412 5.44408 5.19341 5.37416 5.62467 5.71917L9.99998 9.21941L14.3753 5.71917C14.8065 5.37416 15.4358 5.44408 15.7808 5.87534C16.1259 6.3066 16.0559 6.9359 15.6247 7.28091L10.6247 11.2809C10.2595 11.5731 9.7405 11.5731 9.37528 11.2809L4.37528 7.28091C3.94402 6.9359 3.8741 6.3066 4.21911 5.87534Z",fill:"currentColor"})),gM=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M13.7116 10.959C13.6178 12.7483 11.0577 14 7.99993 14C4.88451 14 2.28564 12.7006 2.28564 10.8571V5.14286L2.28831 5.04101C2.38208 3.25175 4.9422 2 7.99993 2C11.1154 2 13.7142 3.29943 13.7142 5.14286V10.8571L13.7116 10.959ZM12.572 7.066C11.5226 7.82619 9.85259 8.28571 7.99993 8.28571C6.14761 8.28571 4.4779 7.82636 3.42846 7.06642L3.4285 8C3.4285 8.9969 5.43471 10 7.99993 10C10.5652 10 12.5714 8.9969 12.5714 8L12.572 7.066ZM7.99993 3.14286C5.43471 3.14286 3.4285 4.14596 3.4285 5.14286C3.4285 6.13975 5.43471 7.14286 7.99993 7.14286C10.5652 7.14286 12.5714 6.13975 12.5714 5.14286C12.5714 4.14596 10.5652 3.14286 7.99993 3.14286ZM12.572 9.92314C11.5226 10.6833 9.85259 11.1429 7.99993 11.1429C6.14761 11.1429 4.4779 10.6835 3.42846 9.92356L3.4285 10.8571L3.43146 10.9236C3.51794 11.8981 5.49171 12.8571 7.99993 12.8571C10.5652 12.8571 12.5714 11.854 12.5714 10.8571L12.572 9.92314Z",fill:"currentColor"})),pM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M21.0076 18.4075L16.0676 13.4675L13.9476 15.5875L18.8876 20.5275C19.4776 21.1175 20.4276 21.1175 21.0076 20.5275C21.5876 19.9375 21.5876 18.9875 21.0076 18.4075Z"}),l.createElement("path",{d:"M17.6676 10.4175C19.5976 10.4175 21.1676 8.84753 21.1676 6.91753C21.1676 6.33753 21.0076 5.79753 20.7576 5.31753L18.0576 8.01753L16.5676 6.52753L19.2676 3.82753C18.7876 3.57753 18.2476 3.41753 17.6676 3.41753C15.7376 3.41753 14.1676 4.98753 14.1676 6.91753C14.1676 7.32753 14.2476 7.71753 14.3776 8.07753L12.5276 9.92753L10.7476 8.14753C11.1376 7.75753 11.1376 7.12753 10.7476 6.73753L10.0376 6.02753L12.1576 3.90753C10.9876 2.73753 9.08762 2.73753 7.91762 3.90753L5.09762 6.73753C4.70762 7.12753 4.70762 7.75753 5.09762 8.14753L5.80762 8.85753H3.26762C3.07762 8.85753 2.89762 8.92753 2.76762 9.06753C2.48762 9.34753 2.48762 9.78753 2.76762 10.0675L5.30762 12.6075C5.58762 12.8875 6.02762 12.8875 6.30762 12.6075C6.43762 12.4775 6.51762 12.2975 6.51762 12.1075V9.56753L7.21762 10.2675C7.60762 10.6575 8.23762 10.6575 8.62762 10.2675L10.4076 12.0475L4.05762 18.3975C3.46762 18.9875 3.46762 19.9375 4.05762 20.5175C4.64762 21.1075 5.59762 21.1075 6.17762 20.5175L16.4976 10.2075C16.8676 10.3375 17.2576 10.4175 17.6676 10.4175Z"})),mM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M4.20618 5.19873H6.20618V6.19873C6.20618 7.29873 7.10618 8.19873 8.20618 8.19873H14.2062C15.3062 8.19873 16.2062 7.29873 16.2062 6.19873V5.19873H18.2062V10.1987H20.2062V5.19873C20.2062 4.09873 19.3062 3.19873 18.2062 3.19873H14.0262C13.6062 2.03873 12.5062 1.19873 11.2062 1.19873C9.90618 1.19873 8.80618 2.03873 8.38618 3.19873H4.20618C3.10618 3.19873 2.20618 4.09873 2.20618 5.19873V19.1987C2.20618 20.2987 3.10618 21.1987 4.20618 21.1987H9.20618V19.1987H4.20618V5.19873ZM11.2062 3.19873C11.7562 3.19873 12.2062 3.64873 12.2062 4.19873C12.2062 4.74873 11.7562 5.19873 11.2062 5.19873C10.6562 5.19873 10.2062 4.74873 10.2062 4.19873C10.2062 3.64873 10.6562 3.19873 11.2062 3.19873Z"}),l.createElement("path",{d:"M21.5062 21.0987L19.5062 19.0987C20.0862 18.0887 20.4562 16.8687 20.0162 15.4487C19.4862 13.7287 17.9762 12.3987 16.1762 12.2287C13.3062 11.9487 10.9462 14.2987 11.2262 17.1787C11.4062 18.9687 12.7262 20.4887 14.4462 21.0187C15.8762 21.4587 17.0862 21.0887 18.0962 20.5087L20.0962 22.5087C20.4862 22.8987 21.1062 22.8987 21.4962 22.5087C21.8862 22.1187 21.8962 21.4887 21.5062 21.0987ZM15.7062 19.1987C14.3062 19.1987 13.2062 18.0987 13.2062 16.6987C13.2062 15.2987 14.3062 14.1987 15.7062 14.1987C17.1062 14.1987 18.2062 15.2987 18.2062 16.6987C18.2062 18.0987 17.1062 19.1987 15.7062 19.1987Z"})),vM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,viewBox:"0 0 25 24",fill:"currentColor",...e},l.createElement("path",{d:"M12.5 7C11.95 7 11.5 7.45 11.5 8V11H8.5C7.95 11 7.5 11.45 7.5 12C7.5 12.55 7.95 13 8.5 13H11.5V16C11.5 16.55 11.95 17 12.5 17C13.05 17 13.5 16.55 13.5 16V13H16.5C17.05 13 17.5 12.55 17.5 12C17.5 11.45 17.05 11 16.5 11H13.5V8C13.5 7.45 13.05 7 12.5 7ZM12.5 2C6.99 2 2.5 6.49 2.5 12C2.5 17.51 6.99 22 12.5 22C18.01 22 22.5 17.51 22.5 12C22.5 6.49 18.01 2 12.5 2ZM12.5 20C8.09 20 4.5 16.41 4.5 12C4.5 7.59 8.09 4 12.5 4C16.91 4 20.5 7.59 20.5 12C20.5 16.41 16.91 20 12.5 20Z"})),CM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 7V5C12 3.9 11.1 3 10 3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H20C21.1 21 22 20.1 22 19V9C22 7.9 21.1 7 20 7H12ZM10 19H4V17H10V19ZM10 15H4V13H10V15ZM10 11H4V9H10V11ZM10 7H4V5H10V7ZM20 19H12V9H20V19ZM18 11H14V13H18V11ZM18 15H14V17H18V15Z",fill:"currentColor"})),wM=e=>l.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0431 2H10.9568C10.2971 1.99998 9.73634 1.99997 9.27298 2.04192C8.78216 2.08636 8.31936 2.18306 7.8757 2.42385C7.21565 2.78208 6.63581 3.4145 6.33608 4.10309C6.07506 4.70273 6.04659 5.3365 6.08749 6.05703C5.46395 5.94568 4.81155 6.0041 4.23936 6.19948C3.04525 6.60722 2 7.67416 2 9.33333C2 10.9011 2.93465 12.3261 4.14924 13.3166C5.17534 14.1534 6.49791 14.7656 7.9038 14.9455C8.07342 15.348 8.25496 15.7309 8.44863 16.0926C9.16922 17.4381 10.0941 18.5449 11.2341 19.2328C11.2011 19.7864 11.1205 20.1638 11.0302 20.428C10.9186 20.7548 10.7801 20.9456 10.63 21.1131C10.5685 21.1819 10.5157 21.2356 10.4504 21.3023C10.4159 21.3374 10.3779 21.3761 10.3332 21.4225C10.2199 21.5403 10.078 21.6939 9.94821 21.8835C9.66019 22.3044 9.5 22.8004 9.5 23.45L9.50001 25C9.50002 25.5523 9.94773 26 10.5 26H17.5C18.0523 26 18.5 25.5523 18.5 25L18.5 23.45C18.5 22.8004 18.3398 22.3044 18.0518 21.8835C17.922 21.6939 17.7801 21.5403 17.6667 21.4225C17.6221 21.3761 17.5842 21.3374 17.5497 21.3023C17.4843 21.2357 17.4315 21.1819 17.3699 21.1131C17.2199 20.9456 17.0814 20.7548 16.9698 20.428C16.8795 20.1638 16.7989 19.7864 16.7659 19.2327C17.9058 18.5448 18.8307 17.438 19.5512 16.0926C19.7449 15.7309 19.9264 15.348 20.0961 14.9456C21.502 14.7656 22.8246 14.1535 23.8508 13.3166C25.0654 12.3261 26 10.9011 26 9.33333C26 7.67416 24.9547 6.60722 23.7606 6.19948C23.1884 6.00409 22.5359 5.94567 21.9124 6.05705C21.9533 5.33652 21.9248 4.70274 21.6638 4.10309C21.364 3.4145 20.7842 2.78208 20.1242 2.42385C19.6805 2.18306 19.2177 2.08636 18.7269 2.04192C18.2635 1.99997 17.7028 1.99998 17.0431 2ZM14.8236 19.9389C14.5575 19.9792 14.2829 20 13.9999 20C13.717 20 13.4425 19.9792 13.1764 19.939C13.1209 20.3717 13.0352 20.7456 12.9229 21.0744C12.7064 21.7083 12.4074 22.1264 12.1199 22.4473C12.027 22.5512 11.9226 22.6577 11.8441 22.7378C11.8173 22.7651 11.7935 22.7894 11.7742 22.8095C11.6825 22.9048 11.633 22.963 11.5987 23.0131C11.5586 23.0717 11.5 23.1663 11.5 23.45L11.5 24H16.5L16.5 23.45C16.5 23.1663 16.4414 23.0717 16.4013 23.0131C16.367 22.963 16.3175 22.9047 16.2258 22.8095C16.2191 22.8025 16.2118 22.795 16.204 22.787C16.1895 22.7721 16.1734 22.7556 16.1559 22.7378C16.0774 22.6577 15.973 22.5512 15.88 22.4473C15.5926 22.1264 15.2936 21.7083 15.0771 21.0744C14.9648 20.7456 14.8791 20.3717 14.8236 19.9389ZM22.5867 11.7667C22.0852 12.1758 21.4926 12.5067 20.8618 12.7223C21.2393 11.3709 21.5191 9.8791 21.7068 8.29017C21.957 8.04001 22.5276 7.89182 23.1144 8.09219C23.6286 8.26777 24 8.65915 24 9.33333C24 10.0989 23.518 11.0072 22.5867 11.7667ZM7.13805 12.7223C6.76055 11.3709 6.48076 9.87916 6.29305 8.2903C6.04288 8.04014 5.47243 7.89182 4.88564 8.09219C4.37141 8.26777 4 8.65915 4 9.33333C4 10.0989 4.48202 11.0072 5.41326 11.7667C5.91481 12.1757 6.50728 12.5066 7.13805 12.7223ZM8.82971 4.18165C8.94388 4.11969 9.10823 4.06502 9.45333 4.03377C9.81582 4.00095 10.2854 4 10.9999 4H16.9999C17.7144 4 18.184 4.00095 18.5465 4.03377C18.8916 4.06502 19.056 4.11969 19.1701 4.18165C19.4381 4.32709 19.7083 4.62176 19.83 4.90133C19.9587 5.19692 19.9576 5.53152 19.8378 6.90929C19.5396 10.3402 18.837 13.1898 17.7881 15.1483C16.7437 17.0985 15.4631 18 13.9999 18C12.5368 18 11.2561 17.0985 10.2117 15.1483C9.16282 13.1898 8.46022 10.3402 8.16205 6.90929C8.04231 5.53152 8.0412 5.19692 8.16987 4.90133C8.29157 4.62176 8.56173 4.32709 8.82971 4.18165Z",fill:"currentColor"})),yM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M11.0317 3.02681C6.53173 3.51681 3.02173 7.33682 3.02173 11.9768C3.02173 16.9468 7.05173 20.9768 12.0217 20.9768C16.6517 20.9768 20.4717 17.4768 20.9717 12.9768C21.0617 12.1868 20.1917 11.5568 19.4317 12.0268C18.5917 12.5668 17.5917 12.8768 16.5217 12.8768C13.5417 12.8768 11.1217 10.4568 11.1217 7.47681C11.1217 6.41681 11.4317 5.41682 11.9617 4.58682C12.4117 3.91682 11.9217 2.95681 11.0317 3.02681Z",fill:"currentColor"})),bM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M9.37 5.51C9.19 6.15 9.1 6.82 9.1 7.5C9.1 11.58 12.42 14.9 16.5 14.9C17.18 14.9 17.85 14.81 18.49 14.63C17.45 17.19 14.93 19 12 19C8.14 19 5 15.86 5 12C5 9.07 6.81 6.55 9.37 5.51ZM12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C16.97 21 21 16.97 21 12C21 11.54 20.96 11.08 20.9 10.64C19.92 12.01 18.32 12.9 16.5 12.9C13.52 12.9 11.1 10.48 11.1 7.5C11.1 5.69 11.99 4.08 13.36 3.1C12.92 3.04 12.46 3 12 3Z"})),xM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M4 13H10C10.55 13 11 12.55 11 12V4C11 3.45 10.55 3 10 3H4C3.45 3 3 3.45 3 4V12C3 12.55 3.45 13 4 13ZM4 21H10C10.55 21 11 20.55 11 20V16C11 15.45 10.55 15 10 15H4C3.45 15 3 15.45 3 16V20C3 20.55 3.45 21 4 21ZM14 21H20C20.55 21 21 20.55 21 20V12C21 11.45 20.55 11 20 11H14C13.45 11 13 11.45 13 12V20C13 20.55 13.45 21 14 21ZM13 4V8C13 8.55 13.45 9 14 9H20C20.55 9 21 8.55 21 8V4C21 3.45 20.55 3 20 3H14C13.45 3 13 3.45 13 4Z",fill:"currentColor"})),z9=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M16 9V19H8V9H16ZM14.5 3H9.5L8.5 4H5V6H19V4H15.5L14.5 3ZM18 7H6V19C6 20.1 6.9 21 8 21H16C17.1 21 18 20.1 18 19V7Z"})),SM=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("circle",{cx:8,cy:8,r:6.3,stroke:"currentColor",strokeWidth:1.4}),l.createElement("path",{d:"M3.83594 3.91602L12.0855 12.1656",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"})),EM=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.03968 1.60079C4.66557 1.26607 5.28221 1.14285 6.68094 1.14285H7.99999C8.01745 1.14285 8.03473 1.14364 8.0518 1.14517C8.33773 1.15122 8.50423 1.17006 8.68876 1.21259C8.9203 1.26596 9.12949 1.3526 9.33094 1.47859C9.53431 1.60578 9.69036 1.73938 10.0123 2.06129L12.7958 4.84486C13.1177 5.16677 13.2514 5.32282 13.3785 5.52619C13.5045 5.72764 13.5912 5.93683 13.6445 6.16837C13.6871 6.3529 13.7059 6.5194 13.712 6.80534C13.7135 6.8224 13.7143 6.83968 13.7143 6.85714V7.16168C13.7143 7.47728 13.4584 7.73311 13.1428 7.73311C12.8273 7.73311 12.5714 7.47728 12.5714 7.16168V6.85714C12.5714 6.85706 12.5714 6.85722 12.5714 6.85714L12.57 6.85689L9.42856 6.85714C8.63958 6.85714 7.99999 6.21755 7.99999 5.42857L8.00084 2.28711C7.96988 2.28661 7.93659 2.28625 7.90064 2.28602L6.68094 2.28571C5.34668 2.28571 4.95621 2.40666 4.57865 2.60858C4.22056 2.80009 3.94294 3.07771 3.75143 3.4358C3.54951 3.81336 3.42856 4.20383 3.42856 5.53808V10.4619C3.42856 11.7962 3.54951 12.1866 3.75143 12.5642C3.94294 12.9223 4.22056 13.1999 4.57865 13.3914C4.95621 13.5933 5.34668 13.7143 6.68094 13.7143H9.31904C9.45614 13.7143 9.58351 13.713 9.70218 13.7105C10.0177 13.7038 10.2789 13.9542 10.2856 14.2697C10.2923 14.5852 10.0419 14.8464 9.72637 14.8531C9.59857 14.8558 9.46307 14.8571 9.31904 14.8571H6.68094C5.28221 14.8571 4.66557 14.7339 4.03968 14.3992C3.48243 14.1012 3.04167 13.6604 2.74365 13.1032C2.40892 12.4773 2.28571 11.8606 2.28571 10.4619V5.53808C2.28571 4.13936 2.40892 3.52272 2.74365 2.89683C3.04167 2.33957 3.48243 1.89882 4.03968 1.60079ZM9.20415 2.86942L9.14285 2.80857V5.42857C9.14285 5.56883 9.24392 5.68549 9.3772 5.70968L9.42856 5.71428L12.0499 5.71546C12.0303 5.69571 12.0096 5.67492 11.9877 5.65298L9.20415 2.86942Z",fill:"currentColor"}),l.createElement("path",{d:"M11.9985 15.4286C11.6829 15.4286 11.4271 15.1727 11.4271 14.8571L11.4271 10.5224L10.1183 11.8312C9.89518 12.0543 9.53337 12.0543 9.31022 11.8312C9.08706 11.608 9.08706 11.2462 9.31022 11.023L11.5945 8.73879C11.8176 8.51563 12.1794 8.51563 12.4026 8.73879L14.6896 11.0258C14.9128 11.249 14.9128 11.6108 14.6896 11.834C14.4665 12.0571 14.1047 12.0571 13.8815 11.834L12.5699 10.5224L12.5699 14.8571C12.5699 15.1727 12.3141 15.4286 11.9985 15.4286Z",fill:"currentColor"})),MM=e=>l.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M8.49618 13.901C8.49618 13.404 8.89912 13.001 9.39618 13.001H10.5962C11.0932 13.001 11.4962 13.404 11.4962 13.901C11.4962 14.3981 11.0932 14.801 10.5962 14.801L9.39618 14.801C8.89912 14.801 8.49618 14.3981 8.49618 13.901Z"}),l.createElement("path",{d:"M9.39618 16.1981C8.89912 16.1981 8.49618 16.601 8.49618 17.0981C8.49618 17.5951 8.89912 17.9981 9.39618 17.9981L10.5962 17.9981C11.0932 17.9981 11.4962 17.5951 11.4962 17.0981C11.4962 16.601 11.0932 16.1981 10.5962 16.1981H9.39618Z"}),l.createElement("path",{d:"M13.5 13.901C13.5 13.404 13.9029 13.001 14.4 13.001H15.6C16.0971 13.001 16.5 13.404 16.5 13.901C16.5 14.3981 16.097 14.801 15.6 14.801L14.4 14.801C13.9029 14.801 13.5 14.3981 13.5 13.901Z"}),l.createElement("path",{d:"M14.4 16.1981C13.9029 16.1981 13.5 16.601 13.5 17.0981C13.5 17.5951 13.9029 17.9981 14.4 17.9981L15.6 17.9981C16.097 17.9981 16.5 17.5951 16.5 17.0981C16.5 16.601 16.0971 16.1981 15.6 16.1981H14.4Z"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.973 1.99993C13.2727 1.99956 13.5594 1.9992 13.8389 2.0663C14.0838 2.12509 14.3179 2.22206 14.5327 2.35365C14.7777 2.50383 14.9802 2.70685 15.1918 2.91898L19.581 7.30816C19.7931 7.51976 19.9961 7.72228 20.1463 7.96734C20.2779 8.18208 20.3749 8.41618 20.4337 8.66107C20.5008 8.94054 20.5004 9.2273 20.5 9.52692L20.5 15.5385C20.5 16.486 20.5 17.2517 20.4493 17.8721C20.3971 18.5114 20.2866 19.0752 20.0204 19.5976C19.5986 20.4255 18.9255 21.0986 18.0976 21.5205C17.5752 21.7866 17.0114 21.8971 16.3721 21.9494C15.7517 22.0001 14.9859 22.0001 14.0384 22H10.9616C10.0141 22.0001 9.24834 22.0001 8.62792 21.9494C7.98863 21.8971 7.42481 21.7866 6.90244 21.5205C6.07453 21.0986 5.40142 20.4255 4.97957 19.5976C4.71341 19.0752 4.60291 18.5114 4.55067 17.8721C4.49998 17.2517 4.49999 16.486 4.5 15.5384V8.46163C4.49999 7.51414 4.49998 6.74838 4.55067 6.12796C4.60291 5.48867 4.71341 4.92485 4.97957 4.40248C5.40142 3.57457 6.07453 2.90146 6.90244 2.47961C7.42481 2.21345 7.98863 2.10295 8.62792 2.05072C9.24834 2.00003 10.0141 2.00003 10.9616 2.00004L12.973 1.99993ZM11 3.80001L12.5 3.79999V5.93542C12.5 6.46528 12.5 6.91647 12.5302 7.2869C12.562 7.67606 12.6317 8.05466 12.8161 8.41659C13.0941 8.96226 13.5378 9.4059 14.0834 9.68394C14.4454 9.86835 14.824 9.93798 15.2131 9.96978C15.5835 10 16.0347 10 16.5645 10L18.7 10L18.7 15.5C18.7 16.495 18.6993 17.1871 18.6553 17.7255C18.6122 18.2535 18.5319 18.5541 18.4166 18.7804C18.1673 19.2696 17.7696 19.6674 17.2804 19.9167C17.0541 20.032 16.7535 20.1122 16.2255 20.1553C15.687 20.1993 14.9949 20.2 14 20.2H11C10.0051 20.2 9.31298 20.1993 8.7745 20.1553C8.24652 20.1122 7.94595 20.032 7.71962 19.9167C7.2304 19.6674 6.83266 19.2696 6.58339 18.7804C6.46807 18.5541 6.38783 18.2535 6.3447 17.7255C6.3007 17.1871 6.3 16.495 6.3 15.5V8.50004C6.3 7.5051 6.3007 6.81302 6.3447 6.27454C6.38783 5.74656 6.46806 5.44599 6.58338 5.21967C6.83265 4.73045 7.2304 4.3327 7.71962 4.08343C7.94595 3.96811 8.24652 3.88788 8.7745 3.84474C9.31298 3.80074 10.0051 3.80001 11 3.80001ZM14.3 4.5728L17.9272 8.20002H16.6C16.0251 8.20002 15.648 8.19932 15.3597 8.17576C15.0818 8.15306 14.9665 8.1137 14.9006 8.08012C14.6936 7.97466 14.5254 7.80639 14.4199 7.59941C14.3863 7.53352 14.347 7.41817 14.3243 7.14033C14.3007 6.85197 14.3 6.47492 14.3 5.90002V4.5728Z"})),LM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5373 6.95518C13.2485 6.37004 12.6525 5.99958 12 5.99958C11.3475 5.99958 10.7515 6.37004 10.4627 6.95518L9.60207 8.6991L7.67754 8.97875C7.03179 9.07259 6.49531 9.52489 6.29367 10.1455C6.09203 10.7661 6.26019 11.4473 6.72746 11.9028L8.12006 13.2603L7.79132 15.177C7.68101 15.8201 7.94539 16.4701 8.4733 16.8537C9.00121 17.2372 9.70108 17.2878 10.2787 16.9842L12 16.0792L13.7214 16.9842C14.2989 17.2878 14.9988 17.2372 15.5267 16.8537C16.0546 16.4701 16.319 15.8201 16.2087 15.177L15.88 13.2603L17.2726 11.9028C17.7398 11.4473 17.908 10.7661 17.7063 10.1455C17.5047 9.52489 16.9682 9.07259 16.3225 8.97875L14.3979 8.6991L13.5373 6.95518ZM10.7405 10.266L12 7.71387L13.2596 10.266L16.076 10.6752L14.038 12.6618L14.5191 15.4668L12 14.1424L9.48093 15.4668L9.96203 12.6618L7.92405 10.6752L10.7405 10.266Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1.71387C6.31937 1.71387 1.71429 6.31894 1.71429 11.9996C1.71429 17.6802 6.31937 22.2853 12 22.2853C17.6807 22.2853 22.2857 17.6802 22.2857 11.9996C22.2857 6.31894 17.6807 1.71387 12 1.71387ZM3.42858 11.9996C3.42858 7.26571 7.26614 3.42815 12 3.42815C16.7339 3.42815 20.5714 7.26571 20.5714 11.9996C20.5714 16.7335 16.7339 20.571 12 20.571C7.26614 20.571 3.42858 16.7335 3.42858 11.9996Z",fill:"currentColor"})),NM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M8.80004 15.9054L5.30004 12.4054C4.91004 12.0154 4.29004 12.0154 3.90004 12.4054C3.51004 12.7954 3.51004 13.4154 3.90004 13.8054L8.09004 17.9954C8.48004 18.3854 9.11004 18.3854 9.50004 17.9954L20.1 7.40539C20.49 7.01539 20.49 6.39539 20.1 6.00539C19.71 5.61539 19.09 5.61539 18.7 6.00539L8.80004 15.9054Z",fill:"currentColor"})),PM=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8242 3.77574C14.0586 4.01006 14.0586 4.38995 13.8242 4.62427L6.42426 12.0243C6.31174 12.1368 6.15913 12.2 6 12.2C5.84087 12.2 5.68826 12.1368 5.57574 12.0243L2.17574 8.62427C1.94142 8.38996 1.94142 8.01006 2.17574 7.77574C2.41005 7.54143 2.78995 7.54143 3.02426 7.77574L6 10.7515L12.9757 3.77574C13.21 3.54143 13.5899 3.54143 13.8242 3.77574Z",fill:"currentColor"})),_M=e=>l.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3572 3L13 3C13.5523 3 14 3.44772 14 4C14 4.55229 13.5523 5 13 5H10.4C9.26339 5 8.47108 5.00078 7.85424 5.05118C7.24907 5.10062 6.90138 5.19279 6.63803 5.32698C6.07354 5.6146 5.6146 6.07354 5.32698 6.63803C5.19279 6.90138 5.10062 7.24907 5.05118 7.85424C5.00078 8.47108 5 9.26339 5 10.4V17.6C5 18.7366 5.00078 19.5289 5.05118 20.1458C5.10062 20.7509 5.19279 21.0986 5.32698 21.362C5.6146 21.9265 6.07354 22.3854 6.63803 22.673C6.90138 22.8072 7.24907 22.8994 7.85424 22.9488C8.47108 22.9992 9.26339 23 10.4 23H13C13.5523 23 14 23.4477 14 24C14 24.5523 13.5523 25 13 25H10.3572C9.27339 25 8.39925 25 7.69138 24.9422C6.96253 24.8826 6.32234 24.7568 5.73005 24.455C4.78924 23.9757 4.02433 23.2108 3.54497 22.27C3.24318 21.6777 3.11737 21.0375 3.05782 20.3086C2.99998 19.6007 2.99999 18.7266 3 17.6428V10.3572C2.99999 9.27341 2.99998 8.39926 3.05782 7.69138C3.11737 6.96253 3.24318 6.32234 3.54497 5.73005C4.02433 4.78924 4.78924 4.02433 5.73005 3.54497C6.32234 3.24318 6.96253 3.11737 7.69138 3.05782C8.39926 2.99998 9.27341 2.99999 10.3572 3ZM19.2929 9.29289C19.6834 8.90237 20.3166 8.90237 20.7071 9.29289L24.7071 13.2929C24.8946 13.4804 25 13.7348 25 14C25 14.2652 24.8946 14.5196 24.7071 14.7071L20.7071 18.7071C20.3166 19.0976 19.6834 19.0976 19.2929 18.7071C18.9024 18.3166 18.9024 17.6834 19.2929 17.2929L21.5858 15H12C11.4477 15 11 14.5523 11 14C11 13.4477 11.4477 13 12 13H21.5858L19.2929 10.7071C18.9024 10.3166 18.9024 9.68342 19.2929 9.29289Z",fill:"#2688EB"})),IM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12.4971 2 12.9 2.40294 12.9 2.9V13.8272L17.4636 9.26361C17.8151 8.91214 18.3849 8.91214 18.7364 9.26361C19.0879 9.61508 19.0879 10.1849 18.7364 10.5364L12.6364 16.6364C12.2849 16.9879 11.7151 16.9879 11.3636 16.6364L5.26361 10.5364C4.91214 10.1849 4.91214 9.61508 5.26361 9.26361C5.61508 8.91214 6.18493 8.91214 6.5364 9.26361L11.1 13.8272V2.9C11.1 2.40294 11.5029 2 12 2ZM4 20C4 19.5029 4.40294 19.1 4.9 19.1H19.1C19.5971 19.1 20 19.5029 20 20C20 20.4971 19.5971 20.9 19.1 20.9H4.9C4.40294 20.9 4 20.4971 4 20Z",fill:"currentColor"})),kM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{clipPath:"url(#clip0_7757_15850)"},l.createElement("path",{d:"M11 18C11 19.1 10.1 20 9 20C7.9 20 7 19.1 7 18C7 16.9 7.9 16 9 16C10.1 16 11 16.9 11 18ZM9 10C7.9 10 7 10.9 7 12C7 13.1 7.9 14 9 14C10.1 14 11 13.1 11 12C11 10.9 10.1 10 9 10ZM9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM15 8C16.1 8 17 7.1 17 6C17 4.9 16.1 4 15 4C13.9 4 13 4.9 13 6C13 7.1 13.9 8 15 8ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM15 16C13.9 16 13 16.9 13 18C13 19.1 13.9 20 15 20C16.1 20 17 19.1 17 18C17 16.9 16.1 16 15 16Z"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_7757_15850"},l.createElement("rect",{width:24,height:24,rx:8})))),TM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M2.79498 17.455V21.205H6.54498L17.605 10.145L13.855 6.39498L2.79498 17.455ZM21.205 6.54498L17.455 2.79498L14.925 5.33498L18.675 9.08498L21.205 6.54498Z",fill:"currentColor"})),DM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M14.0587 9.02L14.9787 9.94L5.91875 19H4.99875V18.08L14.0587 9.02ZM17.6587 3C17.4087 3 17.1487 3.1 16.9587 3.29L15.1287 5.12L18.8787 8.87L20.7087 7.04C21.0987 6.65 21.0987 6.02 20.7087 5.63L18.3687 3.29C18.1687 3.09 17.9187 3 17.6587 3ZM14.0587 6.19L2.99875 17.25V21H6.74875L17.8087 9.94L14.0587 6.19Z"})),OM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M16 11.53C15.71 11.24 15.23 11.24 14.94 11.53L10.59 15.88L9 14.29C8.71 14 8.23 14 7.94 14.29C7.65 14.58 7.65 15.06 7.94 15.35L9.88 17.29C10.27 17.68 10.9 17.68 11.29 17.29L15.99 12.59C16.29 12.3 16.29 11.82 16 11.53ZM19 4H18V3C18 2.45 17.55 2 17 2C16.45 2 16 2.45 16 3V4H8V3C8 2.45 7.55 2 7 2C6.45 2 6 2.45 6 3V4H5C3.89 4 3.01 4.9 3.01 6L3 20C3 21.1 3.89 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM18 20H6C5.45 20 5 19.55 5 19V9H19V19C19 19.55 18.55 20 18 20Z"})),VM=e=>l.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M13.3333 9.16602H6.66667C6.20833 9.16602 5.83333 9.54102 5.83333 9.99935C5.83333 10.4577 6.20833 10.8327 6.66667 10.8327H13.3333C13.7917 10.8327 14.1667 10.4577 14.1667 9.99935C14.1667 9.54102 13.7917 9.16602 13.3333 9.16602ZM15.8333 3.33268H15V2.49935C15 2.04102 14.625 1.66602 14.1667 1.66602C13.7083 1.66602 13.3333 2.04102 13.3333 2.49935V3.33268H6.66667V2.49935C6.66667 2.04102 6.29167 1.66602 5.83333 1.66602C5.375 1.66602 5 2.04102 5 2.49935V3.33268H4.16667C3.24167 3.33268 2.5 4.08268 2.5 4.99935V16.666C2.5 17.5827 3.24167 18.3327 4.16667 18.3327H15.8333C16.75 18.3327 17.5 17.5827 17.5 16.666V4.99935C17.5 4.08268 16.75 3.33268 15.8333 3.33268ZM15 16.666H5C4.54167 16.666 4.16667 16.291 4.16667 15.8327V7.49935H15.8333V15.8327C15.8333 16.291 15.4583 16.666 15 16.666ZM10.8333 12.4993H6.66667C6.20833 12.4993 5.83333 12.8743 5.83333 13.3327C5.83333 13.791 6.20833 14.166 6.66667 14.166H10.8333C11.2917 14.166 11.6667 13.791 11.6667 13.3327C11.6667 12.8743 11.2917 12.4993 10.8333 12.4993Z",fill:"currentColor"})),HM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:22,viewBox:"0 0 21 22",fill:"currentColor",...e},l.createElement("path",{d:"M18 10V4C18 2.9 17.1 2 16 2H15V0H13V2H5V0H3V2H2C0.9 2 0 2.9 0 4V18C0 19.1 0.9 20 2 20H9V18H2V8H16V10H18ZM16 6H2V4H16V6ZM12.64 18C13.07 19.45 14.41 20.5 16 20.5C17.93 20.5 19.5 18.93 19.5 17C19.5 15.07 17.93 13.5 16 13.5C15.05 13.5 14.18 13.88 13.55 14.5H15V16H11V12H12.5V13.43C13.4 12.55 14.64 12 16 12C18.76 12 21 14.24 21 17C21 19.76 18.76 22 16 22C13.58 22 11.56 20.28 11.1 18H12.64Z"})),AM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H20C21.1 21 22 20.1 22 19V5C22 3.9 21.1 3 20 3ZM20 19H4V5H20V19Z"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.41 10.42L17.99 9L14.82 12.17L13.41 10.75L12 12.16L14.82 15L19.41 10.42Z"}),l.createElement("path",{d:"M10 7H5V9H10V7Z"}),l.createElement("path",{d:"M10 11H5V13H10V11Z"}),l.createElement("path",{d:"M10 15H5V17H10V15Z"})),FM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M14 10V8.48C14 7.77 13.29 7.29 12.63 7.55L9 9V8.52C9 7.8 8.27 7.31 7.61 7.6L3.21 9.48C2.48 9.8 2 10.52 2 11.32V20C2 21.1 2.9 22 4 22H20C21.1 22 22 21.1 22 20V10H14ZM9 17C9 17.55 8.55 18 8 18C7.45 18 7 17.55 7 17V15C7 14.45 7.45 14 8 14C8.55 14 9 14.45 9 15V17ZM13 17C13 17.55 12.55 18 12 18C11.45 18 11 17.55 11 17V15C11 14.45 11.45 14 12 14C12.55 14 13 14.45 13 15V17ZM17 17C17 17.55 16.55 18 16 18C15.45 18 15 17.55 15 17V15C15 14.45 15.45 14 16 14C16.55 14 17 14.45 17 15V17Z"}),l.createElement("path",{d:"M20.12 2H18.89C18.38 2 17.96 2.38 17.9 2.88L17.2 8.5H21.8L21.11 2.88C21.05 2.38 20.62 2 20.12 2Z"})),$M=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M21 3H3C1.9 3 1 3.9 1 5V19C1 20.1 1.9 21 3 21H21C22.1 21 23 20.1 23 19V5C23 3.9 22.1 3 21 3ZM11 11H4C3.45 11 3 10.55 3 10C3 9.45 3.45 9 4 9H11C11.55 9 12 9.45 12 10C12 10.55 11.55 11 11 11ZM11 7H4C3.45 7 3 6.55 3 6C3 5.45 3.45 5 4 5H11C11.55 5 12 5.45 12 6C12 6.55 11.55 7 11 7Z"})),Ln=e=>l.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M6 2.5C4.9 2.5 4.01 3.4 4.01 4.5L4 20.5C4 21.6 4.89 22.5 5.99 22.5H18C19.1 22.5 20 21.6 20 20.5V9.33C20 8.8 19.79 8.29 19.41 7.92L14.58 3.09C14.21 2.71 13.7 2.5 13.17 2.5H6ZM13 8.5V4L18.5 9.5H14C13.45 9.5 13 9.05 13 8.5Z"})),zM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{id:"Vector",d:"M16.5 1H4.5C3.4 1 2.5 1.9 2.5 3V17H4.5V3H16.5V1ZM15.5 5L21.5 11V21C21.5 22.1 20.6 23 19.5 23H8.49C7.39 23 6.5 22.1 6.5 21L6.51 7C6.51 5.9 7.4 5 8.5 5H15.5ZM14.5 12H20L14.5 6.5V12Z"})),BM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M16.5 1H4.5C3.4 1 2.5 1.9 2.5 3V17H4.5V3H16.5V1ZM15.5 5H8.5C7.4 5 6.51 5.9 6.51 7L6.5 21C6.5 22.1 7.39 23 8.49 23H19.5C20.6 23 21.5 22.1 21.5 21V11L15.5 5ZM8.5 21V7H14.5V12H19.5V21H8.5Z"})),ZM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M18 15V18H6V15H4V18C4 19.1 4.9 20 6 20H18C19.1 20 20 19.1 20 18V15H18ZM17 11L15.59 9.59L13 12.17V4H11V12.17L8.41 9.59L7 11L12 16L17 11Z"})),B9=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M17.6601 5.2901L14.0901 9.8401L15.5201 11.2701C16.5501 9.9601 20.5001 4.9001 20.5001 4.9001C21.0101 4.2401 20.5401 3.2901 19.7101 3.2901H7.5401L9.5401 5.2901H17.6601Z"}),l.createElement("path",{d:"M3.5201 2.1001L2.1001 3.5101L10.7101 12.2901V18.2901C10.7101 18.8401 11.1601 19.2901 11.7101 19.2901H13.7101C14.2601 19.2901 14.7101 18.8401 14.7101 18.2901V16.1201L20.4901 21.9001L21.9001 20.4901L3.5201 2.1001Z"})),WM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M17.6985 15.89L13.8185 12L17.7085 8.11C18.0985 7.72 18.0985 7.09 17.7085 6.7C17.3185 6.31 16.6885 6.31 16.2985 6.7L11.7085 11.29C11.3185 11.68 11.3185 12.31 11.7085 12.7L16.2985 17.29C16.6885 17.68 17.3185 17.68 17.7085 17.29C18.0885 16.91 18.0885 16.27 17.6985 15.89ZM6.99854 6C7.54854 6 7.99854 6.45 7.99854 7V17C7.99854 17.55 7.54854 18 6.99854 18C6.44854 18 5.99854 17.55 5.99854 17V7C5.99854 6.45 6.44854 6 6.99854 6Z",fill:"currentColor"})),RM=e=>l.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M11.86 6.25L12.26 8.25H17.5V14.25H14.14L13.74 12.25H6.5V6.25H11.86ZM13.5 4.25H4.5V21.25H6.5V14.25H12.1L12.5 16.25H19.5V6.25H13.9L13.5 4.25Z"})),GM=e=>l.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M13.9 6.25L13.5 4.25H4.5V21.25H6.5V14.25H12.1L12.5 16.25H19.5V6.25H13.9Z"})),jM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M14 15H4C3.45 15 3 15.45 3 16C3 16.55 3.45 17 4 17H14C14.55 17 15 16.55 15 16C15 15.45 14.55 15 14 15ZM14 7H4C3.45 7 3 7.45 3 8C3 8.55 3.45 9 4 9H14C14.55 9 15 8.55 15 8C15 7.45 14.55 7 14 7ZM4 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H4C3.45 11 3 11.45 3 12C3 12.55 3.45 13 4 13ZM4 21H20C20.55 21 21 20.55 21 20C21 19.45 20.55 19 20 19H4C3.45 19 3 19.45 3 20C3 20.55 3.45 21 4 21ZM3 4C3 4.55 3.45 5 4 5H20C20.55 5 21 4.55 21 4C21 3.45 20.55 3 20 3H4C3.45 3 3 3.45 3 4Z",fill:"currentColor"})),YM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.2998 17C2.8998 16.3 2.4998 15.5 2.2998 14.7C2.7998 14.4 3.1998 14.1 3.4998 13.6C3.7998 13.1 3.8998 12.6 3.8998 12C3.8998 11.4 3.6998 10.9 3.4998 10.4C3.1998 9.9 2.7998 9.5 2.2998 9.3C2.7998 7.7 3.5998 6.2 4.7998 5C5.2998 5.3 5.79981 5.5 6.39981 5.5C6.9998 5.5 7.4998 5.4 7.9998 5.1C8.4998 4.8 8.89981 4.4 9.0998 3.9C9.39981 3.4 9.4998 2.9 9.4998 2.3C11.0998 1.9 12.8998 1.9 14.4998 2.3C14.4998 2.8482 14.4998 3.31293 14.8049 3.77045L14.8901 6.79469C13.7951 6.1941 12.9989 5.19646 12.6998 4H11.1998C10.7998 5.2 9.9998 6.2 8.8998 6.8C7.7998 7.4 6.5998 7.6 5.3998 7.4C5.0998 7.8 4.8998 8.2 4.6998 8.7C5.4998 9.6 5.9998 10.8 5.9998 12C5.9998 13.3 5.4998 14.4 4.6998 15.3C4.8998 15.8 5.1998 16.2 5.4998 16.6C6.6998 16.3 7.9998 16.6 8.9998 17.2C10.0998 17.8 10.8998 18.8 11.1998 20H12.6998C13.0998 18.8 13.8998 17.8 14.9998 17.2C15.0598 17.1673 15.12 17.1358 15.1805 17.1055L15.2001 17.8V18.7001C14.8001 19.2001 14.6001 19.9 14.6001 20.6C14.6001 20.6637 14.602 20.7269 14.6057 20.7895C14.5297 21.074 14.4998 21.3721 14.4998 21.7C12.8998 22.1 11.0998 22.1 9.4998 21.7C9.4998 21.1 9.4998 20.6 9.0998 20.1C8.7998 19.6 8.3998 19.2 7.9998 18.9C7.4998 18.6 6.9998 18.5 6.39981 18.5C5.79981 18.5 5.2998 18.7 4.7998 19C4.1998 18.4 3.6998 17.7 3.2998 17ZM19.5001 18.6844C20.535 17.5417 21.2427 16.1626 21.6998 14.7C21.1998 14.5 20.7998 14.1 20.4998 13.6C20.2998 13.1 20.0998 12.6 20.0998 12C20.0998 11.4 20.1998 10.9 20.4998 10.4C20.7998 9.9 21.1998 9.6 21.6998 9.3C21.4998 8.5 21.0998 7.7 20.6998 7C20.4518 6.56593 20.1653 6.13186 19.8403 5.72164L19.5001 17.8V18.6844ZM11.9998 15C11.1998 15 10.3998 14.7 9.8998 14.1C9.2998 13.5 8.9998 12.8 8.9998 12C8.9998 11.2 9.2998 10.4 9.8998 9.9C10.4998 9.3 11.1998 9 11.9998 9C12.7998 9 13.5998 9.3 14.0998 9.9C14.6998 10.5 14.9998 11.2 14.9998 12C14.9998 12.8 14.6998 13.6 14.0998 14.1C13.4998 14.7 12.7998 15 11.9998 15ZM11.9998 13C12.2998 13 12.4998 12.9 12.6998 12.7C12.8998 12.5 12.9998 12.3 12.9998 12C12.9998 11.7 12.8998 11.5 12.6998 11.3C12.4998 11.1 12.2998 11 11.9998 11C11.6998 11 11.4998 11.1 11.2998 11.3C11.0998 11.5 10.9998 11.7 10.9998 12C10.9998 12.3 11.0998 12.5 11.2998 12.7C11.4998 12.9 11.6998 13 11.9998 13Z"}),l.createElement("path",{d:"M16.5 17.5H18L18.5 3.5H16L16.5 17.5Z"}),l.createElement("circle",{cx:17.2002,cy:20.5,r:1.5})),UM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M9 13.75C6.66 13.75 2 14.92 2 17.25V19H16V17.25C16 14.92 11.34 13.75 9 13.75ZM4.34 17C5.18 16.42 7.21 15.75 9 15.75C10.79 15.75 12.82 16.42 13.66 17H4.34ZM9 12C10.93 12 12.5 10.43 12.5 8.5C12.5 6.57 10.93 5 9 5C7.07 5 5.5 6.57 5.5 8.5C5.5 10.43 7.07 12 9 12ZM9 7C9.83 7 10.5 7.67 10.5 8.5C10.5 9.33 9.83 10 9 10C8.17 10 7.5 9.33 7.5 8.5C7.5 7.67 8.17 7 9 7ZM16.04 13.81C17.2 14.65 18 15.77 18 17.25V19H22V17.25C22 15.23 18.5 14.08 16.04 13.81ZM15 12C16.93 12 18.5 10.43 18.5 8.5C18.5 6.57 16.93 5 15 5C14.46 5 13.96 5.13 13.5 5.35C14.13 6.24 14.5 7.33 14.5 8.5C14.5 9.67 14.13 10.76 13.5 11.65C13.96 11.87 14.46 12 15 12Z"})),qM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM8 17.5C6.62 17.5 5.5 16.38 5.5 15C5.5 13.62 6.62 12.5 8 12.5C9.38 12.5 10.5 13.62 10.5 15C10.5 16.38 9.38 17.5 8 17.5ZM9.5 8C9.5 6.62 10.62 5.5 12 5.5C13.38 5.5 14.5 6.62 14.5 8C14.5 9.38 13.38 10.5 12 10.5C10.62 10.5 9.5 9.38 9.5 8ZM16 17.5C14.62 17.5 13.5 16.38 13.5 15C13.5 13.62 14.62 12.5 16 12.5C17.38 12.5 18.5 13.62 18.5 15C18.5 16.38 17.38 17.5 16 17.5Z"})),KM=e=>l.createElement("svg",{width:127,height:128,viewBox:"0 0 127 128",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{clipPath:"url(#clip0_4484_18635)"},l.createElement("path",{d:"M116.625 19.1733C113.685 16.6293 109.795 15.552 105.941 16.176C103.815 16.528 101.893 17.4773 100.25 18.8V18.6613C100.25 11.312 94.3595 5.32796 87.125 5.32796C83.765 5.32796 80.7305 6.65596 78.41 8.76796C76.5673 3.66396 71.7793 -0.00537109 66.125 -0.00537109C58.8905 -0.00537109 53 5.97863 53 13.328V13.4666C51.3568 12.144 49.4353 11.1946 47.309 10.8426C43.466 10.224 39.5653 11.296 36.6253 13.84C33.6853 16.3786 32 20.08 32 24V80.5387L22.571 72.9226C17.2895 67.9093 8.98403 68.1866 4.04378 73.5573C-0.896466 78.928 -0.623466 87.3867 4.62653 92.384L22.235 109.632C34.331 121.477 50.2385 128 67.0385 128H79.3865C102.471 128 121.25 108.923 121.25 85.472V29.3333C121.25 25.4186 119.565 21.712 116.625 19.1733ZM116 85.472C116 105.984 99.578 122.667 79.3865 122.667H67.0385C51.6088 122.667 36.9875 116.672 25.8785 105.792L8.24378 88.5173C5.07278 85.4986 4.91003 80.416 7.87628 77.1946C9.30953 75.6373 11.2573 74.7413 13.352 74.6666C15.4993 74.6293 17.4523 75.3547 19.1428 76.9493L32.987 88.1493C33.7798 88.7893 34.856 88.9173 35.7643 88.464C36.6725 88.0213 37.25 87.088 37.25 86.064V24C37.25 21.6533 38.2633 19.4293 40.0273 17.904C41.8175 16.3573 44.1118 15.728 46.469 16.112C50.1913 16.7253 53.0053 20.3626 53.0053 24.5706V56C53.0053 57.472 54.1813 58.6666 55.6303 58.6666C57.0793 58.6666 58.2553 57.472 58.2553 56V13.3333C58.2553 8.92263 61.7885 5.3333 66.1303 5.3333C70.472 5.3333 74.0053 8.92263 74.0053 13.3333V56C74.0053 57.472 75.1813 58.6666 76.6303 58.6666C78.0793 58.6666 79.2553 57.472 79.2553 56V18.6666C79.2553 14.256 82.7885 10.6666 87.1303 10.6666C91.472 10.6666 95.0053 14.256 95.0053 18.6666V56C95.0053 57.472 96.1813 58.6666 97.6303 58.6666C99.0793 58.6666 100.255 57.472 100.255 56V29.904C100.255 25.696 103.064 22.0586 106.786 21.4453C109.154 21.0506 111.438 21.6906 113.228 23.2373C114.992 24.7626 116.005 26.9866 116.005 29.3333L116 85.472Z",fill:"#99A2AD"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_4484_18635"},l.createElement("rect",{width:126,height:128,fill:"white",transform:"translate(0.5)"})))),XM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M21.69 18.523L16.97 13.803C16.49 13.323 15.98 13.213 15.39 13.213L12.85 15.753C12.85 16.343 12.96 16.863 13.44 17.333L18.16 22.053C18.55 22.443 19.18 22.443 19.57 22.053L21.69 19.933C22.08 19.553 22.08 18.913 21.69 18.523Z"}),l.createElement("path",{d:"M16.65 9.84297C17.04 10.233 17.67 10.233 18.06 9.84297L18.77 9.13297L20.89 11.253C22.06 10.083 22.06 8.18297 20.89 7.01297L18.06 4.18297C17.67 3.79297 17.04 3.79297 16.65 4.18297L15.94 4.89297V2.35297C15.94 1.73297 15.18 1.40297 14.73 1.85297L12.19 4.39297C11.74 4.84297 12.07 5.60297 12.69 5.60297H15.23L14.52 6.31297C14.13 6.70297 14.13 7.33297 14.52 7.72297L14.87 8.07297L11.98 10.963L7.86999 6.83297V5.83297C7.86999 5.56297 7.75999 5.31297 7.57999 5.12297L5.55999 3.09297C5.16999 2.70297 4.53999 2.70297 4.14999 3.09297L2.72999 4.51297C2.33999 4.90297 2.33999 5.53297 2.72999 5.92297L4.74999 7.95297C4.93999 8.14297 5.18999 8.24297 5.45999 8.24297H6.45999L10.59 12.373L9.73999 13.223H8.43999C7.90999 13.223 7.39999 13.433 7.02999 13.813L2.30999 18.533C1.91999 18.923 1.91999 19.553 2.30999 19.943L4.42999 22.063C4.81999 22.453 5.44999 22.453 5.83999 22.063L10.56 17.343C10.94 16.963 11.15 16.463 11.15 15.933V14.643L16.3 9.49297L16.65 9.84297Z"})),QM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M17.59 3.41L15 6V5C15 3.9 14.1 3 13 3H9C6.24 3 4 5.24 4 8H9V11H15V8L17.59 10.59C17.85 10.85 18.21 11 18.59 11H18.6C19.37 11 20 10.37 20 9.59V4.41C20 3.63 19.37 3 18.59 3H18.58C18.21 3 17.85 3.15 17.59 3.41Z",fill:"currentColor"}),l.createElement("path",{d:"M9 13V20C9 20.55 9.45 21 10 21H14C14.55 21 15 20.55 15 20V13H9Z",fill:"currentColor"})),JM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM12.01 18C11.31 18 10.75 17.44 10.75 16.74C10.75 16.03 11.31 15.49 12.01 15.49C12.72 15.49 13.26 16.03 13.26 16.74C13.25 17.43 12.72 18 12.01 18ZM15.02 10.6C14.26 11.71 13.54 12.06 13.15 12.77C13.05 12.95 12.99 13.09 12.96 13.4C12.91 13.85 12.51 14.18 12.06 14.18H12C11.48 14.18 11.07 13.74 11.12 13.22C11.15 12.88 11.23 12.53 11.42 12.19C11.91 11.32 12.84 10.8 13.38 10.03C13.95 9.22 13.63 7.7 12.01 7.7C11.3 7.7 10.83 8.06 10.54 8.49C10.29 8.85 9.85 9.02 9.44 8.85C8.91 8.64 8.72 8 9.04 7.54C9.65 6.65 10.67 6 11.99 6C13.47 6 14.48 6.67 15 7.52C15.44 8.24 15.7 9.59 15.02 10.6Z"})),eL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M13.25 16.74C13.25 17.43 12.72 18 12 18C11.3 18 10.74 17.44 10.74 16.74C10.74 16.03 11.3 15.49 12 15.49C12.71 15.49 13.25 16.04 13.25 16.74ZM11.99 6C10.22 6 9.01 7.15 8.56 8.49L10.2 9.18C10.42 8.51 10.94 7.7 12 7.7C13.62 7.7 13.94 9.22 13.37 10.03C12.83 10.8 11.9 11.32 11.41 12.19C11.02 12.88 11.1 13.68 11.1 14.17H12.92C12.92 13.24 12.99 13.05 13.14 12.76C13.53 12.04 14.25 11.7 15.01 10.59C15.69 9.59 15.43 8.23 14.99 7.51C14.48 6.67 13.47 6 11.99 6ZM19 5H5V19H19V5ZM19 3C20.1 3 21 3.9 21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H19Z"})),Z9=e=>l.createElement("svg",{width:91,height:90,viewBox:"0 0 91 90",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"hide_image"},l.createElement("g",{id:"Vector"},l.createElement("path",{d:"M74.7135 16.0873V57.9748L82.2135 65.4748V16.0873C82.2135 11.9623 78.8385 8.58726 74.7135 8.58726H25.326L32.826 16.0873H74.7135Z"}),l.createElement("path",{d:"M14.001 7.87476L8.67603 13.1623L14.7135 19.1998V68.5873C14.7135 72.7123 18.0885 76.0873 22.2135 76.0873H71.601L77.6385 82.1248L82.926 76.8373L14.001 7.87476ZM22.2135 68.5873V26.6998L48.726 53.2123L45.651 57.3373L37.2135 46.0873L25.9635 61.0873H56.601L64.101 68.5873H22.2135Z"})))),tL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M13.404 3.00178C8.31401 2.86178 4.14401 6.95178 4.14401 12.0018H2.35401C1.90401 12.0018 1.68401 12.5418 2.00401 12.8518L4.79401 15.6518C4.99401 15.8518 5.30401 15.8518 5.50401 15.6518L8.29401 12.8518C8.60401 12.5418 8.38401 12.0018 7.93401 12.0018H6.14401C6.14401 8.10178 9.32401 4.95178 13.244 5.00178C16.964 5.05178 20.094 8.18178 20.144 11.9018C20.194 15.8118 17.044 19.0018 13.144 19.0018C11.534 19.0018 10.044 18.4518 8.86401 17.5218C8.46401 17.2118 7.90401 17.2418 7.54401 17.6018C7.12401 18.0218 7.15401 18.7318 7.62401 19.0918C9.14401 20.2918 11.054 21.0018 13.144 21.0018C18.194 21.0018 22.284 16.8318 22.144 11.7418C22.014 7.05178 18.094 3.13178 13.404 3.00178ZM12.894 8.00178C12.484 8.00178 12.144 8.34178 12.144 8.75178V12.4318C12.144 12.7818 12.334 13.1118 12.634 13.2918L15.754 15.1418C16.114 15.3518 16.574 15.2318 16.784 14.8818C16.994 14.5218 16.874 14.0618 16.524 13.8518L13.644 12.1418V8.74178C13.644 8.34178 13.304 8.00178 12.894 8.00178Z",fill:"currentColor"})),nL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M8.24008 9.80569H2.22008C1.73008 9.80569 1.53008 10.4257 1.93008 10.7157L6.84008 14.2257L4.95008 20.3257C4.81008 20.7857 5.34008 21.1657 5.73008 20.8757L10.6601 17.1157L15.5901 20.8657C15.9801 21.1557 16.5101 20.7857 16.3701 20.3157L14.4801 14.2157L19.3901 10.7057C19.7901 10.4257 19.5901 9.79569 19.1001 9.79569H13.0801L11.1301 3.37569C10.9901 2.90569 10.3201 2.90569 10.1701 3.37569L8.24008 9.80569ZM20.5601 20.3157L19.1601 15.7957L22.0701 13.7157C22.4701 13.4357 22.2701 12.8057 21.7801 12.8057H19.9001L16.8201 15.0057L18.2801 19.7257L19.7801 20.8657C20.1701 21.1557 20.7001 20.7757 20.5601 20.3157ZM16.6601 7.80569L15.3201 3.38569C15.1801 2.91569 14.5101 2.91569 14.3601 3.38569L13.7901 5.25569L14.5701 7.80569H16.6601Z",fill:"currentColor"})),rL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M21 19V5C21 3.9 20.1 3 19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19ZM8.9 13.98L11 16.51L14.1 12.52C14.3 12.26 14.7 12.26 14.9 12.53L18.41 17.21C18.66 17.54 18.42 18.01 18.01 18.01H6.02C5.6 18.01 5.37 17.53 5.63 17.2L8.12 14C8.31 13.74 8.69 13.73 8.9 13.98Z",fill:"currentColor"})),oL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19 5V19H5V5H19ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM14.14 11.86L11.14 15.73L9 13.14L6 17H18L14.14 11.86Z"})),W9=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.17157 3.17187C2 4.34344 2 6.22906 2 10.0003V14.0003C2 17.7715 2 19.6572 3.17157 20.8287C4.34315 22.0003 6.22876 22.0003 10 22.0003H14C17.7712 22.0003 19.6569 22.0003 20.8284 20.8287C22 19.6572 22 17.7715 22 14.0003V14.0003V10.0003C22 7.16096 22 5.39048 21.5 4.18886V17.0003C20.5396 17.0003 19.6185 16.6188 18.9393 15.9396L18.1877 15.188C17.4664 14.4667 17.1057 14.106 16.6968 13.954C16.2473 13.787 15.7527 13.787 15.3032 13.954C14.8943 14.106 14.5336 14.4667 13.8123 15.188L13.6992 15.3011C13.1138 15.8865 12.8212 16.1791 12.5102 16.2337C12.2685 16.2761 12.0197 16.2282 11.811 16.0991C11.5425 15.9329 11.3795 15.5525 11.0534 14.7916L11 14.667C10.2504 12.9178 9.87554 12.0432 9.22167 11.7154C8.89249 11.5504 8.52413 11.4795 8.1572 11.5104C7.42836 11.5719 6.75554 12.2448 5.40989 13.5904L3.5 15.5003V2.8877C3.3844 2.9738 3.27519 3.06825 3.17157 3.17187Z",fill:"CurrentColor"}),l.createElement("path",{d:"M3 10C3 8.08611 3.00212 6.75129 3.13753 5.74416C3.26907 4.76579 3.50966 4.2477 3.87868 3.87868C4.2477 3.50966 4.76579 3.26907 5.74416 3.13753C6.75129 3.00212 8.08611 3 10 3H14C15.9139 3 17.2487 3.00212 18.2558 3.13753C19.2342 3.26907 19.7523 3.50966 20.1213 3.87868C20.4903 4.2477 20.7309 4.76579 20.8625 5.74416C20.9979 6.75129 21 8.08611 21 10V14C21 15.9139 20.9979 17.2487 20.8625 18.2558C20.7309 19.2342 20.4903 19.7523 20.1213 20.1213C19.7523 20.4903 19.2342 20.7309 18.2558 20.8625C17.2487 20.9979 15.9139 21 14 21H10C8.08611 21 6.75129 20.9979 5.74416 20.8625C4.76579 20.7309 4.2477 20.4903 3.87868 20.1213C3.50966 19.7523 3.26907 19.2342 3.13753 18.2558C3.00212 17.2487 3 15.9139 3 14V10Z",stroke:"CurrentColor",strokeWidth:2}),l.createElement("circle",{cx:15,cy:9,r:2,fill:"CurrentColor"})),aL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19 4H18V2H16V4H8V2H6V4H5C3.89 4 3.01 4.9 3.01 6L3 20C3 21.1 3.89 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM19 20H5V10H19V20ZM19 8H5V6H19V8ZM17 13H12V18H17V13Z"})),sL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{id:"Vector",d:"M20 2H4C3 2 2 2.9 2 4V7.01C2 7.73 2.43 8.35 3 8.7V20C3 21.1 4.1 22 5 22H19C19.9 22 21 21.1 21 20V8.7C21.57 8.35 22 7.73 22 7.01V4C22 2.9 21 2 20 2ZM14 14H10C9.45 14 9 13.55 9 13C9 12.45 9.45 12 10 12H14C14.55 12 15 12.45 15 13C15 13.55 14.55 14 14 14ZM20 7H4V4H20V7Z"})),iL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M15 22H19C20.1 22 21 21.1 21 20V17C21 15.9 20.1 15 19 15H18V13C18 11.9 17.1 11 16 11H13V9H14C15.1 9 16 8.1 16 7V4C16 2.9 15.1 2 14 2H10C8.9 2 8 2.9 8 4V7C8 8.1 8.9 9 10 9H11V11H8C6.9 11 6 11.9 6 13V15H5C3.9 15 3 15.9 3 17V20C3 21.1 3.9 22 5 22H9C10.1 22 11 21.1 11 20V17C11 15.9 10.1 15 9 15H8V13H16V15H15C13.9 15 13 15.9 13 17V20C13 21.1 13.9 22 15 22Z"})),lL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M13 22H21V15H18V11H13V9H16V2H8V9H11V11H6V15H3V22H11V15H8V13H16V15H13V22ZM10 7V4H14V7H10ZM9 17V20H5V17H9ZM19 17V20H15V17H19Z"})),cL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19 15H5C4.45 15 4 14.55 4 14C4 13.45 4.45 13 5 13H19C19.55 13 20 13.45 20 14C20 14.55 19.55 15 19 15ZM19 17H5C4.45 17 4 17.45 4 18C4 18.55 4.45 19 5 19H19C19.55 19 20 18.55 20 18C20 17.45 19.55 17 19 17ZM15 11L19.58 7.75C19.84 7.56 20 7.26 20 6.94C20 6.13 19.08 5.65 18.42 6.12L15 8.55L10 5L4.48 8.36C4.18 8.55 4 8.87 4 9.22C4 10 4.85 10.48 5.52 10.07L9.92 7.39L15 11Z"})),uL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 7C9.24 7 7 9.24 7 12C7 14.76 9.24 17 12 17C14.76 17 17 14.76 17 12C17 9.24 14.76 7 12 7ZM2 13H4C4.55 13 5 12.55 5 12C5 11.45 4.55 11 4 11H2C1.45 11 1 11.45 1 12C1 12.55 1.45 13 2 13ZM20 13H22C22.55 13 23 12.55 23 12C23 11.45 22.55 11 22 11H20C19.45 11 19 11.45 19 12C19 12.55 19.45 13 20 13ZM11 2V4C11 4.55 11.45 5 12 5C12.55 5 13 4.55 13 4V2C13 1.45 12.55 1 12 1C11.45 1 11 1.45 11 2ZM11 20V22C11 22.55 11.45 23 12 23C12.55 23 13 22.55 13 22V20C13 19.45 12.55 19 12 19C11.45 19 11 19.45 11 20ZM5.99 4.58C5.6 4.19 4.96 4.19 4.58 4.58C4.19 4.97 4.19 5.61 4.58 5.99L5.64 7.05C6.03 7.44 6.67 7.44 7.05 7.05C7.43 6.66 7.44 6.02 7.05 5.64L5.99 4.58ZM18.36 16.95C17.97 16.56 17.33 16.56 16.95 16.95C16.56 17.34 16.56 17.98 16.95 18.36L18.01 19.42C18.4 19.81 19.04 19.81 19.42 19.42C19.81 19.03 19.81 18.39 19.42 18.01L18.36 16.95ZM19.42 5.99C19.81 5.6 19.81 4.96 19.42 4.58C19.03 4.19 18.39 4.19 18.01 4.58L16.95 5.64C16.56 6.03 16.56 6.67 16.95 7.05C17.34 7.43 17.98 7.44 18.36 7.05L19.42 5.99ZM7.05 18.36C7.44 17.97 7.44 17.33 7.05 16.95C6.66 16.56 6.02 16.56 5.64 16.95L4.58 18.01C4.19 18.4 4.19 19.04 4.58 19.42C4.97 19.8 5.61 19.81 5.99 19.42L7.05 18.36Z",fill:"currentColor"})),dL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 9C13.65 9 15 10.35 15 12C15 13.65 13.65 15 12 15C10.35 15 9 13.65 9 12C9 10.35 10.35 9 12 9ZM12 7C9.24 7 7 9.24 7 12C7 14.76 9.24 17 12 17C14.76 17 17 14.76 17 12C17 9.24 14.76 7 12 7ZM2 13H4C4.55 13 5 12.55 5 12C5 11.45 4.55 11 4 11H2C1.45 11 1 11.45 1 12C1 12.55 1.45 13 2 13ZM20 13H22C22.55 13 23 12.55 23 12C23 11.45 22.55 11 22 11H20C19.45 11 19 11.45 19 12C19 12.55 19.45 13 20 13ZM11 2V4C11 4.55 11.45 5 12 5C12.55 5 13 4.55 13 4V2C13 1.45 12.55 1 12 1C11.45 1 11 1.45 11 2ZM11 20V22C11 22.55 11.45 23 12 23C12.55 23 13 22.55 13 22V20C13 19.45 12.55 19 12 19C11.45 19 11 19.45 11 20ZM5.99 4.58C5.6 4.19 4.96 4.19 4.58 4.58C4.19 4.97 4.19 5.61 4.58 5.99L5.64 7.05C6.03 7.44 6.67 7.44 7.05 7.05C7.43 6.66 7.44 6.02 7.05 5.64L5.99 4.58ZM18.36 16.95C17.97 16.56 17.33 16.56 16.95 16.95C16.56 17.34 16.56 17.98 16.95 18.36L18.01 19.42C18.4 19.81 19.04 19.81 19.42 19.42C19.81 19.03 19.81 18.39 19.42 18.01L18.36 16.95ZM19.42 5.99C19.81 5.6 19.81 4.96 19.42 4.58C19.03 4.19 18.39 4.19 18.01 4.58L16.95 5.64C16.56 6.03 16.56 6.67 16.95 7.05C17.34 7.43 17.98 7.44 18.36 7.05L19.42 5.99ZM7.05 18.36C7.44 17.97 7.44 17.33 7.05 16.95C6.66 16.56 6.02 16.56 5.64 16.95L4.58 18.01C4.19 18.4 4.19 19.04 4.58 19.42C4.97 19.8 5.61 19.81 5.99 19.42L7.05 18.36Z"})),fL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.0044 13.519L9.97439 15.519C9.51439 15.979 9.15439 16.549 9.04439 17.189C8.74439 19.029 10.1844 20.619 12.0044 20.619C13.8244 20.619 15.2644 19.029 14.9644 17.199C14.8544 16.559 14.5044 15.979 14.0344 15.529L12.0044 13.519Z",fill:"currentColor"}),l.createElement("path",{d:"M15.5644 7.16901C14.3844 8.63901 12.0044 7.80901 12.0044 5.91901V4.38901C12.0044 3.58901 11.1144 3.10901 10.4544 3.54901C8.12439 5.10901 4.00439 8.58901 4.00439 13.619C4.00439 16.539 5.56439 19.089 7.89439 20.479C7.18439 19.459 6.83439 18.169 7.08439 16.799C7.27439 15.759 7.83439 14.819 8.59439 14.079L11.3044 11.409C11.6944 11.029 12.3144 11.029 12.7044 11.409L15.4344 14.099C16.1744 14.829 16.7344 15.749 16.9144 16.779C17.1644 18.139 16.8444 19.419 16.1444 20.439C18.0344 19.289 19.4344 17.379 19.8544 15.139C20.4644 11.869 19.0444 8.76901 16.6344 7.03901C16.3044 6.78901 15.8344 6.83901 15.5644 7.16901Z",fill:"currentColor"})),hL=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00152 2.53334C6.58364 2.53334 5.43485 3.68195 5.43485 5.09806C5.43485 6.73589 6.40611 8.49862 7.29301 9.74929C7.66088 10.2681 8.35981 10.2668 8.72573 9.74673C9.60545 8.49647 10.5682 6.73528 10.5682 5.09806C10.5682 3.68195 9.4194 2.53334 8.00152 2.53334ZM4.23485 5.09806C4.23485 3.01851 5.92159 1.33334 8.00152 1.33334C10.0814 1.33334 11.7682 3.01851 11.7682 5.09806C11.7682 7.13001 10.6101 9.15393 9.70712 10.4373C8.86426 11.6351 7.16134 11.6381 6.31415 10.4434C5.40436 9.16047 4.23485 7.13361 4.23485 5.09806Z",fill:"currentColor"}),l.createElement("path",{d:"M9.16819 5.16665C9.16819 5.81099 8.64585 6.33332 8.00152 6.33332C7.35719 6.33332 6.83485 5.81099 6.83485 5.16665C6.83485 4.52232 7.35719 3.99999 8.00152 3.99999C8.64585 3.99999 9.16819 4.52232 9.16819 5.16665Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.474 9.54723C11.6872 9.29357 12.0657 9.26079 12.3194 9.47401C12.8745 9.94064 13.3364 10.5332 13.3364 11.3333C13.3364 12.5021 12.6272 13.3584 11.644 13.891C10.6736 14.4165 9.3814 14.6677 7.99997 14.6677C6.6064 14.6677 5.31519 14.38 4.34974 13.8383C3.38499 13.297 2.66666 12.4463 2.66666 11.3333C2.66666 10.5408 3.14155 9.93605 3.67614 9.47777C3.92772 9.2621 4.3065 9.29122 4.52217 9.5428C4.73784 9.79438 4.70873 10.1732 4.45714 10.3888C4.02277 10.7612 3.86666 11.0624 3.86666 11.3333C3.86666 11.8591 4.19498 12.3755 4.93688 12.7918C5.67809 13.2076 6.75353 13.4677 7.99997 13.4677C9.25856 13.4677 10.3346 13.2355 11.0724 12.8358C11.7974 12.4431 12.1364 11.9322 12.1364 11.3333C12.1364 11.0527 11.9899 10.7647 11.5472 10.3926C11.2936 10.1794 11.2608 9.80088 11.474 9.54723Z",fill:"currentColor"})),gL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM7 9C7 6.24 9.24 4 12 4C14.76 4 17 6.24 17 9C17 11.88 14.12 16.19 12 18.88C9.92 16.21 7 11.85 7 9Z"}),l.createElement("path",{d:"M12 11.5C13.3807 11.5 14.5 10.3807 14.5 9C14.5 7.61929 13.3807 6.5 12 6.5C10.6193 6.5 9.5 7.61929 9.5 9C9.5 10.3807 10.6193 11.5 12 11.5Z"})),pL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M18 8.5H17V6.5C17 3.74 14.76 1.5 12 1.5C9.24 1.5 7 3.74 7 6.5V8.5H6C4.9 8.5 4 9.4 4 10.5V20.5C4 21.6 4.9 22.5 6 22.5H18C19.1 22.5 20 21.6 20 20.5V10.5C20 9.4 19.1 8.5 18 8.5ZM12 17.5C10.9 17.5 10 16.6 10 15.5C10 14.4 10.9 13.5 12 13.5C13.1 13.5 14 14.4 14 15.5C14 16.6 13.1 17.5 12 17.5ZM9 8.5V6.5C9 4.84 10.34 3.5 12 3.5C13.66 3.5 15 4.84 15 6.5V8.5H9Z",fill:"currentColor"})),mL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 13.5C10.9 13.5 10 14.4 10 15.5C10 16.6 10.9 17.5 12 17.5C13.1 17.5 14 16.6 14 15.5C14 14.4 13.1 13.5 12 13.5ZM18 8.5H17V6.5C17 3.74 14.76 1.5 12 1.5C9.72 1.5 7.73 3.04 7.16 5.25C7.02 5.79 7.34 6.33 7.88 6.47C8.41 6.61 8.96 6.29 9.1 5.75C9.44 4.43 10.63 3.5 12 3.5C13.65 3.5 15 4.85 15 6.5V8.5H6C4.9 8.5 4 9.4 4 10.5V20.5C4 21.6 4.9 22.5 6 22.5H18C19.1 22.5 20 21.6 20 20.5V10.5C20 9.4 19.1 8.5 18 8.5ZM18 19.5C18 20.05 17.55 20.5 17 20.5H7C6.45 20.5 6 20.05 6 19.5V11.5C6 10.95 6.45 10.5 7 10.5H17C17.55 10.5 18 10.95 18 11.5V19.5Z",fill:"currentColor"})),vL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M17 8L15.59 9.41L17.17 11H9V13H17.17L15.59 14.58L17 16L21 12L17 8ZM5 5H12V3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H12V19H5V5Z"})),CL=e=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),wL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 8C9.79 8 8 9.79 8 12C8 14.21 9.79 16 12 16C14.21 16 16 14.21 16 12C16 9.79 14.21 8 12 8ZM20.94 11C20.48 6.83 17.17 3.52 13 3.06V2C13 1.45 12.55 1 12 1C11.45 1 11 1.45 11 2V3.06C6.83 3.52 3.52 6.83 3.06 11H2C1.45 11 1 11.45 1 12C1 12.55 1.45 13 2 13H3.06C3.52 17.17 6.83 20.48 11 20.94V22C11 22.55 11.45 23 12 23C12.55 23 13 22.55 13 22V20.94C17.17 20.48 20.48 17.17 20.94 13H22C22.55 13 23 12.55 23 12C23 11.45 22.55 11 22 11H20.94ZM12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12C19 15.87 15.87 19 12 19Z"})),R9=e=>l.createElement("svg",{width:162,height:163,viewBox:"0 0 162 163",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("ellipse",{opacity:.1,cx:81,cy:157.64,rx:81,ry:4.86,fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M98.8769 29.0403C98.6303 29.0445 98.4298 29.1528 98.281 29.35C98.1233 29.5589 98.0321 29.8653 98.0872 30.2026C98.186 30.807 98.8464 31.4472 99.8607 31.5086C103.441 31.7255 107.162 33.1541 110.305 35.2753C113.444 37.3945 116.14 40.295 117.547 43.5878C117.941 44.51 118.728 44.901 119.284 44.81C119.6 44.7585 119.842 44.5865 119.978 44.3884C120.104 44.203 120.137 44.0035 120.07 43.7936C117.329 35.316 107.934 28.8859 98.8769 29.0403ZM94.9043 30.7226C94.5212 28.3773 96.122 25.8617 98.8219 25.8157C109.217 25.6384 119.937 32.8978 123.138 42.8015C123.959 45.3388 122.102 47.6176 119.804 47.9929C117.373 48.3902 115.377 46.7174 114.581 44.8549C113.476 42.2675 111.262 39.8127 108.5 37.9485C105.741 36.0863 102.567 34.9036 99.6657 34.7278C97.5686 34.6009 95.3081 33.1944 94.9043 30.7226ZM82.531 35.2703C64.93 35.2703 50.2411 47.6215 46.8878 64.0038C32.8863 65.3358 21.8626 76.8555 21.8626 91.0475C21.8626 94.4561 22.4989 97.7219 23.662 100.733C21.4996 104.197 20.25 108.289 20.25 112.673C20.25 125.141 30.3575 135.249 42.8258 135.249C55.2941 135.249 65.4016 125.141 65.4016 112.673C65.4016 100.205 55.2941 90.0972 42.8258 90.0972C36.1459 90.0972 30.1437 92.9984 26.0103 97.6094C25.4094 95.5246 25.0877 93.3238 25.0877 91.0475C25.0877 78.221 35.3634 67.7811 48.3262 67.1322C49.0828 67.0943 49.711 66.5349 49.836 65.7878C52.4191 50.3468 66.0545 38.4954 82.531 38.4954C100.859 38.4954 115.708 53.1361 115.708 71.0921V76.7936C115.708 77.6842 116.43 78.4062 117.321 78.4062H119.843C130.158 78.4062 138.525 86.6725 138.525 96.749C138.525 106.826 130.158 115.092 119.843 115.092H105C104.109 115.092 103.387 115.814 103.387 116.704C103.387 117.595 104.109 118.317 105 118.317H119.843C131.887 118.317 141.75 108.658 141.75 96.749C141.75 84.8404 131.887 75.1811 119.843 75.1811H118.934V71.0921C118.934 51.3039 102.588 35.2703 82.531 35.2703ZM23.4751 112.673C23.4751 101.986 32.1387 93.3223 42.8258 93.3223C53.5129 93.3223 62.1765 101.986 62.1765 112.673C62.1765 123.36 53.5129 132.024 42.8258 132.024C32.1387 132.024 23.4751 123.36 23.4751 112.673ZM38.7944 102.191C38.7944 99.9649 40.5993 98.16 42.8258 98.16C45.0523 98.16 46.8572 99.9649 46.8572 102.191V111.867C46.8572 114.093 45.0523 115.898 42.8258 115.898C40.5993 115.898 38.7944 114.093 38.7944 111.867V102.191ZM42.8258 101.385C42.3805 101.385 42.0195 101.746 42.0195 102.191V111.867C42.0195 112.312 42.3805 112.673 42.8258 112.673C43.2711 112.673 43.6321 112.312 43.6321 111.867V102.191C43.6321 101.746 43.2711 101.385 42.8258 101.385ZM42.8258 127.186C40.5993 127.186 38.7944 125.381 38.7944 123.155C38.7944 120.928 40.5993 119.123 42.8258 119.123C45.0523 119.123 46.8572 120.928 46.8572 123.155C46.8572 125.381 45.0523 127.186 42.8258 127.186ZM42.0195 123.155C42.0195 123.6 42.3805 123.961 42.8258 123.961C43.2711 123.961 43.6321 123.6 43.6321 123.155C43.6321 122.709 43.2711 122.348 42.8258 122.348C42.3805 122.348 42.0195 122.709 42.0195 123.155Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.016 86.5116C96.6994 86.5116 98.2091 89.5975 96.5623 91.7161L84.3514 107.424C83.0602 109.085 80.55 109.085 79.2589 107.424L67.048 91.7161C65.4011 89.5975 66.9109 86.5116 69.5943 86.5116L77.7737 86.5116L77.7737 64.339C77.7737 62.5578 79.2177 61.1139 80.9989 61.1139L82.6114 61.1139C84.3926 61.1139 85.8365 62.5578 85.8365 64.339L85.8365 86.5116L94.016 86.5116Z",fill:"currentColor"})),yL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{id:"Vector",d:"M20 6.5H16V4.5C16 3.95 15.78 3.45 15.41 3.09C15.05 2.72 14.55 2.5 14 2.5H10C8.9 2.5 8 3.4 8 4.5V6.5H4C2.9 6.5 2 7.4 2 8.5V19.5C2 20.6 2.9 21.5 4 21.5H20C21.1 21.5 22 20.6 22 19.5V8.5C22 7.4 21.1 6.5 20 6.5ZM10 4.5H14V6.5H10V4.5ZM10.5 17.5C10.22 17.22 10.22 16.78 10.5 16.5L13 14L10.5 11.5C10.22 11.22 10.22 10.78 10.5 10.5C10.78 10.22 11.22 10.22 11.5 10.5L14.65 13.65C14.85 13.85 14.85 14.16 14.65 14.36L11.5 17.5C11.22 17.78 10.78 17.78 10.5 17.5Z"})),bL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M20.5863 20.3986L3.60631 3.41864C3.21631 3.02864 2.58631 3.02864 2.19631 3.41864C1.80631 3.80864 1.80631 4.43864 2.19631 4.82864L3.75631 6.38864C2.50631 8.26864 1.87631 10.5986 2.16631 13.0886C2.69631 17.6286 6.37631 21.3086 10.9063 21.8286C13.3963 22.1186 15.7163 21.4886 17.6063 20.2386L19.1663 21.7986C19.5563 22.1886 20.1863 22.1886 20.5763 21.7986C20.9763 21.4186 20.9763 20.7886 20.5863 20.3986ZM9.97631 15.7986L7.14631 12.9686C6.75631 12.5786 6.75631 11.9486 7.14631 11.5586C7.53631 11.1686 8.16631 11.1686 8.55631 11.5586L10.6763 13.6786L10.8563 13.4986L12.2663 14.9086L11.3863 15.7886C10.9963 16.1886 10.3663 16.1886 9.97631 15.7986ZM13.6863 10.6686L6.58631 3.56864C8.46631 2.31864 10.7963 1.68864 13.2863 1.97864C17.8263 2.50864 21.5063 6.18864 22.0263 10.7186C22.3163 13.2086 21.6863 15.5386 20.4363 17.4186L15.0963 12.0786L17.0363 10.1386C17.4263 9.74864 17.4263 9.11864 17.0363 8.72864C16.6463 8.33864 16.0163 8.33864 15.6263 8.72864L13.6863 10.6686Z"})),xL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M9.29624 5.7041C9.29624 6.2641 9.74624 6.7041 10.2962 6.7041H15.8862L4.99624 17.5941C4.60624 17.9841 4.60624 18.6141 4.99624 19.0041C5.38624 19.3941 6.01624 19.3941 6.40624 19.0041L17.2962 8.1141V13.7041C17.2962 14.2541 17.7462 14.7041 18.2962 14.7041C18.8462 14.7041 19.2962 14.2541 19.2962 13.7041V5.7041C19.2962 5.1541 18.8462 4.7041 18.2962 4.7041H10.2962C9.74624 4.7041 9.29624 5.1541 9.29624 5.7041Z",fill:"currentColor"})),SL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M17.4139 16.29L21.0039 12.7C21.3939 12.31 21.3939 11.68 21.0039 11.29L17.4139 7.7C17.0239 7.31 16.3939 7.31 16.0039 7.7C15.6139 8.09 15.6139 8.72 16.0039 9.11L17.8739 11H9.70386C9.15386 11 8.70386 11.45 8.70386 12C8.70386 12.55 9.15386 13 9.70386 13H17.8739L15.9939 14.88C15.6039 15.27 15.6039 15.9 15.9939 16.29C16.3839 16.68 17.0239 16.68 17.4139 16.29Z"}),l.createElement("path",{d:"M18.7039 19H4.70386V5H18.7039V6C18.7039 6.55 19.1539 7 19.7039 7C20.2539 7 20.7039 6.55 20.7039 6V5C20.7039 3.9 19.8039 3 18.7039 3H4.70386C3.60386 3 2.70386 3.9 2.70386 5V19C2.70386 20.1 3.60386 21 4.70386 21H18.7039C19.8139 21 20.7039 20.1 20.7039 19V18C20.7039 17.45 20.2539 17 19.7039 17C19.1539 17 18.7039 17.45 18.7039 18V19Z"})),EL=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("circle",{cx:8,cy:8,r:6.3,stroke:"currentColor",strokeWidth:1.4}),l.createElement("path",{d:"M6.5 5.5V10.5",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"}),l.createElement("path",{d:"M9.5 5.5V10.5",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"})),ML=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2593 7.47792L5.22219 16.515C5.0159 16.7213 4.90001 17.0011 4.90001 17.2929L4.90001 19C4.90001 19.0552 4.94478 19.1 5.00001 19.1H6.70711C6.99885 19.1 7.27864 18.9841 7.48493 18.7778L16.522 9.74066L14.2593 7.47792ZM15.5321 6.20513L17.7948 8.46787L18.9262 7.3365C19.1605 7.10219 19.1605 6.72229 18.9262 6.48797L17.512 5.07376C17.2777 4.83944 16.8978 4.83944 16.6634 5.07376L15.5321 6.20513ZM3.94939 15.2423L15.3907 3.80097C16.3279 2.86371 17.8475 2.86371 18.7848 3.80097L20.199 5.21518C21.1362 6.15244 21.1362 7.67203 20.199 8.60929L8.75772 20.0506C8.21387 20.5944 7.47624 20.9 6.70711 20.9L5.00001 20.9C3.95067 20.9 3.10001 20.0493 3.10001 19L3.10001 17.2929C3.10001 16.5237 3.40554 15.7861 3.94939 15.2423Z",fill:"black",fillOpacity:.5})),LL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M16.67 13.13C18.04 14.06 19 15.32 19 17V20H23V17C23 14.82 19.43 13.53 16.67 13.13Z"}),l.createElement("path",{d:"M15 12C17.21 12 19 10.21 19 8C19 5.79 17.21 4 15 4C14.53 4 14.09 4.1 13.67 4.24C14.5 5.27 15 6.58 15 8C15 9.42 14.5 10.73 13.67 11.76C14.09 11.9 14.53 12 15 12Z"}),l.createElement("path",{d:"M9 12C11.21 12 13 10.21 13 8C13 5.79 11.21 4 9 4C6.79 4 5 5.79 5 8C5 10.21 6.79 12 9 12ZM9 6C10.1 6 11 6.9 11 8C11 9.1 10.1 10 9 10C7.9 10 7 9.1 7 8C7 6.9 7.9 6 9 6Z"}),l.createElement("path",{d:"M9 13C6.33 13 1 14.34 1 17V20H17V17C17 14.34 11.67 13 9 13ZM15 18H3V17.01C3.2 16.29 6.3 15 9 15C11.7 15 14.8 16.29 15 17V18Z"})),NL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 12C10.9 12 9.95833 11.6083 9.175 10.825C8.39167 10.0417 8 9.1 8 8C8 6.9 8.39167 5.95833 9.175 5.175C9.95833 4.39167 10.9 4 12 4C13.1 4 14.0417 4.39167 14.825 5.175C15.6083 5.95833 16 6.9 16 8C16 9.1 15.6083 10.0417 14.825 10.825C14.0417 11.6083 13.1 12 12 12ZM4 20V17.2C4 16.6333 4.14583 16.1125 4.4375 15.6375C4.72917 15.1625 5.11667 14.8 5.6 14.55C6.63333 14.0333 7.68333 13.6458 8.75 13.3875C9.81667 13.1292 10.9 13 12 13C13.1 13 14.1833 13.1292 15.25 13.3875C16.3167 13.6458 17.3667 14.0333 18.4 14.55C18.8833 14.8 19.2708 15.1625 19.5625 15.6375C19.8542 16.1125 20 16.6333 20 17.2V20H4Z",fill:"currentColor"})),PL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 6C13.1 6 14 6.9 14 8C14 9.1 13.1 10 12 10C10.9 10 10 9.1 10 8C10 6.9 10.9 6 12 6ZM12 16C14.7 16 17.8 17.29 18 18H6C6.23 17.28 9.31 16 12 16ZM12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM12 14C9.33 14 4 15.34 4 18V20H20V18C20 15.34 14.67 14 12 14Z"})),_L=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M21.5 6.5H18.33L16.5 4.5H10.5V6.5H15.62L17.45 8.5H21.5V20.5H5.5V11.5H3.5V20.5C3.5 21.6 4.4 22.5 5.5 22.5H21.5C22.6 22.5 23.5 21.6 23.5 20.5V8.5C23.5 7.4 22.6 6.5 21.5 6.5ZM8.5 14.5C8.5 17.26 10.74 19.5 13.5 19.5C16.26 19.5 18.5 17.26 18.5 14.5C18.5 11.74 16.26 9.5 13.5 9.5C10.74 9.5 8.5 11.74 8.5 14.5ZM13.5 11.5C15.15 11.5 16.5 12.85 16.5 14.5C16.5 16.15 15.15 17.5 13.5 17.5C11.85 17.5 10.5 16.15 10.5 14.5C10.5 12.85 11.85 11.5 13.5 11.5ZM7.5 1.5H5.5V6.5H7.5V1.5Z"}),l.createElement("path",{d:"M5.5 7.5H7.5V9.5H5.5V7.5Z"})),IL=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M13.0239 7.13074C13.6587 7.51454 13.6587 8.48386 13.0239 8.86765L6.41221 12.8653C5.78279 13.2459 5 12.7645 5 11.9969V4.00148C5 3.23384 5.7828 2.75245 6.41221 3.13302L13.0239 7.13074Z"})),kL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12.7038 9.20312H2.70375C2.15375 9.20312 1.70375 9.65312 1.70375 10.2031C1.70375 10.7531 2.15375 11.2031 2.70375 11.2031H12.7038C13.2538 11.2031 13.7038 10.7531 13.7038 10.2031C13.7038 9.65312 13.2538 9.20312 12.7038 9.20312ZM12.7038 5.20312H2.70375C2.15375 5.20312 1.70375 5.65312 1.70375 6.20312C1.70375 6.75312 2.15375 7.20312 2.70375 7.20312H12.7038C13.2538 7.20312 13.7038 6.75312 13.7038 6.20312C13.7038 5.65312 13.2538 5.20312 12.7038 5.20312ZM2.70375 15.2031H8.70375C9.25375 15.2031 9.70375 14.7531 9.70375 14.2031C9.70375 13.6531 9.25375 13.2031 8.70375 13.2031H2.70375C2.15375 13.2031 1.70375 13.6531 1.70375 14.2031C1.70375 14.7531 2.15375 15.2031 2.70375 15.2031ZM21.9137 11.4131L22.0037 11.5031C22.3937 11.8931 22.3937 12.5231 22.0037 12.9131L16.4237 18.5031C16.0337 18.8931 15.4038 18.8931 15.0138 18.5031L11.9238 15.4131C11.5338 15.0231 11.5338 14.3931 11.9238 14.0031L12.0138 13.9131C12.4038 13.5231 13.0338 13.5231 13.4238 13.9131L15.7238 16.2131L20.5037 11.4231C20.8837 11.0231 21.5238 11.0231 21.9137 11.4131Z"})),TL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 12.25C13.24 12.25 14.25 11.24 14.25 10C14.25 8.76 13.24 7.75 12 7.75C10.76 7.75 9.75 8.76 9.75 10C9.75 11.24 10.76 12.25 12 12.25ZM16.5 16.25C16.5 14.75 13.5 14 12 14C10.5 14 7.5 14.75 7.5 16.25V17H16.5V16.25ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM18 19H6C5.45 19 5 18.55 5 18V6C5 5.45 5.45 5 6 5H18C18.55 5 19 5.45 19 6V18C19 18.55 18.55 19 18 19Z"})),DL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19.928 8.66759L16.328 10.3476L13.998 8.01759V6.61759L16.328 4.28759L19.928 5.96759C20.308 6.14759 20.748 5.97759 20.928 5.60759C21.108 5.22759 20.938 4.78759 20.568 4.60759L16.648 2.77759C16.268 2.59759 15.818 2.67759 15.518 2.97759L13.778 4.71759C13.598 4.47759 13.318 4.31759 12.998 4.31759C12.448 4.31759 11.998 4.76759 11.998 5.31759V6.31759H8.81805C8.39805 5.15759 7.29805 4.31759 5.99805 4.31759C4.33805 4.31759 2.99805 5.65759 2.99805 7.31759C2.99805 8.41759 3.59805 9.36759 4.47805 9.89759L7.07805 18.3176H5.99805C4.89805 18.3176 3.99805 19.2176 3.99805 20.3176V21.3176H16.998V20.3176C16.998 19.2176 16.098 18.3176 14.998 18.3176H13.378L8.40805 9.08759C8.57805 8.84759 8.71805 8.59759 8.81805 8.31759H11.998V9.31759C11.998 9.86759 12.448 10.3176 12.998 10.3176C13.318 10.3176 13.598 10.1576 13.778 9.91759L15.518 11.6576C15.818 11.9576 16.268 12.0376 16.648 11.8576L20.568 10.0276C20.948 9.84759 21.108 9.40759 20.928 9.02759C20.748 8.65759 20.308 8.48759 19.928 8.66759ZM5.99805 8.31759C5.44805 8.31759 4.99805 7.86759 4.99805 7.31759C4.99805 6.76759 5.44805 6.31759 5.99805 6.31759C6.54805 6.31759 6.99805 6.76759 6.99805 7.31759C6.99805 7.86759 6.54805 8.31759 5.99805 8.31759ZM11.108 18.3176H9.16805L6.70805 10.3176H6.80805L11.108 18.3176Z"})),OL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M16.7071 16.7071C16.3166 17.0976 15.6834 17.0976 15.2929 16.7071L12 13.4142L8.70711 16.7071C8.31658 17.0976 7.68342 17.0976 7.29289 16.7071C6.90237 16.3166 6.90237 15.6834 7.29289 15.2929L10.5858 12C11.3668 11.219 12.6332 11.2189 13.4142 12L16.7071 15.2929C17.0976 15.6834 17.0976 16.3166 16.7071 16.7071Z",fill:"currentColor"}),l.createElement("path",{d:"M15.2929 12.1071C15.6834 12.4976 16.3166 12.4976 16.7071 12.1071C17.0976 11.7166 17.0976 11.0834 16.7071 10.6929L13.4142 7.39999C12.6332 6.61894 11.3668 6.61895 10.5858 7.39999L7.29289 10.6929C6.90237 11.0834 6.90237 11.7166 7.29289 12.1071C7.68342 12.4976 8.31658 12.4976 8.70711 12.1071L12 8.81421L15.2929 12.1071Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",fill:"currentColor"})),VL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M5 5C5 5.55 5.45 6 6 6H18C18.55 6 19 5.55 19 5C19 4.45 18.55 4 18 4H6C5.45 4 5 4.45 5 5ZM7.41 14H9V19C9 19.55 9.45 20 10 20H14C14.55 20 15 19.55 15 19V14H16.59C17.48 14 17.93 12.92 17.3 12.29L12.71 7.7C12.32 7.31 11.69 7.31 11.3 7.7L6.71 12.29C6.08 12.92 6.52 14 7.41 14Z",fill:"currentColor"})),HL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 34 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{clipPath:"url(#push_pin_clip)"},l.createElement("path",{d:"M24.0416 12.7279L20.5061 16.2634C19.7142 17.0554 19.2404 18.0524 19.0919 19.0918L14.8493 14.8492C15.917 14.7007 16.8999 14.2128 17.6777 13.435L21.2132 9.89945L24.0416 12.7279ZM27.5772 13.435L20.5061 6.36392C20.1172 5.97501 19.4808 5.97501 19.0919 6.36392C18.703 6.75283 18.703 7.38923 19.0919 7.77813L19.799 8.48524L16.2635 12.0208C15.0897 13.1946 13.1946 13.1946 12.0208 12.0208L10.6066 13.435L14.828 17.6564L9.8783 22.6062V24.0204H11.2925L16.2423 19.0706L20.5061 23.3345L21.9203 21.9203C20.7465 20.7465 20.7465 18.8514 21.9203 17.6776L25.4559 14.1421L26.163 14.8492C26.5519 15.2381 27.1883 15.2381 27.5772 14.8492C27.9661 14.4603 27.9661 13.8239 27.5772 13.435Z"})),l.createElement("defs",null,l.createElement("clipPath",{id:"push_pin_clip"},l.createElement("rect",{width:24,height:24,fill:"white",transform:"translate(16.9706) rotate(45)"})))),AL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5384 3H9.4616H9.46159C8.51409 2.99999 7.74834 2.99998 7.12792 3.05067C6.48863 3.10291 5.92481 3.21341 5.40244 3.47957C4.57453 3.90141 3.90141 4.57453 3.47957 5.40244C3.21341 5.92481 3.10291 6.48863 3.05067 7.12792C2.99998 7.74834 2.99999 8.51409 3 9.46158V9.46159V14.5384V14.5384C2.99999 15.4859 2.99998 16.2517 3.05067 16.8721C3.10291 17.5114 3.21341 18.0752 3.47957 18.5976C3.90141 19.4255 4.57453 20.0986 5.40244 20.5204C5.92481 20.7866 6.48863 20.8971 7.12792 20.9493C7.74834 21 8.51409 21 9.46159 21H14.5384C15.4859 21 16.2517 21 16.8721 20.9493C17.5114 20.8971 18.0752 20.7866 18.5976 20.5204C19.4255 20.0986 20.0986 19.4255 20.5204 18.5976C20.7866 18.0752 20.8971 17.5114 20.9493 16.8721C21 16.2517 21 15.4859 21 14.5384V9.46159C21 8.51409 21 7.74834 20.9493 7.12792C20.8971 6.48863 20.7866 5.92481 20.5204 5.40244C20.0986 4.57453 19.4255 3.90141 18.5976 3.47957C18.0752 3.21341 17.5114 3.10291 16.8721 3.05067C16.2517 2.99998 15.4859 2.99999 14.5384 3H14.5384ZM6.21963 5.08338C6.44595 4.96807 6.74652 4.88783 7.2745 4.8447C7.81298 4.8007 8.50506 4.8 9.5 4.8H11.1L11.1 13.2018H4.8V9.5C4.8 8.50506 4.8007 7.81298 4.8447 7.2745C4.88783 6.74652 4.96807 6.44595 5.08338 6.21963C5.33265 5.7304 5.7304 5.33265 6.21963 5.08338ZM4.8003 15.0018H11.1V19.2H9.5C8.50506 19.2 7.81298 19.1993 7.2745 19.1553C6.74652 19.1122 6.44595 19.0319 6.21963 18.9166C5.7304 18.6673 5.33265 18.2696 5.08338 17.7804C4.96807 17.5541 4.88783 17.2535 4.8447 16.7255C4.80851 16.2826 4.80161 15.7357 4.8003 15.0018ZM12.9 19.2H14.5C15.4949 19.2 16.187 19.1993 16.7255 19.1553C17.2535 19.1122 17.5541 19.0319 17.7804 18.9166C18.2696 18.6673 18.6673 18.2696 18.9166 17.7804C19.0319 17.5541 19.1122 17.2535 19.1553 16.7255C19.1993 16.187 19.2 15.4949 19.2 14.5V10.7969H12.9V19.2ZM12.9 8.99689V4.8H14.5C15.4949 4.8 16.187 4.8007 16.7255 4.8447C17.2535 4.88783 17.5541 4.96807 17.7804 5.08338C18.2696 5.33265 18.6673 5.7304 18.9166 6.21963C19.0319 6.44595 19.1122 6.74652 19.1553 7.2745C19.1915 7.71718 19.1984 8.26366 19.1997 8.99689H12.9Z",fill:"currentColor"})),FL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7C3 5.59987 3 4.8998 3.27248 4.36502C3.51217 3.89462 3.89462 3.51217 4.36502 3.27248C4.8998 3 5.59987 3 7 3H17C18.4001 3 19.1002 3 19.635 3.27248C20.1054 3.51217 20.4878 3.89462 20.7275 4.36502C21 4.8998 21 5.59987 21 7C21 8.40013 21 9.1002 20.7275 9.63498C20.4878 10.1054 20.1054 10.4878 19.635 10.7275C19.1002 11 18.4001 11 17 11H7C5.59987 11 4.8998 11 4.36502 10.7275C3.89462 10.4878 3.51217 10.1054 3.27248 9.63498C3 9.1002 3 8.40013 3 7ZM7 4.8H17C17.7298 4.8 18.1688 4.8014 18.4954 4.82808C18.7167 4.84616 18.8016 4.871 18.8207 4.87778C18.9501 4.94448 19.0555 5.04989 19.1222 5.17932C19.129 5.19843 19.1538 5.28331 19.1719 5.50458C19.1986 5.83116 19.2 6.27023 19.2 7C19.2 7.72977 19.1986 8.16884 19.1719 8.49542C19.1538 8.71668 19.129 8.80156 19.1222 8.82068C19.0555 8.95011 18.9501 9.05552 18.8207 9.12222C18.8016 9.129 18.7167 9.15384 18.4954 9.17192C18.1688 9.1986 17.7298 9.2 17 9.2H7C6.27023 9.2 5.83116 9.1986 5.50458 9.17192C5.2833 9.15384 5.19843 9.129 5.17932 9.12222C5.04989 9.05552 4.94448 8.95011 4.87778 8.82068C4.871 8.80158 4.84616 8.7167 4.82808 8.49542C4.8014 8.16884 4.8 7.72977 4.8 7C4.8 6.27023 4.8014 5.83116 4.82808 5.50458C4.84616 5.2833 4.871 5.19842 4.87778 5.17932C4.94448 5.04989 5.04989 4.94448 5.17932 4.87778C5.19842 4.871 5.2833 4.84616 5.50458 4.82808C5.83116 4.8014 6.27023 4.8 7 4.8ZM19.1208 8.82399C19.1206 8.82466 19.1204 8.82504 19.1205 8.82509C19.1205 8.82519 19.1212 8.82343 19.1222 8.82068C19.1217 8.82185 19.1211 8.82334 19.1208 8.82399ZM18.8251 9.12045C18.8251 9.12047 18.8254 9.1203 18.8251 9.12045V9.12045Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 17C3 15.5999 3 14.8998 3.27248 14.365C3.51217 13.8946 3.89462 13.5122 4.36502 13.2725C4.8998 13 5.59987 13 7 13H17C18.4001 13 19.1002 13 19.635 13.2725C20.1054 13.5122 20.4878 13.8946 20.7275 14.365C21 14.8998 21 15.5999 21 17C21 18.4001 21 19.1002 20.7275 19.635C20.4878 20.1054 20.1054 20.4878 19.635 20.7275C19.1002 21 18.4001 21 17 21H7C5.59987 21 4.8998 21 4.36502 20.7275C3.89462 20.4878 3.51217 20.1054 3.27248 19.635C3 19.1002 3 18.4001 3 17ZM7 14.8H17C17.7298 14.8 18.1688 14.8014 18.4954 14.8281C18.7167 14.8462 18.8016 14.871 18.8207 14.8778C18.9501 14.9445 19.0555 15.0499 19.1222 15.1793C19.129 15.1984 19.1538 15.2833 19.1719 15.5046C19.1986 15.8312 19.2 16.2702 19.2 17C19.2 17.7298 19.1986 18.1688 19.1719 18.4954C19.1538 18.7167 19.129 18.8016 19.1222 18.8207C19.0555 18.9501 18.9501 19.0555 18.8207 19.1222C18.8016 19.129 18.7167 19.1538 18.4954 19.1719C18.1688 19.1986 17.7298 19.2 17 19.2H7C6.27023 19.2 5.83116 19.1986 5.50458 19.1719C5.2833 19.1538 5.19843 19.129 5.17932 19.1222C5.04989 19.0555 4.94448 18.9501 4.87778 18.8207C4.871 18.8016 4.84616 18.7167 4.82808 18.4954C4.8014 18.1688 4.8 17.7298 4.8 17C4.8 16.2702 4.8014 15.8312 4.82808 15.5046C4.84616 15.2833 4.871 15.1984 4.87778 15.1793C4.94448 15.0499 5.04989 14.9445 5.17932 14.8778C5.19842 14.871 5.2833 14.8462 5.50458 14.8281C5.83116 14.8014 6.27023 14.8 7 14.8ZM19.121 15.176C19.1206 15.1752 19.1205 15.1749 19.1205 15.1749C19.1204 15.175 19.1211 15.1769 19.1222 15.1793C19.1218 15.1781 19.1212 15.1766 19.121 15.176ZM19.1222 18.8207C19.1211 18.8231 19.1204 18.825 19.1205 18.8251C19.1205 18.8251 19.1207 18.8248 19.121 18.8239C19.1213 18.8233 19.1218 18.8218 19.1222 18.8207ZM18.8207 19.1222C18.8234 19.1212 18.8252 19.1205 18.8251 19.1205C18.825 19.1204 18.8245 19.1206 18.8235 19.121C18.8229 19.1213 18.8216 19.1218 18.8207 19.1222Z",fill:"currentColor"})),$L=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M17.645 6.35C16.195 4.9 14.205 4 11.995 4C7.575 4 4.005 7.58 4.005 12C4.005 16.42 7.575 20 11.995 20C15.725 20 18.835 17.45 19.725 14H17.645C16.825 16.33 14.605 18 11.995 18C8.685 18 5.995 15.31 5.995 12C5.995 8.69 8.685 6 11.995 6C13.655 6 15.135 6.69 16.215 7.78L12.995 11H19.995V4L17.645 6.35Z"})),zL=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("circle",{cx:8,cy:8,r:6.3,stroke:"currentColor",strokeWidth:1.4}),l.createElement("path",{d:"M5.5 8H10.5",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"})),BL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"#000",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M1 21L12 2L23 21H1ZM3.6 19.5H20.4L12 5L3.6 19.5ZM12.1044 18.075C12.3181 18.075 12.4958 18.0027 12.6375 17.8581C12.7792 17.7135 12.85 17.5344 12.85 17.3206C12.85 17.1069 12.7777 16.9292 12.6331 16.7875C12.4885 16.6458 12.3094 16.575 12.0956 16.575C11.8819 16.575 11.7042 16.6473 11.5625 16.7919C11.4208 16.9365 11.35 17.1156 11.35 17.3294C11.35 17.5431 11.4223 17.7208 11.5669 17.8625C11.7115 18.0042 11.8906 18.075 12.1044 18.075ZM11.35 15.3H12.85V9.7H11.35V15.3Z"})),ZL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 5.53491V2.53491L8 6.53491L12 10.5349V7.53491C15.31 7.53491 18 10.2249 18 13.5349C18 16.5049 15.83 18.9649 13 19.4449V21.4649C16.95 20.9749 20 17.6149 20 13.5349C20 9.11491 16.42 5.53491 12 5.53491Z"}),l.createElement("path",{d:"M6 13.5349C6 11.8849 6.67 10.3849 7.76 9.29491L6.34 7.87491C4.9 9.32491 4 11.3249 4 13.5349C4 17.6149 7.05 20.9749 11 21.4649V19.4449C8.17 18.9649 6 16.5049 6 13.5349Z"})),WL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,viewBox:"0 0 25 24",fill:"currentColor",...e},l.createElement("path",{d:"M13.9041 3.00155C8.81407 2.86155 4.64407 6.94155 4.64407 12.0015H2.85407C2.40407 12.0015 2.18407 12.5415 2.50407 12.8515L5.29407 15.6515C5.49407 15.8515 5.80407 15.8515 6.00407 15.6515L8.79407 12.8515C9.11407 12.5415 8.88407 12.0015 8.44407 12.0015H6.64407C6.64407 8.10154 9.82407 4.95155 13.7441 5.00155C17.4641 5.05155 20.5941 8.18154 20.6441 11.9015C20.6941 15.8115 17.5441 19.0015 13.6441 19.0015C12.0341 19.0015 10.5441 18.4515 9.36407 17.5215C8.96407 17.2115 8.40407 17.2415 8.04407 17.6015C7.62407 18.0315 7.65407 18.7315 8.12407 19.1015C9.64407 20.2915 11.5641 21.0015 13.6441 21.0015C18.6941 21.0015 22.7841 16.8315 22.6441 11.7415C22.5141 7.05154 18.5941 3.13155 13.9041 3.00155ZM13.3941 8.00155C12.9841 8.00155 12.6441 8.34155 12.6441 8.75155V12.4315C12.6441 12.7815 12.8341 13.1115 13.1341 13.2915L16.2541 15.1415C16.6141 15.3515 17.0741 15.2315 17.2841 14.8815C17.4941 14.5215 17.3741 14.0615 17.0241 13.8515L14.1441 12.1415V8.74155C14.1441 8.34155 13.8141 8.00155 13.3941 8.00155Z"})),RL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 2.16113C7.8 2.16113 4 5.38113 4 10.3611C4 13.5411 6.45 17.2811 11.34 21.5911C11.72 21.9211 12.29 21.9211 12.67 21.5911C17.55 17.2811 20 13.5411 20 10.3611C20 5.38113 16.2 2.16113 12 2.16113ZM12 12.1611C10.9 12.1611 10 11.2611 10 10.1611C10 9.06113 10.9 8.16113 12 8.16113C13.1 8.16113 14 9.06113 14 10.1611C14 11.2611 13.1 12.1611 12 12.1611Z",fill:"currentColor"})),G9=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{clipPath:"url(#clip0_2951_18849)"},l.createElement("path",{d:"M6.41531 8.91849C5.95531 8.45849 5.16531 8.53849 4.85531 9.10849C4.57531 9.61849 4.35531 10.1385 4.18531 10.6885C3.99531 11.3185 4.49531 11.9385 5.14531 11.9385H5.15531C5.58531 11.9385 5.97531 11.6585 6.09531 11.2385C6.21531 10.8385 6.37531 10.4485 6.57531 10.0685C6.79531 9.69849 6.72531 9.22849 6.41531 8.91849ZM5.16531 13.9385H5.14531C4.49531 13.9385 3.99531 14.5585 4.18531 15.1885C4.34531 15.7285 4.56531 16.2585 4.84531 16.7685C5.15531 17.3385 5.95531 17.4285 6.41531 16.9685C6.71531 16.6585 6.79531 16.1985 6.58531 15.8185C6.38531 15.4485 6.22531 15.0585 6.10531 14.6585C5.98531 14.2185 5.59531 13.9385 5.16531 13.9385ZM8.01531 19.9585C8.52531 20.2385 9.05531 20.4585 9.60531 20.6185C10.2253 20.7985 10.8453 20.2985 10.8453 19.6585V19.6285C10.8453 19.1985 10.5653 18.8085 10.1453 18.6885C9.74531 18.5685 9.36531 18.4085 8.99531 18.2085C8.61531 17.9985 8.13531 18.0685 7.83531 18.3785L7.80531 18.4085C7.35531 18.8585 7.44531 19.6485 8.01531 19.9585ZM12.8553 5.00849V4.34849C12.8553 3.45849 11.7753 3.00849 11.1453 3.63849L9.02531 5.76849C8.62531 6.16849 8.62531 6.80849 9.02531 7.19849L11.1553 9.27849C11.7853 9.89849 12.8553 9.44849 12.8553 8.55849V7.02849C15.6953 7.50849 17.8553 9.96849 17.8553 12.9385C17.8553 15.6685 16.0353 17.9585 13.5353 18.6885C13.1253 18.8085 12.8553 19.1985 12.8553 19.6285V19.6485C12.8553 20.2985 13.4653 20.7885 14.0853 20.6085C17.4253 19.6485 19.8553 16.5785 19.8553 12.9385C19.8553 8.85849 16.8053 5.49849 12.8553 5.00849Z"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2951_18849"},l.createElement("rect",{width:24,height:24,rx:12})))),j9=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{clipPath:"url(#clip0_2951_18864)"},l.createElement("path",{d:"M14.9745 5.76625L12.8445 3.63625C12.2245 3.01625 11.1445 3.45625 11.1445 4.34625V5.00625C7.20453 5.49625 4.14453 8.85625 4.14453 12.9363C4.14453 16.5763 6.57453 19.6463 9.91453 20.6163C10.5345 20.7963 11.1445 20.2962 11.1445 19.6562V19.6263C11.1445 19.1963 10.8745 18.8063 10.4645 18.6863C7.96453 17.9663 6.14453 15.6663 6.14453 12.9363C6.14453 9.96625 8.30453 7.50625 11.1445 7.02625V8.55625C11.1445 9.44625 12.2145 9.88625 12.8445 9.26625L14.9745 7.18625C15.3745 6.80625 15.3745 6.16625 14.9745 5.76625ZM19.8145 10.6963C19.6545 10.1463 19.4345 9.61625 19.1545 9.10625C18.8445 8.53625 18.0545 8.44625 17.5945 8.90625L17.5845 8.91625C17.2745 9.22625 17.2045 9.69625 17.4145 10.0763C17.6145 10.4463 17.7745 10.8363 17.8945 11.2363C18.0145 11.6562 18.4045 11.9363 18.8345 11.9363H18.8545C19.5045 11.9363 20.0045 11.3163 19.8145 10.6963ZM13.1445 19.6163V19.6363C13.1445 20.2863 13.7645 20.7763 14.3845 20.5963C14.9345 20.4363 15.4645 20.2163 15.9745 19.9363C16.5445 19.6263 16.6345 18.8363 16.1745 18.3763L16.1545 18.3563C15.8445 18.0463 15.3745 17.9763 14.9945 18.1863C14.6245 18.3963 14.2345 18.5563 13.8345 18.6763C13.4245 18.7963 13.1445 19.1863 13.1445 19.6163ZM17.5845 16.9663C18.0445 17.4263 18.8345 17.3363 19.1445 16.7663C19.4245 16.2563 19.6445 15.7263 19.8145 15.1763C19.9945 14.5563 19.5045 13.9363 18.8545 13.9363H18.8345C18.3945 13.9363 18.0145 14.2163 17.8945 14.6363C17.7745 15.0363 17.6145 15.4263 17.4145 15.8063C17.2045 16.1863 17.2845 16.6663 17.5845 16.9663Z"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2951_18864"},l.createElement("rect",{width:24,height:24,rx:12})))),GL=e=>l.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M6.66667 12.0702C9.65094 12.0702 12.0702 9.65094 12.0702 6.66667C12.0702 3.68239 9.65094 1.26316 6.66667 1.26316C3.68239 1.26316 1.26316 3.68239 1.26316 6.66667C1.26316 9.65094 3.68239 12.0702 6.66667 12.0702ZM6.66667 13.3333C2.98477 13.3333 0 10.3486 0 6.66667C0 2.98477 2.98477 0 6.66667 0C10.3486 0 13.3333 2.98477 13.3333 6.66667C13.3333 10.3486 10.3486 13.3333 6.66667 13.3333Z"})),jL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M17.59 3.59C17.21 3.21 16.7 3 16.17 3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V7.83C21 7.3 20.79 6.79 20.41 6.42L17.59 3.59ZM12 19C10.34 19 9 17.66 9 16C9 14.34 10.34 13 12 13C13.66 13 15 14.34 15 16C15 17.66 13.66 19 12 19ZM13 9H7C5.9 9 5 8.1 5 7C5 5.9 5.9 5 7 5H13C14.1 5 15 5.9 15 7C15 8.1 14.1 9 13 9Z"})),Y9=e=>l.createElement("svg",{width:148,height:148,viewBox:"0 0 148 148",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("ellipse",{opacity:.1,cx:74.0005,cy:143.164,rx:73.5786,ry:4.41472,fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M105.825 24.4994C107.093 22.7738 109.52 22.4026 111.245 23.6702C112.971 24.9379 113.342 27.3645 112.074 29.0901L107.352 35.5177C106.085 37.2433 103.658 37.6145 101.932 36.3468C100.207 35.0792 99.8357 32.6526 101.103 30.927L105.825 24.4994ZM109.503 26.0421C109.087 25.7368 108.503 25.8262 108.197 26.2418L103.475 32.6695C103.17 33.0851 103.259 33.6696 103.675 33.9749C104.091 34.2803 104.675 34.1909 104.98 33.7752L109.702 27.3476C110.008 26.932 109.918 26.3475 109.503 26.0421ZM35.9101 62.584C35.9101 43.7353 51.19 28.4554 70.0387 28.4554C88.8874 28.4554 104.167 43.7353 104.167 62.584C104.167 81.4326 88.8874 96.7125 70.0387 96.7125C51.19 96.7125 35.9101 81.4326 35.9101 62.584ZM70.0387 25.5123C49.5645 25.5123 32.967 42.1098 32.967 62.584C32.967 83.0581 49.5645 99.6556 70.0387 99.6556C76.7693 99.6556 83.081 97.862 88.5218 94.7266L93.3336 99.5383C93.1961 101.583 93.9089 103.675 95.472 105.238L110.32 120.085C113.193 122.959 117.852 122.959 120.725 120.085L123.927 116.884C126.8 114.011 126.8 109.352 123.927 106.478L109.079 91.6307C107.516 90.0673 105.424 89.3545 103.378 89.4925L99.2711 85.3853C104.183 79.0966 107.11 71.1821 107.11 62.584C107.11 42.1098 90.5128 25.5123 70.0387 25.5123ZM100.188 90.4646L97.3623 87.6388C95.4803 89.6901 93.3703 91.5289 91.0725 93.115L94.3054 96.3479C94.6194 95.8062 95.0083 95.2959 95.472 94.8322L98.6735 91.6308C99.1369 91.1673 99.6468 90.7786 100.188 90.4646ZM87.0534 58.1284C87.7803 57.765 88.075 56.8811 87.7115 56.1541C87.3481 55.4272 86.4641 55.1326 85.7372 55.496L74.1912 61.269C73.6927 61.5183 73.3777 62.0278 73.3777 62.5852C73.3777 63.1426 73.6927 63.6522 74.1912 63.9014L85.7372 69.6744C86.4641 70.0379 87.3481 69.7433 87.7115 69.0163C88.075 68.2894 87.7803 67.4055 87.0534 67.042L78.1398 62.5852L87.0534 58.1284ZM52.3644 56.1541C52.0009 56.8811 52.2956 57.765 53.0225 58.1284L61.9361 62.5852L53.0225 67.042C52.2956 67.4055 52.0009 68.2894 52.3644 69.0163C52.7279 69.7433 53.6118 70.0379 54.3387 69.6744L65.8847 63.9014C66.3833 63.6522 66.6982 63.1426 66.6982 62.5852C66.6982 62.0278 66.3833 61.5183 65.8847 61.269L54.3387 55.496C53.6118 55.1326 52.7279 55.4272 52.3644 56.1541ZM45.5314 62.5836C45.5314 49.0488 56.5035 38.0767 70.0383 38.0767C83.5731 38.0767 94.5452 49.0488 94.5452 62.5836C94.5452 76.1183 83.5731 87.0905 70.0383 87.0905C56.5035 87.0905 45.5314 76.1183 45.5314 62.5836ZM70.0383 35.1335C54.8781 35.1335 42.5882 47.4233 42.5882 62.5836C42.5882 77.7438 54.8781 90.0336 70.0383 90.0336C85.1985 90.0336 97.4883 77.7438 97.4883 62.5836C97.4883 47.4233 85.1985 35.1335 70.0383 35.1335ZM122.168 38.7523C121.517 36.7124 119.336 35.5865 117.296 36.2374L109.698 38.662C107.658 39.3129 106.532 41.4942 107.183 43.5341C107.834 45.5739 110.015 46.6999 112.055 46.049L119.653 43.6244C121.693 42.9735 122.819 40.7922 122.168 38.7523ZM118.191 39.0412C118.682 38.8845 119.208 39.1557 119.364 39.647C119.521 40.1383 119.25 40.6637 118.759 40.8205L111.16 43.2451C110.669 43.4019 110.144 43.1307 109.987 42.6393C109.83 42.148 110.101 41.6226 110.593 41.4658L118.191 39.0412ZM22.9291 84.4847C20.8734 85.0837 19.6925 87.2358 20.2916 89.2915C20.8906 91.3472 23.0427 92.5281 25.0984 91.9291L32.7556 89.6977C34.8113 89.0987 35.9921 86.9466 35.3931 84.8909C34.7941 82.8352 32.642 81.6544 30.5863 82.2534L22.9291 84.4847ZM23.1172 88.4681C22.9729 87.973 23.2573 87.4546 23.7525 87.3103L31.4097 85.079C31.9048 84.9347 32.4232 85.2192 32.5675 85.7143C32.7118 86.2095 32.4273 86.7278 31.9322 86.8721L24.275 89.1034C23.7798 89.2477 23.2615 88.9633 23.1172 88.4681ZM30.7137 104.725C29.0207 103.414 28.7111 100.979 30.0221 99.2863L34.9054 92.9803C36.2164 91.2874 38.6515 90.9778 40.3445 92.2888C42.0374 93.5997 42.347 96.0349 41.036 97.7278L36.1528 104.034C34.8418 105.727 32.4066 106.036 30.7137 104.725ZM32.3491 101.088C32.0333 101.496 32.1079 102.083 32.5157 102.398C32.9234 102.714 33.51 102.64 33.8258 102.232L38.709 95.9258C39.0248 95.5181 38.9502 94.9315 38.5425 94.6157C38.1347 94.3 37.5481 94.3745 37.2324 94.7823L32.3491 101.088Z",fill:"currentColor"})),YL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"currentColor",...e},l.createElement("path",{d:"M17.84 9.51061L10.4817 2.15228C10.1734 1.84395 9.74837 1.66895 9.30671 1.66895H3.33171C2.41504 1.66895 1.66504 2.41895 1.66504 3.33561V9.31061C1.66504 9.75228 1.84004 10.1773 2.15671 10.4856L9.51504 17.8439C10.165 18.4939 11.2234 18.4939 11.8734 17.8439L17.8484 11.8689C18.4984 11.2189 18.4984 10.1689 17.84 9.51061ZM10.69 16.6689L3.33171 9.31061V3.33561H9.30671L16.665 10.6939L10.69 16.6689Z"}),l.createElement("path",{d:"M5.41504 6.66895C6.10539 6.66895 6.66504 6.1093 6.66504 5.41895C6.66504 4.72859 6.10539 4.16895 5.41504 4.16895C4.72468 4.16895 4.16504 4.72859 4.16504 5.41895C4.16504 6.1093 4.72468 6.66895 5.41504 6.66895Z"})),UL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19.4999 12C19.4999 11.77 19.4899 11.55 19.4699 11.32L21.3299 9.91C21.7299 9.61 21.8399 9.05 21.5899 8.61L19.7199 5.38C19.4699 4.94 18.9299 4.76 18.4699 4.96L16.3199 5.87C15.9499 5.61 15.5599 5.38 15.1499 5.19L14.8599 2.88C14.7999 2.38 14.3699 2 13.8699 2H10.1399C9.62991 2 9.19991 2.38 9.13991 2.88L8.84991 5.19C8.43991 5.38 8.04991 5.61 7.67991 5.87L5.52991 4.96C5.06991 4.76 4.52991 4.94 4.27991 5.38L2.40991 8.62C2.15991 9.06 2.26991 9.61 2.66991 9.92L4.52991 11.33C4.50991 11.55 4.49991 11.77 4.49991 12C4.49991 12.23 4.50991 12.45 4.52991 12.68L2.66991 14.09C2.26991 14.39 2.15991 14.95 2.40991 15.39L4.27991 18.62C4.52991 19.06 5.06991 19.24 5.52991 19.04L7.67991 18.13C8.04991 18.39 8.43991 18.62 8.84991 18.81L9.13991 21.12C9.19991 21.62 9.62991 22 10.1299 22H13.8599C14.3599 22 14.7899 21.62 14.8499 21.12L15.1399 18.81C15.5499 18.62 15.9399 18.39 16.3099 18.13L18.4599 19.04C18.9199 19.24 19.4599 19.06 19.7099 18.62L21.5799 15.39C21.8299 14.95 21.7199 14.4 21.3199 14.09L19.4599 12.68C19.4899 12.45 19.4999 12.23 19.4999 12ZM12.0399 15.5C10.1099 15.5 8.53991 13.93 8.53991 12C8.53991 10.07 10.1099 8.5 12.0399 8.5C13.9699 8.5 15.5399 10.07 15.5399 12C15.5399 13.93 13.9699 15.5 12.0399 15.5Z",fill:"currentColor"})),qL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19.4323 12.98C19.4723 12.66 19.5023 12.34 19.5023 12C19.5023 11.66 19.4723 11.34 19.4323 11.02L21.5423 9.37C21.7323 9.22 21.7823 8.95 21.6623 8.73L19.6623 5.27C19.5723 5.11 19.4023 5.02 19.2223 5.02C19.1623 5.02 19.1023 5.03 19.0523 5.05L16.5623 6.05C16.0423 5.65 15.4823 5.32 14.8723 5.07L14.4923 2.42C14.4623 2.18 14.2523 2 14.0023 2H10.0023C9.75228 2 9.54228 2.18 9.51228 2.42L9.13228 5.07C8.52228 5.32 7.96228 5.66 7.44228 6.05L4.95228 5.05C4.89228 5.03 4.83228 5.02 4.77228 5.02C4.60228 5.02 4.43228 5.11 4.34228 5.27L2.34228 8.73C2.21228 8.95 2.27228 9.22 2.46228 9.37L4.57228 11.02C4.53228 11.34 4.50228 11.67 4.50228 12C4.50228 12.33 4.53228 12.66 4.57228 12.98L2.46228 14.63C2.27228 14.78 2.22228 15.05 2.34228 15.27L4.34228 18.73C4.43228 18.89 4.60228 18.98 4.78228 18.98C4.84228 18.98 4.90228 18.97 4.95228 18.95L7.44228 17.95C7.96228 18.35 8.52228 18.68 9.13228 18.93L9.51228 21.58C9.54228 21.82 9.75228 22 10.0023 22H14.0023C14.2523 22 14.4623 21.82 14.4923 21.58L14.8723 18.93C15.4823 18.68 16.0423 18.34 16.5623 17.95L19.0523 18.95C19.1123 18.97 19.1723 18.98 19.2323 18.98C19.4023 18.98 19.5723 18.89 19.6623 18.73L21.6623 15.27C21.7823 15.05 21.7323 14.78 21.5423 14.63L19.4323 12.98ZM17.4523 11.27C17.4923 11.58 17.5023 11.79 17.5023 12C17.5023 12.21 17.4823 12.43 17.4523 12.73L17.3123 13.86L18.2023 14.56L19.2823 15.4L18.5823 16.61L17.3123 16.1L16.2723 15.68L15.3723 16.36C14.9423 16.68 14.5323 16.92 14.1223 17.09L13.0623 17.52L12.9023 18.65L12.7023 20H11.3023L10.9523 17.52L9.89228 17.09C9.46228 16.91 9.06228 16.68 8.66228 16.38L7.75228 15.68L6.69228 16.11L5.42228 16.62L4.72228 15.41L5.80228 14.57L6.69228 13.87L6.55228 12.74C6.52228 12.43 6.50228 12.2 6.50228 12C6.50228 11.8 6.52228 11.57 6.55228 11.27L6.69228 10.14L5.80228 9.44L4.72228 8.6L5.42228 7.39L6.69228 7.9L7.73228 8.32L8.63228 7.64C9.06228 7.32 9.47228 7.08 9.88228 6.91L10.9423 6.48L11.1023 5.35L11.3023 4H12.6923L13.0423 6.48L14.1023 6.91C14.5323 7.09 14.9323 7.32 15.3323 7.62L16.2423 8.32L17.3023 7.89L18.5723 7.38L19.2723 8.59L18.2023 9.44L17.3123 10.14L17.4523 11.27ZM12.0023 8C9.79228 8 8.00228 9.79 8.00228 12C8.00228 14.21 9.79228 16 12.0023 16C14.2123 16 16.0023 14.21 16.0023 12C16.0023 9.79 14.2123 8 12.0023 8ZM12.0023 14C10.9023 14 10.0023 13.1 10.0023 12C10.0023 10.9 10.9023 10 12.0023 10C13.1023 10 14.0023 10.9 14.0023 12C14.0023 13.1 13.1023 14 12.0023 14Z"})),KL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M22 9.50664H17.21L12.82 2.93664C12.42 2.34664 11.55 2.34664 11.16 2.93664L6.77 9.50664H2C1.45 9.50664 1 9.95664 1 10.5066C1 10.5966 1.01 10.6866 1.04 10.7766L3.58 20.0466C3.81 20.8866 4.58 21.5066 5.5 21.5066H18.5C19.42 21.5066 20.19 20.8866 20.43 20.0466L22.97 10.7766L23 10.5066C23 9.95664 22.55 9.50664 22 9.50664ZM11.99 5.29664L14.8 9.50664H9.18L11.99 5.29664ZM12 17.5066C10.9 17.5066 10 16.6066 10 15.5066C10 14.4066 10.9 13.5066 12 13.5066C13.1 13.5066 14 14.4066 14 15.5066C14 16.6066 13.1 17.5066 12 17.5066Z",fill:"currentColor"})),XL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M18 2H10.83C10.3 2 9.79 2.21 9.41 2.59L4.59 7.41C4.21 7.79 4 8.3 4 8.83V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V4C20 2.9 19.1 2 18 2ZM11.65 16.65L8.86 13.86C8.54 13.54 8.76 13 9.21 13H11V10.01C11 9.46 11.44 9.02 11.99 9.01C12.55 9 13 9.45 13 10.01V13H14.79C15.24 13 15.46 13.54 15.14 13.85L12.35 16.64C12.16 16.84 11.84 16.84 11.65 16.65Z"})),QL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M20 2H4C2.9 2 2 2.9 2 4V22L6 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2ZM13 14H11V12H13V14ZM12 10C11.45 10 11 9.55 11 9V7C11 6.45 11.45 6 12 6C12.55 6 13 6.45 13 7V9C13 9.55 12.55 10 12 10Z"})),gs=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:9,viewBox:"0 0 14 9",fill:"currentColor",...e},l.createElement("path",{d:"M0.75 9H3.75C4.1625 9 4.5 8.6625 4.5 8.25C4.5 7.8375 4.1625 7.5 3.75 7.5H0.75C0.3375 7.5 0 7.8375 0 8.25C0 8.6625 0.3375 9 0.75 9ZM0 0.75C0 1.1625 0.3375 1.5 0.75 1.5H12.75C13.1625 1.5 13.5 1.1625 13.5 0.75C13.5 0.3375 13.1625 0 12.75 0H0.75C0.3375 0 0 0.3375 0 0.75ZM0.75 5.25H8.25C8.6625 5.25 9 4.9125 9 4.5C9 4.0875 8.6625 3.75 8.25 3.75H0.75C0.3375 3.75 0 4.0875 0 4.5C0 4.9125 0.3375 5.25 0.75 5.25Z"})),JL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",fill:"currentColor",...e},l.createElement("path",{d:"M13.7241 10.8703C13.4316 10.5778 12.9591 10.5778 12.6666 10.8703L9.74913 13.7803V2.40283C9.74913 1.99033 9.41163 1.65283 8.99913 1.65283C8.58663 1.65283 8.24913 1.99033 8.24913 2.40283V13.7878L5.33913 10.8778C5.04663 10.5853 4.57413 10.5853 4.28163 10.8778C3.98913 11.1703 3.98913 11.6428 4.28163 11.9353L8.47413 16.1278C8.76663 16.4203 9.23913 16.4203 9.53163 16.1278L13.7241 11.9353C14.0091 11.6428 14.0091 11.1628 13.7241 10.8703Z"})),eN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.60001 10.8996L7.63334 10.8996C8.02485 10.8996 8.37134 10.8996 8.65849 10.8762C8.96428 10.8512 9.28113 10.7952 9.58959 10.638C10.0412 10.4079 10.4083 10.0408 10.6384 9.58919C10.7956 9.28074 10.8516 8.96388 10.8766 8.6581C10.9 8.37095 10.9 8.02447 10.9 7.63298V7.63297V7.63296V7.63294L10.9 7.59961V6.39961L10.9 6.36628C10.9 5.97477 10.9 5.62828 10.8766 5.34113C10.8516 5.03534 10.7956 4.71849 10.6384 4.41004C10.4083 3.95845 10.0412 3.59129 9.58959 3.3612C9.28113 3.20403 8.96428 3.14802 8.6585 3.12304C8.37136 3.09958 8.02489 3.09959 7.63341 3.09961H7.63335L7.60001 3.09961L6.40001 3.09961L6.36667 3.09961H6.36661C5.97513 3.09959 5.62866 3.09958 5.34152 3.12304C5.03574 3.14802 4.71889 3.20403 4.41043 3.3612C3.95884 3.59129 3.59169 3.95845 3.36159 4.41003C3.20443 4.71849 3.14842 5.03534 3.12343 5.34113C3.09997 5.62826 3.09999 5.97473 3.10001 6.36621V6.36628L3.10001 6.39961L3.10001 7.59961L3.10001 7.63295V7.63301C3.09999 8.02449 3.09997 8.37096 3.12343 8.6581C3.14842 8.96388 3.20443 9.28073 3.36159 9.58919C3.59169 10.0408 3.95884 10.4079 4.41043 10.638C4.71889 10.7952 5.03574 10.8512 5.34152 10.8762C5.62867 10.8996 5.97515 10.8996 6.36664 10.8996H6.36665H6.36666H6.36667L6.40001 10.8996H7.60001ZM8.7724 9.03422C8.75999 9.04054 8.70639 9.06628 8.51192 9.08217C8.30694 9.09891 8.0349 9.09961 7.60001 9.09961L6.40001 9.09961C5.96512 9.09961 5.69308 9.09891 5.4881 9.08217C5.29363 9.06628 5.24003 9.04054 5.22761 9.03422C5.11472 8.97669 5.02293 8.8849 4.96541 8.77201C4.95908 8.75959 4.93334 8.70599 4.91746 8.51152C4.90071 8.30654 4.90001 8.0345 4.90001 7.59961L4.90001 6.39961C4.90001 5.96472 4.90071 5.69268 4.91746 5.4877C4.93335 5.29323 4.95908 5.23963 4.96541 5.22722C5.02293 5.11432 5.11472 5.02253 5.22761 4.96501C5.24003 4.95868 5.29363 4.93295 5.4881 4.91706C5.69308 4.90031 5.96512 4.89961 6.40001 4.89961L7.60001 4.89961C8.0349 4.89961 8.30694 4.90031 8.51192 4.91706C8.70639 4.93295 8.75999 4.95868 8.7724 4.96501C8.8853 5.02253 8.97709 5.11432 9.03461 5.22722C9.04094 5.23963 9.06667 5.29323 9.08256 5.4877C9.09931 5.69268 9.10001 5.96472 9.10001 6.39961L9.10001 7.59961C9.10001 8.0345 9.09931 8.30654 9.08256 8.51152C9.06667 8.70599 9.04094 8.75959 9.03461 8.77201C8.97709 8.8849 8.8853 8.97669 8.7724 9.03422ZM7.60001 20.8996L7.63334 20.8996H7.63344C8.02491 20.8996 8.37136 20.8996 8.65849 20.8762C8.96428 20.8512 9.28113 20.7952 9.58959 20.638C10.0412 20.4079 10.4083 20.0408 10.6384 19.5892C10.7956 19.2807 10.8516 18.9639 10.8766 18.6581C10.9 18.371 10.9 18.0245 10.9 17.633V17.633V17.633V17.6329L10.9 17.5996V16.3996L10.9 16.3663C10.9 15.9748 10.9 15.6283 10.8766 15.3411C10.8516 15.0353 10.7956 14.7185 10.6384 14.41C10.4083 13.9584 10.0412 13.5913 9.58959 13.3612C9.28113 13.204 8.96428 13.148 8.6585 13.123C8.37136 13.0996 8.02489 13.0996 7.63342 13.0996H7.63341H7.6334H7.63335L7.60001 13.0996H6.40001L6.36667 13.0996H6.36662H6.36661H6.3666C5.97512 13.0996 5.62866 13.0996 5.34152 13.123C5.03574 13.148 4.71889 13.204 4.41043 13.3612C3.95884 13.5913 3.59169 13.9584 3.36159 14.41C3.20443 14.7185 3.14842 15.0353 3.12343 15.3411C3.09997 15.6283 3.09999 15.9747 3.10001 16.3662V16.3663L3.10001 16.3996L3.10001 17.5996L3.10001 17.6329V17.633C3.09999 18.0245 3.09997 18.371 3.12343 18.6581C3.14842 18.9639 3.20443 19.2807 3.36159 19.5892C3.59169 20.0408 3.95884 20.4079 4.41043 20.638C4.71889 20.7952 5.03574 20.8512 5.34152 20.8762C5.62865 20.8996 5.97511 20.8996 6.36657 20.8996H6.36667L6.40001 20.8996H7.60001ZM8.7724 19.0342C8.75999 19.0405 8.70639 19.0663 8.51192 19.0822C8.30694 19.0989 8.0349 19.0996 7.60001 19.0996H6.40001C5.96512 19.0996 5.69308 19.0989 5.4881 19.0822C5.29363 19.0663 5.24003 19.0405 5.22761 19.0342C5.11472 18.9767 5.02293 18.8849 4.96541 18.772C4.95908 18.7596 4.93334 18.706 4.91746 18.5115C4.90071 18.3065 4.90001 18.0345 4.90001 17.5996L4.90001 16.3996C4.90001 15.9647 4.90071 15.6927 4.91746 15.4877C4.93335 15.2932 4.95908 15.2396 4.96541 15.2272C5.02293 15.1143 5.11472 15.0225 5.22761 14.965C5.24003 14.9587 5.29363 14.9329 5.4881 14.9171C5.69308 14.9003 5.96512 14.8996 6.40001 14.8996H7.60001C8.0349 14.8996 8.30694 14.9003 8.51192 14.9171C8.70639 14.9329 8.75999 14.9587 8.7724 14.965C8.8853 15.0225 8.97709 15.1143 9.03461 15.2272C9.04094 15.2396 9.06667 15.2932 9.08256 15.4877C9.09931 15.6927 9.10001 15.9647 9.10001 16.3996L9.10001 17.5996C9.10001 18.0345 9.09931 18.3065 9.08256 18.5115C9.06667 18.706 9.04094 18.7596 9.03461 18.772C8.97709 18.8849 8.8853 18.9767 8.7724 19.0342ZM17.6333 10.8996L17.6 10.8996H16.4L16.3667 10.8996H16.3667H16.3666C15.9752 10.8996 15.6287 10.8996 15.3415 10.8762C15.0357 10.8512 14.7189 10.7952 14.4104 10.638C13.9588 10.4079 13.5917 10.0408 13.3616 9.58919C13.2044 9.28073 13.1484 8.96388 13.1234 8.6581C13.1 8.37094 13.1 8.02445 13.1 7.63295L13.1 7.59961V6.39961L13.1 6.36628C13.1 5.97477 13.1 5.62828 13.1234 5.34113C13.1484 5.03534 13.2044 4.71849 13.3616 4.41003C13.5917 3.95845 13.9588 3.59129 14.4104 3.3612C14.7189 3.20403 15.0357 3.14802 15.3415 3.12304C15.6287 3.09958 15.9751 3.09959 16.3666 3.09961H16.3667L16.4 3.09961L17.6 3.09961L17.6333 3.09961H17.6334C18.0249 3.09959 18.3714 3.09958 18.6585 3.12304C18.9643 3.14802 19.2811 3.20403 19.5896 3.3612C20.0412 3.59129 20.4083 3.95845 20.6384 4.41004C20.7956 4.71849 20.8516 5.03534 20.8766 5.34113C20.9 5.62828 20.9 5.97477 20.9 6.36628L20.9 6.39961V7.59961L20.9 7.63294C20.9 8.02445 20.9 8.37094 20.8766 8.6581C20.8516 8.96388 20.7956 9.28074 20.6384 9.58919C20.4083 10.0408 20.0412 10.4079 19.5896 10.638C19.2811 10.7952 18.9643 10.8512 18.6585 10.8762C18.3713 10.8996 18.0248 10.8996 17.6333 10.8996ZM18.5119 9.08217C18.7064 9.06628 18.76 9.04054 18.7724 9.03422C18.8853 8.97669 18.9771 8.8849 19.0346 8.77201C19.0409 8.75959 19.0667 8.70599 19.0826 8.51152C19.0993 8.30654 19.1 8.0345 19.1 7.59961V6.39961C19.1 5.96472 19.0993 5.69268 19.0826 5.4877C19.0667 5.29323 19.0409 5.23963 19.0346 5.22722C18.9771 5.11432 18.8853 5.02253 18.7724 4.96501C18.76 4.95868 18.7064 4.93295 18.5119 4.91706C18.3069 4.90031 18.0349 4.89961 17.6 4.89961L16.4 4.89961C15.9651 4.89961 15.6931 4.90031 15.4881 4.91706C15.2936 4.93295 15.24 4.95868 15.2276 4.96501C15.1147 5.02253 15.0229 5.11432 14.9654 5.22722C14.9591 5.23963 14.9333 5.29323 14.9175 5.4877C14.9007 5.69268 14.9 5.96472 14.9 6.39961V7.59961C14.9 8.0345 14.9007 8.30654 14.9175 8.51152C14.9333 8.70599 14.9591 8.75959 14.9654 8.77201C15.0229 8.8849 15.1147 8.97669 15.2276 9.03422C15.24 9.04054 15.2936 9.06628 15.4881 9.08217C15.6931 9.09891 15.9651 9.09961 16.4 9.09961L17.6 9.09961C18.0349 9.09961 18.3069 9.09891 18.5119 9.08217ZM17.6 20.8996L17.6333 20.8996H17.6334C18.0249 20.8996 18.3714 20.8996 18.6585 20.8762C18.9643 20.8512 19.2811 20.7952 19.5896 20.638C20.0412 20.4079 20.4083 20.0408 20.6384 19.5892C20.7956 19.2807 20.8516 18.9639 20.8766 18.6581C20.9 18.3709 20.9 18.0245 20.9 17.6329L20.9 17.5996V16.3996L20.9 16.3663C20.9 15.9748 20.9 15.6283 20.8766 15.3411C20.8516 15.0353 20.7956 14.7185 20.6384 14.41C20.4083 13.9584 20.0412 13.5913 19.5896 13.3612C19.2811 13.204 18.9643 13.148 18.6585 13.123C18.3714 13.0996 18.0249 13.0996 17.6334 13.0996H17.6333L17.6 13.0996H16.4L16.3667 13.0996H16.3666C15.9751 13.0996 15.6287 13.0996 15.3415 13.123C15.0357 13.148 14.7189 13.204 14.4104 13.3612C13.9588 13.5913 13.5917 13.9584 13.3616 14.41C13.2044 14.7185 13.1484 15.0353 13.1234 15.3411C13.1 15.6283 13.1 15.9748 13.1 16.3663L13.1 16.3996V17.5996L13.1 17.6329C13.1 18.0245 13.1 18.3709 13.1234 18.6581C13.1484 18.9639 13.2044 19.2807 13.3616 19.5892C13.5917 20.0408 13.9588 20.4079 14.4104 20.638C14.7189 20.7952 15.0357 20.8512 15.3415 20.8762C15.6287 20.8996 15.9751 20.8996 16.3666 20.8996H16.3667L16.4 20.8996H17.6ZM18.7724 19.0342C18.76 19.0405 18.7064 19.0663 18.5119 19.0822C18.3069 19.0989 18.0349 19.0996 17.6 19.0996H16.4C15.9651 19.0996 15.6931 19.0989 15.4881 19.0822C15.2936 19.0663 15.24 19.0405 15.2276 19.0342C15.1147 18.9767 15.0229 18.8849 14.9654 18.772C14.9591 18.7596 14.9333 18.706 14.9175 18.5115C14.9007 18.3065 14.9 18.0345 14.9 17.5996V16.3996C14.9 15.9647 14.9007 15.6927 14.9175 15.4877C14.9333 15.2932 14.9591 15.2396 14.9654 15.2272C15.0229 15.1143 15.1147 15.0225 15.2276 14.965C15.24 14.9587 15.2936 14.9329 15.4881 14.9171C15.6931 14.9003 15.9651 14.8996 16.4 14.8996H17.6C18.0349 14.8996 18.3069 14.9003 18.5119 14.9171C18.7064 14.9329 18.76 14.9587 18.7724 14.965C18.8853 15.0225 18.9771 15.1143 19.0346 15.2272C19.0409 15.2396 19.0667 15.2932 19.0826 15.4877C19.0993 15.6927 19.1 15.9647 19.1 16.3996V17.5996C19.1 18.0345 19.0993 18.3065 19.0826 18.5115C19.0667 18.706 19.0409 18.7596 19.0346 18.772C18.9771 18.8849 18.8853 18.9767 18.7724 19.0342Z",fill:"currentColor"})),tN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,viewBox:"0 0 25 24",fill:"currentColor",...e},l.createElement("path",{d:"M12.5003 17.5198L16.6503 20.0298C17.4103 20.4898 18.3403 19.8098 18.1403 18.9498L17.0403 14.2298L20.7103 11.0498C21.3803 10.4698 21.0203 9.36977 20.1403 9.29977L15.3103 8.88977L13.4203 4.42977C13.0803 3.61977 11.9203 3.61977 11.5803 4.42977L9.69032 8.87977L4.86032 9.28977C3.98032 9.35977 3.62032 10.4598 4.29032 11.0398L7.96032 14.2198L6.86032 18.9398C6.66032 19.7998 7.59032 20.4798 8.35032 20.0198L12.5003 17.5198Z"})),nN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM15.22 17.39L12 15.45L8.78 17.39C8.4 17.62 7.93 17.28 8.03 16.85L8.88 13.19L6.05 10.74C5.72 10.45 5.9 9.9 6.34 9.86L10.08 9.54L11.54 6.09C11.71 5.68 12.29 5.68 12.46 6.09L13.92 9.53L17.66 9.85C18.1 9.89 18.28 10.44 17.94 10.73L15.11 13.18L15.96 16.85C16.06 17.28 15.6 17.62 15.22 17.39Z",fill:"currentColor"})),rN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M21 6H3C1.9 6 1 6.9 1 8V16C1 17.1 1.9 18 3 18H21C22.1 18 23 17.1 23 16V8C23 6.9 22.1 6 21 6ZM20 16H4C3.45 16 3 15.55 3 15V9C3 8.45 3.45 8 4 8H5V11C5 11.55 5.45 12 6 12C6.55 12 7 11.55 7 11V8H9V11C9 11.55 9.45 12 10 12C10.55 12 11 11.55 11 11V8H13V11C13 11.55 13.45 12 14 12C14.55 12 15 11.55 15 11V8H17V11C17 11.55 17.45 12 18 12C18.55 12 19 11.55 19 11V8H20C20.55 8 21 8.45 21 9V15C21 15.55 20.55 16 20 16Z",fill:"currentColor"})),oN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M21.63 17.37L22.77 16.37L21.77 14.64L20.32 15.13C20 14.86 19.64 14.65 19.24 14.5L18.94 13H16.94L16.64 14.49C16.24 14.64 15.88 14.85 15.56 15.12L14.11 14.63L13.11 16.36L14.25 17.36C14.17 17.86 14.17 18.12 14.25 18.62L13.11 19.62L14.11 21.35L15.56 20.86C15.88 21.13 16.24 21.34 16.64 21.49L16.94 23H18.94L19.24 21.51C19.64 21.36 20 21.15 20.32 20.88L21.77 21.37L22.77 19.64L21.63 18.64C21.71 18.13 21.71 17.87 21.63 17.37ZM17.94 20C16.84 20 15.94 19.1 15.94 18C15.94 16.9 16.84 16 17.94 16C19.04 16 19.94 16.9 19.94 18C19.94 19.1 19.04 20 17.94 20ZM9.94 6V11.41L12.3 13.77L13.34 11.98L11.94 10.59V6H9.94ZM9.8 17.91C6.81 17.42 4.45 15.01 4.02 12H2C2.5 16.5 6.31 20 10.94 20C10.96 20 10.99 20 11.01 20L9.8 17.91Z"}),l.createElement("path",{d:"M2 11C2 6.03 6.03 2 11 2C13.83 2 16.35 3.32 18 5.36V3H20V9H14V7H16.74C15.47 5.19 13.37 4 11 4C7.14 4 4 7.14 4 11H2Z"})),aN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19.5 14.5L13.5 20.5L12.08 19.08L15.67 15.5H4.5V3.5H6.5V13.5H15.67L12.08 9.92L13.5 8.5L19.5 14.5Z"})),sN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M9 12C10.93 12 12.5 10.43 12.5 8.5C12.5 6.57 10.93 5 9 5C7.07 5 5.5 6.57 5.5 8.5C5.5 10.43 7.07 12 9 12ZM9 7C9.83 7 10.5 7.67 10.5 8.5C10.5 9.33 9.83 10 9 10C8.17 10 7.5 9.33 7.5 8.5C7.5 7.67 8.17 7 9 7ZM9.05 17H4.77C5.76 16.5 7.47 16 9 16C9.11 16 9.23 16.01 9.34 16.01C9.68 15.28 10.27 14.68 10.98 14.2C10.25 14.07 9.56 14 9 14C6.66 14 2 15.17 2 17.5V19H9V17.5C9 17.33 9.02 17.16 9.05 17ZM16.5 14.5C14.66 14.5 11 15.51 11 17.5V19H22V17.5C22 15.51 18.34 14.5 16.5 14.5ZM17.71 12.68C18.47 12.25 19 11.44 19 10.5C19 9.12 17.88 8 16.5 8C15.12 8 14 9.12 14 10.5C14 11.44 14.53 12.25 15.29 12.68C15.65 12.88 16.06 13 16.5 13C16.94 13 17.35 12.88 17.71 12.68Z"})),iN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M9.5 10.02H14.5V21H9.5V10.02ZM16.5 21H19.5C20.6 21 21.5 20.1 21.5 19V10H16.5V21ZM19.5 3H4.5C3.4 3 2.5 3.9 2.5 5V8H21.5V5C21.5 3.9 20.6 3 19.5 3ZM2.5 19C2.5 20.1 3.4 21 4.5 21H7.5V10H2.5V19Z",fill:"currentColor"})),U9=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 5V8H5V5H19ZM19 10V14H5V10H19ZM5 19V16H19V19H5Z"})),lN=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M8 1.14258C8.31559 1.14258 8.57143 1.39842 8.57143 1.71401L8.57206 2.31371C11.2714 2.58202 13.418 4.7288 13.6861 7.42823L14.2857 7.42829C14.6013 7.42829 14.8571 7.68413 14.8571 7.99972C14.8571 8.31531 14.6013 8.57115 14.2857 8.57115L13.686 8.57178C13.4177 11.2709 11.2712 13.4174 8.57206 13.6857L8.57143 14.2854C8.57143 14.601 8.31559 14.8569 8 14.8569C7.68441 14.8569 7.42857 14.601 7.42857 14.2854L7.42851 13.6858C4.72908 13.4177 2.5823 11.2711 2.31399 8.57178L1.71429 8.57115C1.39869 8.57115 1.14286 8.31531 1.14286 7.99972C1.14286 7.68413 1.39869 7.42829 1.71429 7.42829L2.31393 7.42823C2.582 4.72861 4.72889 2.58172 7.42851 2.31366L7.42857 1.71401C7.42857 1.39842 7.68441 1.14258 8 1.14258ZM8.57197 3.46373L8.57143 3.99972C8.57143 4.31531 8.31559 4.57115 8 4.57115C7.68441 4.57115 7.42857 4.31531 7.42857 3.99972L7.4286 3.46366C5.36074 3.7215 3.72178 5.36046 3.46394 7.42832L4 7.42829C4.31559 7.42829 4.57143 7.68413 4.57143 7.99972C4.57143 8.31531 4.31559 8.57115 4 8.57115L3.46401 8.57169C3.72208 10.6393 5.36093 12.278 7.4286 12.5358L7.42857 11.9997C7.42857 11.6841 7.68441 11.4283 8 11.4283C8.31559 11.4283 8.57143 11.6841 8.57143 11.9997L8.57197 12.5357C10.6394 12.2777 12.2779 10.6391 12.536 8.57169L12 8.57115C11.6844 8.57115 11.4286 8.31531 11.4286 7.99972C11.4286 7.68413 11.6844 7.42829 12 7.42829L12.5361 7.42832C12.2782 5.36065 10.6396 3.72181 8.57197 3.46373ZM8 6.85686C8.63118 6.85686 9.14286 7.36854 9.14286 7.99972C9.14286 8.6309 8.63118 9.14258 8 9.14258C7.36882 9.14258 6.85714 8.6309 6.85714 7.99972C6.85714 7.36854 7.36882 6.85686 8 6.85686Z",fill:"currentColor"})),cN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M15 13V5C15 3.34 13.66 2 12 2C10.34 2 9 3.34 9 5V13C7.79 13.91 7 15.37 7 17C7 19.76 9.24 22 12 22C14.76 22 17 19.76 17 17C17 15.37 16.21 13.91 15 13ZM13 11H11V5C11 4.45 11.45 4 12 4C12.55 4 13 4.45 13 5H12.5C12.22 5 12 5.22 12 5.5C12 5.78 12.22 6 12.5 6H13V8H12.5C12.22 8 12 8.22 12 8.5C12 8.78 12.22 9 12.5 9H13V11Z"})),uN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19 4H18V3C18 2.45 17.55 2 17 2C16.45 2 16 2.45 16 3V4H8V3C8 2.45 7.55 2 7 2C6.45 2 6 2.45 6 3V4H5C3.89 4 3.01 4.9 3.01 6L3 20C3 21.1 3.89 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM18 20H6C5.45 20 5 19.55 5 19V9H19V19C19 19.55 18.55 20 18 20ZM8 11H11C11.55 11 12 11.45 12 12V15C12 15.55 11.55 16 11 16H8C7.45 16 7 15.55 7 15V12C7 11.45 7.45 11 8 11Z"})),dN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M15 4C10.58 4 7 7.58 7 12C7 16.42 10.58 20 15 20C19.42 20 23 16.42 23 12C23 7.58 19.42 4 15 4ZM15 18C11.69 18 9 15.31 9 12C9 8.69 11.69 6 15 6C18.31 6 21 8.69 21 12C21 15.31 18.31 18 15 18ZM3 12C3 9.39 4.67 7.17 7 6.35V4.26C3.55 5.15 1 8.27 1 12C1 15.73 3.55 18.85 7 19.74V17.65C4.67 16.83 3 14.61 3 12Z",fill:"currentColor"})),fN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M20 4H6V2H4V22H6V14H20L18 9L20 4ZM16.14 9.74L17.04 12H6V6H17.05L16.15 8.26L15.85 9L16.14 9.74ZM13 9C13 10.1 12.1 11 11 11C9.9 11 9 10.1 9 9C9 7.9 9.9 7 11 7C12.1 7 13 7.9 13 9Z",fill:"currentColor"})),hN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12.8551 15.67C12.9951 15.31 12.9051 14.9 12.6251 14.62L10.5351 12.56L10.5651 12.53C12.3051 10.59 13.5451 8.36 14.2751 6H16.2151C16.7551 6 17.2051 5.55 17.2051 5.01V4.99C17.2051 4.45 16.7551 4 16.2151 4H10.2051V3C10.2051 2.45 9.75508 2 9.20508 2C8.65508 2 8.20508 2.45 8.20508 3V4H2.19508C1.65508 4 1.20508 4.45 1.20508 4.99C1.20508 5.54 1.65508 5.98 2.19508 5.98H12.3751C11.7051 7.92 10.6451 9.75 9.20508 11.35C8.39508 10.46 7.71508 9.49 7.14508 8.47C6.98508 8.18 6.69508 8 6.36508 8C5.67508 8 5.23508 8.75 5.57508 9.35C6.20508 10.48 6.97508 11.56 7.87508 12.56L3.50508 16.87C3.10508 17.26 3.10508 17.9 3.50508 18.29C3.89508 18.68 4.52508 18.68 4.92508 18.29L9.20508 14L11.2251 16.02C11.7351 16.53 12.6051 16.34 12.8551 15.67ZM17.7051 10C17.1051 10 16.5651 10.37 16.3551 10.94L12.6851 20.74C12.4451 21.35 12.9051 22 13.5551 22C13.9451 22 14.2951 21.76 14.4351 21.39L15.3251 19H20.0751L20.9751 21.39C21.1151 21.75 21.4651 22 21.8551 22C22.5051 22 22.9651 21.35 22.7351 20.74L19.0651 10.94C18.8451 10.37 18.3051 10 17.7051 10ZM16.0851 17L17.7051 12.67L19.3251 17H16.0851Z"})),gN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M3 18C3 18.55 3.45 19 4 19H9V17H4C3.45 17 3 17.45 3 18ZM3 6C3 6.55 3.45 7 4 7H13V5H4C3.45 5 3 5.45 3 6ZM13 20V19H20C20.55 19 21 18.55 21 18C21 17.45 20.55 17 20 17H13V16C13 15.45 12.55 15 12 15C11.45 15 11 15.45 11 16V20C11 20.55 11.45 21 12 21C12.55 21 13 20.55 13 20ZM7 10V11H4C3.45 11 3 11.45 3 12C3 12.55 3.45 13 4 13H7V14C7 14.55 7.45 15 8 15C8.55 15 9 14.55 9 14V10C9 9.45 8.55 9 8 9C7.45 9 7 9.45 7 10ZM21 12C21 11.45 20.55 11 20 11H11V13H20C20.55 13 21 12.55 21 12ZM16 9C16.55 9 17 8.55 17 8V7H20C20.55 7 21 6.55 21 6C21 5.45 20.55 5 20 5H17V4C17 3.45 16.55 3 16 3C15.45 3 15 3.45 15 4V8C15 8.55 15.45 9 16 9Z"})),pN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M16.75 8.00136H8.25V7.12645C8.24974 6.15652 8.56265 5.21401 9.13954 4.44709C9.71643 3.68017 10.5246 3.13234 11.4369 2.88972C12.3493 2.64711 13.3141 2.72348 14.1797 3.10681C15.0453 3.49015 15.7626 4.15872 16.2188 5.0074C16.2729 5.10788 16.3458 5.19639 16.4333 5.26787C16.5207 5.33935 16.6209 5.39241 16.7283 5.42401C16.8356 5.45561 16.948 5.46514 17.0589 5.45206C17.1698 5.43897 17.2771 5.40353 17.3748 5.34775C17.4724 5.29197 17.5583 5.21694 17.6278 5.12695C17.6972 5.03697 17.7488 4.93378 17.7795 4.82329C17.8102 4.7128 17.8195 4.59717 17.8067 4.48299C17.794 4.36882 17.7596 4.25834 17.7054 4.15786C17.0664 2.97 16.0621 2.03437 14.8503 1.49805C13.6384 0.961718 12.2878 0.855103 11.0107 1.19496C9.73357 1.53482 8.60238 2.30187 7.79493 3.37556C6.98748 4.44924 6.54956 5.76867 6.55 7.12645V8.37233C5.79296 8.71241 5.1486 9.2722 4.69572 9.98323C4.24285 10.6943 4.00109 11.5257 4 12.3759V17.6254C4.00135 18.7852 4.44955 19.8971 5.24629 20.7172C6.04302 21.5373 7.12324 21.9986 8.25 22H16.75C17.8768 21.9986 18.957 21.5373 19.7537 20.7172C20.5505 19.8971 20.9987 18.7852 21 17.6254V12.3759C20.9987 11.2162 20.5505 10.1043 19.7537 9.28418C18.957 8.46409 17.8768 8.00275 16.75 8.00136ZM19.3 17.6254C19.3 18.3216 19.0313 18.9892 18.5531 19.4814C18.0749 19.9736 17.4263 20.2502 16.75 20.2502H8.25C7.5737 20.2502 6.9251 19.9736 6.44688 19.4814C5.96866 18.9892 5.7 18.3216 5.7 17.6254V12.3759C5.7 11.6798 5.96866 11.0122 6.44688 10.52C6.9251 10.0277 7.5737 9.75119 8.25 9.75119H16.75C17.4263 9.75119 18.0749 10.0277 18.5531 10.52C19.0313 11.0122 19.3 11.6798 19.3 12.3759V17.6254Z",fill:"currentColor"}),l.createElement("path",{d:"M12.4531 13C12.0677 13 11.6981 13.1049 11.4256 13.2917C11.1531 13.4786 11 13.7319 11 13.9961V15.9883C11 16.2525 11.1531 16.5058 11.4256 16.6926C11.6981 16.8794 12.0677 16.9844 12.4531 16.9844C12.8385 16.9844 13.2081 16.8794 13.4806 16.6926C13.7532 16.5058 13.9062 16.2525 13.9062 15.9883V13.9961C13.9062 13.7319 13.7532 13.4786 13.4806 13.2917C13.2081 13.1049 12.8385 13 12.4531 13Z",fill:"currentColor"})),mN=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M10.75 5.25C10.75 3.73063 9.51937 2.5 8 2.5C6.48063 2.5 5.25 3.73063 5.25 5.25C5.25 6.76937 6.48063 8 8 8C9.51937 8 10.75 6.76937 10.75 5.25ZM2.5 12.1154V12.83C2.5 13.2 2.79997 13.5 3.17 13.5H12.83C13.2 13.5 13.5 13.2 13.5 12.83V12.1154C13.5 9.69231 9.83563 9 8 9C6.16437 9 2.5 9.69231 2.5 12.1154Z",fill:"currentColor"})),k1=e=>l.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M13.17 2.5H6.01C4.91 2.5 4.01 3.39 4.01 4.5L4 20.5C4 21.6 4.9 22.5 6 22.5H18C19.1 22.5 20 21.6 20 20.5V9.33C20 8.8 19.79 8.29 19.41 7.92L14.58 3.09C14.21 2.71 13.7 2.5 13.17 2.5ZM13 8.5V4L18.5 9.5H14C13.45 9.5 13 9.05 13 8.5ZM14 14.5L15.27 13.83C15.6 13.65 16 13.89 16 14.27V16.73C16 17.11 15.6 17.35 15.27 17.17L14 16.5V17.5C14 18.05 13.55 18.5 13 18.5H9C8.45 18.5 8 18.05 8 17.5V13.5C8 12.95 8.45 12.5 9 12.5H13C13.55 12.5 14 12.95 14 13.5V14.5Z"})),vN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M4 14H6C6.55 14 7 13.55 7 13V11C7 10.45 6.55 10 6 10H4C3.45 10 3 10.45 3 11V13C3 13.55 3.45 14 4 14ZM4 19H6C6.55 19 7 18.55 7 18V16C7 15.45 6.55 15 6 15H4C3.45 15 3 15.45 3 16V18C3 18.55 3.45 19 4 19ZM4 9H6C6.55 9 7 8.55 7 8V6C7 5.45 6.55 5 6 5H4C3.45 5 3 5.45 3 6V8C3 8.55 3.45 9 4 9ZM9 14H20C20.55 14 21 13.55 21 13V11C21 10.45 20.55 10 20 10H9C8.45 10 8 10.45 8 11V13C8 13.55 8.45 14 9 14ZM9 19H20C20.55 19 21 18.55 21 18V16C21 15.45 20.55 15 20 15H9C8.45 15 8 15.45 8 16V18C8 18.55 8.45 19 9 19ZM8 6V8C8 8.55 8.45 9 9 9H20C20.55 9 21 8.55 21 8V6C21 5.45 20.55 5 20 5H9C8.45 5 8 5.45 8 6Z"})),CN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M15 20H3C2.45 20 2 19.55 2 19V5C2 4.45 2.45 4 3 4H15C15.55 4 16 4.45 16 5V19C16 19.55 15.55 20 15 20ZM19 8H21C21.55 8 22 7.55 22 7V5C22 4.45 21.55 4 21 4H19C18.45 4 18 4.45 18 5V7C18 7.55 18.45 8 19 8ZM19 20H21C21.55 20 22 19.55 22 19V17C22 16.45 21.55 16 21 16H19C18.45 16 18 16.45 18 17V19C18 19.55 18.45 20 19 20ZM19 14H21C21.55 14 22 13.55 22 13V11C22 10.45 21.55 10 21 10H19C18.45 10 18 10.45 18 11V13C18 13.55 18.45 14 19 14Z",fill:"currentColor"})),q9=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M22 20L22 4L2 4L2 20L22 20ZM4 15.33L6.5 15.33L6.5 18L4 18L4 15.33ZM6.5 13.33L4 13.33L4 10.66L6.5 10.66L6.5 13.33ZM20 18L8.5 18L8.5 6L20 6L20 18ZM6.5 6L6.5 8.67L4 8.67L4 6L6.5 6Z"})),wN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M22 18.9262V8.27623C22 7.45623 21.5 6.72623 20.74 6.41623L12.74 3.21623C12.26 3.02623 11.73 3.02623 11.25 3.21623L3.25 6.41623C2.5 6.72623 2 7.46623 2 8.27623V18.9262C2 20.0262 2.9 20.9262 4 20.9262H7V11.9262H17V20.9262H20C21.1 20.9262 22 20.0262 22 18.9262ZM11 18.9262H9V20.9262H11V18.9262ZM13 15.9262H11V17.9262H13V15.9262ZM15 18.9262H13V20.9262H15V18.9262Z"})),yN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M20 8.35V19H18V11H6V19H4V8.35L12 5.15L20 8.35ZM22 21V7L12 3L2 7V21H8V13H16V21H22ZM11 19H9V21H11V19ZM13 16H11V18H13V16ZM15 19H13V21H15V19Z"})),bN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.0001 5.49384L19.5301 18.5038H4.47012L12.0001 5.49384ZM2.74012 17.5038C1.97012 18.8338 2.93012 20.5038 4.47012 20.5038H19.5301C21.0701 20.5038 22.0301 18.8338 21.2601 17.5038L13.7301 4.49384C12.9601 3.16384 11.0401 3.16384 10.2701 4.49384L2.74012 17.5038ZM11.0001 10.5038V12.5038C11.0001 13.0538 11.4501 13.5038 12.0001 13.5038C12.5501 13.5038 13.0001 13.0538 13.0001 12.5038V10.5038C13.0001 9.95384 12.5501 9.50384 12.0001 9.50384C11.4501 9.50384 11.0001 9.95384 11.0001 10.5038ZM11.0001 15.5038H13.0001V17.5038H11.0001V15.5038Z"})),xN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2ZM15.55 15.8L11.47 13.29C11.17 13.11 10.99 12.79 10.99 12.44V7.75C11 7.34 11.34 7 11.75 7C12.16 7 12.5 7.34 12.5 7.75V12.2L16.34 14.51C16.7 14.73 16.82 15.2 16.6 15.56C16.38 15.91 15.91 16.02 15.55 15.8Z"})),K9=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12.5 7H11V13L16.2 16.2L17 14.9L12.5 12.2V7Z"})),SN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M16.75 4C17.85 4 18.75 4.9 18.75 6V18C18.75 19.1 17.85 20 16.75 20V4ZM1.75 20C1.75 21.1 2.65 22 3.75 22H12.75C13.85 22 14.75 21.1 14.75 20V4C14.75 2.9 13.85 2 12.75 2H3.75C2.65 2 1.75 2.9 1.75 4V20ZM20.75 18C21.58 18 22.25 17.33 22.25 16.5V7.5C22.25 6.67 21.58 6 20.75 6V18Z"})),EN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M17.09 4.77574C16.39 3.74574 15.59 2.78574 14.69 1.92574C14.34 1.58574 13.75 1.90574 13.85 2.38574C14.04 3.32574 14.24 4.56574 14.24 5.67574C14.24 7.73574 12.89 9.40574 10.83 9.40574C9.29 9.40574 8.03 8.47574 7.48 7.14574C7.38 6.94574 7.34 6.82574 7.28 6.60574C7.17 6.18574 6.62 6.05574 6.38 6.42574C6.2 6.69574 6.03 6.96574 5.87 7.25574C4.68 9.29574 4 11.6757 4 14.2157C4 18.6357 7.58 22.2157 12 22.2157C16.42 22.2157 20 18.6357 20 14.2157C20 10.7257 18.92 7.48574 17.09 4.77574ZM11.71 19.2157C9.93 19.2157 8.49 17.8157 8.49 16.0757C8.49 14.4557 9.54 13.3157 11.3 12.9557C12.77 12.6557 14.28 12.0257 15.33 11.0357C15.61 10.7757 16.07 10.8957 16.15 11.2657C16.38 12.2857 16.5 13.3457 16.5 14.4157C16.51 17.0657 14.36 19.2157 11.71 19.2157Z"})),MN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M6 13C3.8 13 2 14.8 2 17C2 19.2 3.8 21 6 21C8.2 21 10 19.2 10 17C10 14.8 8.2 13 6 13ZM12 3C9.8 3 8 4.8 8 7C8 9.2 9.8 11 12 11C14.2 11 16 9.2 16 7C16 4.8 14.2 3 12 3ZM18 13C15.8 13 14 14.8 14 17C14 19.2 15.8 21 18 21C20.2 21 22 19.2 22 17C22 14.8 20.2 13 18 13Z",fill:"currentColor"})),LN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M8.25635 3.17205C9.76957 1.65882 12.194 1.61109 13.7642 3.02947L13.9136 3.17205L15.7632 5.02166C17.5908 6.84928 17.7064 9.73863 16.1128 11.7023L20.0024 15.5929C20.7835 16.374 20.7835 17.64 20.0024 18.4211L18.7749 19.6486C17.9938 20.4293 16.7277 20.4295 15.9468 19.6486L12.0562 15.759C10.0925 17.3523 7.20299 17.2368 5.37549 15.4094L3.52588 13.5597C1.96418 11.9978 1.96416 9.46461 3.52588 7.90252L3.96533 7.46306L4.03857 7.39666C4.21642 7.25082 4.44037 7.17023 4.67236 7.17009C4.93754 7.17009 5.19187 7.27559 5.37939 7.46306L8.07178 10.1545L10.5034 7.72185L7.81201 5.03045C7.62459 4.84298 7.51911 4.58849 7.51904 4.32341C7.51907 4.05839 7.62471 3.80386 7.81201 3.61638L8.25635 3.17205ZM13.4907 14.3644L17.3608 18.2345L18.5884 17.007L14.7183 13.1369L13.4907 14.3644ZM12.4985 4.58611C11.8071 3.89504 10.7361 3.81542 9.95752 4.34783L11.9175 6.30779V6.30877C12.6976 7.08953 12.6984 8.35574 11.9175 9.13689L9.48584 11.5685H9.48486C8.70394 12.3484 7.4385 12.3487 6.65771 11.5685H6.65674L4.69775 9.60955C4.17012 10.3874 4.25018 11.4551 4.93896 12.1447L6.78955 13.9953C7.96101 15.1667 9.86112 15.1665 11.0327 13.9953L14.3491 10.6789C15.5207 9.50732 15.5207 7.60729 14.3491 6.43572L12.4985 4.58611Z"})),NN=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M9.45867 4.18164L11.818 6.54097L6.06944 12.2903C5.55393 12.8057 4.91967 13.1867 4.22244 13.3995L2.28744 13.9902C2.16992 14.0261 2.04557 13.9599 2.00969 13.8424C1.99677 13.8001 1.99677 13.7548 2.00969 13.7125L2.60036 11.7777C2.81325 11.0803 3.19426 10.446 3.70985 9.93041L9.45867 4.18164ZM12.7594 2.2958L13.7049 3.24131C14.0711 3.6074 14.0939 4.18677 13.7736 4.57955L13.7049 4.6555L12.5253 5.8343L10.1653 3.47431L11.3451 2.29577C11.7357 1.9053 12.3689 1.90532 12.7594 2.2958Z",fill:"currentColor"})),PN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",fill:"currentColor",...e},l.createElement("path",{d:"M12.4989 11.0006H11.7089L11.4289 10.7306C12.6289 9.33063 13.2489 7.42063 12.9089 5.39063C12.4389 2.61063 10.1189 0.390626 7.31892 0.0506256C3.08892 -0.469374 -0.46108 3.09063 0.0489202 7.32063C0.38892 10.1206 2.60892 12.4406 5.38892 12.9106C7.41892 13.2506 9.32892 12.6306 10.7289 11.4306L10.9989 11.7106V12.5006L15.2589 16.7506C15.6689 17.1606 16.3289 17.1606 16.7389 16.7506L16.7489 16.7406C17.1589 16.3306 17.1589 15.6706 16.7489 15.2606L12.4989 11.0006ZM6.49892 11.0006C4.00892 11.0006 1.99892 8.99063 1.99892 6.50063C1.99892 4.01063 4.00892 2.00063 6.49892 2.00063C8.98892 2.00063 10.9989 4.01063 10.9989 6.50063C10.9989 8.99063 8.98892 11.0006 6.49892 11.0006ZM6.49892 4.00063C6.21892 4.00063 5.99892 4.22063 5.99892 4.50063V6.00063H4.49892C4.21892 6.00063 3.99892 6.22063 3.99892 6.50063C3.99892 6.78063 4.21892 7.00063 4.49892 7.00063H5.99892V8.50063C5.99892 8.78063 6.21892 9.00063 6.49892 9.00063C6.77892 9.00063 6.99892 8.78063 6.99892 8.50063V7.00063H8.49892C8.77892 7.00063 8.99892 6.78063 8.99892 6.50063C8.99892 6.22063 8.77892 6.00063 8.49892 6.00063H6.99892V4.50063C6.99892 4.22063 6.77892 4.00063 6.49892 4.00063Z"})),_N=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M15 3L17.3 5.3L14.41 8.17L15.83 9.59L18.7 6.7L21 9V3H15ZM3 9L5.3 6.7L8.17 9.59L9.59 8.17L6.7 5.3L9 3H3V9ZM9 21L6.7 18.7L9.59 15.83L8.17 14.41L5.3 17.3L3 15V21H9ZM21 15L18.7 17.3L15.83 14.41L14.41 15.83L17.3 18.7L15 21H21V15Z"})),IN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M15.9713 14.4716H15.1813L14.9013 14.2016C16.1013 12.8016 16.7213 10.8916 16.3813 8.86157C15.9113 6.08157 13.5913 3.86157 10.7913 3.52157C6.56133 3.00157 3.00133 6.56157 3.52133 10.7916C3.86133 13.5916 6.08133 15.9116 8.86133 16.3816C10.8913 16.7216 12.8013 16.1016 14.2013 14.9016L14.4713 15.1816V15.9716L18.7313 20.2216C19.1413 20.6316 19.8013 20.6316 20.2113 20.2216L20.2213 20.2116C20.6313 19.8016 20.6313 19.1416 20.2213 18.7316L15.9713 14.4716ZM9.97133 14.4716C7.48133 14.4716 5.47133 12.4616 5.47133 9.97157C5.47133 7.48157 7.48133 5.47157 9.97133 5.47157C12.4613 5.47157 14.4713 7.48157 14.4713 9.97157C14.4713 12.4616 12.4613 14.4716 9.97133 14.4716ZM7.97133 9.47157H11.9713C12.2513 9.47157 12.4713 9.69157 12.4713 9.97157C12.4713 10.2516 12.2513 10.4716 11.9713 10.4716H7.97133C7.69133 10.4716 7.47133 10.2516 7.47133 9.97157C7.47133 9.69157 7.69133 9.47157 7.97133 9.47157Z"}));var kN="Portal",X9=l.forwardRef((e,n)=>{var i;const{container:t,...r}=e,[o,a]=l.useState(!1);He(()=>a(!0),[]);const s=t||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Yt.createPortal(c.jsx(oe.div,{...r,ref:n}),s):null});X9.displayName=kN;var TN=Symbol("radix.slottable");function DN(e){const n=({children:t})=>c.jsx(c.Fragment,{children:t});return n.displayName=`${e}.Slottable`,n.__radixId=TN,n}var[ps]=nt("Tooltip",[gn]),ms=gn(),Q9="TooltipProvider",ON=700,T1="tooltip.open",[VN,D1]=ps(Q9),O1=e=>{const{__scopeTooltip:n,delayDuration:t=ON,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=l.useRef(!0),i=l.useRef(!1),u=l.useRef(0);return l.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),c.jsx(VN,{scope:n,isOpenDelayedRef:s,delayDuration:t,onOpen:l.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:a})};O1.displayName=Q9;var Eo="Tooltip",[HN,Mo]=ps(Eo),J9=e=>{const{__scopeTooltip:n,children:t,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,u=D1(Eo,e.__scopeTooltip),d=ms(n),[f,h]=l.useState(null),g=qe(),m=l.useRef(0),C=s??u.disableHoverableContent,p=i??u.delayDuration,v=l.useRef(!1),[w,y]=ht({prop:r,defaultProp:o??!1,onChange:E=>{E?(u.onOpen(),document.dispatchEvent(new CustomEvent(T1))):u.onClose(),a==null||a(E)},caller:Eo}),b=l.useMemo(()=>w?v.current?"delayed-open":"instant-open":"closed",[w]),S=l.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,y(!0)},[y]),M=l.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y(!1)},[y]),L=l.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,y(!0),m.current=0},p)},[p,y]);return l.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),c.jsx(jr,{...d,children:c.jsx(HN,{scope:n,contentId:g,open:w,stateAttribute:b,trigger:f,onTriggerChange:h,onTriggerEnter:l.useCallback(()=>{u.isOpenDelayedRef.current?L():S()},[u.isOpenDelayedRef,L,S]),onTriggerLeave:l.useCallback(()=>{C?M():(window.clearTimeout(m.current),m.current=0)},[M,C]),onOpen:S,onClose:M,disableHoverableContent:C,children:t})})};J9.displayName=Eo;var V1="TooltipTrigger",e4=l.forwardRef((e,n)=>{const{__scopeTooltip:t,...r}=e,o=Mo(V1,t),a=D1(V1,t),s=ms(t),i=l.useRef(null),u=he(n,i,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),h=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(Yr,{asChild:!0,...s,children:c.jsx(oe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,onPointerMove:ne(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:ne(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:ne(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ne(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:ne(e.onBlur,o.onClose),onClick:ne(e.onClick,o.onClose)})})});e4.displayName=V1;var H1="TooltipPortal",[AN,FN]=ps(H1,{forceMount:void 0}),t4=e=>{const{__scopeTooltip:n,forceMount:t,children:r,container:o}=e,a=Mo(H1,n);return c.jsx(AN,{scope:n,forceMount:t,children:c.jsx(Ke,{present:t||a.open,children:c.jsx(X9,{asChild:!0,container:o,children:r})})})};t4.displayName=H1;var Nr="TooltipContent",n4=l.forwardRef((e,n)=>{const t=FN(Nr,e.__scopeTooltip),{forceMount:r=t.forceMount,side:o="top",...a}=e,s=Mo(Nr,e.__scopeTooltip);return c.jsx(Ke,{present:r||s.open,children:s.disableHoverableContent?c.jsx(r4,{side:o,...a,ref:n}):c.jsx($N,{side:o,...a,ref:n})})}),$N=l.forwardRef((e,n)=>{const t=Mo(Nr,e.__scopeTooltip),r=D1(Nr,e.__scopeTooltip),o=l.useRef(null),a=he(n,o),[s,i]=l.useState(null),{trigger:u,onClose:d}=t,f=o.current,{onPointerInTransitChange:h}=r,g=l.useCallback(()=>{i(null),h(!1)},[h]),m=l.useCallback((C,p)=>{const v=C.currentTarget,w={x:C.clientX,y:C.clientY},y=RN(w,v.getBoundingClientRect()),b=GN(w,y),S=jN(p.getBoundingClientRect()),M=UN([...b,...S]);i(M),h(!0)},[h]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(u&&f){const C=v=>m(v,f),p=v=>m(v,u);return u.addEventListener("pointerleave",C),f.addEventListener("pointerleave",p),()=>{u.removeEventListener("pointerleave",C),f.removeEventListener("pointerleave",p)}}},[u,f,m,g]),l.useEffect(()=>{if(s){const C=p=>{const v=p.target,w={x:p.clientX,y:p.clientY},y=(u==null?void 0:u.contains(v))||(f==null?void 0:f.contains(v)),b=!YN(w,s);y?g():b&&(g(),d())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[u,f,s,d,g]),c.jsx(r4,{...e,ref:a})}),[zN,BN]=ps(Eo,{isInside:!1}),ZN=DN("TooltipContent"),r4=l.forwardRef((e,n)=>{const{__scopeTooltip:t,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,u=Mo(Nr,t),d=ms(t),{onClose:f}=u;return l.useEffect(()=>(document.addEventListener(T1,f),()=>document.removeEventListener(T1,f)),[f]),l.useEffect(()=>{if(u.trigger){const h=g=>{const m=g.target;m!=null&&m.contains(u.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[u.trigger,f]),c.jsx(kn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:c.jsxs(ia,{"data-state":u.stateAttribute,...d,...i,ref:n,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:[c.jsx(ZN,{children:r}),c.jsx(zN,{scope:t,isInside:!0,children:c.jsx(lC,{id:u.contentId,role:"tooltip",children:o||r})})]})})});n4.displayName=Nr;var o4="TooltipArrow",WN=l.forwardRef((e,n)=>{const{__scopeTooltip:t,...r}=e,o=ms(t);return BN(o4,t).isInside?null:c.jsx(la,{...o,...r,ref:n})});WN.displayName=o4;function RN(e,n){const t=Math.abs(n.top-e.y),r=Math.abs(n.bottom-e.y),o=Math.abs(n.right-e.x),a=Math.abs(n.left-e.x);switch(Math.min(t,r,o,a)){case a:return"left";case o:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function GN(e,n,t=5){const r=[];switch(n){case"top":r.push({x:e.x-t,y:e.y+t},{x:e.x+t,y:e.y+t});break;case"bottom":r.push({x:e.x-t,y:e.y-t},{x:e.x+t,y:e.y-t});break;case"left":r.push({x:e.x+t,y:e.y-t},{x:e.x+t,y:e.y+t});break;case"right":r.push({x:e.x-t,y:e.y-t},{x:e.x-t,y:e.y+t});break}return r}function jN(e){const{top:n,right:t,bottom:r,left:o}=e;return[{x:o,y:n},{x:t,y:n},{x:t,y:r},{x:o,y:r}]}function YN(e,n){const{x:t,y:r}=e;let o=!1;for(let a=0,s=n.length-1;a<n.length;s=a++){const i=n[a],u=n[s],d=i.x,f=i.y,h=u.x,g=u.y;f>r!=g>r&&t<(h-d)*(r-f)/(g-f)+d&&(o=!o)}return o}function UN(e){const n=e.slice();return n.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),qN(n)}function qN(e){if(e.length<=1)return e.slice();const n=[];for(let r=0;r<e.length;r++){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}n.pop();const t=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}return t.pop(),n.length===1&&t.length===1&&n[0].x===t[0].x&&n[0].y===t[0].y?n:n.concat(t)}var KN=O1,XN=J9,QN=e4,JN=t4,a4=n4;const s4=e=>{const n=/\*\*(.*?)\*\*/g,t=e.match(n);if(!t)return e;const r=t.map(o=>o.replaceAll("*",""));return e.split("**").map(o=>r.includes(o)?c.jsx("span",{className:"text-foreground font-medium",children:o},o):o)},rn=KN,Wt=XN,It=QN,kt=l.forwardRef(({className:e,sideOffset:n=4,...t},r)=>c.jsx(JN,{children:c.jsx(a4,{ref:r,sideOffset:n,className:N("z-50 overflow-hidden rounded-lg bg-background-primary dark:bg-background-tertiary text-content-primary dark:text-content-primary-inverted p-2 text-xs shadow-tooltip 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",e),...t,children:t.children})}));kt.displayName=a4.displayName;const eP=({children:e,text:n="",delayDuration:t})=>c.jsx(rn,{children:c.jsxs(Wt,{delayDuration:t,children:[c.jsx(It,{children:e}),c.jsx(kt,{className:"max-w-[300px]",children:c.jsx("div",{className:"whitespace-pre-line text-xs",children:s4(n)})})]})}),i4=D.forwardRef(({node:e,children:n,onClick:t,onDoubleClick:r,className:o,"data-index":a},s)=>c.jsx("tr",{ref:s,"data-index":a,onClick:t,onDoubleClick:r,className:o,children:n}));i4.displayName="DefaultTableRow";const tP=e=>{var Je,ct;const{nodes:n,selected:t,config:r,headers:o,headerCells:a,className:s,columnWidths:i,columnAlignments:u,onExpand:d,tableRowComponent:f,virtualized:h=!1,estimateRowSize:g=40,overscan:m=20,scrollElementRef:C,scrollContainerId:p,striped:v=!1,horizontalPadding:w="medium",density:y="default",renderFirstColumnHeader:b}=e,S=f??i4,M=y==="compact",L=()=>{switch(w){case"none":return"";case"small":return"pl-4";case"large":return"pl-8";case"medium":default:return"pl-6"}},E=()=>{switch(w){case"none":return"";case"small":return"pr-4";case"large":return"pr-8";case"medium":default:return"pr-6"}},I=X=>N("relative flex min-w-0 flex-1",X&&"box-border h-full self-stretch",M?"items-center py-[3px]":"items-stretch py-2"),k=(X,se)=>{var pe;return N("truncate font-normal text-foreground-primary",M?"text-xs leading-4":"text-sm leading-5",{"cursor-pointer":se},(pe=r.getNodeHeadingClassName)==null?void 0:pe.call(r,X))},O=(X,se)=>N("transition-colors hover:bg-background-primary-hover",v&&X%2===1&&"bg-background-secondary",se&&"bg-background-primary-selected"),H=()=>r.dataCellVerticalPadding==="none"?M?"py-0":"px-2 py-0":M?"py-[3px]":"p-2",V=()=>r.treeGuideColumnWidth??24,Y=()=>r.treeLineAnchorOffset??V()/2,$=()=>{const X=r.treeLineAnchorTop??"50%";return typeof X=="number"?`${X}px`:X},U=()=>{const X=V();return{width:X,minWidth:X,maxWidth:X}},T=(X,se,pe)=>X?c.jsx(Hr,{className:N("w-6 h-6 cursor-pointer text-icon-contrast transition-transform duration-200 -rotate-90 flex-shrink-0",{"rotate-0":se}),onClick:ge=>{ge.stopPropagation(),pe()}}):c.jsx("div",{className:"w-6 flex-shrink-0"}),W="text-foreground-secondary text-xs font-normal leading-4 tracking-[0.4px] truncate",P=(X,se)=>{var be,Le;if(!se)return null;const pe=N(W,(be=r.getNodeFooterClassName)==null?void 0:be.call(r,X)),ge=(Le=r.getNodeFooterNode)==null?void 0:Le.call(r,X,{text:se,className:pe});return ge||c.jsx("span",{className:pe,title:String(se),children:se})},z=(X,se,pe,ge,be)=>{const Le=$();return Array.from({length:X}).map((je,Se)=>c.jsxs("div",{className:N("relative flex-shrink-0",be&&"h-full self-stretch"),style:U(),children:[se[Se]&&Se!==X-1&&!ge[Se]&&c.jsx("div",{className:"absolute left-1/2 top-0 bottom-0 w-[1px] -translate-x-1/2 bg-line-contrast"}),Se===X-1&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"absolute left-1/2 top-0 w-[1px] -translate-x-1/2 bg-line-contrast",style:{height:Le}}),c.jsx("div",{className:"absolute h-[1px] bg-line-contrast",style:{top:Le,left:"50%",width:`calc(50% + ${Y()}px)`}}),!pe&&c.jsx("div",{className:"absolute left-1/2 bottom-0 w-[1px] -translate-x-1/2 bg-line-contrast",style:{top:Le}})]})]},Se))},q=(X,se,pe,ge,be,Le,je,Se)=>{var Xe;return c.jsxs("div",{className:"flex min-w-0 flex-1 items-center",children:[(Xe=r.getNodeHeadingPrefix)!=null&&Xe.call(r,X)?c.jsxs("div",{className:"relative mr-1 flex shrink-0 self-stretch",style:U(),children:[c.jsx("div",{className:"flex items-center justify-center",style:U(),children:r.getNodeHeadingPrefix(X)}),se&&pe&&c.jsx("div",{className:"absolute left-1/2 w-[1px] -translate-x-1/2 bg-line-contrast",style:{top:"17px",bottom:"-8px"}})]}):null,!r.getNodeHeadingPrefix&&!!(Se!=null&&Se.length)&&pe&&c.jsx("div",{className:"absolute bottom-0 w-[1px] -translate-x-1/2 bg-line-contrast",style:{top:$(),left:Y()}}),c.jsx("div",{className:"relative flex shrink-0",children:r.renderExpandIcon?r.renderExpandIcon(X,pe,()=>d(X)):T(se,pe,()=>d(X))}),c.jsxs("div",{className:"ml-2 flex min-w-0 flex-col gap-[2px]",children:[r.renderTooltip?c.jsx(rn,{children:c.jsxs(Wt,{children:[c.jsx(It,{asChild:!0,children:c.jsx("span",{className:k(X,ge),style:Le?{maxWidth:`${Le}ch`}:void 0,children:be})}),c.jsx(kt,{className:"max-w-[300px]",children:r.renderTooltip(X)})]})}):c.jsx("span",{className:k(X,ge),style:Le?{maxWidth:`${Le}ch`}:void 0,title:String(be??""),children:be}),P(X,je)]})]})},K=D.useMemo(()=>{const X=new Map;let se=0;const pe=ge=>{ge.forEach(be=>{X.set(r.getNodeId(be),se),se+=1;const Le=r.getNodeChildren(be);Le!=null&&Le.length&&r.isNodeExpanded(be)&&pe(Le)})};return pe(n),X},[n,r]),Z=D.useRef(null),A=C??Z,_=D.useMemo(()=>{if(!h)return[];const X=[],se=(pe,ge=[],be=[])=>{pe.forEach((Le,je)=>{const Se=je===pe.length-1,Xe=r.getNodeLevel(Le);X.push({node:Le,guides:ge,isLastChild:Se,skipGuides:be});const Qe=r.getNodeChildren(Le),et=r.isNodeExpanded(Le);if(Qe!=null&&Qe.length&&et){const wt=new Array(Xe+1).fill(!1);for(let ut=0;ut<Xe-1;ut++)wt[ut]=be[ut]||!1;Se&&Xe>0&&(wt[Xe-1]=!0),se(Qe,[...ge,!0],wt)}})};return se(n),X},[n,h,r]),B=IE({count:h?_.length:0,getScrollElement:()=>A.current,estimateSize:()=>g,overscan:m}),G=h?B.getVirtualItems():[],F=h?((Je=G[0])==null?void 0:Je.start)??0:0,R=h?B.getTotalSize()-(((ct=G[G.length-1])==null?void 0:ct.end)??0):0,Q=X=>{if(!i||!i[X])return;const se=i[X];return{width:typeof se=="number"?`${se}px`:se,maxWidth:typeof se=="number"?`${se}px`:se,minWidth:typeof se=="number"?`${se}px`:se}},re=X=>!u||!u[X]?X===0?"left":"center":u[X],te=(X,se,pe,ge,be,Le,je,Se,Xe,Qe,et,wt,ut)=>{var Ee;const J=(Ee=r.getNodeRowHeight)==null?void 0:Ee.call(r,X),ce=J!=null;return c.jsx("td",{className:N("border-r border-line-primary p-0",ce&&"h-full align-top",{"border-r-0":ut.length===0}),style:Q(0),children:c.jsxs("div",{className:N("flex items-stretch",ce&&"h-full min-h-full",L()),style:ce?{height:J}:void 0,children:[z(se,pe,ge,be,ce),c.jsx("div",{className:I(ce),children:q(X,Le,je,Se,Xe,Qe,et,wt)})]})})},j=X=>X.map((se,pe)=>c.jsx("td",{className:N("border-r border-line-primary align-middle text-foreground-primary",H(),{"text-left":re(pe+1)==="left","text-center":re(pe+1)==="center","text-right":re(pe+1)==="right","border-r-0":pe===X.length-1},pe===X.length-1&&E()),style:Q(pe+1),children:se},pe)),ee=(X,se,pe,ge=[],be,Le)=>{var _e;const je=r.getNodeId(X),Se=be!==void 0?be:je,Xe=r.getNodeLevel(X),Qe=r.getNodeChildren(X),et=r.hasNestedNodes(X),wt=r.isNodeExpanded(X),ut=t?r.isNodeSelected(X,t):!1,J=r.getNodeHeadingText(X),ce=(_e=r.getNodeHeadingMaxLength)==null?void 0:_e.call(r,X),Ee=r.getNodeFooterText(X),Me=r.getNodeCellValues(X),ke=!!(X.onClick||X.onDoubleClick),Fe=be!==void 0?Number(be):K.get(je)??0;return c.jsxs(S,{ref:Le,"data-index":be,node:X,className:N("group",O(Fe,ut)),onClick:()=>{var Ae;return(Ae=X.onClick)==null?void 0:Ae.call(X)},onDoubleClick:()=>{var Ae;return(Ae=X.onDoubleClick)==null?void 0:Ae.call(X)},children:[te(X,Xe,se,pe,ge,et,wt,ke,J,ce,Ee,Qe,Me),j(Me)]},Se)},ie=(X=[],se=[],pe=[])=>X.map((ge,be)=>{var Fe;const Le=r.getNodeId(ge),je=r.getNodeLevel(ge),Se=r.getNodeChildren(ge),Xe=r.hasNestedNodes(ge),Qe=r.isNodeExpanded(ge),et=t?r.isNodeSelected(ge,t):!1,wt=r.getNodeHeadingText(ge),ut=(Fe=r.getNodeHeadingMaxLength)==null?void 0:Fe.call(r,ge),J=r.getNodeFooterText(ge),ce=r.getNodeCellValues(ge),Ee=be===X.length-1,Me=!!(ge.onClick||ge.onDoubleClick),ke=K.get(Le)??0;return c.jsxs(D.Fragment,{children:[c.jsxs(S,{node:ge,className:N("group",O(ke,et)),onClick:()=>{var _e;return(_e=ge.onClick)==null?void 0:_e.call(ge)},onDoubleClick:()=>{var _e;return(_e=ge.onDoubleClick)==null?void 0:_e.call(ge)},children:[te(ge,je,se,Ee,pe,Xe,Qe,Me,wt,ut,J,Se,ce),j(ce)]}),!!(Se!=null&&Se.length)&&Qe&&(()=>{const _e=new Array(je+1).fill(!1);for(let Ae=0;Ae<je-1;Ae++)_e[Ae]=pe[Ae]||!1;return Ee&&je>0&&(_e[je-1]=!0),ie(Se,[...se,!0],_e)})()]},Le)}),le=o||[],we=a??le,xe=we.length>0&&we.some(X=>a?X!=null:String(X).trim()!=="")||b!==void 0,Pe=a?we.length||1:Math.max(le.length,1),Be=(X,se)=>N("box-border min-h-9 overflow-hidden border-b border-r border-line-primary border-b-line-primary-disabled bg-background-secondary p-2 text-left font-medium text-foreground-primary align-middle min-w-0",X===0&&L(),se&&N(E(),"border-r-0"),{"text-left":X===0||re(X)==="left","text-center":X!==0&&re(X)==="center","text-right":X!==0&&re(X)==="right"});return c.jsx("div",{ref:A,id:p,className:N("h-full overflow-auto",s),children:c.jsxs("table",{className:"w-full border-collapse text-sm",children:[xe&&c.jsx("thead",{className:"sticky top-0 z-10 bg-background-secondary",children:c.jsx("tr",{children:a?we.map((X,se)=>c.jsx("th",{className:Be(se,se===we.length-1),style:Q(se),children:X},se)):c.jsxs(c.Fragment,{children:[c.jsx("th",{className:Be(0,le.length<=1),style:Q(0),children:b??(le[0]!=null&&String(le[0]).trim()!==""?c.jsx("span",{className:"block truncate",title:String(le[0]),children:le[0]}):null)}),le.slice(1).map((X,se)=>c.jsx("th",{className:Be(se+1,se+1===le.length-1),style:Q(se+1),children:c.jsx("span",{className:"block truncate",title:String(X),children:X})},se+1))]})})}),c.jsx("tbody",{children:h?c.jsxs(c.Fragment,{children:[F>0&&c.jsx("tr",{style:{height:`${F}px`},children:c.jsx("td",{colSpan:Pe})}),G.map(X=>{const{node:se,guides:pe,isLastChild:ge,skipGuides:be}=_[X.index];return ee(se,pe,ge,be,X.index,B.measureElement)}),R>0&&c.jsx("tr",{style:{height:`${R}px`},children:c.jsx("td",{colSpan:Pe})})]}):ie(n)})]})})};var nP="Portal",l4=l.forwardRef((e,n)=>{var i;const{container:t,...r}=e,[o,a]=l.useState(!1);He(()=>a(!0),[]);const s=t||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Yt.createPortal(c.jsx(oe.div,{...r,ref:n}),s):null});l4.displayName=nP;var A1="ToastProvider",[F1,rP,oP]=Uo("Toast"),[c4]=nt("Toast",[oP]),[aP,vs]=c4(A1),u4=e=>{const{__scopeToast:n,label:t="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:s}=e,[i,u]=l.useState(null),[d,f]=l.useState(0),h=l.useRef(!1),g=l.useRef(!1);return t.trim()||console.error(`Invalid prop \`label\` supplied to \`${A1}\`. Expected non-empty \`string\`.`),c.jsx(F1.Provider,{scope:n,children:c.jsx(aP,{scope:n,label:t,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:d,viewport:i,onViewportChange:u,onToastAdd:l.useCallback(()=>f(m=>m+1),[]),onToastRemove:l.useCallback(()=>f(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:g,children:s})})};u4.displayName=A1;var d4="ToastViewport",sP=["F8"],$1="toast.viewportPause",z1="toast.viewportResume",f4=l.forwardRef((e,n)=>{const{__scopeToast:t,hotkey:r=sP,label:o="Notifications ({hotkey})",...a}=e,s=vs(d4,t),i=rP(t),u=l.useRef(null),d=l.useRef(null),f=l.useRef(null),h=l.useRef(null),g=he(n,h,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=s.toastCount>0;l.useEffect(()=>{const v=w=>{var b;r.length!==0&&r.every(S=>w[S]||w.code===S)&&((b=h.current)==null||b.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),l.useEffect(()=>{const v=u.current,w=h.current;if(C&&v&&w){const y=()=>{if(!s.isClosePausedRef.current){const L=new CustomEvent($1);w.dispatchEvent(L),s.isClosePausedRef.current=!0}},b=()=>{if(s.isClosePausedRef.current){const L=new CustomEvent(z1);w.dispatchEvent(L),s.isClosePausedRef.current=!1}},S=L=>{!v.contains(L.relatedTarget)&&b()},M=()=>{v.contains(document.activeElement)||b()};return v.addEventListener("focusin",y),v.addEventListener("focusout",S),v.addEventListener("pointermove",y),v.addEventListener("pointerleave",M),window.addEventListener("blur",y),window.addEventListener("focus",b),()=>{v.removeEventListener("focusin",y),v.removeEventListener("focusout",S),v.removeEventListener("pointermove",y),v.removeEventListener("pointerleave",M),window.removeEventListener("blur",y),window.removeEventListener("focus",b)}}},[C,s.isClosePausedRef]);const p=l.useCallback(({tabbingDirection:v})=>{const y=i().map(b=>{const S=b.ref.current,M=[S,...wP(S)];return v==="forwards"?M:M.reverse()});return(v==="forwards"?y.reverse():y).flat()},[i]);return l.useEffect(()=>{const v=h.current;if(v){const w=y=>{var M,L,E;const b=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!b){const I=document.activeElement,k=y.shiftKey;if(y.target===v&&k){(M=d.current)==null||M.focus();return}const V=p({tabbingDirection:k?"backwards":"forwards"}),Y=V.findIndex($=>$===I);W1(V.slice(Y+1))?y.preventDefault():k?(L=d.current)==null||L.focus():(E=f.current)==null||E.focus()}};return v.addEventListener("keydown",w),()=>v.removeEventListener("keydown",w)}},[i,p]),c.jsxs(xm,{ref:u,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:C?void 0:"none"},children:[C&&c.jsx(B1,{ref:d,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"forwards"});W1(v)}}),c.jsx(F1.Slot,{scope:t,children:c.jsx(oe.ol,{tabIndex:-1,...a,ref:g})}),C&&c.jsx(B1,{ref:f,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"backwards"});W1(v)}})]})});f4.displayName=d4;var h4="ToastFocusProxy",B1=l.forwardRef((e,n)=>{const{__scopeToast:t,onFocusFromOutsideViewport:r,...o}=e,a=vs(h4,t);return c.jsx(ua,{tabIndex:0,...o,ref:n,style:{position:"fixed"},onFocus:s=>{var d;const i=s.relatedTarget;!((d=a.viewport)!=null&&d.contains(i))&&r()}})});B1.displayName=h4;var Lo="Toast",iP="toast.swipeStart",lP="toast.swipeMove",cP="toast.swipeCancel",uP="toast.swipeEnd",g4=l.forwardRef((e,n)=>{const{forceMount:t,open:r,defaultOpen:o,onOpenChange:a,...s}=e,[i,u]=ht({prop:r,defaultProp:o??!0,onChange:a,caller:Lo});return c.jsx(Ke,{present:t||i,children:c.jsx(hP,{open:i,...s,ref:n,onClose:()=>u(!1),onPause:Re(e.onPause),onResume:Re(e.onResume),onSwipeStart:ne(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ne(e.onSwipeMove,d=>{const{x:f,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:ne(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ne(e.onSwipeEnd,d=>{const{x:f,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),u(!1)})})})});g4.displayName=Lo;var[dP,fP]=c4(Lo,{onClose(){}}),hP=l.forwardRef((e,n)=>{const{__scopeToast:t,type:r="foreground",duration:o,open:a,onClose:s,onEscapeKeyDown:i,onPause:u,onResume:d,onSwipeStart:f,onSwipeMove:h,onSwipeCancel:g,onSwipeEnd:m,...C}=e,p=vs(Lo,t),[v,w]=l.useState(null),y=he(n,$=>w($)),b=l.useRef(null),S=l.useRef(null),M=o||p.duration,L=l.useRef(0),E=l.useRef(M),I=l.useRef(0),{onToastAdd:k,onToastRemove:O}=p,H=Re(()=>{var U;(v==null?void 0:v.contains(document.activeElement))&&((U=p.viewport)==null||U.focus()),s()}),V=l.useCallback($=>{!$||$===1/0||(window.clearTimeout(I.current),L.current=new Date().getTime(),I.current=window.setTimeout(H,$))},[H]);l.useEffect(()=>{const $=p.viewport;if($){const U=()=>{V(E.current),d==null||d()},T=()=>{const W=new Date().getTime()-L.current;E.current=E.current-W,window.clearTimeout(I.current),u==null||u()};return $.addEventListener($1,T),$.addEventListener(z1,U),()=>{$.removeEventListener($1,T),$.removeEventListener(z1,U)}}},[p.viewport,M,u,d,V]),l.useEffect(()=>{a&&!p.isClosePausedRef.current&&V(M)},[a,M,p.isClosePausedRef,V]),l.useEffect(()=>(k(),()=>O()),[k,O]);const Y=l.useMemo(()=>v?b4(v):null,[v]);return p.viewport?c.jsxs(c.Fragment,{children:[Y&&c.jsx(gP,{__scopeToast:t,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:Y}),c.jsx(dP,{scope:t,onClose:H,children:Dr.createPortal(c.jsx(F1.ItemSlot,{scope:t,children:c.jsx(bm,{asChild:!0,onEscapeKeyDown:ne(i,()=>{p.isFocusedToastEscapeKeyDownRef.current||H(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(oe.li,{tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":p.swipeDirection,...C,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ne(e.onKeyDown,$=>{$.key==="Escape"&&(i==null||i($.nativeEvent),$.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:ne(e.onPointerDown,$=>{$.button===0&&(b.current={x:$.clientX,y:$.clientY})}),onPointerMove:ne(e.onPointerMove,$=>{if(!b.current)return;const U=$.clientX-b.current.x,T=$.clientY-b.current.y,W=!!S.current,P=["left","right"].includes(p.swipeDirection),z=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,q=P?z(0,U):0,K=P?0:z(0,T),Z=$.pointerType==="touch"?10:2,A={x:q,y:K},_={originalEvent:$,delta:A};W?(S.current=A,Cs(lP,h,_,{discrete:!1})):x4(A,p.swipeDirection,Z)?(S.current=A,Cs(iP,f,_,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(U)>Z||Math.abs(T)>Z)&&(b.current=null)}),onPointerUp:ne(e.onPointerUp,$=>{const U=S.current,T=$.target;if(T.hasPointerCapture($.pointerId)&&T.releasePointerCapture($.pointerId),S.current=null,b.current=null,U){const W=$.currentTarget,P={originalEvent:$,delta:U};x4(U,p.swipeDirection,p.swipeThreshold)?Cs(uP,m,P,{discrete:!0}):Cs(cP,g,P,{discrete:!0}),W.addEventListener("click",z=>z.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),gP=e=>{const{__scopeToast:n,children:t,...r}=e,o=vs(Lo,n),[a,s]=l.useState(!1),[i,u]=l.useState(!1);return vP(()=>s(!0)),l.useEffect(()=>{const d=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(d)},[]),i?null:c.jsx(l4,{asChild:!0,children:c.jsx(ua,{...r,children:a&&c.jsxs(c.Fragment,{children:[o.label," ",t]})})})},pP="ToastTitle",p4=l.forwardRef((e,n)=>{const{__scopeToast:t,...r}=e;return c.jsx(oe.div,{...r,ref:n})});p4.displayName=pP;var mP="ToastDescription",m4=l.forwardRef((e,n)=>{const{__scopeToast:t,...r}=e;return c.jsx(oe.div,{...r,ref:n})});m4.displayName=mP;var v4="ToastAction",C4=l.forwardRef((e,n)=>{const{altText:t,...r}=e;return t.trim()?c.jsx(y4,{altText:t,asChild:!0,children:c.jsx(Z1,{...r,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${v4}\`. Expected non-empty \`string\`.`),null)});C4.displayName=v4;var w4="ToastClose",Z1=l.forwardRef((e,n)=>{const{__scopeToast:t,...r}=e,o=fP(w4,t);return c.jsx(y4,{asChild:!0,children:c.jsx(oe.button,{type:"button",...r,ref:n,onClick:ne(e.onClick,o.onClose)})})});Z1.displayName=w4;var y4=l.forwardRef((e,n)=>{const{__scopeToast:t,altText:r,...o}=e;return c.jsx(oe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:n})});function b4(e){const n=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&n.push(r.textContent),CP(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const s=r.dataset.radixToastAnnounceAlt;s&&n.push(s)}else n.push(...b4(r))}}),n}function Cs(e,n,t,{discrete:r}){const o=t.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:t});n&&o.addEventListener(e,n,{once:!0}),r?Ci(o,a):o.dispatchEvent(a)}var x4=(e,n,t=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return n==="left"||n==="right"?a&&r>t:!a&&o>t};function vP(e=()=>{}){const n=Re(e);He(()=>{let t=0,r=0;return t=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(t),window.cancelAnimationFrame(r)}},[n])}function CP(e){return e.nodeType===e.ELEMENT_NODE}function wP(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function W1(e){const n=document.activeElement;return e.some(t=>t===n?!0:(t.focus(),document.activeElement!==n))}var yP=u4,S4=f4,E4=g4,M4=p4,L4=m4,N4=C4,P4=Z1;const _4=yP,R1=l.forwardRef(({className:e,...n},t)=>c.jsx(S4,{ref:t,className:N("fixed top-0 z-[200] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px] gap-4",e),...n}));R1.displayName=S4.displayName;const bP=ln("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-lg py-3 px-4 shadow-float transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"bg-background text-foreground",destructive:"destructive group bg-background-error-fade text-foreground-error border border-line-primary",success:"success group bg-background-success-fade text-foreground-success border border-line-primary"}},defaultVariants:{variant:"default"}}),G1=l.forwardRef(({className:e,variant:n,children:t,...r},o)=>c.jsx(E4,{ref:o,className:N(bP({variant:n}),e),...r,children:c.jsxs("div",{className:"flex gap-2 whitespace-pre-line",children:[n==="destructive"&&c.jsx(m1,{className:"min-w-6 h-6"}),n==="success"&&c.jsx(p1,{className:"min-w-6 h-6"}),t]})}));G1.displayName=E4.displayName;const I4=l.forwardRef(({className:e,...n},t)=>c.jsx(N4,{ref:t,className:N("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-[transparent] px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-background-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...n}));I4.displayName=N4.displayName;const j1=l.forwardRef(({className:e,...n},t)=>c.jsx(P4,{ref:t,className:N("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...n,children:c.jsx(Ma,{className:"h-4 w-4"})}));j1.displayName=P4.displayName;const Y1=l.forwardRef(({className:e,...n},t)=>c.jsx(M4,{ref:t,className:N("text-sm leading-5 tracking-[0.25px]",e),...n}));Y1.displayName=M4.displayName;const U1=l.forwardRef(({className:e,...n},t)=>c.jsx(L4,{ref:t,className:N("text-sm opacity-90",e),...n}));U1.displayName=L4.displayName;var xP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],SP=xP.reduce((e,n)=>{const t=Wo(`Primitive.${n}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,u=s?t:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...i,ref:a})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),EP="Portal",k4=l.forwardRef((e,n)=>{var i;const{container:t,...r}=e,[o,a]=l.useState(!1);He(()=>a(!0),[]);const s=t||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Yt.createPortal(c.jsx(SP.div,{...r,ref:n}),s):null});k4.displayName=EP;var MP=k4;const LP=5,NP=1e6;let q1=0;function PP(){return q1=(q1+1)%Number.MAX_SAFE_INTEGER,q1.toString()}const K1=new Map,T4=e=>{if(K1.has(e))return;const n=setTimeout(()=>{K1.delete(e),No({type:"REMOVE_TOAST",toastId:e})},NP);K1.set(e,n)},D4=(e,n)=>{switch(n.type){case"ADD_TOAST":return{...e,toasts:[n.toast,...e.toasts].slice(0,LP)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(t=>t.id===n.toast.id?{...t,...n.toast}:t)};case"DISMISS_TOAST":{const{toastId:t}=n;return t?T4(t):e.toasts.forEach(r=>{T4(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===t||t===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(t=>t.id!==n.toastId)}}},ws=[];let ys={toasts:[]};function No(e){ys=D4(ys,e),ws.forEach(n=>{n(ys)})}function O4({...e}){const n=PP(),t=o=>No({type:"UPDATE_TOAST",toast:{...o,id:n}}),r=()=>No({type:"DISMISS_TOAST",toastId:n});return No({type:"ADD_TOAST",toast:{...e,id:n,open:!0,onOpenChange:o=>{o||r()}}}),{id:n,dismiss:r,update:t}}function X1(){const[e,n]=l.useState(ys);return l.useEffect(()=>(ws.push(n),()=>{const t=ws.indexOf(n);t>-1&&ws.splice(t,1)}),[e]),{...e,toast:O4,dismiss:t=>No({type:"DISMISS_TOAST",toastId:t})}}function _P(e){const{viewportClassname:n}=e,{toasts:t}=X1();return c.jsx(MP,{children:c.jsxs(_4,{children:[t.map(function({id:r,title:o,description:a,action:s,...i}){return c.jsxs(G1,{...i,children:[c.jsxs("div",{className:"grid gap-1",children:[o&&c.jsx(Y1,{children:o}),a&&c.jsx(U1,{children:a})]}),s,c.jsx(j1,{})]},r)}),c.jsx(R1,{className:n})]})})}const IP=({className:e,children:n,column:t,enableMultiSort:r=!1,maxMultiSortColumns:o,sortingCount:a=0})=>{const s=t.getIsSorted(),i=t.getSortIndex(),u=()=>{r?t.getIsSorted()?t.toggleSorting(s==="asc",!0):(o===void 0||a<o)&&t.toggleSorting(void 0,!0):t.toggleSorting(s==="asc")};return c.jsxs("div",{className:N("flex items-center gap-1 cursor-pointer",e),onClick:u,children:[c.jsx(gs,{className:N("h-4 w-4 shrink-0 text-icon transition-transform",s==="asc"&&"rotate-180",s&&"text-foreground-theme")}),r&&a>1&&i!==-1&&c.jsx("span",{className:"inline-flex items-center justify-center min-w-5 h-5 text-xs font-semibold bg-foreground-theme text-background-primary rounded",children:i+1}),n]})},bs=1024*1024,Rt=(e=0)=>e*bs,Q1=(e=0)=>(e/bs).toFixed(2),V4=async(e,{quality:n=1,type:t=e.type}={})=>{const r=await createImageBitmap(e),o=document.createElement("canvas");o.width=r.width,o.height=r.height;const a=o.getContext("2d");if(!a)return e;a.drawImage(r,0,0);const s=await new Promise(i=>o.toBlob(i,t,n));return s?new File([s],e.name,{type:s.type}):e},H4=async(e,{quality:n=1,type:t=e.type}={})=>n===1?e:t.includes("image")?V4(e,{quality:n,type:t}):e,A4=(e,n)=>{const t=e.size<Rt(n),r=`Размер файла должен быть не более ${n} МБ`;return t?{ok:!0}:{ok:!1,fileSizeError:r}},F4=async(e,n)=>new Promise((t,r)=>{if(!n.includes(e.type)){r({ok:!1,fileTypeError:"Тип файла не поддерживается"});return}const o=new FileReader;o.onload=function(a){var f;const s=(f=a.target)==null?void 0:f.result;if(!s)return;const i=new Uint8Array(s).subarray(0,12);let u="";for(let h=0;h<i.length;h++)u+=i[h].toString(16);let d=!1;u.startsWith("89504e47")?d=e.type==="image/png":u.startsWith("ffd8ff")?d=e.type==="image/jpeg"||e.type==="image/jpg":u.startsWith("000")&&(u.includes("66747970")||u.toLowerCase().includes("6d703432"))&&(d=e.type==="video/mp4"),d?t({ok:!0}):r({ok:!1,fileTypeError:"Тип файла не поддерживается"})},e?o.readAsArrayBuffer(e):r({ok:!1,fileTypeError:"Файл не выбран"})}),$4=async(e,n,t=10)=>{const r=await F4(e,n).catch(o=>o);return r.ok?A4(e,t):r},kP=e=>new Promise(n=>{const t=document.createElement("canvas"),r=document.createElement("video");r.autoplay=!0,r.muted=!0,r.src=URL.createObjectURL(e),r.onloadeddata=()=>{const o=t.getContext("2d");return t.width=r.videoWidth,t.height=r.videoHeight,o==null||o.drawImage(r,0,0,r.videoWidth,r.videoHeight),r.pause(),n(t.toDataURL("image/png"))}}),z4=e=>{if(e.type.includes("image"))return URL.createObjectURL(e);if(e.type.includes("video"))return kP(e)},B4=async e=>{const n=[];for(const t of e)n.push({id:new Date().getTime(),file:t,contentType:t.type,fileName:t.name,url:await z4(t)||URL.createObjectURL(t)});return n},Z4=l.forwardRef(({className:e,onAdd:n,onClick:t,onFileRemove:r,error:o,accept:a,maxFileSize:s,defaultValue:i,...u},d)=>{const[f,h]=l.useState(""),g=async p=>{const v=await $4(p[0],a??"",s);v.ok?(h(p[0].name),n(p[0])):n(p[0],{fileTypeError:v.fileTypeError,fileSizeError:v.fileSizeError})};function m(p){t&&(p.preventDefault(),t())}const C=()=>c.jsxs("div",{className:N("flex flex-row gap-1"),children:[r&&c.jsx("div",{className:"cursor-pointer",onClick:p=>{p.stopPropagation(),p.preventDefault(),r(()=>h(""))},children:c.jsx(wo,{})}),c.jsx(W9,{})]});return c.jsx(c.Fragment,{children:c.jsxs("label",{className:e,onClick:m,children:[c.jsx("input",{type:"file",style:{display:"none"},accept:a,...u,ref:d,onChange:p=>{var v;return((v=p.target.files)==null?void 0:v.length)&&g(p.target.files)}},f),c.jsx(tn,{defaultValue:f||i,style:{pointerEvents:"none",background:"white"},placeholder:u.placeholder,error:o,rightIcon:C()})]})})});Z4.displayName="FileInput";const J1=l.forwardRef(({className:e,error:n,rows:t,onEnter:r,...o},a)=>{var f;const[s,i]=l.useState(((f=o.value)==null?void 0:f.toString().length)??0),u=h=>{var g;i(h.target.value.length),(g=o.onChange)==null||g.call(o,h)},d=c.jsxs(c.Fragment,{children:[c.jsx("textarea",{className:N("w-full rounded-lg border border-line-primary bg-[transparent] blur-none px-3 py-2 text-sm tracking-[0.1px] leading-5 transition-colors duration-300 ease-in-out ring-offset-background file:border-0 file:bg-[transparent] file:text-sm font-normal placeholder:text-foreground-secondary focus-visible:outline-none focus-visible:border-line-focused disabled:cursor-not-allowed disabled:opacity-50 resize-none",n?"border-line-error focus-visible:border-line-error":"",o.maxLength?"pb-2.5":"pb-0.5"),ref:a,placeholder:o.placeholder,rows:t??4,onKeyDown:h=>{h.key==="Enter"&&(r==null||r(h.target.value))},...o,onChange:u}),o.maxLength&&c.jsxs("span",{className:`absolute right-2 bottom-2.5
|
|
136
|
-
text-foreground-tertiary text-xs`,children:[s,"/",o.maxLength]})]});return c.jsx("span",{className:N("relative transition-colors",e),children:d})});J1.displayName="TextArea";var xs="Switch",[TP]=nt(xs),[DP,OP]=TP(xs),W4=l.forwardRef((e,n)=>{const{__scopeSwitch:t,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:u="on",onCheckedChange:d,form:f,...h}=e,[g,m]=l.useState(null),C=he(n,b=>m(b)),p=l.useRef(!1),v=g?f||!!g.closest("form"):!0,[w,y]=ht({prop:o,defaultProp:a??!1,onChange:d,caller:xs});return c.jsxs(DP,{scope:t,checked:w,disabled:i,children:[c.jsx(oe.button,{type:"button",role:"switch","aria-checked":w,"aria-required":s,"data-state":Y4(w),"data-disabled":i?"":void 0,disabled:i,value:u,...h,ref:C,onClick:ne(e.onClick,b=>{y(S=>!S),v&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})}),v&&c.jsx(j4,{control:g,bubbles:!p.current,name:r,value:u,checked:w,required:s,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});W4.displayName=xs;var R4="SwitchThumb",G4=l.forwardRef((e,n)=>{const{__scopeSwitch:t,...r}=e,o=OP(R4,t);return c.jsx(oe.span,{"data-state":Y4(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:n})});G4.displayName=R4;var VP="SwitchBubbleInput",j4=l.forwardRef(({__scopeSwitch:e,control:n,checked:t,bubbles:r=!0,...o},a)=>{const s=l.useRef(null),i=he(s,a),u=ca(t),d=sa(n);return l.useEffect(()=>{const f=s.current;if(!f)return;const h=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(h,"checked").set;if(u!==t&&m){const C=new Event("click",{bubbles:r});m.call(f,t),f.dispatchEvent(C)}},[u,t,r]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});j4.displayName=VP;function Y4(e){return e?"checked":"unchecked"}var U4=W4,HP=G4;const q4=l.forwardRef(({className:e,...n},t)=>c.jsx(U4,{className:N("peer inline-flex h-3 w-8 shrink-0 cursor-pointer items-center rounded-full 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-background-success data-[state=unchecked]:bg-background-contrast-fade",e),...n,ref:t,children:c.jsx(HP,{className:N("pointer-events-none block h-[18px] w-[18px] rounded-full bg-background shadow-switch ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));q4.displayName=U4.displayName;const K4=ve.z.object({id:ve.z.number().or(ve.z.string()),contentType:ve.z.string(),url:ve.z.string().optional(),file:ve.z.instanceof(File).optional(),fileName:ve.z.string().optional(),size:ve.z.number().optional(),isMain:ve.z.boolean().optional(),inProgress:ve.z.boolean().optional(),downloadUrl:ve.z.string().optional(),previewUrl:ve.z.string().optional(),onDownload:ve.z.function().optional(),onRemove:ve.z.function().optional()}).or(ve.z.object({id:ve.z.number().or(ve.z.string()),contentType:ve.z.string(),url:ve.z.string().optional(),file:ve.z.instanceof(File),fileName:ve.z.string().optional(),size:ve.z.number().optional(),isMain:ve.z.boolean().optional(),inProgress:ve.z.boolean().optional(),downloadUrl:ve.z.string().optional(),previewUrl:ve.z.string().optional(),onDownload:ve.z.function().optional(),onRemove:ve.z.function().optional()})),AP=ve.z.array(ve.z.object({label:ve.z.string(),items:ve.z.array(K4),disableIfEmpty:ve.z.boolean().optional(),hideIfEmpty:ve.z.boolean().optional(),canAdd:ve.z.boolean().optional(),maxFiles:ve.z.number().optional()})),ec=["video","audio","image","pdf","word","excel","archive"],X4=new Map([["video","video/mp4"],["image","image/png, image/jpeg"],["audio","audio/mp3"],["pdf","application/pdf"],["word","application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/msword"],["excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel.sheet.macroEnabled.12, application/vnd.ms-excel"],["archive","application/zip, application/x-rar-compressed, application/x-7z-compressed"]]),tc=40,nc=20,rc=10,oc=1,ac=1,sc=20,ic=20,lc=20,Q4=e=>{let n;const t=new Set,r=(d,f)=>{const h=typeof d=="function"?d(n):d;if(!Object.is(h,n)){const g=n;n=f??(typeof h!="object"||h===null)?h:Object.assign({},n,h),t.forEach(m=>m(n,g))}},o=()=>n,i={setState:r,getState:o,getInitialState:()=>u,subscribe:d=>(t.add(d),()=>t.delete(d))},u=n=e(r,o,i);return i},FP=e=>e?Q4(e):Q4,$P=e=>e;function zP(e,n=$P){const t=D.useSyncExternalStore(e.subscribe,D.useCallback(()=>n(e.getState()),[e,n]),D.useCallback(()=>n(e.getInitialState()),[e,n]));return D.useDebugValue(t),t}const BP=e=>{const n=FP(e),t=r=>zP(n,r);return Object.assign(t,n),t},Ss=(e=>BP)()(e=>({title:"",description:"",confirmText:"",confirmType:"fade-contrast-outlined",confirmHidden:!1,cancelText:"",cancelHidden:!1,inputValue:"",inputPlaceholder:"",inputRequiredLabel:"",setInput:n=>e({inputValue:n}),confirmed:!1,visible:!1,setVisible:n=>e({visible:n,confirmed:null}),show:n=>e({visible:!0,title:n.title??"",description:n.description,confirmText:n.confirmText,confirmType:n.confirmType??"fade-contrast-filled",confirmHidden:n.confirmHidden??!1,cancelText:n.cancelText??"",cancelHidden:n.cancelHidden??!1,input:n.input,inputPlaceholder:n.inputPlaceholder??"",inputRequiredLabel:n.inputRequiredLabel??"",inputMaxLength:n.inputMaxLength,inputRequired:n.inputRequired}),hide:()=>e({visible:!1}),confirm:n=>e({confirmed:!0,visible:!1,inputValue:n}),cancel:()=>e({confirmed:!1,visible:!1})})),cc=()=>{const e=Ss();return{confirm:async r=>{const{confirmed:o,unsubscribe:a}=await new Promise(s=>{e.show(r);const i=Ss.subscribe(({visible:u,confirmed:d})=>{u||s({confirmed:d,unsubscribe:i})})});return a(),o},prompt:async r=>{e.setInput("");const{inputValue:o,unsubscribe:a}=await new Promise(s=>{e.show(r);const i=Ss.subscribe(({visible:u,inputValue:d})=>{u||s({inputValue:d,unsubscribe:i})})});return a(),o}}},uc=e=>{var n;return(n=e.response)==null?void 0:n.data},ZP=(e,n)=>{var t,r;return(r=(t=n.split(e+"='")[1])==null?void 0:t.split("'")[0])==null?void 0:r.trim()},Es=e=>{const{t:n}=rt(),{toast:t}=X1(),r=(h,g)=>{const m=`${n("errorOccurred")}: `;t({variant:"destructive",title:h?`${g??m}${h}`:n("errorOccurred")})},o=h=>{t({variant:"success",title:h})},a=h=>h?Array.isArray(h.errors)?h.errors.join(", "):h.errors&&typeof h.errors=="object"?Object.values(h.errors).flat().join(", "):"":"",s=h=>{const g=uc(h),m=g&&"title"in g?g.title:void 0,C=(g==null?void 0:g.message)||String(g&&("Message"in g?g.Message:""))||(g==null?void 0:g.detail),p=h==null?void 0:h.errorDescription;if(p)return p;const v=C||(g==null?void 0:g.error)||m,w=a(g);return e||w||v};return{toast:t,notifyError:r,onError:h=>{const g=s(h);r(g)},getErrorHandler:h=>g=>{const m=s(g),C=[];for(const[p,v]of Object.entries(h)){const w=uc(g),y=(w==null?void 0:w.message)||w&&("Message"in w?w.Message:""),b=typeof v=="function"?v(w==null?void 0:w.errors):v;(!!p&&p===y||!!b&&!p)&&C.push(b)}C.length?C.forEach(p=>r(p)):r(m)},getSuccessHandler:h=>()=>o(h),notifySuccess:o,onSuccess:()=>{o(e||"Success")}}},Pr=["image","video","audio"],qn=e=>{const n=e.toLowerCase();return n.includes("pdf")?"pdf":n.includes("wordprocessingml")||n==="application/msword"?"word":n.includes("spreadsheetml")||n.includes("ms-excel")?"excel":n==="application/zip"||n.includes("rar")||n.includes("7z")?"archive":n.includes("image")?"image":n.includes("video")?"video":n.includes("audio")?"audio":null},Po=e=>e!=null&&e.contentType&&qn(e.contentType)||"image",Nn=e=>(e==null?void 0:e.previewUrl)||(e==null?void 0:e.url),dc=e=>(e==null?void 0:e.downloadUrl)||(e==null?void 0:e.url),_r=e=>(e??[]).filter(n=>(n==null?void 0:n.contentType)&&(n.url||n.previewUrl||n.downloadUrl||n.file||n.onDownload)),WP={image:ac,video:nc,total:tc,audio:rc,pdf:oc,word:sc,excel:ic,archive:lc},J4=e=>{const{accepts:n=ec,multiple:t=!0,max:r,maxSizes:o,withCompress:a=!0,onAdd:s,attachmentData:i=[]}=e,u=D.useMemo(()=>({...WP,...o}),[o]),{notifyError:d}=Es(),{t:f}=rt(),h=D.useRef(null),[g,m]=D.useState(!1),p=_r(i).length,w=r!=null&&p>=r||g||!s,y=D.useCallback(async L=>{const E=_r(i),I=E.length,k=_=>qn(_.type)==="image",O=_=>qn(_.type)==="audio",H=_=>qn(_.type)==="pdf",V=_=>qn(_.type)==="word",Y=_=>qn(_.type)==="excel",$=_=>qn(_.type)==="archive",U=_=>k(_)?_.size<Rt(u.image):O(_)?_.size<Rt(u.audio):H(_)?_.size<Rt(u.pdf):V(_)?_.size<Rt(u.word):Y(_)?_.size<Rt(u.excel):$(_)?_.size<Rt(u.archive):_.size<Rt(u.video),T=(_,B)=>k(_)?B.image:O(_)?B.audio:H(_)?B.pdf:V(_)?B.word:Y(_)?B.excel:$(_)?B.archive:B.video,W=_=>{const B=T(_,u),G=Rt(B??u.video),F=Number((G/_.size).toFixed(2));return F>=1?1:F},P=Array.from(L);if(!P.length)return;m(!0);for(let _=0;_<P.length;_++){const B=P[_],G=!U(B)&&a?await H4(B,{quality:W(B)}):B;P[_]=G,U(G)||(k(B)?d(`${f("imageSizeLimitMB")} ${u.image}(MB) (${B.name})`):O(B)?d(`${f("audioSizeLimitMB")} ${u.audio}(MB) (${B.name})`):H(B)?d(`${f("pdfSizeLimitMB")} ${u.pdf}(MB) (${B.name})`):V(B)?d(`${f("videoSizeLimitMB")} ${u.word}(MB) (${B.name})`):Y(B)?d(`${f("videoSizeLimitMB")} ${u.excel}(MB) (${B.name})`):$(B)?d(`${f("videoSizeLimitMB")} ${u.archive}(MB) (${B.name})`):d(`${f("videoSizeLimitMB")} ${u.video}(MB) (${B.name})`))}const z=P.filter(U),K=[...E.filter(_=>!!_.file).map(_=>_.file),...z].reduce((_,B)=>_+B.size,0)/bs;if(u.total!=null&&K>u.total){d(`${f("maxSizeOfFilesMB")} ${u.total}(MB)`),m(!1);return}const Z=r!=null?Math.max(0,r-I):z.length,A=r!=null?z.slice(0,Z):z;A.length&&(s==null||s(A)),h.current&&(h.current.value=""),m(!1)},[i,r,u,a,s,d,f]),b=D.useCallback(L=>{var E;(E=L.target.files)!=null&&E.length&&y(L.target.files).catch(()=>m(!1))},[y]),S=D.useCallback(()=>{var L;w||(L=h.current)==null||L.click()},[w]),M=n.map(L=>X4.get(L)).filter(Boolean).join(",");return{inputRef:h,openPicker:S,processing:g,pickerDisabled:w,acceptAttr:M,multiple:t,onFileInputChange:b}},RP=({onRotate:e,onPrev:n,onNext:t,onRemove:r,isImage:o})=>c.jsx("div",{className:"flex justify-center items-center z-50",children:c.jsxs("div",{className:"flex bg-foreground-primary-disabled py-2 px-3 rounded-[8px] gap-4",children:[c.jsx(ao,{className:N("cursor-pointer text-icon-on-contrast",{"opacity-50":!n}),onClick:()=>n==null?void 0:n()}),c.jsx(Vn,{className:N("cursor-pointer text-icon-on-contrast",{"opacity-50":!t}),onClick:()=>t==null?void 0:t()}),c.jsx(G9,{className:N("cursor-pointer text-icon-on-contrast",{"opacity-50":!o}),onClick:()=>e("left")}),c.jsx(j9,{className:N("cursor-pointer text-icon-on-contrast",{"opacity-50":!o}),onClick:()=>e("right")}),r&&c.jsx(Qi,{className:"cursor-pointer text-icon-on-contrast",onClick:r})]})}),e3=({children:e,src:n,name:t,type:r,onPrev:o,onNext:a,onRemove:s})=>{var C,p;const i=D.useRef(null),[u,d]=D.useState(!0),[f,h]=D.useState(0),g=90,m=v=>{h(v==="left"?(f-g+360)%360:(f+g)%360)};return D.useEffect(()=>{var v;!((v=i.current)!=null&&v.complete)&&r!=="pdf"&&d(!0),h(0)},[n]),c.jsxs(Za,{children:[c.jsx(vl,{asChild:!0,children:e}),c.jsxs(no,{className:"bg-[transparent] shadow-none flex flex-col gap-12 overflow-hidden",children:[c.jsx(Wa,{className:"sr-only",children:t||""}),c.jsxs("div",{className:"flex items-center justify-center max-h-[90vh]",children:[r==="image"&&c.jsx("img",{ref:i,style:{visibility:u?"hidden":void 0,rotate:`${f}deg`},src:n,className:"object-cover w-full h-full max-w-full max-h-[calc(90vh-150px)]",onError:()=>d(!1),onLoad:()=>d(!1),alt:t||"Изображение для просмотра"}),r==="video"&&c.jsx("video",{style:{visibility:u?"hidden":void 0},className:"object-cover",controls:!0,onError:()=>d(!1),onLoadedData:()=>d(!1),children:c.jsx("source",{src:n,type:"video/mp4"})}),r==="audio"&&c.jsx("audio",{style:{visibility:u?"hidden":void 0},className:"object-cover self-center",controls:!0,onError:()=>d(!1),onLoadedData:()=>d(!1),children:c.jsx("source",{src:n,type:"audio/mp3"})}),r==="pdf"&&c.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:N("flex flex-col items-center justify-center bg-background-secondary h-[130px] w-[130px] text-icon-theme rounded-lg border-2 border-line-secondary"),children:[c.jsx(Ln,{}),c.jsx("div",{className:"text-sm mt-1 text-foreground-secondary truncate w-full text-center p-0.5",title:t,children:t})]}),u&&c.jsx(vr,{style:{width:(C=i.current)==null?void 0:C.width,height:(p=i.current)==null?void 0:p.height},className:"min-w-[-webkit-fill-available] h-auto flex justify-center items-center absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"})]}),c.jsx(RP,{onRotate:m,onPrev:o,onNext:a,onRemove:s,isImage:r==="image"})]})]})},t3=e=>{const{className:n,placeholder:t,data:r=[],accepts:o=ec,multiple:a=!0,max:s=10,hint:i,previewSize:u=130,gap:d=2,title:f,orientation:h="horizontal",maxSizes:g={image:ac,video:nc,total:tc,audio:rc,pdf:oc,word:sc,excel:ic,archive:lc},withCompress:m=!0,onAdd:C,onRemove:p,handleFileLimit:v,handleAllFilesLimit:w}=e,{confirm:y}=cc(),{notifyError:b}=Es(),{t:S}=rt(),[M,L]=D.useState([]),{inputRef:E,processing:I,pickerDisabled:k,acceptAttr:O,multiple:H,onFileInputChange:V}=J4({accepts:o,multiple:a,max:s,maxSizes:g,withCompress:m,onAdd:C,attachmentData:r}),Y=_=>Po(_),$=_r(r),U=$.filter(_=>Pr.includes(Y(_))&&!!Nn(_)),[T,W]=D.useState(U[0]);D.useEffect(()=>{const B=_r(r).filter(G=>Pr.includes(Y(G))&&!!Nn(G));W(G=>B.includes(G)?G:B[0])},[r]);const P=()=>{const _=U[U.indexOf(T)-1];return _?()=>W(_):void 0},z=()=>{const _=U[U.indexOf(T)+1];return _?()=>W(_):void 0},q=async(_,B)=>{var F;await y({description:S("confirmDeleteMedia"),confirmText:S("delete"),confirmType:"warning-filled"})&&((F=_.onRemove)!=null&&F.call(_)||(p==null||p(B)))},K=(_="")=>`${_}h-[${u}px] ${_}w-[${u}px]`,Z=()=>K("min-"),A=C&&(!s||$.length<s);return c.jsxs("div",{className:N(h==="vertical"?"flex flex-col gap-2 pt-1 overflow-y-auto overflow-x-hidden w-full":"grid grid-flow-col auto-cols-[130px] pt-1 overflow-x-auto overflow-y-hidden w-full",h==="horizontal"?`gap-${d}`:"",h==="horizontal"?`auto-cols-[${u}px]`:"",n),children:[A&&c.jsxs("div",{className:N("w-[130px] h-[130px] relative flex justify-center items-center rounded-lg border-foreground/10 bg-[transparent] text-[transparent] cursor-pointer transition-colors",Z(),K()),children:[c.jsx(tn,{ref:E,className:"h-full w-full flex justify-center items-center cursor-pointer file:text-[transparent] file:bg-[transparent] file:hidden border-dashed hover:bg-background-secondary",id:"attachment",type:"file",accept:O,multiple:H,disabled:k,onChange:V}),I?c.jsx(mr,{className:"absolute pointer-events-none h-7 w-7 animate-spin opacity-80"}):c.jsxs("div",{className:"absolute pointer-events-none flex flex-col gap-1 items-center justify-center",children:[c.jsx(F9,{className:N("text-icon-fade-contrast",{"opacity-50":$.length>=s})}),c.jsx("span",{className:"text-sm text-foreground-tertiary",children:S("attachFile")}),i&&c.jsx("span",{className:"px-2 text-center text-xs leading-tight text-foreground-quaternary",children:i})]})]}),t&&!($!=null&&$.length)&&c.jsx("span",{className:"text-base text-secondary-foreground",children:t}),$==null?void 0:$.map((_,B)=>{var we,Te;const G=Y(_),F=Nn(_),R=!Pr.includes(G)||!F,Q=dc(_),re=_.size??((we=_.file)==null?void 0:we.size),te=_.fileName||`${(Q==null?void 0:Q.split("/").pop())??"file"}.${((Te=_.contentType)==null?void 0:Te.split("/").pop())||(G==="video"?"mp4":G==="audio"?"mp3":G==="word"?"docx":G==="excel"?"xlsx":G==="archive"?"zip":"pdf")}`,j=String(_.id??B),ee=M.includes(j),ie=async xe=>{if(!(!_.onDownload||ee)){xe.preventDefault(),L(Pe=>[...Pe,j]);try{await _.onDownload()}catch(Pe){b(Pe instanceof Error?Pe.message:void 0)}finally{L(Pe=>Pe.filter(Be=>Be!==j))}}},le=c.jsxs("span",{className:"relative",children:[G==="image"&&!R&&(F?c.jsxs(c.Fragment,{children:[c.jsx("img",{src:F,alt:"",className:N("rounded-lg object-cover border border-line-primary",K()),loading:"lazy",onClick:()=>W(_)}),f&&c.jsx("span",{className:"absolute bottom-2 left-2 display-block p-0.5 rounded-xl bg-background-on-image text-xs text-foreground-on-image w-[calc(100%-1rem)] truncate",children:f})]}):c.jsx("div",{className:N("flex flex-col items-center justify-center h-full w-full text-icon-theme rounded-lg border-2 border-line-secondary",K()),children:c.jsx(Ln,{})})),G==="video"&&!R&&c.jsxs("div",{className:N("flex flex-col items-center justify-center h-full w-full text-icon-theme rounded-lg border-2 border-line-secondary",K()),onClick:()=>W(_),children:[c.jsx(k1,{}),h==="horizontal"&&c.jsx(rn,{children:c.jsxs(Wt,{children:[c.jsx(It,{asChild:!0,children:c.jsx("div",{className:"text-sm mt-1 text-foreground-secondary w-full truncate text-center p-0.5",children:te})}),c.jsx(kt,{children:c.jsx("p",{children:te})})]})})]}),G==="audio"&&!R&&c.jsxs("div",{className:N("flex flex-col items-center justify-center h-full w-full text-icon-theme rounded-lg border-2 border-line-secondary",K()),onClick:()=>W(_),children:[c.jsx(I1,{}),h==="horizontal"&&c.jsx(rn,{children:c.jsxs(Wt,{children:[c.jsx(It,{asChild:!0,children:c.jsx("div",{className:"text-sm mt-1 text-foreground-secondary w-full truncate text-center p-0.5",children:te})}),c.jsx(kt,{children:c.jsx("p",{children:te})})]})})]}),R&&(Q&&!_.onDownload?c.jsxs("a",{href:Q,target:"_blank",rel:"noopener noreferrer",download:te,className:N("flex flex-col items-center justify-center h-full w-full text-icon-theme rounded-lg border-2 border-line-secondary",K()),children:[c.jsx(Ln,{}),h==="horizontal"&&c.jsx(rn,{children:c.jsxs(Wt,{children:[c.jsx(It,{asChild:!0,children:c.jsx("div",{className:"text-sm mt-1 text-foreground-secondary w-full truncate text-center p-0.5",children:te})}),c.jsx(kt,{children:c.jsx("p",{children:te})})]})})]}):c.jsxs("button",{type:"button",onClick:ie,disabled:ee,className:N("flex flex-col items-center justify-center h-full w-full text-icon-theme rounded-lg border-2 border-line-secondary bg-transparent",K()),children:[ee?c.jsx(mr,{className:"h-6 w-6 animate-spin"}):c.jsx(Ln,{}),h==="horizontal"&&c.jsx(rn,{children:c.jsxs(Wt,{children:[c.jsx(It,{asChild:!0,children:c.jsx("div",{className:"text-sm mt-1 text-foreground-secondary w-full truncate text-center p-0.5",children:te})}),c.jsx(kt,{children:c.jsx("p",{children:te})})]})})]}))]});return c.jsxs("div",{className:N("relative select-none",!R&&"cursor-pointer",h==="vertical"?"grid grid-cols-[130px_1fr] items-center gap-4 w-full h-full":"",h==="horizontal"?Z():"",h==="horizontal"?K():""),children:[R?le:c.jsx(e3,{type:Y(T),src:Nn(T),name:T==null?void 0:T.fileName,onPrev:P(),onNext:z(),onRemove:(p||_.onRemove)&&(()=>q(_,B)),children:le}),h==="vertical"&&c.jsxs("div",{className:"flex flex-col justify-start flex-1 h-full py-2 group min-w-0 overflow-hidden",children:[c.jsxs("div",{className:"flex flex-row gap-2 items-center gap-2 pb-2",children:[c.jsx(rn,{children:c.jsxs(Wt,{children:[c.jsx(It,{asChild:!0,children:c.jsx("span",{className:"text-sm text-foreground-primary line-clamp-2 cursor-default",children:te})}),c.jsx(kt,{children:c.jsx("p",{children:te})})]})}),(p||_.onRemove)&&c.jsx("div",{onClick:()=>q(_,B),className:"opacity-0 group-hover:opacity-100 transition-opacity",children:c.jsx(z9,{className:"bg-background text-icon-fade-contrast cursor-pointer"})})]}),c.jsxs("span",{className:"text-sm text-foreground-quaternary",children:[re?Q1(re):0," ",S("mb")]})]}),_.inProgress&&c.jsx("div",{className:"absolute inset-0 flex items-center justify-center rounded-lg bg-background-primary/70",children:c.jsx(mr,{className:"h-6 w-6 animate-spin text-icon-theme"})}),h==="horizontal"&&!_.inProgress&&(p||_.onRemove)&&c.jsx("div",{onClick:()=>q(_,B),children:c.jsx(wo,{className:"absolute top-[2px] right-[2px] rounded-full bg-background text-destructive-foreground cursor-pointer"})})]},`${String(_.id)}-${B}`)})]})},GP=(e,n)=>{var t,r;return e.fileName||`${((t=dc(e))==null?void 0:t.split("/").pop())??"file"}.${((r=e.contentType)==null?void 0:r.split("/").pop())||(n==="video"?"mp4":n==="audio"?"mp3":n==="word"?"docx":n==="excel"?"xlsx":n==="archive"?"zip":"pdf")}`},fc=()=>N("relative flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-lg border border-line-primary bg-background-tertiary"),n3=()=>N("group flex min-w-[200px] max-w-[280px] shrink-0 items-center gap-2 rounded-xl border border-line-primary bg-background-secondary p-2 transition-colors hover:bg-background-primary-hover"),jP=({className:e,data:n=[],onRemove:t,title:r})=>{const{confirm:o}=cc(),{notifyError:a}=Es(),{t:s}=rt(),[i,u]=D.useState([]),d=_r(n),f=d.filter(v=>Pr.includes(Po(v))&&!!Nn(v)),[h,g]=D.useState(f[0]);D.useEffect(()=>{const v=_r(n).filter(w=>Pr.includes(Po(w))&&!!Nn(w));g(w=>w&&v.includes(w)?w:v[0])},[n]);const m=()=>{if(!h)return;const v=f[f.indexOf(h)-1];return v?()=>g(v):void 0},C=()=>{if(!h)return;const v=f[f.indexOf(h)+1];return v?()=>g(v):void 0},p=async(v,w)=>{var b;await o({description:s("confirmDeleteMedia"),confirmText:s("delete"),confirmType:"warning-filled"})&&((b=v.onRemove)!=null&&b.call(v)||(t==null||t(w)))};return d.length?c.jsx("div",{className:N("flex w-full gap-2 overflow-x-auto overflow-y-hidden pt-1 pb-0.5 [scrollbar-width:thin]",e),children:d.map((v,w)=>{var U;const y=Po(v),b=GP(v,y),S=v.size??((U=v.file)==null?void 0:U.size),M=S!=null?`${Q1(S)} ${s("mb")}`:"—",L=Nn(v),E=!Pr.includes(y)||!L,I=dc(v),k=String(v.id??w),O=i.includes(k),H=async()=>{if(!(!v.onDownload||O)){u(T=>[...T,k]);try{await v.onDownload()}catch(T){a(T instanceof Error?T.message:void 0)}finally{u(T=>T.filter(W=>W!==k))}}},V=c.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[c.jsx(rn,{children:c.jsxs(Wt,{children:[c.jsx(It,{asChild:!0,children:c.jsx("span",{className:"truncate text-left text-sm font-normal leading-5 text-foreground-primary",children:b})}),c.jsx(kt,{children:c.jsx("p",{children:b})})]})}),c.jsx("span",{className:"truncate text-left text-xs font-normal leading-4 text-foreground-quaternary",children:M})]}),Y=(t||v.onRemove)&&c.jsx("div",{className:"flex h-6 w-6 shrink-0 items-center justify-center self-start",children:c.jsx("button",{type:"button",className:N("flex size-6 items-center justify-center rounded-full bg-background-primary p-1 text-icon-fade-contrast opacity-0 transition-opacity","pointer-events-none group-hover:pointer-events-auto group-hover:opacity-100","focus-visible:pointer-events-auto focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),onClick:T=>{T.preventDefault(),T.stopPropagation(),p(v,w)},"aria-label":s("delete"),children:c.jsx(wo,{className:"size-4 shrink-0","aria-hidden":!0})})});if(E){const T=v.onDownload?c.jsx("button",{type:"button",onClick:()=>{H()},disabled:O,className:N(fc(),"text-icon-fade-contrast"),"aria-label":b,children:O?c.jsx(mr,{className:"size-5 shrink-0 animate-spin","aria-hidden":!0}):c.jsx(Ln,{className:"size-6 shrink-0","aria-hidden":!0})}):c.jsx("a",{href:I,target:"_blank",rel:"noopener noreferrer",download:b,className:N(fc(),"text-icon-fade-contrast"),"aria-label":b,children:c.jsx(Ln,{className:"size-6 shrink-0","aria-hidden":!0})});return c.jsxs("div",{className:n3(),children:[T,V,Y]},`${String(v.id)}-${w}`)}const $=y==="image"?L?c.jsx("img",{src:L,alt:"",className:"size-full object-cover",loading:"lazy"}):c.jsx(Ln,{className:"size-6 shrink-0 text-icon-fade-contrast","aria-hidden":!0}):y==="video"?c.jsx(k1,{className:"size-6 shrink-0 text-icon-fade-contrast","aria-hidden":!0}):c.jsx(I1,{className:"size-6 shrink-0 text-icon-fade-contrast","aria-hidden":!0});return c.jsxs("div",{className:n3(),children:[c.jsx(e3,{type:Po(h),src:Nn(h),name:h==null?void 0:h.fileName,onPrev:m(),onNext:C(),onRemove:(t||v.onRemove)&&(async()=>{await p(v,w)}),children:c.jsxs("button",{type:"button",className:"relative shrink-0 cursor-pointer border-0 bg-transparent p-0 text-left",onClick:()=>g(v),"aria-label":b,children:[y==="image"&&r&&c.jsx("span",{className:"absolute bottom-0.5 left-0.5 z-[1] max-w-[calc(100%-4px)] truncate rounded-md bg-background-on-image px-1 text-[10px] text-foreground-on-image",children:r}),c.jsx("div",{className:N(fc(),y!=="image"&&"text-icon-fade-contrast"),children:$})]})}),V,Y]},`${String(v.id)}-${w}`)})}):null},YP=({className:e,title:n,titleActions:t,leftMeta:r,meta:o,actions:a,onBack:s,onNext:i,onPrevious:u})=>{const d=i||u;return c.jsxs("div",{className:N("w-full flex justify-between items-center",e),children:[c.jsxs("div",{className:"flex gap-2 items-center",children:[s&&c.jsx("div",{className:"p-2 cursor-pointer hover:text-foreground-primary-disabled",onClick:s,children:c.jsx(v1,{})}),d&&c.jsx("div",{className:N("p-2 cursor-pointer hover:text-foreground-primary-disabled",!u&&"opacity-50 pointer-events-none"),onClick:u,children:c.jsx(ao,{})}),d&&c.jsx("div",{className:N("p-2 cursor-pointer hover:text-foreground-primary-disabled",!i&&"opacity-50 pointer-events-none"),onClick:i,children:c.jsx(Vn,{})}),r&&c.jsx("div",{className:"text-[28px] font-medium tracking-[0.18px] text-foreground-primary opacity-50",children:r}),c.jsx("div",{className:"text-[28px] font-medium tracking-[0.18px] text-foreground-primary flex items-center gap-1",children:n}),c.jsx("div",{className:"text-[28px] font-medium tracking-[0.18px] text-foreground-theme",children:o}),c.jsx("div",{className:"flex gap-3 items-center ml-2",children:t})]}),c.jsx("div",{className:"flex gap-4",children:a})]})},UP=({headerSlot:e,filterSlot:n,contentSlot:t,contentSlotOverflowHidden:r=!1})=>c.jsxs("div",{className:N("relative flex min-h-0 flex-1 flex-col pt-4 gap-4",r?"overflow-hidden":"overflow-y-auto"),children:[(e||n)&&c.jsxs("div",{className:"flex-shrink-0 px-6 flex flex-col gap-4",children:[e&&c.jsx("div",{children:e}),n&&c.jsx("div",{children:n})]}),t&&c.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:t})]});var Ms="Tabs",[qP]=nt(Ms,[br]),r3=br(),[KP,hc]=qP(Ms),o3=l.forwardRef((e,n)=>{const{__scopeTabs:t,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:u="automatic",...d}=e,f=ar(i),[h,g]=ht({prop:r,onChange:o,defaultProp:a??"",caller:Ms});return c.jsx(KP,{scope:t,baseId:qe(),value:h,onValueChange:g,orientation:s,dir:f,activationMode:u,children:c.jsx(oe.div,{dir:f,"data-orientation":s,...d,ref:n})})});o3.displayName=Ms;var a3="TabsList",s3=l.forwardRef((e,n)=>{const{__scopeTabs:t,loop:r=!0,...o}=e,a=hc(a3,t),s=r3(t);return c.jsx(Xl,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:c.jsx(oe.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:n})})});s3.displayName=a3;var i3="TabsTrigger",l3=l.forwardRef((e,n)=>{const{__scopeTabs:t,value:r,disabled:o=!1,...a}=e,s=hc(i3,t),i=r3(t),u=d3(s.baseId,r),d=f3(s.baseId,r),f=r===s.value;return c.jsx(Ql,{asChild:!0,...i,focusable:!o,active:f,children:c.jsx(oe.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...a,ref:n,onMouseDown:ne(e.onMouseDown,h=>{!o&&h.button===0&&h.ctrlKey===!1?s.onValueChange(r):h.preventDefault()}),onKeyDown:ne(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&s.onValueChange(r)}),onFocus:ne(e.onFocus,()=>{const h=s.activationMode!=="manual";!f&&!o&&h&&s.onValueChange(r)})})})});l3.displayName=i3;var c3="TabsContent",u3=l.forwardRef((e,n)=>{const{__scopeTabs:t,value:r,forceMount:o,children:a,...s}=e,i=hc(c3,t),u=d3(i.baseId,r),d=f3(i.baseId,r),f=r===i.value,h=l.useRef(f);return l.useEffect(()=>{const g=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(g)},[]),c.jsx(Ke,{present:o||f,children:({present:g})=>c.jsx(oe.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":u,hidden:!g,id:d,tabIndex:0,...s,ref:n,style:{...e.style,animationDuration:h.current?"0s":void 0},children:g&&a})})});u3.displayName=c3;function d3(e,n){return`${e}-trigger-${n}`}function f3(e,n){return`${e}-content-${n}`}var XP=o3,h3=s3,g3=l3,p3=u3;const QP=ln("inline-flex items-center justify-center rounded-lg bg-background-secondary p-1 text-foreground",{variants:{size:{default:"h-9",icon:"h-9"}},defaultVariants:{size:"default"}}),JP=ln("inline-flex gap-1 items-center justify-center whitespace-nowrap rounded-lg text-sm font-normal ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 text-icon-contrast [&_svg]:text-icon-contrast data-[state=active]:bg-background-contrast-fade data-[state=active]:text-foreground-primary data-[state=active]:[&_svg]:text-foreground-primary data-[state=active]:shadow-sm",{variants:{size:{default:"h-7 px-4 py-1.5",icon:"h-7 px-1 py-1.5"}},defaultVariants:{size:"default"}}),m3=XP,Ls=l.forwardRef(({className:e,size:n,...t},r)=>c.jsx(h3,{ref:r,className:N(QP({size:n}),e),...t}));Ls.displayName=h3.displayName;const _o=l.forwardRef(({className:e,size:n,...t},r)=>c.jsx(g3,{ref:r,className:N(JP({size:n}),e),...t}));_o.displayName=g3.displayName;const v3=l.forwardRef(({className:e,...n},t)=>c.jsx(p3,{ref:t,className:N("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...n}));v3.displayName=p3.displayName,ve.z.setErrorMap(o6.makeZodI18nMap({ns:["zod","translation"]}));const gc=(e,n,{count:t}={})=>[e,{params:{i18n:{key:n,values:{count:t?String(t):""}}}}],e_=e=>typeof e=="string"?e.trim().length>0:!!e,C3=(e,{count:n}={})=>gc(e_,e,{count:n}),t_=(e,n)=>n?typeof e=="string"?e.length>=n:typeof e=="number"?e>=n:!0:!0,n_=(e,{count:n}={})=>gc(t=>t_(t,n),e,{count:n});function w3(e,n,t){function r(i,u){var d;Object.defineProperty(i,"_zod",{value:i._zod??{},enumerable:!1}),(d=i._zod).traits??(d.traits=new Set),i._zod.traits.add(e),n(i,u);for(const f in s.prototype)f in i||Object.defineProperty(i,f,{value:s.prototype[f].bind(i)});i._zod.constr=s,i._zod.def=u}const o=(t==null?void 0:t.Parent)??Object;class a extends o{}Object.defineProperty(a,"name",{value:e});function s(i){var u;const d=t!=null&&t.Parent?new a:this;r(d,i),(u=d._zod).deferred??(u.deferred=[]);for(const f of d._zod.deferred)f();return d}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:i=>{var u,d;return t!=null&&t.Parent&&i instanceof t.Parent?!0:(d=(u=i==null?void 0:i._zod)==null?void 0:u.traits)==null?void 0:d.has(e)}}),Object.defineProperty(s,"name",{value:e}),s}class r_ extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const o_={};function y3(e){return o_}function a_(e,n){return typeof n=="bigint"?n.toString():n}const b3=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Ns(e){return typeof e=="string"?e:e==null?void 0:e.message}function x3(e,n,t){var o,a,s,i,u,d;const r={...e,path:e.path??[]};if(!e.message){const f=Ns((s=(a=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:a.error)==null?void 0:s.call(a,e))??Ns((i=n==null?void 0:n.error)==null?void 0:i.call(n,e))??Ns((u=t.customError)==null?void 0:u.call(t,e))??Ns((d=t.localeError)==null?void 0:d.call(t,e))??"Invalid input";r.message=f}return delete r.inst,delete r.continue,n!=null&&n.reportInput||delete r.input,r}const S3=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(n,a_,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},s_=w3("$ZodError",S3),E3=w3("$ZodError",S3,{Parent:Error}),i_=(e=>(n,t,r,o)=>{const a=r?Object.assign(r,{async:!1}):{async:!1},s=n._zod.run({value:t,issues:[]},a);if(s instanceof Promise)throw new r_;if(s.issues.length){const i=new((o==null?void 0:o.Err)??e)(s.issues.map(u=>x3(u,a,y3())));throw b3(i,o==null?void 0:o.callee),i}return s.value})(E3),l_=(e=>async(n,t,r,o)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let s=n._zod.run({value:t,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){const i=new((o==null?void 0:o.Err)??e)(s.issues.map(u=>x3(u,a,y3())));throw b3(i,o==null?void 0:o.callee),i}return s.value})(E3);function M3(e,n){try{var t=e()}catch(r){return n(r)}return t&&t.then?t.then(void 0,n):t}function c_(e,n){for(var t={};e.length;){var r=e[0],o=r.code,a=r.message,s=r.path.join(".");if(!t[s])if("unionErrors"in r){var i=r.unionErrors[0].errors[0];t[s]={message:i.message,type:i.code}}else t[s]={message:a,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(f){return f.errors.forEach(function(h){return e.push(h)})}),n){var u=t[s].types,d=u&&u[r.code];t[s]=Qn.appendErrors(s,n,t,o,d?[].concat(d,r.message):r.message)}e.shift()}return t}function u_(e,n){for(var t={};e.length;){var r=e[0],o=r.code,a=r.message,s=r.path.join(".");if(!t[s])if(r.code==="invalid_union"&&r.errors.length>0){var i=r.errors[0][0];t[s]={message:i.message,type:i.code}}else t[s]={message:a,type:o};if(r.code==="invalid_union"&&r.errors.forEach(function(f){return f.forEach(function(h){return e.push(h)})}),n){var u=t[s].types,d=u&&u[r.code];t[s]=Qn.appendErrors(s,n,t,o,d?[].concat(d,r.message):r.message)}e.shift()}return t}function d_(e,n,t){if(t===void 0&&(t={}),function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def}(e))return function(r,o,a){try{return Promise.resolve(M3(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](r,n)).then(function(s){return a.shouldUseNativeValidation&&Bo.validateFieldsNatively({},a),{errors:{},values:t.raw?Object.assign({},r):s}})},function(s){if(function(i){return Array.isArray(i==null?void 0:i.issues)}(s))return{values:{},errors:Bo.toNestErrors(c_(s.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw s}))}catch(s){return Promise.reject(s)}};if(function(r){return"_zod"in r&&typeof r._zod=="object"}(e))return function(r,o,a){try{return Promise.resolve(M3(function(){return Promise.resolve((t.mode==="sync"?i_:l_)(e,r,n)).then(function(s){return a.shouldUseNativeValidation&&Bo.validateFieldsNatively({},a),{errors:{},values:t.raw?Object.assign({},r):s}})},function(s){if(function(i){return i instanceof s_}(s))return{values:{},errors:Bo.toNestErrors(u_(s.issues,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw s}))}catch(s){return Promise.reject(s)}};throw new Error("Invalid input: not a Zod schema")}const f_=e=>{const{title:n,description:t,confirmType:r="theme-filled",confirmText:o="OK",confirmHidden:a,cancelText:s,cancelHidden:i,input:u,inputPlaceholder:d,inputRequiredLabel:f,inputMaxLength:h,inputRequired:g,children:m,visible:C,onVisibleChange:p,onConfirm:v,onCancel:w}=e,{t:y}=rt(),b=!!(u||d),S=ve.z.object({inputValue:g?ve.z.string().refine(...C3("fillField")):ve.z.string()}),M=Qn.useForm({resolver:d_(S),defaultValues:{inputValue:""}});D.useEffect(()=>{C||M.reset({inputValue:""})},[C]);const L=k=>{p==null||p(k),k||M.reset({inputValue:""})},E=k=>{v==null||v(k==null?void 0:k.inputValue)},I=()=>t===null||t===""?null:c.jsxs(c.Fragment,{children:[s4(t??y("confirmAction")),g&&c.jsx("span",{className:"text-foreground-error",children:"*"})]});return c.jsxs(Za,{open:C,onOpenChange:L,children:[c.jsx(vl,{children:m}),c.jsx(no,{className:"w-[460px]",children:c.jsxs($5,{...M,children:[c.jsx(wl,{children:c.jsx(Wa,{children:n||y("warning")})}),c.jsxs(xl,{className:N(d&&"space-y-2",u&&"flex flex-row items-center space-y-0 space-x-4"),children:[c.jsx(bl,{className:u||d?"text-foreground-secondary":"",children:I()}),b&&c.jsx(z5,{control:M.control,name:"inputValue",render:({field:k,fieldState:O})=>c.jsxs(Wn,{children:[c.jsx(Rn,{children:u?c.jsx(u,{...k}):c.jsx(J1,{rows:4,placeholder:d,maxLength:h,autoFocus:!0,...k})}),O.error&&c.jsx(g1,{children:f})]})})]}),c.jsxs(yl,{align:"end",children:[!i&&c.jsx(P0,{"aria-label":"Close",asChild:!0,children:c.jsx(Ze,{type:"button",variant:"fade-contrast-outlined",size:"sm",onClick:w,children:s||y("cancellation")})}),!a&&c.jsx(Ze,{variant:r,size:"sm",onClick:b?M.handleSubmit(E):()=>E(),children:o})]})]})})]})},L3="p-2 w-48 border-0 shadow-lg rounded-xl bg-[hsl(var(--background-popover-menu))] [&_*]:text-[hsl(var(--text-popover-menu))]",h_="justify-start gap-2 px-2 min-w-0 text-[hsl(var(--text-popover-menu))] hover:text-[hsl(var(--text-popover-menu))]",g_="text-sm truncate min-w-0 flex-1 text-[hsl(var(--text-popover-menu))]",p_="h-4 w-4 flex-shrink-0 text-[hsl(var(--text-popover-menu))]",N3=({children:e,itemVariant:n,LinkComponent:t,onChildClick:r})=>c.jsx("nav",{className:"flex flex-col gap-1.5",children:e.map((o,a)=>c.jsxs(t,{to:o.to??"#",className:N(h_,Pn({variant:o.variant||n(o),size:"sm"}),"text-[hsl(var(--text-popover-menu))] hover:text-[hsl(var(--text-popover-menu))] focus:text-[hsl(var(--text-popover-menu))] active:text-[hsl(var(--text-popover-menu))]",o.className),onClick:s=>{var i;o.to||s.preventDefault(),(i=o.onClick)==null||i.call(o),r()},children:[o.icon&&c.jsx(o.icon,{className:p_}),c.jsx("span",{className:g_,children:o.title}),o.label&&c.jsx("span",{className:"ml-auto flex-shrink-0 text-[hsl(var(--text-popover-menu))]",children:o.label})]},a))}),m_=({item:e,index:n,isCollapsed:t,itemVariant:r,LinkComponent:o})=>{const a=e.children&&e.children.length>0,[s,i]=D.useState(!1),u=g=>{g.preventDefault(),i(!s)},d=(g,m)=>{e.to||g.preventDefault(),m==null||m()},f=N(Pn({variant:e.variant||r(e),size:t?"icon":"sm"}),!t&&"justify-start gap-2 px-2 min-w-0 w-full",e.variant==="theme-filled"&&"justify-center",e.className),h=({children:g})=>c.jsx(O1,{children:c.jsxs(Wt,{delayDuration:0,children:[g,c.jsxs(kt,{side:"right",className:"flex items-center gap-4",children:[e.title,e.label&&c.jsx("span",{className:"ml-auto text-muted-foreground",children:e.label})]})]})},n);return t?a?c.jsx(h,{children:c.jsxs(zn,{open:s,onOpenChange:i,children:[c.jsx(It,{asChild:!0,children:c.jsx(Bn,{asChild:!0,children:c.jsxs("button",{className:f,onClick:u,children:[e.icon&&c.jsx(e.icon,{className:"h-6 w-6"}),c.jsx("span",{className:"sr-only",children:e.title})]})})}),c.jsx(Sn,{side:"right",align:"start",className:L3,children:c.jsx(N3,{children:e.children,itemVariant:r,LinkComponent:o,onChildClick:()=>i(!1)})})]})}):c.jsx(h,{children:c.jsx(It,{asChild:!0,children:c.jsxs(o,{to:e.to??"#",className:f,onClick:g=>d(g,e.onClick),children:[e.icon&&c.jsx(e.icon,{className:"h-6 w-6"}),c.jsx("span",{className:"sr-only",children:e.title})]})})}):a?c.jsxs(zn,{open:s,onOpenChange:i,children:[c.jsx(Bn,{asChild:!0,children:c.jsxs(Ze,{variant:e.variant||r(e),className:f,onClick:u,children:[e.icon&&c.jsx(e.icon,{className:"h-6 w-6 flex-shrink-0"}),c.jsx("span",{className:"text-sm tracking-[0.25px] animate-in fade-in truncate min-w-0 flex-1 text-left",children:e.title}),e.label&&c.jsx("span",{className:N("ml-auto flex-shrink-0",e.variant==="fade-contrast-filled"&&"text-background dark:text-white"),children:e.label}),c.jsx(M2,{className:"h-4 w-4 flex-shrink-0 transition-transform"})]})}),c.jsx(Sn,{side:"right",align:"start",className:L3,children:c.jsx(N3,{children:e.children,itemVariant:r,LinkComponent:o,onChildClick:()=>i(!1)})})]},n):c.jsxs(o,{to:e.to??"#",className:f,onClick:g=>d(g,e.onClick),children:[e.icon&&c.jsx(e.icon,{className:"h-6 w-6 flex-shrink-0"}),c.jsx("span",{className:"text-sm tracking-[0.25px] animate-in fade-in truncate min-w-0 flex-1",children:e.title}),e.label&&c.jsx("span",{className:N("ml-auto flex-shrink-0",e.variant==="fade-contrast-filled"&&"text-background dark:text-white"),children:e.label})]},n)};function P3(e){const{items:n,isCollapsed:t,itemVariant:r=a=>a.variant||"fade-contrast-filled",LinkComponent:o}=e;return c.jsx("div",{"data-collapsed":t,className:"group flex flex-col gap-4 py-4 data-[collapsed=true]:py-4",children:c.jsx("nav",{className:"grid gap-1.5 px-2 group-[[data-collapsed=true]]:justify-center group-[[data-collapsed=true]]:px-2",children:n.map((a,s)=>c.jsx(m_,{item:a,index:s,isCollapsed:t,itemVariant:r,LinkComponent:o},s))})})}function _3(){return c.jsx(Fn,{intent:"sidebar",className:"w-[calc(100%_-_24px)] ml-3"})}const I3=e=>{const{isCollapsed:n,navItems:t,projectName:r,linkComponent:o,profileNavSlot:a,expandableNavSlot:s,location:i,bottomSlot:u}=e,d=h=>{var y;if(!(i!=null&&i.pathname))return"nav-item";const g=i.pathname,m=String(h.to||""),C=g===m,p=m&&g.startsWith(m+"/"),v=(y=h.children)==null?void 0:y.some(b=>{const S=String(b.to||"");return S&&(g===S||g.startsWith(S+"/"))});return C||p||v?"nav-item-selected":"nav-item"},f=(t??[]).map((h,g)=>c.jsxs(D.Fragment,{children:[g!==0&&c.jsx(_3,{}),c.jsx(P3,{isCollapsed:n,items:h,itemVariant:d,LinkComponent:o,location:i})]},g));return c.jsxs("div",{className:N("bg-background-sidebar","flex flex-col h-screen"),children:[c.jsx("div",{className:N("text-sm px-2 leading-5 py-4 cursor-default whitespace-nowrap flex justify-normal",{"text-center justify-center":n}),children:r}),c.jsxs("div",{className:"overflow-y-auto flex-col flex-grow [scrollbar-width:none] [-webkit-scrollbar-width:none] [-webkit-scrollbar:0px] [-webkit-appearance:none]",style:{msHighContrastAdjust:"none"},children:[f,a]}),s&&c.jsxs("div",{className:"mt-auto",children:[c.jsx("div",{className:"px-2",children:u}),s]})]})};I3.displayName="NavPanel";const v_=({defaultValue:e,options:n,onClick:t})=>c.jsx(m3,{value:e,children:c.jsx(Ls,{className:"w-fit",children:n==null?void 0:n.map(r=>c.jsxs(_o,{value:r.value,onClick:()=>t==null?void 0:t(r.value),children:[r.icon,r.label]},r.value))})});var pc="Radio",[C_,k3]=nt(pc),[w_,y_]=C_(pc),T3=l.forwardRef((e,n)=>{const{__scopeRadio:t,name:r,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:u,form:d,...f}=e,[h,g]=l.useState(null),m=he(n,v=>g(v)),C=l.useRef(!1),p=h?d||!!h.closest("form"):!0;return c.jsxs(w_,{scope:t,checked:o,disabled:s,children:[c.jsx(oe.button,{type:"button",role:"radio","aria-checked":o,"data-state":H3(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:m,onClick:ne(e.onClick,v=>{o||u==null||u(),p&&(C.current=v.isPropagationStopped(),C.current||v.stopPropagation())})}),p&&c.jsx(V3,{control:h,bubbles:!C.current,name:r,value:i,checked:o,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});T3.displayName=pc;var D3="RadioIndicator",O3=l.forwardRef((e,n)=>{const{__scopeRadio:t,forceMount:r,...o}=e,a=y_(D3,t);return c.jsx(Ke,{present:r||a.checked,children:c.jsx(oe.span,{"data-state":H3(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:n})})});O3.displayName=D3;var b_="RadioBubbleInput",V3=l.forwardRef(({__scopeRadio:e,control:n,checked:t,bubbles:r=!0,...o},a)=>{const s=l.useRef(null),i=he(s,a),u=ca(t),d=sa(n);return l.useEffect(()=>{const f=s.current;if(!f)return;const h=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(h,"checked").set;if(u!==t&&m){const C=new Event("click",{bubbles:r});m.call(f,t),f.dispatchEvent(C)}},[u,t,r]),c.jsx(oe.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});V3.displayName=b_;function H3(e){return e?"checked":"unchecked"}var x_=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ps="RadioGroup",[S_]=nt(Ps,[br,k3]),A3=br(),F3=k3(),[E_,M_]=S_(Ps),$3=l.forwardRef((e,n)=>{const{__scopeRadioGroup:t,name:r,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:u,dir:d,loop:f=!0,onValueChange:h,...g}=e,m=A3(t),C=ar(d),[p,v]=ht({prop:a,defaultProp:o??null,onChange:h,caller:Ps});return c.jsx(E_,{scope:t,name:r,required:s,disabled:i,value:p,onValueChange:v,children:c.jsx(Xl,{asChild:!0,...m,orientation:u,dir:C,loop:f,children:c.jsx(oe.div,{role:"radiogroup","aria-required":s,"aria-orientation":u,"data-disabled":i?"":void 0,dir:C,...g,ref:n})})})});$3.displayName=Ps;var z3="RadioGroupItem",B3=l.forwardRef((e,n)=>{const{__scopeRadioGroup:t,disabled:r,...o}=e,a=M_(z3,t),s=a.disabled||r,i=A3(t),u=F3(t),d=l.useRef(null),f=he(n,d),h=a.value===o.value,g=l.useRef(!1);return l.useEffect(()=>{const m=p=>{x_.includes(p.key)&&(g.current=!0)},C=()=>g.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",C),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",C)}},[]),c.jsx(Ql,{asChild:!0,...i,focusable:!s,active:h,children:c.jsx(T3,{disabled:s,required:a.required,checked:h,...u,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:ne(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:ne(o.onFocus,()=>{var m;g.current&&((m=d.current)==null||m.click())})})})});B3.displayName=z3;var L_="RadioGroupIndicator",Z3=l.forwardRef((e,n)=>{const{__scopeRadioGroup:t,...r}=e,o=F3(t);return c.jsx(O3,{...o,...r,ref:n})});Z3.displayName=L_;var N_=$3,P_=B3,__=Z3;const W3=l.forwardRef(({className:e,...n},t)=>c.jsx(N_,{className:N("grid gap-2",e),...n,ref:t}));W3.displayName="RadioGroup";const R3=l.forwardRef(({className:e,...n},t)=>c.jsx(P_,{ref:t,className:N("aspect-square h-4 w-4 shrink-0 rounded-full border border-line-contrast data-[state=checked]:border-line-theme text-foreground ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:c.jsx(__,{className:"flex items-center justify-center",children:c.jsx(L2,{className:"h-2.5 w-2.5 fill-background-theme text-line-theme"})})}));R3.displayName="RadioGroupItem";const G3=({className:e,title:n,subtitle:t,variant:r,icon:o="bill-empty",actionText:a,onActionClick:s})=>{const i=u=>{switch(u){case"network-error":return c.jsx(R9,{});case"search-empty":return c.jsx(Y9,{});case"bill-empty":default:return c.jsx($9,{})}};return c.jsxs("div",{className:N("w-full h-full flex-1 flex flex-col items-center justify-center select-none",e),children:[c.jsx("span",{className:N("text-line-theme",r==="secondary"&&"text-line-secondary"),children:i(o)}),c.jsx("div",{className:N("mt-6 text-base font-medium",r==="secondary"&&"text-foreground-tertiary"),children:n}),c.jsx("div",{className:"mt-2 text-sm text-foreground-secondary",children:t}),a&&c.jsx(Ze,{variant:"theme-filled",className:"mt-4",onClick:s,children:a})]})},j3=({className:e,onRefetchClick:n})=>{const{t}=rt();return c.jsx(G3,{className:e,icon:"network-error",title:t("networkError"),subtitle:t("networkErrorDescription"),actionText:t("refetch"),onActionClick:n})},I_=()=>c.jsx(j3,{onRefetchClick:()=>window.location.reload()}),Y3=({children:e})=>c.jsx("div",{className:"w-full bg-background-secondary rounded-lg flex items-center justify-center h-12 text-foreground-secondary text-xs select-none",children:e}),U3=l.forwardRef(({className:e,label:n,actions:t,open:r=!0,...o},a)=>r?c.jsxs("div",{ref:a,style:{left:"calc(var(--sidebar-width, 0px) + 1rem)"},className:N("fixed bottom-[8px] right-4 flex h-[52px] items-center justify-between gap-4","rounded-[12px] border-0 bg-background-sidebar px-4 py-2 shadow-none",e),...o,children:[c.jsx("p",{className:"text-sm font-normal leading-5 tracking-[0.25px] text-foreground-white",children:n}),t&&c.jsx("div",{className:"flex items-center gap-2",children:t})]}):null);U3.displayName="BottomMenu";const k_=({title:e,tabs:n=[],orientation:t,previewsOrientation:r,hint:o,visibleSections:a,accepts:s,maxSizes:i,withCompress:u,onAdd:d,onRemove:f,showNoDataBanner:h=!0})=>{const{t:g}=rt(),[m,C]=D.useState(0),p=S=>n.findIndex(M=>M.label===S),v=async(S,M)=>{const L=await B4(S);await(d==null?void 0:d(L,M))},[w,y]=D.useState(n);D.useEffect(()=>{const S=(L,E)=>!(a!=null&&a.length)||(a==null?void 0:a.includes(L.label))||(a==null?void 0:a.includes(E)),M=n.filter(S).filter((L,E)=>!L.hideIfEmpty||L.items.length>0||!!(a!=null&&a.length)&&S(L,E));y(M)},[n,a]);const b=(w==null?void 0:w.filter(S=>S.items.length>0).length)>0;return c.jsxs(c.Fragment,{children:[e&&c.jsx("div",{className:"text-sm font-medium",children:e}),c.jsxs("div",{className:N("flex gap-5 mb-1",t==="horizontal"?"flex-row":"flex-col"),children:[!b&&!d&&h&&c.jsx(Y3,{children:g("noMediaFiles")}),(!!b||!!d)&&w.map(S=>c.jsxs("div",{className:N("flex flex-col items-start gap-1 rounded-lg w-auto cursor-default transition-colors",S.disableIfEmpty&&!S.items.length&&"pointer-events-none opacity-50"),onClick:()=>C(p(S.label)),children:[c.jsx("span",{className:"text-foreground-secondary font-normal text-sm flex",children:S.label}),c.jsx(t3,{data:S.items,max:S==null?void 0:S.maxFiles,hint:o,accepts:s,maxSizes:i,withCompress:u,orientation:r,onRemove:f?M=>f==null?void 0:f(M,m):void 0,onAdd:d&&S.canAdd?M=>v(M,p(S.label)):void 0})]},S.label))]})]})};function q3(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function T_(e,n,t){return n=_s(n),function(r,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}(r)}(e,Q3()?Reflect.construct(n,t||[],_s(e).constructor):n.apply(e,t))}function D_(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function O_(e,n,t){return Object.defineProperty(e,"prototype",{writable:!1}),e}function K3(e,n){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(u,d){if(u){if(typeof u=="string")return q3(u,d);var f={}.toString.call(u).slice(8,-1);return f==="Object"&&u.constructor&&(f=u.constructor.name),f==="Map"||f==="Set"?Array.from(u):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?q3(u,d):void 0}}(e))||n){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
137
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){i=!0,a=u},f:function(){try{s||t.return==null||t.return()}finally{if(i)throw a}}}}function X3(e,n,t){return(n=function(r){var o=function(a,s){if(typeof a!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var u=i.call(a,s);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(a)}(r,"string");return typeof o=="symbol"?o:o+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function _s(e){return _s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_s(e)}function V_(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&mc(e,n)}function Q3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q3=function(){return!!e})()}function J3(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,r)}return t}function Is(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?J3(Object(t),!0).forEach(function(r){X3(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J3(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function H_(e,n){if(e==null)return{};var t,r,o=function(s,i){if(s==null)return{};var u={};for(var d in s)if({}.hasOwnProperty.call(s,d)){if(i.includes(d))continue;u[d]=s[d]}return u}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.includes(t)||{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function mc(e,n){return mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},mc(e,n)}function Io(e,n){var t,r=n.replacementChars,o=n.replacement,a=n.separate,s=r,i="",u=K3(e);try{for(u.s();!(t=u.n()).done;){var d,f=t.value,h=!Object.prototype.hasOwnProperty.call(o,f)&&((d=o[s[0]])===null||d===void 0?void 0:d.test(f));(a&&f===s[0]||h)&&(s=s.slice(1),i+=f)}}catch(g){u.e(g)}finally{u.f()}return i}function e8(e,n){var t,r=n.mask,o=n.replacement,a=n.separate,s=n.showMask,i=0,u="",d=K3(r);try{for(d.s();!(t=d.n()).done;){var f=t.value;if(!s&&e[i]===void 0)break;Object.prototype.hasOwnProperty.call(o,f)&&e[i]!==void 0?u+=e[i++]:u+=f}}catch(g){d.e(g)}finally{d.f()}if(a&&!s){for(var h=r.length-1;h>=0&&u[h]===r[h];h--);u=u.slice(0,h+1)}return u}function t8(e,n){for(var t=n.mask,r=n.replacement,o=[],a=0;a<t.length;a++){var s,i=(s=e[a])!==null&&s!==void 0?s:t[a],u=Object.prototype.hasOwnProperty.call(r,i)?"replacement":e[a]!==void 0&&e[a]!==t[a]?"input":"mask";o.push({type:u,value:i,index:a})}return o}function Ir(e){return e.length>0?X3({},e,/./):{}}function vc(e,n){for(var t=n.start,r=t===void 0?0:t,o=n.end,a=n.mask,s=n.replacement,i=n.separate,u=e.slice(r,o),d=a.slice(r,o),f="",h=0;h<d.length;h++){var g=Object.prototype.hasOwnProperty.call(s,d[h]);g&&u[h]!==void 0&&u[h]!==d[h]?f+=u[h]:g&&i&&(f+=d[h])}return f}function n8(e,n){var t=n.mask,r=n.replacement,o=typeof r=="string"?Ir(r):r,a=RegExp("[^".concat(Object.keys(o).join(""),"]"),"g");return e8(Io(e,{replacementChars:t.replace(a,""),replacement:o,separate:!1}),{mask:t,replacement:o,separate:!1,showMask:!1})}function A_(e,n){var t=n.mask,r=n.replacement,o=typeof r=="string"?Ir(r):r,a=vc(e,{mask:t,replacement:o,separate:!1}),s=RegExp("[^".concat(Object.keys(o).join(""),"]"),"g");return Io(a,{replacementChars:t.replace(s,""),replacement:o,separate:!1})}function F_(e,n){var t=n.mask,r=n.replacement,o=typeof r=="string"?Ir(r):r;return t8(n8(e,{mask:t,replacement:o}),{mask:t,replacement:o})}var $_=["[","]","\\","/","^","$",".","|","?","*","+","(",")","{","}"];function r8(e){return $_.includes(e)?"\\".concat(e):e}function z_(e,n){for(var t=n.mask,r=n.replacement,o=typeof r=="string"?Ir(r):r,a=e==="partial"||e==="partial-inexact",s=e==="full"||e==="partial",i="",u=0;u<t.length;u++){var d=t[u];u===0&&(i="^"),a&&(i+="("),i+=Object.prototype.hasOwnProperty.call(o,d)?"".concat(s?"(?!".concat(r8(d),")"):"","(").concat(o[d].source,")"):r8(d),u===t.length-1&&(a&&(i+=")?".repeat(t.length)),i+="$")}return i}function B_(e,n){return new Proxy(e,{set:function(t,r,o){return r==="current"&&(o!==e.current&&(e.current!==null&&n.unregister(e.current),o!==null&&n.register(o)),t[r]=o,!0)}})}function Z_(e,n,t){return n=ko(n),function(r,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}(r)}(e,Cc()?Reflect.construct(n,t||[],ko(e).constructor):n.apply(e,t))}function o8(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function a8(e,n,t){return Object.defineProperty(e,"prototype",{writable:!1}),e}function W_(e,n,t){return(n=function(r){var o=function(a,s){if(typeof a!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var u=i.call(a,s);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(a)}(r,"string");return typeof o=="symbol"?o:o+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ko(e){return ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ko(e)}function R_(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&To(e,n)}function Cc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cc=function(){return!!e})()}function s8(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,r)}return t}function i8(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?s8(Object(t),!0).forEach(function(r){W_(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s8(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function G_(e,n){if(e==null)return{};var t,r,o=function(s,i){if(s==null)return{};var u={};for(var d in s)if({}.hasOwnProperty.call(s,d)){if(i.includes(d))continue;u[d]=s[d]}return u}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.includes(t)||{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function To(e,n){return To=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},To(e,n)}function wc(e){var n=typeof Map=="function"?new Map:void 0;return wc=function(t){if(t===null||!function(o){try{return Function.toString.call(o).indexOf("[native code]")!==-1}catch{return typeof o=="function"}}(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(n!==void 0){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return function(o,a,s){if(Cc())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,a);var u=new(o.bind.apply(o,i));return s&&To(u,s.prototype),u}(t,arguments,ko(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),To(r,t)},wc(e)}var Do=function(e){function n(t){var r;return o8(this,n),(r=Z_(this,n,[t])).name="SyntheticChangeError",r}return R_(n,e),a8(n)}(wc(Error)),l8,j_=["options"],c8=["text","email","tel","search","url"],u8=a8(function e(n){var t=n.init,r=n.tracking;o8(this,e);var o=new WeakMap;this.register=function(a){var s;if(c8.includes(a.type)){var i=(s=a._wrapperState)!==null&&s!==void 0?s:{},u=i.initialValue,d=u===void 0?"":u,f=i.controlled,h=f!==void 0&&f,g=t({initialValue:a.value||d,controlled:h}),m=g.value,C=g.options,p={value:m,options:C,fallbackOptions:C},v={id:-1,cachedId:-1},w={value:"",selectionStart:0,selectionEnd:0},y=Object.getOwnPropertyDescriptor("_valueTracker"in a?a:HTMLInputElement.prototype,"value");Object.defineProperty(a,"value",i8(i8({},y),{},{set:function(L){var E;w.value=L,y==null||(E=y.set)===null||E===void 0||E.call(a,L)}})),a.value=m;var b=function(){var L=function(){var E,I;w.selectionStart=(E=a.selectionStart)!==null&&E!==void 0?E:0,w.selectionEnd=(I=a.selectionEnd)!==null&&I!==void 0?I:0,v.id=window.setTimeout(L)};v.id=window.setTimeout(L)},S=function(){window.clearTimeout(v.id),v.id=-1,v.cachedId=-1},M=function(L){try{var E,I;if(v.cachedId===v.id)throw new Do("The input selection has not been updated.");v.cachedId=v.id;var k=a.value,O=a.selectionStart,H=a.selectionEnd;if(O===null||H===null)throw new Do("The selection attributes have not been initialized.");var V,Y=w.value;if(L.inputType===void 0&&(w.selectionStart=0,w.selectionEnd=Y.length),O>w.selectionStart?V="insert":O<=w.selectionStart&&O<w.selectionEnd?V="deleteBackward":O===w.selectionEnd&&k.length<Y.length&&(V="deleteForward"),V===void 0||(V==="deleteBackward"||V==="deleteForward")&&k.length>Y.length)throw new Do("Input type detection error.");var $="",U=w.selectionStart,T=w.selectionEnd;if(V==="insert")$=k.slice(w.selectionStart,O);else{var W=Y.length-k.length;U=O,T=O+W}p.value!==Y?p.options=p.fallbackOptions:p.fallbackOptions=p.options;var P=p.options,z=r({inputType:V,previousValue:Y,previousOptions:P,value:k,addedValue:$,changeStart:U,changeEnd:T,selectionStart:O,selectionEnd:H}),q=z.options,K=G_(z,j_);a.value=K.value,a.setSelectionRange(K.selectionStart,K.selectionEnd),p.value=K.value,p.options=q,w.selectionStart=K.selectionStart,w.selectionEnd=K.selectionEnd,(E=a._valueTracker)===null||E===void 0||(I=E.setValue)===null||I===void 0||I.call(E,Y)}catch(Z){if(a.value=w.value,a.setSelectionRange(w.selectionStart,w.selectionEnd),L.preventDefault(),L.stopPropagation(),Z.name!=="SyntheticChangeError")throw Z}};document.activeElement===a&&b(),a.addEventListener("focus",b),a.addEventListener("blur",S),a.addEventListener("input",M),o.set(a,{onFocus:b,onBlur:S,onInput:M})}else process.env.NODE_ENV!=="production"&&console.warn("Warn: The input element type does not match one of the types: ".concat(c8.join(", "),"."))},this.unregister=function(a){var s=o.get(a);s!==void 0&&(a.removeEventListener("focus",s.onFocus),a.removeEventListener("blur",s.onBlur),a.removeEventListener("input",s.onInput),o.delete(a))}});l8=u8,Object.defineProperty(l8.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Input"});var yc=function(e){return function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return new e("".concat(t.join(`
|
|
135
|
+
color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,t==null?void 0:t.key)}return t!=null&&t.onChange&&!(a&&t.skipInitialOnChange)&&t.onChange(o),a=!1,o}return s.updateDeps=i=>{r=i},s}function T9(e,n){if(e===void 0)throw new Error("Unexpected undefined");return e}const wE=(e,n)=>Math.abs(e-n)<1.01,yE=(e,n,t)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>n.apply(this,o),t)}},D9=e=>{const{offsetWidth:n,offsetHeight:t}=e;return{width:n,height:t}},bE=e=>e,xE=e=>{const n=Math.max(e.startIndex-e.overscan,0),t=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=n;o<=t;o++)r.push(o);return r},SE=(e,n)=>{const t=e.scrollElement;if(!t)return;const r=e.targetWindow;if(!r)return;const o=s=>{const{width:i,height:u}=s;n({width:Math.round(i),height:Math.round(u)})};if(o(D9(t)),!r.ResizeObserver)return()=>{};const a=new r.ResizeObserver(s=>{const i=()=>{const u=s[0];if(u!=null&&u.borderBoxSize){const d=u.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(D9(t))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return a.observe(t,{box:"border-box"}),()=>{a.unobserve(t)}},O9={passive:!0},V9=typeof window>"u"?!0:"onscrollend"in window,EE=(e,n)=>{const t=e.scrollElement;if(!t)return;const r=e.targetWindow;if(!r)return;let o=0;const a=e.options.useScrollendEvent&&V9?()=>{}:yE(r,()=>{n(o,!1)},e.options.isScrollingResetDelay),s=f=>()=>{const{horizontal:h,isRtl:g}=e.options;o=h?t.scrollLeft*(g&&-1||1):t.scrollTop,a(),n(o,f)},i=s(!0),u=s(!1);t.addEventListener("scroll",i,O9);const d=e.options.useScrollendEvent&&V9;return d&&t.addEventListener("scrollend",u,O9),()=>{t.removeEventListener("scroll",i),d&&t.removeEventListener("scrollend",u)}},ME=(e,n,t)=>{if(n!=null&&n.borderBoxSize){const r=n.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return e[t.options.horizontal?"offsetWidth":"offsetHeight"]},LE=(e,{adjustments:n=0,behavior:t},r)=>{var o,a;const s=e+n;(a=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:t})};class NE{constructor(n){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(o=>{o.forEach(a=>{const s=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),t=null},observe:o=>{var a;return(a=r())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=r())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,o])=>{typeof o>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:bE,rangeExtractor:xE,onChange:()=>{},measureElement:ME,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var r,o;(o=(r=this.options).onChange)==null||o.call(r,this,t)},this.maybeNotify=Lr(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=a,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,r)=>{const o=new Map,a=new Map;for(let s=r-1;s>=0;s--){const i=t[s];if(o.has(i.lane))continue;const u=a.get(i.lane);if(u==null||i.end>u.end?a.set(i.lane,i):i.end<u.end&&o.set(i.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,i)=>s.end===i.end?s.index-i.index:s.end-i.end)[0]:void 0},this.getMeasurementOptions=Lr(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(t,r,o,a,s,i)=>(this.prevLanes!==void 0&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s,lanes:i}),{key:!1}),this.getMeasurements=Lr(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s,lanes:i},u)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>t)for(const g of this.laneAssignments.keys())g>=t&&this.laneAssignments.delete(g);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(g=>{this.itemSizeCache.set(g.key,g.size)}));const d=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===t&&(this.lanesSettling=!1);const f=this.measurementsCache.slice(0,d),h=new Array(i).fill(void 0);for(let g=0;g<d;g++){const m=f[g];m&&(h[m.lane]=g)}for(let g=d;g<t;g++){const m=a(g),C=this.laneAssignments.get(g);let p,v;if(C!==void 0&&this.options.lanes>1){p=C;const S=h[p],M=S!==void 0?f[S]:void 0;v=M?M.end+this.options.gap:r+o}else{const S=this.options.lanes===1?f[g-1]:this.getFurthestMeasurement(f,g);v=S?S.end+this.options.gap:r+o,p=S?S.lane:g%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(g,p)}const w=u.get(m),y=typeof w=="number"?w:this.options.estimateSize(g),b=v+y;f[g]={index:g,start:v,size:y,end:b,key:m,lane:p},h[p]=g}return this.measurementsCache=f,f},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Lr(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,r,o,a)=>this.range=t.length>0&&r>0?PE({measurements:t,outerSize:r,scrollOffset:o,lanes:a}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Lr(()=>{let t=null,r=null;const o=this.calculateRange();return o&&(t=o.startIndex,r=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,r]},(t,r,o,a,s)=>a===null||s===null?[]:t({startIndex:a,endIndex:s,overscan:r,count:o}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=t=>{const r=this.options.indexAttribute,o=t.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{const o=this.indexFromElement(t),a=this.measurementsCache[o];if(!a)return;const s=a.key,i=this.elementsCache.get(s);i!==t&&(i&&this.observer.unobserve(i),this.observer.observe(t),this.elementsCache.set(s,t)),t.isConnected&&this.resizeItem(o,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{const o=this.measurementsCache[t];if(!o)return;const a=this.itemSizeCache.get(o.key)??o.size,s=r-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",s),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(t,void 0)},this.getVirtualItems=Lr(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,r)=>{const o=[];for(let a=0,s=t.length;a<s;a++){const i=t[a],u=r[i];o.push(u)}return o},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const r=this.getMeasurements();if(r.length!==0)return T9(r[H9(0,r.length-1,o=>T9(r[o]).start,t)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const t=this.scrollElement.document.documentElement;return this.options.horizontal?t.scrollWidth-this.scrollElement.innerWidth:t.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(t,r,o=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),s=this.getScrollOffset();r==="auto"&&(r=t>=s+a?"end":"start"),r==="center"?t+=(o-a)/2:r==="end"&&(t-=a);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const o=this.measurementsCache[t];if(!o)return;const a=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+a-this.options.scrollPaddingEnd)r="end";else if(o.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];if(r==="end"&&t===this.options.count-1)return[this.getMaxScrollOffset(),r];const i=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,r,o.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:r="start",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(t,{align:r="auto",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1)),this.currentScrollToIndex=t;let a=0;const s=10,i=d=>{if(!this.targetWindow)return;const f=this.getOffsetForIndex(t,d);if(!f){console.warn("Failed to get offset for index:",t);return}const[h,g]=f;this._scrollToOffset(h,{adjustments:void 0,behavior:o}),this.targetWindow.requestAnimationFrame(()=>{const m=()=>{if(this.currentScrollToIndex!==t)return;const C=this.getScrollOffset(),p=this.getOffsetForIndex(t,g);if(!p){console.warn("Failed to get offset for index:",t);return}wE(p[0],C)||u(g)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(m):m()})},u=d=>{this.targetWindow&&this.currentScrollToIndex===t&&(a++,a<s?(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("Schedule retry",a,s),this.targetWindow.requestAnimationFrame(()=>i(d))):console.warn(`Failed to scroll to index ${t} after ${s} attempts.`))};i(r)},this.scrollBy=(t,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var t;const r=this.getMeasurements();let o;if(r.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=((t=r[r.length-1])==null?void 0:t.end)??0;else{const a=Array(this.options.lanes).fill(null);let s=r.length-1;for(;s>=0&&a.some(i=>i===null);){const i=r[s];a[i.lane]===null&&(a[i.lane]=i.end),s--}o=Math.max(...a.filter(i=>i!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:o})=>{this.options.scrollToFn(t,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(n)}}const H9=(e,n,t,r)=>{for(;e<=n;){const o=(e+n)/2|0,a=t(o);if(a<r)e=o+1;else if(a>r)n=o-1;else return o}return e>0?e-1:0};function PE({measurements:e,outerSize:n,scrollOffset:t,lanes:r}){const o=e.length-1,a=u=>e[u].start;if(e.length<=r)return{startIndex:0,endIndex:o};let s=H9(0,o,a,t),i=s;if(r===1)for(;i<o&&e[i].end<t+n;)i++;else if(r>1){const u=Array(r).fill(0);for(;i<o&&u.some(f=>f<t+n);){const f=e[i];u[f.lane]=f.end,i++}const d=Array(r).fill(t+n);for(;s>=0&&d.some(f=>f>=t);){const f=e[s];d[f.lane]=f.start,s--}s=Math.max(0,s-s%r),i=Math.min(o,i+(r-1-i%r))}return{startIndex:s,endIndex:i}}const A9=typeof document<"u"?l.useLayoutEffect:l.useEffect;function _E({useFlushSync:e=!0,...n}){const t=l.useReducer(()=>({}),{})[1],r={...n,onChange:(a,s)=>{var i;e&&s?Yt.flushSync(t):t(),(i=n.onChange)==null||i.call(n,a,s)}},[o]=l.useState(()=>new NE(r));return o.setOptions(r),A9(()=>o._didMount(),[]),A9(()=>o._willUpdate()),o}function IE(e){return _E({observeElementRect:SE,observeElementOffset:EE,scrollToFn:LE,...e})}const kE=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM5.59619 7.83594V8.14795C5.59619 9.88379 6.42676 11.1055 7.97803 11.1055C9.61279 11.1055 10.395 9.75635 10.395 8.14795V7.83594C10.395 6.08691 9.56885 4.896 8.01318 4.896C6.4707 4.896 5.59619 6.1001 5.59619 7.83594ZM7.17383 8.14355V7.84033C7.17383 6.67578 7.49902 6.13965 7.99561 6.13965C8.49219 6.13965 8.82178 6.68457 8.82178 7.84033V8.14355C8.82178 9.30371 8.49219 9.86182 7.99561 9.86182C7.49902 9.86182 7.17383 9.30811 7.17383 8.14355Z",fill:"currentColor"})),TE=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM7.70996 6.4209V10.2046C7.70996 10.8154 8.06592 11.0352 8.49219 11.0352C8.92285 11.0352 9.27002 10.8154 9.27002 10.2046V5.91113C9.27002 5.41895 8.98877 4.96631 8.34717 4.96631C8.03076 4.96631 7.68359 5.07617 7.33643 5.2915L6.65088 5.73535C6.42236 5.88037 6.23779 6.06934 6.23779 6.3418C6.23779 6.63623 6.43115 6.88232 6.76953 6.88232C6.92773 6.88232 7.05957 6.82959 7.30566 6.68018L7.69678 6.4209H7.70996Z",fill:"currentColor"})),DE=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM6.4751 9.36963C6.06201 9.76514 5.84229 10.0376 5.84229 10.354C5.84229 10.6836 6.0752 11 6.58496 11H9.604C10.0522 11 10.3203 10.7715 10.3203 10.3848C10.3203 10.0068 10.0522 9.76514 9.604 9.76514H7.89014V9.69922L9.07666 8.54346C9.63477 8.00732 10.0962 7.42725 10.0962 6.6582C10.0962 5.62549 9.26123 4.896 7.94727 4.896C6.49707 4.896 5.77637 5.78809 5.77637 6.45605C5.77637 6.86475 6.05322 7.10205 6.42236 7.10205C6.7124 7.10205 6.86182 6.95264 6.98486 6.79883C7.00304 6.77175 7.02106 6.74436 7.03912 6.7169C7.23506 6.41905 7.43621 6.11328 7.89893 6.11328C8.36035 6.11328 8.60645 6.4165 8.60645 6.78125C8.60645 7.20752 8.25049 7.58984 7.93848 7.89746L6.4751 9.36963Z",fill:"currentColor"})),OE=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM6.34766 9.08838C5.94336 9.08838 5.68848 9.36523 5.68848 9.73438C5.68848 10.4727 6.69482 11.1055 7.93408 11.1055C9.21289 11.1055 10.3335 10.4551 10.3335 9.29053C10.3335 8.39844 9.68311 7.91064 9.08545 7.8667V7.7876C9.53809 7.73486 10.1709 7.31299 10.1709 6.51318C10.1709 5.52002 9.19531 4.896 7.93408 4.896C6.60254 4.896 5.74121 5.59473 5.74121 6.28467C5.74121 6.67578 6.03125 6.89551 6.40039 6.89551C6.66406 6.89551 6.81787 6.77686 6.9541 6.62744C6.96237 6.61792 6.97065 6.60837 6.97894 6.5988C7.20417 6.33884 7.44148 6.06494 7.90771 6.06494C8.37793 6.06494 8.68994 6.3374 8.68994 6.70215C8.68994 7.06689 8.37354 7.34814 7.91211 7.34814H7.4375C7.22656 7.34814 6.87939 7.50195 6.87939 7.91064C6.87939 8.31055 7.21777 8.49951 7.4375 8.49951H7.9209C8.50098 8.49951 8.82178 8.82031 8.82178 9.22461C8.82178 9.60693 8.52295 9.94092 7.9209 9.94092C7.40234 9.94092 7.13867 9.69922 6.94092 9.42676C6.7959 9.25098 6.65088 9.08838 6.34766 9.08838Z",fill:"currentColor"})),VE=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8.34717 8.79395H6.80908V8.77197C7.23096 7.87549 7.75391 7.01416 8.3208 6.14404H8.34717V8.79395ZM8.34717 10.0112V10.2529C8.34717 10.7539 8.646 11.0352 9.07227 11.0352C9.49854 11.0352 9.81055 10.7539 9.81055 10.2529V10.0112H9.95117C10.3291 10.0112 10.5752 9.7959 10.5752 9.40918C10.5752 9.02246 10.3291 8.79395 9.95117 8.79395H9.81055V5.93311C9.81055 5.25195 9.26562 4.90918 8.5625 4.90918C7.90771 4.90918 7.55615 5.20361 7.13428 5.81445C6.56299 6.64502 6.01807 7.57666 5.63135 8.37646C5.48193 8.69727 5.40723 8.93896 5.40723 9.19824C5.40723 9.67285 5.67529 10.0112 6.26855 10.0112H8.34717Z",fill:"currentColor"})),HE=e=>l.createElement("svg",{width:111,height:90,viewBox:"0 0 111 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 13.2058C0.5 6.06347 6.29003 0.273438 13.4324 0.273438H97.5676C104.71 0.273438 110.5 6.06347 110.5 13.2058V74.5831V76.2513C110.5 83.3937 104.71 89.1837 97.5676 89.1837H13.4324C6.29003 89.1837 0.5 83.3937 0.5 76.2513V13.2058ZM107.087 23.265V29.8617V74.1158V76.237C107.087 81.5938 102.745 85.9363 97.3877 85.9363H13.2525C7.89575 85.9363 3.55323 81.5938 3.55323 76.237V23.265H107.087Z",fill:"#868DA1"}),l.createElement("path",{d:"M64.9831 35.8279C64.0463 34.1843 62.6858 32.8193 61.0419 31.8739C59.3981 30.9285 57.5306 30.4369 55.6321 30.4498C53.7155 30.451 51.8323 30.9504 50.1691 31.8985C48.5201 32.8594 47.1469 34.2262 46.1815 35.8676L31.0486 62.0832C30.0981 63.7178 29.5977 65.5729 29.5977 67.4615C29.5977 69.3501 30.0982 71.2052 31.0487 72.8397C31.9993 74.4743 33.3661 75.8303 35.0114 76.771C36.6566 77.7117 38.5221 78.2038 40.4195 78.1976H70.8648C72.7621 78.2038 74.6276 77.7117 76.2729 76.771C77.9181 75.8303 79.285 74.4743 80.2355 72.8397C81.186 71.2052 81.6865 69.3501 81.6865 67.4615C81.6866 65.5729 81.1861 63.7178 80.2356 62.0832L64.9831 35.8279ZM76.9459 70.9144C76.3433 71.9653 75.4732 72.8396 74.4231 73.4493C73.373 74.059 72.1801 74.3825 70.9645 74.3873H40.3995C39.1804 74.3805 37.9845 74.0551 36.9315 73.4435C35.8785 72.8319 35.0054 71.9557 34.3997 70.9026C33.794 69.8495 33.4768 68.6565 33.4801 67.4431C33.4833 66.2296 33.8068 65.0383 34.4181 63.9884L49.6507 37.7331C50.2591 36.6768 51.1313 35.7949 52.1829 35.173C53.2344 34.5779 54.4226 34.2635 55.6321 34.2601C56.8486 34.2609 58.0431 34.5827 59.0939 35.1928C60.1447 35.8029 61.0141 36.6794 61.6135 37.7331L76.8462 63.9884C77.4756 65.0363 77.813 66.2323 77.8235 67.4532C77.8341 68.6741 77.5173 69.8757 76.906 70.9342L76.9459 70.9144Z",fill:"#868DA1"}),l.createElement("path",{d:"M57.4667 41.3049C57.2349 41.0496 56.9519 40.8455 56.6359 40.7059C56.32 40.5662 55.9781 40.494 55.6324 40.494C55.2867 40.494 54.9448 40.5662 54.6289 40.7059C54.3129 40.8455 54.0299 41.0496 53.7981 41.3049C53.5524 41.5691 53.3679 41.8838 53.2577 42.2267C53.1474 42.5696 53.1141 42.9324 53.1601 43.2895L54.5757 57.5185C54.5757 57.7975 54.687 58.065 54.8852 58.2623C55.0834 58.4595 55.3521 58.5703 55.6324 58.5703C55.9127 58.5703 56.1814 58.4595 56.3796 58.2623C56.5778 58.065 56.6891 57.7975 56.6891 57.5185L58.1047 43.2895C58.1507 42.9324 58.1174 42.5696 58.0071 42.2267C57.8969 41.8838 57.7124 41.5691 57.4667 41.3049Z",fill:"#868DA1"}),l.createElement("path",{d:"M55.6323 68.1555C57.273 68.1555 58.603 66.8316 58.603 65.1985C58.603 63.5655 57.273 62.2416 55.6323 62.2416C53.9916 62.2416 52.6615 63.5655 52.6615 65.1985C52.6615 66.8316 53.9916 68.1555 55.6323 68.1555Z",fill:"#868DA1"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M107.267 13.2064V20.0468H3.7331V13.2064C3.7331 7.84968 8.07562 3.50715 13.4324 3.50715H97.5676C102.924 3.50715 107.267 7.84967 107.267 13.2064ZM15.8572 16.4396C18.0892 16.4396 19.8986 14.6302 19.8986 12.3982C19.8986 10.1662 18.0892 8.3568 15.8572 8.3568C13.6252 8.3568 11.8158 10.1662 11.8158 12.3982C11.8158 14.6302 13.6252 16.4396 15.8572 16.4396ZM31.2144 12.3982C31.2144 14.6302 29.4051 16.4396 27.1731 16.4396C24.9411 16.4396 23.1317 14.6302 23.1317 12.3982C23.1317 10.1662 24.9411 8.3568 27.1731 8.3568C29.4051 8.3568 31.2144 10.1662 31.2144 12.3982Z",fill:"#868DA1"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M107.267 13.2065V20.0468H3.7328V13.2065C3.7328 7.84973 8.07533 3.5072 13.4321 3.5072H97.5673C102.924 3.5072 107.267 7.84973 107.267 13.2065ZM15.8569 16.4396C18.0889 16.4396 19.8983 14.6302 19.8983 12.3982C19.8983 10.1662 18.0889 8.35685 15.8569 8.35685C13.6249 8.35685 11.8156 10.1662 11.8156 12.3982C11.8156 14.6302 13.6249 16.4396 15.8569 16.4396ZM31.2141 12.3982C31.2141 14.6302 29.4048 16.4396 27.1728 16.4396C24.9408 16.4396 23.1314 14.6302 23.1314 12.3982C23.1314 10.1662 24.9408 8.35685 27.1728 8.35685C29.4048 8.35685 31.2141 10.1662 31.2141 12.3982Z",fill:"#20242F"})),AE=e=>l.createElement("svg",{width:111,height:90,viewBox:"0 0 111 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 13.2058C0.5 6.06347 6.29003 0.273438 13.4324 0.273438H97.5676C104.71 0.273438 110.5 6.06347 110.5 13.2058V74.5831V76.2513C110.5 83.3937 104.71 89.1837 97.5676 89.1837H13.4324C6.29003 89.1837 0.5 83.3937 0.5 76.2513V13.2058ZM107.087 23.265V29.8617V74.1158V76.237C107.087 81.5938 102.745 85.9363 97.3877 85.9363H13.2525C7.89575 85.9363 3.55323 81.5938 3.55323 76.237V23.265H107.087Z",fill:"#37394A"}),l.createElement("path",{d:"M64.983 35.8279C64.0462 34.1843 62.6857 32.8193 61.0419 31.8739C59.3981 30.9285 57.5306 30.4369 55.6321 30.4498C53.7154 30.451 51.8323 30.9504 50.1691 31.8985C48.52 32.8594 47.1469 34.2262 46.1815 35.8676L31.0486 62.0832C30.0981 63.7178 29.5976 65.5729 29.5977 67.4615C29.5977 69.3501 30.0982 71.2052 31.0487 72.8397C31.9992 74.4743 33.3661 75.8303 35.0113 76.771C36.6566 77.7117 38.522 78.2038 40.4194 78.1976H70.8647C72.7621 78.2038 74.6276 77.7117 76.2728 76.771C77.9181 75.8303 79.2849 74.4743 80.2354 72.8397C81.1859 71.2052 81.6865 69.3501 81.6865 67.4615C81.6865 65.5729 81.186 63.7178 80.2356 62.0832L64.983 35.8279ZM76.9458 70.9144C76.3432 71.9653 75.4731 72.8396 74.423 73.4493C73.373 74.059 72.1801 74.3825 70.9644 74.3873H40.3995C39.1804 74.3805 37.9844 74.0551 36.9314 73.4435C35.8785 72.8319 35.0054 71.9557 34.3997 70.9026C33.7939 69.8495 33.4768 68.6565 33.48 67.4431C33.4833 66.2296 33.8067 65.0383 34.4181 63.9884L49.6507 37.7331C50.259 36.6768 51.1313 35.7949 52.1828 35.173C53.2343 34.5779 54.4225 34.2635 55.6321 34.2601C56.8486 34.2609 58.0431 34.5827 59.0939 35.1928C60.1446 35.8029 61.0141 36.6794 61.6135 37.7331L76.8461 63.9884C77.4756 65.0363 77.813 66.2323 77.8235 67.4532C77.834 68.6741 77.5173 69.8757 76.9059 70.9342L76.9458 70.9144Z",fill:"#37394A"}),l.createElement("path",{d:"M57.4667 41.3049C57.2349 41.0496 56.9519 40.8455 56.6359 40.7059C56.32 40.5662 55.9781 40.494 55.6324 40.494C55.2867 40.494 54.9448 40.5662 54.6288 40.7059C54.3129 40.8455 54.0299 41.0496 53.7981 41.3049C53.5524 41.5691 53.3679 41.8838 53.2576 42.2267C53.1474 42.5696 53.1141 42.9324 53.1601 43.2895L54.5757 57.5185C54.5757 57.7975 54.687 58.065 54.8852 58.2623C55.0833 58.4595 55.3521 58.5703 55.6324 58.5703C55.9126 58.5703 56.1814 58.4595 56.3796 58.2623C56.5778 58.065 56.6891 57.7975 56.6891 57.5185L58.1047 43.2895C58.1507 42.9324 58.1174 42.5696 58.0071 42.2267C57.8969 41.8838 57.7124 41.5691 57.4667 41.3049Z",fill:"#37394A"}),l.createElement("path",{d:"M55.6323 68.1555C57.273 68.1555 58.603 66.8316 58.603 65.1985C58.603 63.5655 57.273 62.2416 55.6323 62.2416C53.9916 62.2416 52.6615 63.5655 52.6615 65.1985C52.6615 66.8316 53.9916 68.1555 55.6323 68.1555Z",fill:"#37394A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M107.267 13.2064V20.0468H3.7331V13.2064C3.7331 7.84968 8.07562 3.50715 13.4324 3.50715H97.5676C102.924 3.50715 107.267 7.84967 107.267 13.2064ZM15.8572 16.4396C18.0892 16.4396 19.8986 14.6302 19.8986 12.3982C19.8986 10.1662 18.0892 8.3568 15.8572 8.3568C13.6252 8.3568 11.8158 10.1662 11.8158 12.3982C11.8158 14.6302 13.6252 16.4396 15.8572 16.4396ZM31.2144 12.3982C31.2144 14.6302 29.4051 16.4396 27.1731 16.4396C24.9411 16.4396 23.1317 14.6302 23.1317 12.3982C23.1317 10.1662 24.9411 8.3568 27.1731 8.3568C29.4051 8.3568 31.2144 10.1662 31.2144 12.3982Z",fill:"#37394A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M107.267 13.2065V20.0468H3.73279V13.2065C3.73279 7.84973 8.07531 3.5072 13.4321 3.5072H97.5673C102.924 3.5072 107.267 7.84973 107.267 13.2065ZM15.8569 16.4396C18.0889 16.4396 19.8983 14.6302 19.8983 12.3982C19.8983 10.1662 18.0889 8.35685 15.8569 8.35685C13.6249 8.35685 11.8155 10.1662 11.8155 12.3982C11.8155 14.6302 13.6249 16.4396 15.8569 16.4396ZM31.2141 12.3982C31.2141 14.6302 29.4047 16.4396 27.1728 16.4396C24.9408 16.4396 23.1314 14.6302 23.1314 12.3982C23.1314 10.1662 24.9408 8.35685 27.1728 8.35685C29.4047 8.35685 31.2141 10.1662 31.2141 12.3982Z",fill:"white"})),FE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{opacity:.5,clipPath:"url(#clip0_5311_17878)"},l.createElement("path",{d:"M6.5 10H4.5V17H6.5V10ZM12.5 10H10.5V17H12.5V10ZM21 19H2V21H21V19ZM18.5 10H16.5V17H18.5V10ZM11.5 3.26L16.71 6H6.29L11.5 3.26ZM11.5 1L2 6V8H21V6L11.5 1Z",fill:"currentColor"})),l.createElement("clipPath",{id:"clip0_5311_17878"},l.createElement("rect",{width:24,height:24,fill:"currentColor"}))),$E=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM12 6C13.93 6 15.5 7.57 15.5 9.5C15.5 11.43 13.93 13 12 13C10.07 13 8.5 11.43 8.5 9.5C8.5 7.57 10.07 6 12 6ZM19 19H5V18.77C5 18.15 5.28 17.57 5.76 17.19C7.47 15.82 9.64 15 12 15C14.36 15 16.53 15.82 18.24 17.19C18.72 17.57 19 18.16 19 18.77V19Z",fill:"currentColor"})),zE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 6C13.93 6 15.5 7.57 15.5 9.5C15.5 11.43 13.93 13 12 13C10.07 13 8.5 11.43 8.5 9.5C8.5 7.57 10.07 6 12 6ZM12 20C9.97 20 7.57 19.18 5.86 17.12C7.55 15.8 9.68 15 12 15C14.32 15 16.45 15.8 18.14 17.12C16.43 19.18 14.03 20 12 20Z",fill:"currentColor"})),BE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M22 11V3H15V6H9V3H2V11H9V8H11V18H15V21H22V13H15V16H13V8H15V11H22ZM7 9H4V5H7V9ZM17 15H20V19H17V15ZM17 5H20V9H17V5Z"})),ZE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M18 13H13V18C13 18.55 12.55 19 12 19C11.45 19 11 18.55 11 18V13H6C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11H11V6C11 5.45 11.45 5 12 5C12.55 5 13 5.45 13 6V11H18C18.55 11 19 11.45 19 12C19 12.55 18.55 13 18 13Z",fill:"currentColor"})),WE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19 3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM16 13H13V16C13 16.55 12.55 17 12 17C11.45 17 11 16.55 11 16V13H8C7.45 13 7 12.55 7 12C7 11.45 7.45 11 8 11H11V8C11 7.45 11.45 7 12 7C12.55 7 13 7.45 13 8V11H16C16.55 11 17 11.45 17 12C17 12.55 16.55 13 16 13Z",fill:"currentColor"})),RE=e=>l.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M14 2C20.6274 2 26 7.37258 26 14C26 20.6274 20.6274 26 14 26C7.37258 26 2 20.6274 2 14C2 7.37258 7.37258 2 14 2ZM14 4C8.47715 4 4 8.47715 4 14C4 19.5228 8.47715 24 14 24C19.5228 24 24 19.5228 24 14C24 8.47715 19.5228 4 14 4ZM14 8C14.5523 8 15 8.44772 15 9V13H19C19.5523 13 20 13.4477 20 14C20 14.5523 19.5523 15 19 15H15V19C15 19.5523 14.5523 20 14 20C13.4477 20 13 19.5523 13 19V15H9C8.44772 15 8 14.5523 8 14C8 13.4477 8.44772 13 9 13H13V9C13 8.44772 13.4477 8 14 8Z",fill:"currentColor"})),GE=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},l.createElement("path",{d:"M16.9597 5.62049L16.3221 7.01311L14.9194 7.64611L16.3221 8.27912L16.9597 9.67173L17.5973 8.27912L19 7.64611L17.5973 7.01311L16.9597 5.62049Z",fill:"currentColor"}),l.createElement("path",{d:"M10.0228 4C11.7063 4 12.8897 4.93756 13.6395 6.18941C14.3588 7.39039 14.7386 8.95377 14.9314 10.5389C14.9435 10.6385 14.9525 10.739 14.9633 10.8396C15.6154 10.8273 16.3067 10.8426 17.0386 10.8895L18.1839 10.9631V19.7998H15.7355V13.2688C15.5188 13.2651 15.3082 13.2637 15.1035 13.2664C15.1385 15.7089 14.8949 18.1863 14.6054 19.9913L12.1874 19.6083C12.4563 17.9313 12.6756 15.6786 12.6576 13.4832C10.617 13.849 9.47727 14.624 8.83766 15.4091C7.81417 16.6655 7.75223 18.3272 7.96577 19.5996L5.55091 20L5.4736 19.5181C5.09287 17.0409 4.81228 13.5412 5.15401 10.5476C5.33494 8.96265 5.70262 7.39784 6.41404 6.19495C7.15666 4.93933 8.33745 4.00002 10.0228 4ZM10.0228 6.43074C9.42306 6.43075 8.95067 6.70683 8.52525 7.42614C8.06871 8.19823 7.75309 9.36818 7.5872 10.8214C7.49639 11.6169 7.45523 12.461 7.45012 13.3163C8.59359 12.2051 10.2431 11.4013 12.5229 11.043C12.5151 10.9718 12.5092 10.9006 12.5006 10.8301C12.3238 9.37693 11.999 8.20565 11.5355 7.43168C11.1024 6.70865 10.6243 6.43074 10.0228 6.43074Z",fill:"currentColor"})),jE=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},l.createElement("path",{d:"M3.67124 20.4L21.1212 12.92C21.9312 12.57 21.9312 11.43 21.1212 11.08L3.67124 3.60002C3.01124 3.31002 2.28124 3.80002 2.28124 4.51002L2.27124 9.12002C2.27124 9.62002 2.64124 10.05 3.14124 10.11L17.2712 12L3.14124 13.88C2.64124 13.95 2.27124 14.38 2.27124 14.88L2.28124 19.49C2.28124 20.2 3.01124 20.69 3.67124 20.4Z",fill:"white"})),YE=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.1924 6.50411C13.2689 6.50414 11.1605 8.07723 9.64638 10.2303C9.87288 10.3006 10.0972 10.3847 10.3166 10.4852C11.2203 10.8992 11.98 11.5506 12.5773 12.4498C12.8641 12.8817 13.1128 13.3704 13.3248 13.9186C14.6585 13.5957 16.1474 13.4095 17.8207 13.4095H19.1579V20H16.4827V15.9918C15.5754 16.0575 14.7403 16.1885 13.9688 16.3766C14.1454 17.4381 14.2441 18.6425 14.2673 20H11.5913C11.5721 18.9661 11.507 18.071 11.4046 17.2969C9.92785 18.016 8.73133 18.9644 7.69243 20H4.00082L4 4H6.67516V9.99178C8.34421 7.14048 11.0957 4.31036 15.403 4H16.1924V6.50411ZM8.32895 12.5263C7.57025 14.1325 7.14247 15.6756 6.91283 17.1891C8.01231 16.2597 9.28565 15.4143 10.8002 14.759C10.6514 14.3802 10.4896 14.0618 10.3141 13.7977C9.96296 13.269 9.56999 12.9579 9.15214 12.7664C8.91199 12.6565 8.63923 12.5762 8.32895 12.5263Z",fill:"currentColor"}),l.createElement("path",{d:"M17.8947 7.36842L17.2368 8.81579L15.7895 9.47368L17.2368 10.1316L17.8947 11.5789L18.5526 10.1316L20 9.47368L18.5526 8.81579L17.8947 7.36842Z",fill:"currentColor"})),UE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM8 17C7.45 17 7 16.55 7 16V13C7 12.45 7.45 12 8 12C8.55 12 9 12.45 9 13V16C9 16.55 8.55 17 8 17ZM12 17C11.45 17 11 16.55 11 16V15C11 14.45 11.45 14 12 14C12.55 14 13 14.45 13 15V16C13 16.55 12.55 17 12 17ZM12 12C11.45 12 11 11.55 11 11C11 10.45 11.45 10 12 10C12.55 10 13 10.45 13 11C13 11.55 12.55 12 12 12ZM16 17C15.45 17 15 16.55 15 16V8C15 7.45 15.45 7 16 7C16.55 7 17 7.45 17 8V16C17 16.55 16.55 17 16 17Z",fill:"currentColor"})),qE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M18.71 3H5.29L3 5.79V21H21V5.79L18.71 3ZM12 17.5L6.5 12H10V10H14V12H17.5L12 17.5ZM5.12 5L5.93 4H17.93L18.87 5H5.12Z"})),KE=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z"})),XE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19 4H14.82C14.4 2.84 13.3 2 12 2C10.7 2 9.6 2.84 9.18 4H5C3.9 4 3 4.9 3 6V20C3 21.1 3.9 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM12 4C12.55 4 13 4.45 13 5C13 5.55 12.55 6 12 6C11.45 6 11 5.55 11 5C11 4.45 11.45 4 12 4ZM13 18H8C7.45 18 7 17.55 7 17C7 16.45 7.45 16 8 16H13C13.55 16 14 16.45 14 17C14 17.55 13.55 18 13 18ZM16 14H8C7.45 14 7 13.55 7 13C7 12.45 7.45 12 8 12H16C16.55 12 17 12.45 17 13C17 13.55 16.55 14 16 14ZM16 10H8C7.45 10 7 9.55 7 9C7 8.45 7.45 8 8 8H16C16.55 8 17 8.45 17 9C17 9.55 16.55 10 16 10Z",fill:"currentColor"})),QE=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19 4H14.82C14.4 2.84 13.3 2 12 2C10.7 2 9.6 2.84 9.18 4H5C3.9 4 3 4.9 3 6V20C3 21.1 3.9 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM12 4C12.55 4 13 4.45 13 5C13 5.55 12.55 6 12 6C11.45 6 11 5.55 11 5C11 4.45 11.45 4 12 4ZM9.29 17.29L6.7 14.7C6.31 14.31 6.31 13.68 6.7 13.29C7.09 12.9 7.72 12.9 8.11 13.29L10 15.17L15.88 9.29C16.27 8.9 16.9 8.9 17.29 9.29C17.68 9.68 17.68 10.31 17.29 10.7L10.7 17.29C10.32 17.68 9.68 17.68 9.29 17.29Z",fill:"currentColor"})),F9=e=>l.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M16 7.2477V17.8277C16 19.9177 14.47 21.7777 12.39 21.9777C10 22.2077 8 20.3377 8 17.9977V5.6377C8 4.3277 8.94 3.1377 10.24 3.0077C11.74 2.8577 13 4.0277 13 5.4977V15.9977C13 16.5477 12.55 16.9977 12 16.9977C11.45 16.9977 11 16.5477 11 15.9977V7.2477C11 6.8377 10.66 6.4977 10.25 6.4977C9.84 6.4977 9.5 6.8377 9.5 7.2477V15.8577C9.5 17.1677 10.44 18.3577 11.74 18.4877C13.24 18.6377 14.5 17.4677 14.5 15.9977V5.6677C14.5 3.5777 12.97 1.7177 10.89 1.5177C8.51 1.2877 6.5 3.1577 6.5 5.4977V17.7677C6.5 20.6377 8.6 23.2077 11.46 23.4777C14.75 23.7777 17.5 21.2177 17.5 17.9977V7.2477C17.5 6.8377 17.16 6.4977 16.75 6.4977C16.34 6.4977 16 6.8377 16 7.2477Z",fill:"currentColor"})),I1=e=>l.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19.41 7.91L14.58 3.08C14.21 2.71 13.7 2.5 13.17 2.5H6C4.9 2.5 4.01 3.4 4.01 4.5L4 20.5C4 21.6 4.89 22.5 5.99 22.5H18C19.1 22.5 20 21.6 20 20.5V9.33C20 8.8 19.79 8.29 19.41 7.91ZM15 13.5H13V17.11C13 18.39 12 19.52 10.72 19.5C9.28 19.48 8.16 18.11 8.59 16.59C8.8 15.87 9.39 15.28 10.12 15.08C10.82 14.89 11.48 15.03 12 15.37V12.5C12 11.95 12.45 11.5 13 11.5H15C15.55 11.5 16 11.95 16 12.5C16 13.05 15.55 13.5 15 13.5ZM14 9.5C13.45 9.5 13 9.05 13 8.5V4L18.5 9.5H14Z"})),JE=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M8 9H4V20H8V9Z"}),l.createElement("path",{d:"M20 13H16V20H20V13Z"}),l.createElement("path",{d:"M14 4H10V20H14V4Z"})),eM=e=>l.createElement("svg",{width:1311,height:980,viewBox:"0 0 1311 980",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{opacity:.5,d:"M1741.94 269.154C1699.1 418.49 1550.05 1031.55 1165.11 902.161C683.944 740.431 626.772 253.779 784.743 22.5768C942.713 -208.626 1276.19 -94.8007 1215.69 170.186C1155.19 435.173 573.38 886.719 274.35 788.034C-246.712 616.075 202.468 -453.374 1418.5 22.5763",stroke:"url(#paint0_linear_836_26982)",strokeWidth:120}),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_836_26982",x1:1302.33,y1:579.42,x2:-156.443,y2:285.477,gradientUnits:"userSpaceOnUse"},l.createElement("stop",{offset:.0789474,stopColor:"#151924"}),l.createElement("stop",{offset:.340478,stopColor:"#0613AF"}),l.createElement("stop",{offset:.526371,stopColor:"#262CFE"}),l.createElement("stop",{offset:.766928,stopColor:"#615BFE"}),l.createElement("stop",{offset:.917746,stopColor:"#A488FF"})))),tM=e=>l.createElement("svg",{width:1311,height:980,viewBox:"0 0 1311 980",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{opacity:.2,d:"M1741.94 269.154C1699.1 418.49 1550.05 1031.55 1165.11 902.161C683.944 740.431 626.772 253.779 784.743 22.5768C942.713 -208.626 1276.19 -94.8007 1215.69 170.186C1155.19 435.173 573.38 886.719 274.351 788.034C-246.712 616.075 202.469 -453.374 1418.5 22.5763",stroke:"url(#paint0_linear_761_8753)",strokeWidth:120}),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_761_8753",x1:1302.33,y1:579.42,x2:-156.443,y2:285.477,gradientUnits:"userSpaceOnUse"},l.createElement("stop",{offset:.0789474,stopColor:"#E5E5E5"}),l.createElement("stop",{offset:.25,stopColor:"#3A49FF",stopOpacity:.84}),l.createElement("stop",{offset:.51,stopColor:"#972FFF"}),l.createElement("stop",{offset:.79,stopColor:"#8B10EC"}),l.createElement("stop",{offset:.917746,stopColor:"#3C00FF"})))),$9=e=>l.createElement("svg",{width:160,height:160,viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("ellipse",{opacity:.1,cx:80,cy:155.2,rx:80,ry:4.8,fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.9313 35.2C62.9759 31.5064 66.3719 28.8 70.4 28.8H102.856C100.15 30.4303 97.8172 32.6163 96.015 35.2H61.9313ZM94.1556 38.4H47.2C41.8981 38.4 37.6 42.6981 37.6 48V107.2H87.2H88C88.8836 107.2 89.6 107.916 89.6 108.8V117.2C89.6 124.048 95.1517 129.6 102 129.6C108.848 129.6 114.4 124.048 114.4 117.2V70.4C102.029 70.4 92 60.3712 92 48C92 44.5645 92.7734 41.3096 94.1556 38.4ZM117.6 70.1732V115.067C122.14 114.306 125.6 110.357 125.6 105.6V67.4033C123.183 68.8017 120.48 69.7613 117.6 70.1732ZM128.8 65.1588V105.6C128.8 112.141 123.894 117.536 117.561 118.306C116.994 126.405 110.244 132.8 102 132.8C101.86 132.8 101.721 132.798 101.582 132.795L101.6 132.8H44C35.1634 132.8 28 125.637 28 116.8V113.6C28 110.065 30.8654 107.2 34.4 107.2V48C34.4 40.9308 40.1308 35.2 47.2 35.2H58.64C59.7519 29.7226 64.5945 25.6 70.4 25.6H112.8V25.6563C113.328 25.619 113.862 25.6 114.4 25.6C126.771 25.6 136.8 35.6288 136.8 48C136.8 54.8879 133.691 61.0497 128.8 65.1588ZM19.2 122.8C19.2 122.137 19.7373 121.6 20.4 121.6C21.0627 121.6 21.6 122.137 21.6 122.8V123.2C21.6 132.037 28.7634 139.2 37.6 139.2H41.28C41.8986 139.2 42.4 139.701 42.4 140.32C42.4 140.939 41.8986 141.44 41.28 141.44H37.6C26.9791 141.44 19.2 133.787 19.2 123.2V122.8ZM20.4 118.4C17.9699 118.4 16 120.37 16 122.8V123.2C16 135.588 25.2459 144.64 37.6 144.64H41.28C43.6659 144.64 45.6 142.706 45.6 140.32C45.6 137.934 43.6659 136 41.28 136H37.6C30.5308 136 24.8 130.269 24.8 123.2V122.8C24.8 120.37 22.8301 118.4 20.4 118.4ZM45.6 93.6C45.6 91.3909 47.3909 89.6 49.6 89.6H97.6C99.8091 89.6 101.6 91.3909 101.6 93.6C101.6 95.8091 99.8091 97.6 97.6 97.6H49.6C47.3909 97.6 45.6 95.8091 45.6 93.6ZM49.6 92.8C49.1582 92.8 48.8 93.1582 48.8 93.6C48.8 94.0418 49.1582 94.4 49.6 94.4H97.6C98.0418 94.4 98.4 94.0418 98.4 93.6C98.4 93.1582 98.0418 92.8 97.6 92.8H49.6ZM95.2 48C95.2 37.3961 103.796 28.8 114.4 28.8C125.004 28.8 133.6 37.3961 133.6 48C133.6 58.6039 125.004 67.2 114.4 67.2C103.796 67.2 95.2 58.6039 95.2 48ZM110.4 37.6C110.4 35.3909 112.191 33.6 114.4 33.6C116.609 33.6 118.4 35.3909 118.4 37.6V47.2C118.4 49.4091 116.609 51.2 114.4 51.2C112.191 51.2 110.4 49.4091 110.4 47.2V37.6ZM114.4 36.8C113.958 36.8 113.6 37.1582 113.6 37.6V47.2C113.6 47.6418 113.958 48 114.4 48C114.842 48 115.2 47.6418 115.2 47.2V37.6C115.2 37.1582 114.842 36.8 114.4 36.8ZM114.4 62.4C112.191 62.4 110.4 60.6091 110.4 58.4C110.4 56.1909 112.191 54.4 114.4 54.4C116.609 54.4 118.4 56.1909 118.4 58.4C118.4 60.6091 116.609 62.4 114.4 62.4ZM113.6 58.4C113.6 58.8418 113.958 59.2 114.4 59.2C114.842 59.2 115.2 58.8418 115.2 58.4C115.2 57.9582 114.842 57.6 114.4 57.6C113.958 57.6 113.6 57.9582 113.6 58.4Z",fill:"currentColor"}),l.createElement("rect",{x:47.5,y:65.5,width:29,height:5,rx:2.5,stroke:"currentColor",strokeWidth:3}),l.createElement("rect",{x:47.5,y:78.5,width:29,height:5,rx:2.5,stroke:"currentColor",strokeWidth:3})),nM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM4 12C4 7.58 7.58 4 12 4C13.85 4 15.55 4.63 16.9 5.69L5.69 16.9C4.63 15.55 4 13.85 4 12ZM12 20C10.15 20 8.45 19.37 7.1 18.31L18.31 7.1C19.37 8.45 20 10.15 20 12C20 16.42 16.42 20 12 20Z"})),rM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M22.728 18.9501L13.628 9.85008C14.528 7.55008 14.028 4.85008 12.128 2.95008C10.128 0.950078 7.12802 0.550078 4.72802 1.65008L9.02802 5.95008L6.02802 8.95008L1.62802 4.65008C0.428015 7.05008 0.928016 10.0501 2.92802 12.0501C4.82802 13.9501 7.52802 14.4501 9.82802 13.5501L18.928 22.6501C19.328 23.0501 19.928 23.0501 20.328 22.6501L22.628 20.3501C23.128 19.9501 23.128 19.2501 22.728 18.9501Z"})),oM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM16.54 15.85L15.85 16.54C15.46 16.93 14.83 16.93 14.44 16.54L11.39 13.49C10.17 13.92 8.75 13.66 7.77 12.68C6.66 11.57 6.47 9.89 7.18 8.58L9.53 10.93L10.94 9.52L8.58 7.17C9.9 6.46 11.57 6.65 12.68 7.76C13.66 8.74 13.92 10.16 13.49 11.38L16.54 14.43C16.93 14.82 16.93 15.46 16.54 15.85Z"})),aM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.49 11.38C13.92 10.16 13.66 8.74 12.68 7.76C11.57 6.65 9.89 6.46 8.58 7.17L10.93 9.52L9.52 10.93L7.17 8.58C6.46 9.9 6.65 11.57 7.76 12.68C8.74 13.66 10.16 13.92 11.38 13.49L14.79 16.9C14.99 17.1 15.3 17.1 15.5 16.9L16.9 15.5C17.1 15.3 17.1 14.99 16.9 14.79L13.49 11.38Z"})),sM=e=>l.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M3.52508 2.46445C3.23219 2.17156 2.75731 2.17156 2.46442 2.46445C2.17153 2.75734 2.17153 3.23222 2.46442 3.52511L4.93929 5.99999L2.46442 8.47486C2.17153 8.76775 2.17153 9.24263 2.46442 9.53552C2.75731 9.82841 3.23219 9.82841 3.52508 9.53552L5.99995 7.06065L8.47483 9.53552C8.76772 9.82841 9.2426 9.82841 9.53549 9.53552C9.82838 9.24263 9.82838 8.76775 9.53549 8.47486L7.06062 5.99999L9.53549 3.52511C9.82838 3.23222 9.82838 2.75734 9.53549 2.46445C9.2426 2.17156 8.76772 2.17156 8.47483 2.46445L5.99995 4.93933L3.52508 2.46445Z",fill:"currentColor"})),iM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("rect",{width:24,height:24,rx:12,fill:"white"}),l.createElement("path",{d:"M12 1.71436C17.6806 1.71436 22.2857 6.31943 22.2857 12.0001C22.2857 17.6807 17.6806 22.2858 12 22.2858C6.31935 22.2858 1.71428 17.6807 1.71428 12.0001C1.71428 6.31943 6.31935 1.71436 12 1.71436ZM12 3.42864C7.26612 3.42864 3.42857 7.2662 3.42857 12.0001C3.42857 16.7339 7.26612 20.5715 12 20.5715C16.7339 20.5715 20.5714 16.7339 20.5714 12.0001C20.5714 7.2662 16.7339 3.42864 12 3.42864ZM8.3939 8.39398C8.72864 8.05924 9.27135 8.05924 9.60609 8.39398L12 10.7872L14.3939 8.39398C14.7029 8.08499 15.1891 8.06122 15.5253 8.32267L15.6061 8.39398C15.9408 8.72871 15.9408 9.27143 15.6061 9.60616L13.2129 12.0001L15.6061 14.394C15.9151 14.703 15.9388 15.1892 15.6774 15.5254L15.6061 15.6062C15.2714 15.9409 14.7286 15.9409 14.3939 15.6062L12 13.2129L9.60609 15.6062C9.2971 15.9151 8.8109 15.9389 8.47465 15.6775L8.3939 15.6062C8.05917 15.2714 8.05917 14.7287 8.3939 14.394L10.7871 12.0001L8.3939 9.60616C8.08492 9.29718 8.06115 8.81098 8.3226 8.47473L8.3939 8.39398Z",fill:"currentColor"})),lM=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M3.50908 3.50908C3.7434 3.27476 4.1233 3.27477 4.35761 3.50908L8 7.15149L11.6424 3.50909C11.8767 3.27478 12.2566 3.27478 12.4909 3.5091C12.7253 3.74341 12.7253 4.12331 12.4909 4.35762L8.84853 8.00002L12.4909 11.6424C12.7252 11.8768 12.7252 12.2567 12.4909 12.491C12.2566 12.7253 11.8767 12.7253 11.6424 12.491L8 8.84855L4.35759 12.4909C4.12328 12.7253 3.74338 12.7253 3.50906 12.4909C3.27475 12.2566 3.27475 11.8767 3.50907 11.6424L7.15147 8.00002L3.50908 4.35761C3.27477 4.12329 3.27477 3.74339 3.50908 3.50908Z",fill:"currentColor"})),cM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M10.65 2.93996L6.93 9.01996C6.52 9.67996 7 10.54 7.78 10.54H15.21C15.99 10.54 16.47 9.67996 16.06 9.01996L12.35 2.93996C11.96 2.29996 11.04 2.29996 10.65 2.93996Z",fill:"currentColor"}),l.createElement("path",{d:"M17 21.54C19.4853 21.54 21.5 19.5252 21.5 17.04C21.5 14.5547 19.4853 12.54 17 12.54C14.5147 12.54 12.5 14.5547 12.5 17.04C12.5 19.5252 14.5147 21.54 17 21.54Z",fill:"currentColor"}),l.createElement("path",{d:"M3.5 21.04H9.5C10.05 21.04 10.5 20.59 10.5 20.04V14.04C10.5 13.49 10.05 13.04 9.5 13.04H3.5C2.95 13.04 2.5 13.49 2.5 14.04V20.04C2.5 20.59 2.95 21.04 3.5 21.04Z",fill:"currentColor"})),uM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00002 16.1996L4.80002 11.9996L3.40002 13.3996L9.00002 18.9996L21 6.99961L19.6 5.59961L9.00002 16.1996Z",fill:"currentColor"})),dM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M20 6H12L10 4H4C2.9 4 2.01 4.9 2.01 6L2 18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V8C22 6.9 21.1 6 20 6ZM7.83 16L5 13.17L6.41 11.76L7.82 13.17L11.36 9.63L12.77 11.04L7.83 16ZM17.41 13L19 14.59L17.59 16L16 14.41L14.41 16L13 14.59L14.59 13L13 11.41L14.41 10L16 11.59L17.59 10L19 11.41L17.41 13Z"})),fM=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.1576 4.62424C12.3919 4.38992 12.3919 4.01003 12.1576 3.77571C11.9233 3.5414 11.5434 3.5414 11.3091 3.77571L4.33334 10.7514L1.35761 7.77571C1.12329 7.5414 0.743394 7.5414 0.509079 7.77571C0.274765 8.01003 0.274765 8.38992 0.509079 8.62424L3.90908 12.0242C4.0216 12.1368 4.17421 12.2 4.33334 12.2C4.49247 12.2 4.64509 12.1368 4.75761 12.0242L12.1576 4.62424Z"}),l.createElement("path",{d:"M15.4909 4.62424C15.7252 4.38992 15.7252 4.01003 15.4909 3.77571C15.2566 3.5414 14.8767 3.5414 14.6424 3.77571L7.2424 11.1757C7.00808 11.41 7.00808 11.7899 7.2424 12.0242C7.47671 12.2586 7.85661 12.2586 8.09093 12.0242L15.4909 4.62424Z"})),hM=e=>l.createElement("svg",{width:20,height:16,viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.21911 5.87534C4.56412 5.44408 5.19341 5.37416 5.62467 5.71917L9.99998 9.21941L14.3753 5.71917C14.8065 5.37416 15.4358 5.44408 15.7808 5.87534C16.1259 6.3066 16.0559 6.9359 15.6247 7.28091L10.6247 11.2809C10.2595 11.5731 9.7405 11.5731 9.37528 11.2809L4.37528 7.28091C3.94402 6.9359 3.8741 6.3066 4.21911 5.87534Z",fill:"currentColor"})),gM=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M13.7116 10.959C13.6178 12.7483 11.0577 14 7.99993 14C4.88451 14 2.28564 12.7006 2.28564 10.8571V5.14286L2.28831 5.04101C2.38208 3.25175 4.9422 2 7.99993 2C11.1154 2 13.7142 3.29943 13.7142 5.14286V10.8571L13.7116 10.959ZM12.572 7.066C11.5226 7.82619 9.85259 8.28571 7.99993 8.28571C6.14761 8.28571 4.4779 7.82636 3.42846 7.06642L3.4285 8C3.4285 8.9969 5.43471 10 7.99993 10C10.5652 10 12.5714 8.9969 12.5714 8L12.572 7.066ZM7.99993 3.14286C5.43471 3.14286 3.4285 4.14596 3.4285 5.14286C3.4285 6.13975 5.43471 7.14286 7.99993 7.14286C10.5652 7.14286 12.5714 6.13975 12.5714 5.14286C12.5714 4.14596 10.5652 3.14286 7.99993 3.14286ZM12.572 9.92314C11.5226 10.6833 9.85259 11.1429 7.99993 11.1429C6.14761 11.1429 4.4779 10.6835 3.42846 9.92356L3.4285 10.8571L3.43146 10.9236C3.51794 11.8981 5.49171 12.8571 7.99993 12.8571C10.5652 12.8571 12.5714 11.854 12.5714 10.8571L12.572 9.92314Z",fill:"currentColor"})),pM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M21.0076 18.4075L16.0676 13.4675L13.9476 15.5875L18.8876 20.5275C19.4776 21.1175 20.4276 21.1175 21.0076 20.5275C21.5876 19.9375 21.5876 18.9875 21.0076 18.4075Z"}),l.createElement("path",{d:"M17.6676 10.4175C19.5976 10.4175 21.1676 8.84753 21.1676 6.91753C21.1676 6.33753 21.0076 5.79753 20.7576 5.31753L18.0576 8.01753L16.5676 6.52753L19.2676 3.82753C18.7876 3.57753 18.2476 3.41753 17.6676 3.41753C15.7376 3.41753 14.1676 4.98753 14.1676 6.91753C14.1676 7.32753 14.2476 7.71753 14.3776 8.07753L12.5276 9.92753L10.7476 8.14753C11.1376 7.75753 11.1376 7.12753 10.7476 6.73753L10.0376 6.02753L12.1576 3.90753C10.9876 2.73753 9.08762 2.73753 7.91762 3.90753L5.09762 6.73753C4.70762 7.12753 4.70762 7.75753 5.09762 8.14753L5.80762 8.85753H3.26762C3.07762 8.85753 2.89762 8.92753 2.76762 9.06753C2.48762 9.34753 2.48762 9.78753 2.76762 10.0675L5.30762 12.6075C5.58762 12.8875 6.02762 12.8875 6.30762 12.6075C6.43762 12.4775 6.51762 12.2975 6.51762 12.1075V9.56753L7.21762 10.2675C7.60762 10.6575 8.23762 10.6575 8.62762 10.2675L10.4076 12.0475L4.05762 18.3975C3.46762 18.9875 3.46762 19.9375 4.05762 20.5175C4.64762 21.1075 5.59762 21.1075 6.17762 20.5175L16.4976 10.2075C16.8676 10.3375 17.2576 10.4175 17.6676 10.4175Z"})),mM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M4.20618 5.19873H6.20618V6.19873C6.20618 7.29873 7.10618 8.19873 8.20618 8.19873H14.2062C15.3062 8.19873 16.2062 7.29873 16.2062 6.19873V5.19873H18.2062V10.1987H20.2062V5.19873C20.2062 4.09873 19.3062 3.19873 18.2062 3.19873H14.0262C13.6062 2.03873 12.5062 1.19873 11.2062 1.19873C9.90618 1.19873 8.80618 2.03873 8.38618 3.19873H4.20618C3.10618 3.19873 2.20618 4.09873 2.20618 5.19873V19.1987C2.20618 20.2987 3.10618 21.1987 4.20618 21.1987H9.20618V19.1987H4.20618V5.19873ZM11.2062 3.19873C11.7562 3.19873 12.2062 3.64873 12.2062 4.19873C12.2062 4.74873 11.7562 5.19873 11.2062 5.19873C10.6562 5.19873 10.2062 4.74873 10.2062 4.19873C10.2062 3.64873 10.6562 3.19873 11.2062 3.19873Z"}),l.createElement("path",{d:"M21.5062 21.0987L19.5062 19.0987C20.0862 18.0887 20.4562 16.8687 20.0162 15.4487C19.4862 13.7287 17.9762 12.3987 16.1762 12.2287C13.3062 11.9487 10.9462 14.2987 11.2262 17.1787C11.4062 18.9687 12.7262 20.4887 14.4462 21.0187C15.8762 21.4587 17.0862 21.0887 18.0962 20.5087L20.0962 22.5087C20.4862 22.8987 21.1062 22.8987 21.4962 22.5087C21.8862 22.1187 21.8962 21.4887 21.5062 21.0987ZM15.7062 19.1987C14.3062 19.1987 13.2062 18.0987 13.2062 16.6987C13.2062 15.2987 14.3062 14.1987 15.7062 14.1987C17.1062 14.1987 18.2062 15.2987 18.2062 16.6987C18.2062 18.0987 17.1062 19.1987 15.7062 19.1987Z"})),vM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,viewBox:"0 0 25 24",fill:"currentColor",...e},l.createElement("path",{d:"M12.5 7C11.95 7 11.5 7.45 11.5 8V11H8.5C7.95 11 7.5 11.45 7.5 12C7.5 12.55 7.95 13 8.5 13H11.5V16C11.5 16.55 11.95 17 12.5 17C13.05 17 13.5 16.55 13.5 16V13H16.5C17.05 13 17.5 12.55 17.5 12C17.5 11.45 17.05 11 16.5 11H13.5V8C13.5 7.45 13.05 7 12.5 7ZM12.5 2C6.99 2 2.5 6.49 2.5 12C2.5 17.51 6.99 22 12.5 22C18.01 22 22.5 17.51 22.5 12C22.5 6.49 18.01 2 12.5 2ZM12.5 20C8.09 20 4.5 16.41 4.5 12C4.5 7.59 8.09 4 12.5 4C16.91 4 20.5 7.59 20.5 12C20.5 16.41 16.91 20 12.5 20Z"})),CM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 7V5C12 3.9 11.1 3 10 3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H20C21.1 21 22 20.1 22 19V9C22 7.9 21.1 7 20 7H12ZM10 19H4V17H10V19ZM10 15H4V13H10V15ZM10 11H4V9H10V11ZM10 7H4V5H10V7ZM20 19H12V9H20V19ZM18 11H14V13H18V11ZM18 15H14V17H18V15Z",fill:"currentColor"})),wM=e=>l.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0431 2H10.9568C10.2971 1.99998 9.73634 1.99997 9.27298 2.04192C8.78216 2.08636 8.31936 2.18306 7.8757 2.42385C7.21565 2.78208 6.63581 3.4145 6.33608 4.10309C6.07506 4.70273 6.04659 5.3365 6.08749 6.05703C5.46395 5.94568 4.81155 6.0041 4.23936 6.19948C3.04525 6.60722 2 7.67416 2 9.33333C2 10.9011 2.93465 12.3261 4.14924 13.3166C5.17534 14.1534 6.49791 14.7656 7.9038 14.9455C8.07342 15.348 8.25496 15.7309 8.44863 16.0926C9.16922 17.4381 10.0941 18.5449 11.2341 19.2328C11.2011 19.7864 11.1205 20.1638 11.0302 20.428C10.9186 20.7548 10.7801 20.9456 10.63 21.1131C10.5685 21.1819 10.5157 21.2356 10.4504 21.3023C10.4159 21.3374 10.3779 21.3761 10.3332 21.4225C10.2199 21.5403 10.078 21.6939 9.94821 21.8835C9.66019 22.3044 9.5 22.8004 9.5 23.45L9.50001 25C9.50002 25.5523 9.94773 26 10.5 26H17.5C18.0523 26 18.5 25.5523 18.5 25L18.5 23.45C18.5 22.8004 18.3398 22.3044 18.0518 21.8835C17.922 21.6939 17.7801 21.5403 17.6667 21.4225C17.6221 21.3761 17.5842 21.3374 17.5497 21.3023C17.4843 21.2357 17.4315 21.1819 17.3699 21.1131C17.2199 20.9456 17.0814 20.7548 16.9698 20.428C16.8795 20.1638 16.7989 19.7864 16.7659 19.2327C17.9058 18.5448 18.8307 17.438 19.5512 16.0926C19.7449 15.7309 19.9264 15.348 20.0961 14.9456C21.502 14.7656 22.8246 14.1535 23.8508 13.3166C25.0654 12.3261 26 10.9011 26 9.33333C26 7.67416 24.9547 6.60722 23.7606 6.19948C23.1884 6.00409 22.5359 5.94567 21.9124 6.05705C21.9533 5.33652 21.9248 4.70274 21.6638 4.10309C21.364 3.4145 20.7842 2.78208 20.1242 2.42385C19.6805 2.18306 19.2177 2.08636 18.7269 2.04192C18.2635 1.99997 17.7028 1.99998 17.0431 2ZM14.8236 19.9389C14.5575 19.9792 14.2829 20 13.9999 20C13.717 20 13.4425 19.9792 13.1764 19.939C13.1209 20.3717 13.0352 20.7456 12.9229 21.0744C12.7064 21.7083 12.4074 22.1264 12.1199 22.4473C12.027 22.5512 11.9226 22.6577 11.8441 22.7378C11.8173 22.7651 11.7935 22.7894 11.7742 22.8095C11.6825 22.9048 11.633 22.963 11.5987 23.0131C11.5586 23.0717 11.5 23.1663 11.5 23.45L11.5 24H16.5L16.5 23.45C16.5 23.1663 16.4414 23.0717 16.4013 23.0131C16.367 22.963 16.3175 22.9047 16.2258 22.8095C16.2191 22.8025 16.2118 22.795 16.204 22.787C16.1895 22.7721 16.1734 22.7556 16.1559 22.7378C16.0774 22.6577 15.973 22.5512 15.88 22.4473C15.5926 22.1264 15.2936 21.7083 15.0771 21.0744C14.9648 20.7456 14.8791 20.3717 14.8236 19.9389ZM22.5867 11.7667C22.0852 12.1758 21.4926 12.5067 20.8618 12.7223C21.2393 11.3709 21.5191 9.8791 21.7068 8.29017C21.957 8.04001 22.5276 7.89182 23.1144 8.09219C23.6286 8.26777 24 8.65915 24 9.33333C24 10.0989 23.518 11.0072 22.5867 11.7667ZM7.13805 12.7223C6.76055 11.3709 6.48076 9.87916 6.29305 8.2903C6.04288 8.04014 5.47243 7.89182 4.88564 8.09219C4.37141 8.26777 4 8.65915 4 9.33333C4 10.0989 4.48202 11.0072 5.41326 11.7667C5.91481 12.1757 6.50728 12.5066 7.13805 12.7223ZM8.82971 4.18165C8.94388 4.11969 9.10823 4.06502 9.45333 4.03377C9.81582 4.00095 10.2854 4 10.9999 4H16.9999C17.7144 4 18.184 4.00095 18.5465 4.03377C18.8916 4.06502 19.056 4.11969 19.1701 4.18165C19.4381 4.32709 19.7083 4.62176 19.83 4.90133C19.9587 5.19692 19.9576 5.53152 19.8378 6.90929C19.5396 10.3402 18.837 13.1898 17.7881 15.1483C16.7437 17.0985 15.4631 18 13.9999 18C12.5368 18 11.2561 17.0985 10.2117 15.1483C9.16282 13.1898 8.46022 10.3402 8.16205 6.90929C8.04231 5.53152 8.0412 5.19692 8.16987 4.90133C8.29157 4.62176 8.56173 4.32709 8.82971 4.18165Z",fill:"currentColor"})),yM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M11.0317 3.02681C6.53173 3.51681 3.02173 7.33682 3.02173 11.9768C3.02173 16.9468 7.05173 20.9768 12.0217 20.9768C16.6517 20.9768 20.4717 17.4768 20.9717 12.9768C21.0617 12.1868 20.1917 11.5568 19.4317 12.0268C18.5917 12.5668 17.5917 12.8768 16.5217 12.8768C13.5417 12.8768 11.1217 10.4568 11.1217 7.47681C11.1217 6.41681 11.4317 5.41682 11.9617 4.58682C12.4117 3.91682 11.9217 2.95681 11.0317 3.02681Z",fill:"currentColor"})),bM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M9.37 5.51C9.19 6.15 9.1 6.82 9.1 7.5C9.1 11.58 12.42 14.9 16.5 14.9C17.18 14.9 17.85 14.81 18.49 14.63C17.45 17.19 14.93 19 12 19C8.14 19 5 15.86 5 12C5 9.07 6.81 6.55 9.37 5.51ZM12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C16.97 21 21 16.97 21 12C21 11.54 20.96 11.08 20.9 10.64C19.92 12.01 18.32 12.9 16.5 12.9C13.52 12.9 11.1 10.48 11.1 7.5C11.1 5.69 11.99 4.08 13.36 3.1C12.92 3.04 12.46 3 12 3Z"})),xM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M4 13H10C10.55 13 11 12.55 11 12V4C11 3.45 10.55 3 10 3H4C3.45 3 3 3.45 3 4V12C3 12.55 3.45 13 4 13ZM4 21H10C10.55 21 11 20.55 11 20V16C11 15.45 10.55 15 10 15H4C3.45 15 3 15.45 3 16V20C3 20.55 3.45 21 4 21ZM14 21H20C20.55 21 21 20.55 21 20V12C21 11.45 20.55 11 20 11H14C13.45 11 13 11.45 13 12V20C13 20.55 13.45 21 14 21ZM13 4V8C13 8.55 13.45 9 14 9H20C20.55 9 21 8.55 21 8V4C21 3.45 20.55 3 20 3H14C13.45 3 13 3.45 13 4Z",fill:"currentColor"})),z9=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M16 9V19H8V9H16ZM14.5 3H9.5L8.5 4H5V6H19V4H15.5L14.5 3ZM18 7H6V19C6 20.1 6.9 21 8 21H16C17.1 21 18 20.1 18 19V7Z"})),SM=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("circle",{cx:8,cy:8,r:6.3,stroke:"currentColor",strokeWidth:1.4}),l.createElement("path",{d:"M3.83594 3.91602L12.0855 12.1656",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"})),EM=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.03968 1.60079C4.66557 1.26607 5.28221 1.14285 6.68094 1.14285H7.99999C8.01745 1.14285 8.03473 1.14364 8.0518 1.14517C8.33773 1.15122 8.50423 1.17006 8.68876 1.21259C8.9203 1.26596 9.12949 1.3526 9.33094 1.47859C9.53431 1.60578 9.69036 1.73938 10.0123 2.06129L12.7958 4.84486C13.1177 5.16677 13.2514 5.32282 13.3785 5.52619C13.5045 5.72764 13.5912 5.93683 13.6445 6.16837C13.6871 6.3529 13.7059 6.5194 13.712 6.80534C13.7135 6.8224 13.7143 6.83968 13.7143 6.85714V7.16168C13.7143 7.47728 13.4584 7.73311 13.1428 7.73311C12.8273 7.73311 12.5714 7.47728 12.5714 7.16168V6.85714C12.5714 6.85706 12.5714 6.85722 12.5714 6.85714L12.57 6.85689L9.42856 6.85714C8.63958 6.85714 7.99999 6.21755 7.99999 5.42857L8.00084 2.28711C7.96988 2.28661 7.93659 2.28625 7.90064 2.28602L6.68094 2.28571C5.34668 2.28571 4.95621 2.40666 4.57865 2.60858C4.22056 2.80009 3.94294 3.07771 3.75143 3.4358C3.54951 3.81336 3.42856 4.20383 3.42856 5.53808V10.4619C3.42856 11.7962 3.54951 12.1866 3.75143 12.5642C3.94294 12.9223 4.22056 13.1999 4.57865 13.3914C4.95621 13.5933 5.34668 13.7143 6.68094 13.7143H9.31904C9.45614 13.7143 9.58351 13.713 9.70218 13.7105C10.0177 13.7038 10.2789 13.9542 10.2856 14.2697C10.2923 14.5852 10.0419 14.8464 9.72637 14.8531C9.59857 14.8558 9.46307 14.8571 9.31904 14.8571H6.68094C5.28221 14.8571 4.66557 14.7339 4.03968 14.3992C3.48243 14.1012 3.04167 13.6604 2.74365 13.1032C2.40892 12.4773 2.28571 11.8606 2.28571 10.4619V5.53808C2.28571 4.13936 2.40892 3.52272 2.74365 2.89683C3.04167 2.33957 3.48243 1.89882 4.03968 1.60079ZM9.20415 2.86942L9.14285 2.80857V5.42857C9.14285 5.56883 9.24392 5.68549 9.3772 5.70968L9.42856 5.71428L12.0499 5.71546C12.0303 5.69571 12.0096 5.67492 11.9877 5.65298L9.20415 2.86942Z",fill:"currentColor"}),l.createElement("path",{d:"M11.9985 15.4286C11.6829 15.4286 11.4271 15.1727 11.4271 14.8571L11.4271 10.5224L10.1183 11.8312C9.89518 12.0543 9.53337 12.0543 9.31022 11.8312C9.08706 11.608 9.08706 11.2462 9.31022 11.023L11.5945 8.73879C11.8176 8.51563 12.1794 8.51563 12.4026 8.73879L14.6896 11.0258C14.9128 11.249 14.9128 11.6108 14.6896 11.834C14.4665 12.0571 14.1047 12.0571 13.8815 11.834L12.5699 10.5224L12.5699 14.8571C12.5699 15.1727 12.3141 15.4286 11.9985 15.4286Z",fill:"currentColor"})),MM=e=>l.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M8.49618 13.901C8.49618 13.404 8.89912 13.001 9.39618 13.001H10.5962C11.0932 13.001 11.4962 13.404 11.4962 13.901C11.4962 14.3981 11.0932 14.801 10.5962 14.801L9.39618 14.801C8.89912 14.801 8.49618 14.3981 8.49618 13.901Z"}),l.createElement("path",{d:"M9.39618 16.1981C8.89912 16.1981 8.49618 16.601 8.49618 17.0981C8.49618 17.5951 8.89912 17.9981 9.39618 17.9981L10.5962 17.9981C11.0932 17.9981 11.4962 17.5951 11.4962 17.0981C11.4962 16.601 11.0932 16.1981 10.5962 16.1981H9.39618Z"}),l.createElement("path",{d:"M13.5 13.901C13.5 13.404 13.9029 13.001 14.4 13.001H15.6C16.0971 13.001 16.5 13.404 16.5 13.901C16.5 14.3981 16.097 14.801 15.6 14.801L14.4 14.801C13.9029 14.801 13.5 14.3981 13.5 13.901Z"}),l.createElement("path",{d:"M14.4 16.1981C13.9029 16.1981 13.5 16.601 13.5 17.0981C13.5 17.5951 13.9029 17.9981 14.4 17.9981L15.6 17.9981C16.097 17.9981 16.5 17.5951 16.5 17.0981C16.5 16.601 16.0971 16.1981 15.6 16.1981H14.4Z"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.973 1.99993C13.2727 1.99956 13.5594 1.9992 13.8389 2.0663C14.0838 2.12509 14.3179 2.22206 14.5327 2.35365C14.7777 2.50383 14.9802 2.70685 15.1918 2.91898L19.581 7.30816C19.7931 7.51976 19.9961 7.72228 20.1463 7.96734C20.2779 8.18208 20.3749 8.41618 20.4337 8.66107C20.5008 8.94054 20.5004 9.2273 20.5 9.52692L20.5 15.5385C20.5 16.486 20.5 17.2517 20.4493 17.8721C20.3971 18.5114 20.2866 19.0752 20.0204 19.5976C19.5986 20.4255 18.9255 21.0986 18.0976 21.5205C17.5752 21.7866 17.0114 21.8971 16.3721 21.9494C15.7517 22.0001 14.9859 22.0001 14.0384 22H10.9616C10.0141 22.0001 9.24834 22.0001 8.62792 21.9494C7.98863 21.8971 7.42481 21.7866 6.90244 21.5205C6.07453 21.0986 5.40142 20.4255 4.97957 19.5976C4.71341 19.0752 4.60291 18.5114 4.55067 17.8721C4.49998 17.2517 4.49999 16.486 4.5 15.5384V8.46163C4.49999 7.51414 4.49998 6.74838 4.55067 6.12796C4.60291 5.48867 4.71341 4.92485 4.97957 4.40248C5.40142 3.57457 6.07453 2.90146 6.90244 2.47961C7.42481 2.21345 7.98863 2.10295 8.62792 2.05072C9.24834 2.00003 10.0141 2.00003 10.9616 2.00004L12.973 1.99993ZM11 3.80001L12.5 3.79999V5.93542C12.5 6.46528 12.5 6.91647 12.5302 7.2869C12.562 7.67606 12.6317 8.05466 12.8161 8.41659C13.0941 8.96226 13.5378 9.4059 14.0834 9.68394C14.4454 9.86835 14.824 9.93798 15.2131 9.96978C15.5835 10 16.0347 10 16.5645 10L18.7 10L18.7 15.5C18.7 16.495 18.6993 17.1871 18.6553 17.7255C18.6122 18.2535 18.5319 18.5541 18.4166 18.7804C18.1673 19.2696 17.7696 19.6674 17.2804 19.9167C17.0541 20.032 16.7535 20.1122 16.2255 20.1553C15.687 20.1993 14.9949 20.2 14 20.2H11C10.0051 20.2 9.31298 20.1993 8.7745 20.1553C8.24652 20.1122 7.94595 20.032 7.71962 19.9167C7.2304 19.6674 6.83266 19.2696 6.58339 18.7804C6.46807 18.5541 6.38783 18.2535 6.3447 17.7255C6.3007 17.1871 6.3 16.495 6.3 15.5V8.50004C6.3 7.5051 6.3007 6.81302 6.3447 6.27454C6.38783 5.74656 6.46806 5.44599 6.58338 5.21967C6.83265 4.73045 7.2304 4.3327 7.71962 4.08343C7.94595 3.96811 8.24652 3.88788 8.7745 3.84474C9.31298 3.80074 10.0051 3.80001 11 3.80001ZM14.3 4.5728L17.9272 8.20002H16.6C16.0251 8.20002 15.648 8.19932 15.3597 8.17576C15.0818 8.15306 14.9665 8.1137 14.9006 8.08012C14.6936 7.97466 14.5254 7.80639 14.4199 7.59941C14.3863 7.53352 14.347 7.41817 14.3243 7.14033C14.3007 6.85197 14.3 6.47492 14.3 5.90002V4.5728Z"})),LM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5373 6.95518C13.2485 6.37004 12.6525 5.99958 12 5.99958C11.3475 5.99958 10.7515 6.37004 10.4627 6.95518L9.60207 8.6991L7.67754 8.97875C7.03179 9.07259 6.49531 9.52489 6.29367 10.1455C6.09203 10.7661 6.26019 11.4473 6.72746 11.9028L8.12006 13.2603L7.79132 15.177C7.68101 15.8201 7.94539 16.4701 8.4733 16.8537C9.00121 17.2372 9.70108 17.2878 10.2787 16.9842L12 16.0792L13.7214 16.9842C14.2989 17.2878 14.9988 17.2372 15.5267 16.8537C16.0546 16.4701 16.319 15.8201 16.2087 15.177L15.88 13.2603L17.2726 11.9028C17.7398 11.4473 17.908 10.7661 17.7063 10.1455C17.5047 9.52489 16.9682 9.07259 16.3225 8.97875L14.3979 8.6991L13.5373 6.95518ZM10.7405 10.266L12 7.71387L13.2596 10.266L16.076 10.6752L14.038 12.6618L14.5191 15.4668L12 14.1424L9.48093 15.4668L9.96203 12.6618L7.92405 10.6752L10.7405 10.266Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1.71387C6.31937 1.71387 1.71429 6.31894 1.71429 11.9996C1.71429 17.6802 6.31937 22.2853 12 22.2853C17.6807 22.2853 22.2857 17.6802 22.2857 11.9996C22.2857 6.31894 17.6807 1.71387 12 1.71387ZM3.42858 11.9996C3.42858 7.26571 7.26614 3.42815 12 3.42815C16.7339 3.42815 20.5714 7.26571 20.5714 11.9996C20.5714 16.7335 16.7339 20.571 12 20.571C7.26614 20.571 3.42858 16.7335 3.42858 11.9996Z",fill:"currentColor"})),NM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M8.80004 15.9054L5.30004 12.4054C4.91004 12.0154 4.29004 12.0154 3.90004 12.4054C3.51004 12.7954 3.51004 13.4154 3.90004 13.8054L8.09004 17.9954C8.48004 18.3854 9.11004 18.3854 9.50004 17.9954L20.1 7.40539C20.49 7.01539 20.49 6.39539 20.1 6.00539C19.71 5.61539 19.09 5.61539 18.7 6.00539L8.80004 15.9054Z",fill:"currentColor"})),PM=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8242 3.77574C14.0586 4.01006 14.0586 4.38995 13.8242 4.62427L6.42426 12.0243C6.31174 12.1368 6.15913 12.2 6 12.2C5.84087 12.2 5.68826 12.1368 5.57574 12.0243L2.17574 8.62427C1.94142 8.38996 1.94142 8.01006 2.17574 7.77574C2.41005 7.54143 2.78995 7.54143 3.02426 7.77574L6 10.7515L12.9757 3.77574C13.21 3.54143 13.5899 3.54143 13.8242 3.77574Z",fill:"currentColor"})),_M=e=>l.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3572 3L13 3C13.5523 3 14 3.44772 14 4C14 4.55229 13.5523 5 13 5H10.4C9.26339 5 8.47108 5.00078 7.85424 5.05118C7.24907 5.10062 6.90138 5.19279 6.63803 5.32698C6.07354 5.6146 5.6146 6.07354 5.32698 6.63803C5.19279 6.90138 5.10062 7.24907 5.05118 7.85424C5.00078 8.47108 5 9.26339 5 10.4V17.6C5 18.7366 5.00078 19.5289 5.05118 20.1458C5.10062 20.7509 5.19279 21.0986 5.32698 21.362C5.6146 21.9265 6.07354 22.3854 6.63803 22.673C6.90138 22.8072 7.24907 22.8994 7.85424 22.9488C8.47108 22.9992 9.26339 23 10.4 23H13C13.5523 23 14 23.4477 14 24C14 24.5523 13.5523 25 13 25H10.3572C9.27339 25 8.39925 25 7.69138 24.9422C6.96253 24.8826 6.32234 24.7568 5.73005 24.455C4.78924 23.9757 4.02433 23.2108 3.54497 22.27C3.24318 21.6777 3.11737 21.0375 3.05782 20.3086C2.99998 19.6007 2.99999 18.7266 3 17.6428V10.3572C2.99999 9.27341 2.99998 8.39926 3.05782 7.69138C3.11737 6.96253 3.24318 6.32234 3.54497 5.73005C4.02433 4.78924 4.78924 4.02433 5.73005 3.54497C6.32234 3.24318 6.96253 3.11737 7.69138 3.05782C8.39926 2.99998 9.27341 2.99999 10.3572 3ZM19.2929 9.29289C19.6834 8.90237 20.3166 8.90237 20.7071 9.29289L24.7071 13.2929C24.8946 13.4804 25 13.7348 25 14C25 14.2652 24.8946 14.5196 24.7071 14.7071L20.7071 18.7071C20.3166 19.0976 19.6834 19.0976 19.2929 18.7071C18.9024 18.3166 18.9024 17.6834 19.2929 17.2929L21.5858 15H12C11.4477 15 11 14.5523 11 14C11 13.4477 11.4477 13 12 13H21.5858L19.2929 10.7071C18.9024 10.3166 18.9024 9.68342 19.2929 9.29289Z",fill:"#2688EB"})),IM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12.4971 2 12.9 2.40294 12.9 2.9V13.8272L17.4636 9.26361C17.8151 8.91214 18.3849 8.91214 18.7364 9.26361C19.0879 9.61508 19.0879 10.1849 18.7364 10.5364L12.6364 16.6364C12.2849 16.9879 11.7151 16.9879 11.3636 16.6364L5.26361 10.5364C4.91214 10.1849 4.91214 9.61508 5.26361 9.26361C5.61508 8.91214 6.18493 8.91214 6.5364 9.26361L11.1 13.8272V2.9C11.1 2.40294 11.5029 2 12 2ZM4 20C4 19.5029 4.40294 19.1 4.9 19.1H19.1C19.5971 19.1 20 19.5029 20 20C20 20.4971 19.5971 20.9 19.1 20.9H4.9C4.40294 20.9 4 20.4971 4 20Z",fill:"currentColor"})),kM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{clipPath:"url(#clip0_7757_15850)"},l.createElement("path",{d:"M11 18C11 19.1 10.1 20 9 20C7.9 20 7 19.1 7 18C7 16.9 7.9 16 9 16C10.1 16 11 16.9 11 18ZM9 10C7.9 10 7 10.9 7 12C7 13.1 7.9 14 9 14C10.1 14 11 13.1 11 12C11 10.9 10.1 10 9 10ZM9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM15 8C16.1 8 17 7.1 17 6C17 4.9 16.1 4 15 4C13.9 4 13 4.9 13 6C13 7.1 13.9 8 15 8ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM15 16C13.9 16 13 16.9 13 18C13 19.1 13.9 20 15 20C16.1 20 17 19.1 17 18C17 16.9 16.1 16 15 16Z"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_7757_15850"},l.createElement("rect",{width:24,height:24,rx:8})))),TM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M2.79498 17.455V21.205H6.54498L17.605 10.145L13.855 6.39498L2.79498 17.455ZM21.205 6.54498L17.455 2.79498L14.925 5.33498L18.675 9.08498L21.205 6.54498Z",fill:"currentColor"})),DM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M14.0587 9.02L14.9787 9.94L5.91875 19H4.99875V18.08L14.0587 9.02ZM17.6587 3C17.4087 3 17.1487 3.1 16.9587 3.29L15.1287 5.12L18.8787 8.87L20.7087 7.04C21.0987 6.65 21.0987 6.02 20.7087 5.63L18.3687 3.29C18.1687 3.09 17.9187 3 17.6587 3ZM14.0587 6.19L2.99875 17.25V21H6.74875L17.8087 9.94L14.0587 6.19Z"})),OM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M16 11.53C15.71 11.24 15.23 11.24 14.94 11.53L10.59 15.88L9 14.29C8.71 14 8.23 14 7.94 14.29C7.65 14.58 7.65 15.06 7.94 15.35L9.88 17.29C10.27 17.68 10.9 17.68 11.29 17.29L15.99 12.59C16.29 12.3 16.29 11.82 16 11.53ZM19 4H18V3C18 2.45 17.55 2 17 2C16.45 2 16 2.45 16 3V4H8V3C8 2.45 7.55 2 7 2C6.45 2 6 2.45 6 3V4H5C3.89 4 3.01 4.9 3.01 6L3 20C3 21.1 3.89 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM18 20H6C5.45 20 5 19.55 5 19V9H19V19C19 19.55 18.55 20 18 20Z"})),VM=e=>l.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M13.3333 9.16602H6.66667C6.20833 9.16602 5.83333 9.54102 5.83333 9.99935C5.83333 10.4577 6.20833 10.8327 6.66667 10.8327H13.3333C13.7917 10.8327 14.1667 10.4577 14.1667 9.99935C14.1667 9.54102 13.7917 9.16602 13.3333 9.16602ZM15.8333 3.33268H15V2.49935C15 2.04102 14.625 1.66602 14.1667 1.66602C13.7083 1.66602 13.3333 2.04102 13.3333 2.49935V3.33268H6.66667V2.49935C6.66667 2.04102 6.29167 1.66602 5.83333 1.66602C5.375 1.66602 5 2.04102 5 2.49935V3.33268H4.16667C3.24167 3.33268 2.5 4.08268 2.5 4.99935V16.666C2.5 17.5827 3.24167 18.3327 4.16667 18.3327H15.8333C16.75 18.3327 17.5 17.5827 17.5 16.666V4.99935C17.5 4.08268 16.75 3.33268 15.8333 3.33268ZM15 16.666H5C4.54167 16.666 4.16667 16.291 4.16667 15.8327V7.49935H15.8333V15.8327C15.8333 16.291 15.4583 16.666 15 16.666ZM10.8333 12.4993H6.66667C6.20833 12.4993 5.83333 12.8743 5.83333 13.3327C5.83333 13.791 6.20833 14.166 6.66667 14.166H10.8333C11.2917 14.166 11.6667 13.791 11.6667 13.3327C11.6667 12.8743 11.2917 12.4993 10.8333 12.4993Z",fill:"currentColor"})),HM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:22,viewBox:"0 0 21 22",fill:"currentColor",...e},l.createElement("path",{d:"M18 10V4C18 2.9 17.1 2 16 2H15V0H13V2H5V0H3V2H2C0.9 2 0 2.9 0 4V18C0 19.1 0.9 20 2 20H9V18H2V8H16V10H18ZM16 6H2V4H16V6ZM12.64 18C13.07 19.45 14.41 20.5 16 20.5C17.93 20.5 19.5 18.93 19.5 17C19.5 15.07 17.93 13.5 16 13.5C15.05 13.5 14.18 13.88 13.55 14.5H15V16H11V12H12.5V13.43C13.4 12.55 14.64 12 16 12C18.76 12 21 14.24 21 17C21 19.76 18.76 22 16 22C13.58 22 11.56 20.28 11.1 18H12.64Z"})),AM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H20C21.1 21 22 20.1 22 19V5C22 3.9 21.1 3 20 3ZM20 19H4V5H20V19Z"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.41 10.42L17.99 9L14.82 12.17L13.41 10.75L12 12.16L14.82 15L19.41 10.42Z"}),l.createElement("path",{d:"M10 7H5V9H10V7Z"}),l.createElement("path",{d:"M10 11H5V13H10V11Z"}),l.createElement("path",{d:"M10 15H5V17H10V15Z"})),FM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M14 10V8.48C14 7.77 13.29 7.29 12.63 7.55L9 9V8.52C9 7.8 8.27 7.31 7.61 7.6L3.21 9.48C2.48 9.8 2 10.52 2 11.32V20C2 21.1 2.9 22 4 22H20C21.1 22 22 21.1 22 20V10H14ZM9 17C9 17.55 8.55 18 8 18C7.45 18 7 17.55 7 17V15C7 14.45 7.45 14 8 14C8.55 14 9 14.45 9 15V17ZM13 17C13 17.55 12.55 18 12 18C11.45 18 11 17.55 11 17V15C11 14.45 11.45 14 12 14C12.55 14 13 14.45 13 15V17ZM17 17C17 17.55 16.55 18 16 18C15.45 18 15 17.55 15 17V15C15 14.45 15.45 14 16 14C16.55 14 17 14.45 17 15V17Z"}),l.createElement("path",{d:"M20.12 2H18.89C18.38 2 17.96 2.38 17.9 2.88L17.2 8.5H21.8L21.11 2.88C21.05 2.38 20.62 2 20.12 2Z"})),$M=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M21 3H3C1.9 3 1 3.9 1 5V19C1 20.1 1.9 21 3 21H21C22.1 21 23 20.1 23 19V5C23 3.9 22.1 3 21 3ZM11 11H4C3.45 11 3 10.55 3 10C3 9.45 3.45 9 4 9H11C11.55 9 12 9.45 12 10C12 10.55 11.55 11 11 11ZM11 7H4C3.45 7 3 6.55 3 6C3 5.45 3.45 5 4 5H11C11.55 5 12 5.45 12 6C12 6.55 11.55 7 11 7Z"})),Ln=e=>l.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M6 2.5C4.9 2.5 4.01 3.4 4.01 4.5L4 20.5C4 21.6 4.89 22.5 5.99 22.5H18C19.1 22.5 20 21.6 20 20.5V9.33C20 8.8 19.79 8.29 19.41 7.92L14.58 3.09C14.21 2.71 13.7 2.5 13.17 2.5H6ZM13 8.5V4L18.5 9.5H14C13.45 9.5 13 9.05 13 8.5Z"})),zM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{id:"Vector",d:"M16.5 1H4.5C3.4 1 2.5 1.9 2.5 3V17H4.5V3H16.5V1ZM15.5 5L21.5 11V21C21.5 22.1 20.6 23 19.5 23H8.49C7.39 23 6.5 22.1 6.5 21L6.51 7C6.51 5.9 7.4 5 8.5 5H15.5ZM14.5 12H20L14.5 6.5V12Z"})),BM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M16.5 1H4.5C3.4 1 2.5 1.9 2.5 3V17H4.5V3H16.5V1ZM15.5 5H8.5C7.4 5 6.51 5.9 6.51 7L6.5 21C6.5 22.1 7.39 23 8.49 23H19.5C20.6 23 21.5 22.1 21.5 21V11L15.5 5ZM8.5 21V7H14.5V12H19.5V21H8.5Z"})),ZM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M18 15V18H6V15H4V18C4 19.1 4.9 20 6 20H18C19.1 20 20 19.1 20 18V15H18ZM17 11L15.59 9.59L13 12.17V4H11V12.17L8.41 9.59L7 11L12 16L17 11Z"})),B9=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M17.6601 5.2901L14.0901 9.8401L15.5201 11.2701C16.5501 9.9601 20.5001 4.9001 20.5001 4.9001C21.0101 4.2401 20.5401 3.2901 19.7101 3.2901H7.5401L9.5401 5.2901H17.6601Z"}),l.createElement("path",{d:"M3.5201 2.1001L2.1001 3.5101L10.7101 12.2901V18.2901C10.7101 18.8401 11.1601 19.2901 11.7101 19.2901H13.7101C14.2601 19.2901 14.7101 18.8401 14.7101 18.2901V16.1201L20.4901 21.9001L21.9001 20.4901L3.5201 2.1001Z"})),WM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M17.6985 15.89L13.8185 12L17.7085 8.11C18.0985 7.72 18.0985 7.09 17.7085 6.7C17.3185 6.31 16.6885 6.31 16.2985 6.7L11.7085 11.29C11.3185 11.68 11.3185 12.31 11.7085 12.7L16.2985 17.29C16.6885 17.68 17.3185 17.68 17.7085 17.29C18.0885 16.91 18.0885 16.27 17.6985 15.89ZM6.99854 6C7.54854 6 7.99854 6.45 7.99854 7V17C7.99854 17.55 7.54854 18 6.99854 18C6.44854 18 5.99854 17.55 5.99854 17V7C5.99854 6.45 6.44854 6 6.99854 6Z",fill:"currentColor"})),RM=e=>l.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M11.86 6.25L12.26 8.25H17.5V14.25H14.14L13.74 12.25H6.5V6.25H11.86ZM13.5 4.25H4.5V21.25H6.5V14.25H12.1L12.5 16.25H19.5V6.25H13.9L13.5 4.25Z"})),GM=e=>l.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M13.9 6.25L13.5 4.25H4.5V21.25H6.5V14.25H12.1L12.5 16.25H19.5V6.25H13.9Z"})),jM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M14 15H4C3.45 15 3 15.45 3 16C3 16.55 3.45 17 4 17H14C14.55 17 15 16.55 15 16C15 15.45 14.55 15 14 15ZM14 7H4C3.45 7 3 7.45 3 8C3 8.55 3.45 9 4 9H14C14.55 9 15 8.55 15 8C15 7.45 14.55 7 14 7ZM4 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H4C3.45 11 3 11.45 3 12C3 12.55 3.45 13 4 13ZM4 21H20C20.55 21 21 20.55 21 20C21 19.45 20.55 19 20 19H4C3.45 19 3 19.45 3 20C3 20.55 3.45 21 4 21ZM3 4C3 4.55 3.45 5 4 5H20C20.55 5 21 4.55 21 4C21 3.45 20.55 3 20 3H4C3.45 3 3 3.45 3 4Z",fill:"currentColor"})),YM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.2998 17C2.8998 16.3 2.4998 15.5 2.2998 14.7C2.7998 14.4 3.1998 14.1 3.4998 13.6C3.7998 13.1 3.8998 12.6 3.8998 12C3.8998 11.4 3.6998 10.9 3.4998 10.4C3.1998 9.9 2.7998 9.5 2.2998 9.3C2.7998 7.7 3.5998 6.2 4.7998 5C5.2998 5.3 5.79981 5.5 6.39981 5.5C6.9998 5.5 7.4998 5.4 7.9998 5.1C8.4998 4.8 8.89981 4.4 9.0998 3.9C9.39981 3.4 9.4998 2.9 9.4998 2.3C11.0998 1.9 12.8998 1.9 14.4998 2.3C14.4998 2.8482 14.4998 3.31293 14.8049 3.77045L14.8901 6.79469C13.7951 6.1941 12.9989 5.19646 12.6998 4H11.1998C10.7998 5.2 9.9998 6.2 8.8998 6.8C7.7998 7.4 6.5998 7.6 5.3998 7.4C5.0998 7.8 4.8998 8.2 4.6998 8.7C5.4998 9.6 5.9998 10.8 5.9998 12C5.9998 13.3 5.4998 14.4 4.6998 15.3C4.8998 15.8 5.1998 16.2 5.4998 16.6C6.6998 16.3 7.9998 16.6 8.9998 17.2C10.0998 17.8 10.8998 18.8 11.1998 20H12.6998C13.0998 18.8 13.8998 17.8 14.9998 17.2C15.0598 17.1673 15.12 17.1358 15.1805 17.1055L15.2001 17.8V18.7001C14.8001 19.2001 14.6001 19.9 14.6001 20.6C14.6001 20.6637 14.602 20.7269 14.6057 20.7895C14.5297 21.074 14.4998 21.3721 14.4998 21.7C12.8998 22.1 11.0998 22.1 9.4998 21.7C9.4998 21.1 9.4998 20.6 9.0998 20.1C8.7998 19.6 8.3998 19.2 7.9998 18.9C7.4998 18.6 6.9998 18.5 6.39981 18.5C5.79981 18.5 5.2998 18.7 4.7998 19C4.1998 18.4 3.6998 17.7 3.2998 17ZM19.5001 18.6844C20.535 17.5417 21.2427 16.1626 21.6998 14.7C21.1998 14.5 20.7998 14.1 20.4998 13.6C20.2998 13.1 20.0998 12.6 20.0998 12C20.0998 11.4 20.1998 10.9 20.4998 10.4C20.7998 9.9 21.1998 9.6 21.6998 9.3C21.4998 8.5 21.0998 7.7 20.6998 7C20.4518 6.56593 20.1653 6.13186 19.8403 5.72164L19.5001 17.8V18.6844ZM11.9998 15C11.1998 15 10.3998 14.7 9.8998 14.1C9.2998 13.5 8.9998 12.8 8.9998 12C8.9998 11.2 9.2998 10.4 9.8998 9.9C10.4998 9.3 11.1998 9 11.9998 9C12.7998 9 13.5998 9.3 14.0998 9.9C14.6998 10.5 14.9998 11.2 14.9998 12C14.9998 12.8 14.6998 13.6 14.0998 14.1C13.4998 14.7 12.7998 15 11.9998 15ZM11.9998 13C12.2998 13 12.4998 12.9 12.6998 12.7C12.8998 12.5 12.9998 12.3 12.9998 12C12.9998 11.7 12.8998 11.5 12.6998 11.3C12.4998 11.1 12.2998 11 11.9998 11C11.6998 11 11.4998 11.1 11.2998 11.3C11.0998 11.5 10.9998 11.7 10.9998 12C10.9998 12.3 11.0998 12.5 11.2998 12.7C11.4998 12.9 11.6998 13 11.9998 13Z"}),l.createElement("path",{d:"M16.5 17.5H18L18.5 3.5H16L16.5 17.5Z"}),l.createElement("circle",{cx:17.2002,cy:20.5,r:1.5})),UM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M9 13.75C6.66 13.75 2 14.92 2 17.25V19H16V17.25C16 14.92 11.34 13.75 9 13.75ZM4.34 17C5.18 16.42 7.21 15.75 9 15.75C10.79 15.75 12.82 16.42 13.66 17H4.34ZM9 12C10.93 12 12.5 10.43 12.5 8.5C12.5 6.57 10.93 5 9 5C7.07 5 5.5 6.57 5.5 8.5C5.5 10.43 7.07 12 9 12ZM9 7C9.83 7 10.5 7.67 10.5 8.5C10.5 9.33 9.83 10 9 10C8.17 10 7.5 9.33 7.5 8.5C7.5 7.67 8.17 7 9 7ZM16.04 13.81C17.2 14.65 18 15.77 18 17.25V19H22V17.25C22 15.23 18.5 14.08 16.04 13.81ZM15 12C16.93 12 18.5 10.43 18.5 8.5C18.5 6.57 16.93 5 15 5C14.46 5 13.96 5.13 13.5 5.35C14.13 6.24 14.5 7.33 14.5 8.5C14.5 9.67 14.13 10.76 13.5 11.65C13.96 11.87 14.46 12 15 12Z"})),qM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM8 17.5C6.62 17.5 5.5 16.38 5.5 15C5.5 13.62 6.62 12.5 8 12.5C9.38 12.5 10.5 13.62 10.5 15C10.5 16.38 9.38 17.5 8 17.5ZM9.5 8C9.5 6.62 10.62 5.5 12 5.5C13.38 5.5 14.5 6.62 14.5 8C14.5 9.38 13.38 10.5 12 10.5C10.62 10.5 9.5 9.38 9.5 8ZM16 17.5C14.62 17.5 13.5 16.38 13.5 15C13.5 13.62 14.62 12.5 16 12.5C17.38 12.5 18.5 13.62 18.5 15C18.5 16.38 17.38 17.5 16 17.5Z"})),KM=e=>l.createElement("svg",{width:127,height:128,viewBox:"0 0 127 128",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{clipPath:"url(#clip0_4484_18635)"},l.createElement("path",{d:"M116.625 19.1733C113.685 16.6293 109.795 15.552 105.941 16.176C103.815 16.528 101.893 17.4773 100.25 18.8V18.6613C100.25 11.312 94.3595 5.32796 87.125 5.32796C83.765 5.32796 80.7305 6.65596 78.41 8.76796C76.5673 3.66396 71.7793 -0.00537109 66.125 -0.00537109C58.8905 -0.00537109 53 5.97863 53 13.328V13.4666C51.3568 12.144 49.4353 11.1946 47.309 10.8426C43.466 10.224 39.5653 11.296 36.6253 13.84C33.6853 16.3786 32 20.08 32 24V80.5387L22.571 72.9226C17.2895 67.9093 8.98403 68.1866 4.04378 73.5573C-0.896466 78.928 -0.623466 87.3867 4.62653 92.384L22.235 109.632C34.331 121.477 50.2385 128 67.0385 128H79.3865C102.471 128 121.25 108.923 121.25 85.472V29.3333C121.25 25.4186 119.565 21.712 116.625 19.1733ZM116 85.472C116 105.984 99.578 122.667 79.3865 122.667H67.0385C51.6088 122.667 36.9875 116.672 25.8785 105.792L8.24378 88.5173C5.07278 85.4986 4.91003 80.416 7.87628 77.1946C9.30953 75.6373 11.2573 74.7413 13.352 74.6666C15.4993 74.6293 17.4523 75.3547 19.1428 76.9493L32.987 88.1493C33.7798 88.7893 34.856 88.9173 35.7643 88.464C36.6725 88.0213 37.25 87.088 37.25 86.064V24C37.25 21.6533 38.2633 19.4293 40.0273 17.904C41.8175 16.3573 44.1118 15.728 46.469 16.112C50.1913 16.7253 53.0053 20.3626 53.0053 24.5706V56C53.0053 57.472 54.1813 58.6666 55.6303 58.6666C57.0793 58.6666 58.2553 57.472 58.2553 56V13.3333C58.2553 8.92263 61.7885 5.3333 66.1303 5.3333C70.472 5.3333 74.0053 8.92263 74.0053 13.3333V56C74.0053 57.472 75.1813 58.6666 76.6303 58.6666C78.0793 58.6666 79.2553 57.472 79.2553 56V18.6666C79.2553 14.256 82.7885 10.6666 87.1303 10.6666C91.472 10.6666 95.0053 14.256 95.0053 18.6666V56C95.0053 57.472 96.1813 58.6666 97.6303 58.6666C99.0793 58.6666 100.255 57.472 100.255 56V29.904C100.255 25.696 103.064 22.0586 106.786 21.4453C109.154 21.0506 111.438 21.6906 113.228 23.2373C114.992 24.7626 116.005 26.9866 116.005 29.3333L116 85.472Z",fill:"#99A2AD"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_4484_18635"},l.createElement("rect",{width:126,height:128,fill:"white",transform:"translate(0.5)"})))),XM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M21.69 18.523L16.97 13.803C16.49 13.323 15.98 13.213 15.39 13.213L12.85 15.753C12.85 16.343 12.96 16.863 13.44 17.333L18.16 22.053C18.55 22.443 19.18 22.443 19.57 22.053L21.69 19.933C22.08 19.553 22.08 18.913 21.69 18.523Z"}),l.createElement("path",{d:"M16.65 9.84297C17.04 10.233 17.67 10.233 18.06 9.84297L18.77 9.13297L20.89 11.253C22.06 10.083 22.06 8.18297 20.89 7.01297L18.06 4.18297C17.67 3.79297 17.04 3.79297 16.65 4.18297L15.94 4.89297V2.35297C15.94 1.73297 15.18 1.40297 14.73 1.85297L12.19 4.39297C11.74 4.84297 12.07 5.60297 12.69 5.60297H15.23L14.52 6.31297C14.13 6.70297 14.13 7.33297 14.52 7.72297L14.87 8.07297L11.98 10.963L7.86999 6.83297V5.83297C7.86999 5.56297 7.75999 5.31297 7.57999 5.12297L5.55999 3.09297C5.16999 2.70297 4.53999 2.70297 4.14999 3.09297L2.72999 4.51297C2.33999 4.90297 2.33999 5.53297 2.72999 5.92297L4.74999 7.95297C4.93999 8.14297 5.18999 8.24297 5.45999 8.24297H6.45999L10.59 12.373L9.73999 13.223H8.43999C7.90999 13.223 7.39999 13.433 7.02999 13.813L2.30999 18.533C1.91999 18.923 1.91999 19.553 2.30999 19.943L4.42999 22.063C4.81999 22.453 5.44999 22.453 5.83999 22.063L10.56 17.343C10.94 16.963 11.15 16.463 11.15 15.933V14.643L16.3 9.49297L16.65 9.84297Z"})),QM=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M17.59 3.41L15 6V5C15 3.9 14.1 3 13 3H9C6.24 3 4 5.24 4 8H9V11H15V8L17.59 10.59C17.85 10.85 18.21 11 18.59 11H18.6C19.37 11 20 10.37 20 9.59V4.41C20 3.63 19.37 3 18.59 3H18.58C18.21 3 17.85 3.15 17.59 3.41Z",fill:"currentColor"}),l.createElement("path",{d:"M9 13V20C9 20.55 9.45 21 10 21H14C14.55 21 15 20.55 15 20V13H9Z",fill:"currentColor"})),JM=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM12.01 18C11.31 18 10.75 17.44 10.75 16.74C10.75 16.03 11.31 15.49 12.01 15.49C12.72 15.49 13.26 16.03 13.26 16.74C13.25 17.43 12.72 18 12.01 18ZM15.02 10.6C14.26 11.71 13.54 12.06 13.15 12.77C13.05 12.95 12.99 13.09 12.96 13.4C12.91 13.85 12.51 14.18 12.06 14.18H12C11.48 14.18 11.07 13.74 11.12 13.22C11.15 12.88 11.23 12.53 11.42 12.19C11.91 11.32 12.84 10.8 13.38 10.03C13.95 9.22 13.63 7.7 12.01 7.7C11.3 7.7 10.83 8.06 10.54 8.49C10.29 8.85 9.85 9.02 9.44 8.85C8.91 8.64 8.72 8 9.04 7.54C9.65 6.65 10.67 6 11.99 6C13.47 6 14.48 6.67 15 7.52C15.44 8.24 15.7 9.59 15.02 10.6Z"})),eL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M13.25 16.74C13.25 17.43 12.72 18 12 18C11.3 18 10.74 17.44 10.74 16.74C10.74 16.03 11.3 15.49 12 15.49C12.71 15.49 13.25 16.04 13.25 16.74ZM11.99 6C10.22 6 9.01 7.15 8.56 8.49L10.2 9.18C10.42 8.51 10.94 7.7 12 7.7C13.62 7.7 13.94 9.22 13.37 10.03C12.83 10.8 11.9 11.32 11.41 12.19C11.02 12.88 11.1 13.68 11.1 14.17H12.92C12.92 13.24 12.99 13.05 13.14 12.76C13.53 12.04 14.25 11.7 15.01 10.59C15.69 9.59 15.43 8.23 14.99 7.51C14.48 6.67 13.47 6 11.99 6ZM19 5H5V19H19V5ZM19 3C20.1 3 21 3.9 21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H19Z"})),Z9=e=>l.createElement("svg",{width:91,height:90,viewBox:"0 0 91 90",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{id:"hide_image"},l.createElement("g",{id:"Vector"},l.createElement("path",{d:"M74.7135 16.0873V57.9748L82.2135 65.4748V16.0873C82.2135 11.9623 78.8385 8.58726 74.7135 8.58726H25.326L32.826 16.0873H74.7135Z"}),l.createElement("path",{d:"M14.001 7.87476L8.67603 13.1623L14.7135 19.1998V68.5873C14.7135 72.7123 18.0885 76.0873 22.2135 76.0873H71.601L77.6385 82.1248L82.926 76.8373L14.001 7.87476ZM22.2135 68.5873V26.6998L48.726 53.2123L45.651 57.3373L37.2135 46.0873L25.9635 61.0873H56.601L64.101 68.5873H22.2135Z"})))),tL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M13.404 3.00178C8.31401 2.86178 4.14401 6.95178 4.14401 12.0018H2.35401C1.90401 12.0018 1.68401 12.5418 2.00401 12.8518L4.79401 15.6518C4.99401 15.8518 5.30401 15.8518 5.50401 15.6518L8.29401 12.8518C8.60401 12.5418 8.38401 12.0018 7.93401 12.0018H6.14401C6.14401 8.10178 9.32401 4.95178 13.244 5.00178C16.964 5.05178 20.094 8.18178 20.144 11.9018C20.194 15.8118 17.044 19.0018 13.144 19.0018C11.534 19.0018 10.044 18.4518 8.86401 17.5218C8.46401 17.2118 7.90401 17.2418 7.54401 17.6018C7.12401 18.0218 7.15401 18.7318 7.62401 19.0918C9.14401 20.2918 11.054 21.0018 13.144 21.0018C18.194 21.0018 22.284 16.8318 22.144 11.7418C22.014 7.05178 18.094 3.13178 13.404 3.00178ZM12.894 8.00178C12.484 8.00178 12.144 8.34178 12.144 8.75178V12.4318C12.144 12.7818 12.334 13.1118 12.634 13.2918L15.754 15.1418C16.114 15.3518 16.574 15.2318 16.784 14.8818C16.994 14.5218 16.874 14.0618 16.524 13.8518L13.644 12.1418V8.74178C13.644 8.34178 13.304 8.00178 12.894 8.00178Z",fill:"currentColor"})),nL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M8.24008 9.80569H2.22008C1.73008 9.80569 1.53008 10.4257 1.93008 10.7157L6.84008 14.2257L4.95008 20.3257C4.81008 20.7857 5.34008 21.1657 5.73008 20.8757L10.6601 17.1157L15.5901 20.8657C15.9801 21.1557 16.5101 20.7857 16.3701 20.3157L14.4801 14.2157L19.3901 10.7057C19.7901 10.4257 19.5901 9.79569 19.1001 9.79569H13.0801L11.1301 3.37569C10.9901 2.90569 10.3201 2.90569 10.1701 3.37569L8.24008 9.80569ZM20.5601 20.3157L19.1601 15.7957L22.0701 13.7157C22.4701 13.4357 22.2701 12.8057 21.7801 12.8057H19.9001L16.8201 15.0057L18.2801 19.7257L19.7801 20.8657C20.1701 21.1557 20.7001 20.7757 20.5601 20.3157ZM16.6601 7.80569L15.3201 3.38569C15.1801 2.91569 14.5101 2.91569 14.3601 3.38569L13.7901 5.25569L14.5701 7.80569H16.6601Z",fill:"currentColor"})),rL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M21 19V5C21 3.9 20.1 3 19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19ZM8.9 13.98L11 16.51L14.1 12.52C14.3 12.26 14.7 12.26 14.9 12.53L18.41 17.21C18.66 17.54 18.42 18.01 18.01 18.01H6.02C5.6 18.01 5.37 17.53 5.63 17.2L8.12 14C8.31 13.74 8.69 13.73 8.9 13.98Z",fill:"currentColor"})),oL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19 5V19H5V5H19ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM14.14 11.86L11.14 15.73L9 13.14L6 17H18L14.14 11.86Z"})),W9=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.17157 3.17187C2 4.34344 2 6.22906 2 10.0003V14.0003C2 17.7715 2 19.6572 3.17157 20.8287C4.34315 22.0003 6.22876 22.0003 10 22.0003H14C17.7712 22.0003 19.6569 22.0003 20.8284 20.8287C22 19.6572 22 17.7715 22 14.0003V14.0003V10.0003C22 7.16096 22 5.39048 21.5 4.18886V17.0003C20.5396 17.0003 19.6185 16.6188 18.9393 15.9396L18.1877 15.188C17.4664 14.4667 17.1057 14.106 16.6968 13.954C16.2473 13.787 15.7527 13.787 15.3032 13.954C14.8943 14.106 14.5336 14.4667 13.8123 15.188L13.6992 15.3011C13.1138 15.8865 12.8212 16.1791 12.5102 16.2337C12.2685 16.2761 12.0197 16.2282 11.811 16.0991C11.5425 15.9329 11.3795 15.5525 11.0534 14.7916L11 14.667C10.2504 12.9178 9.87554 12.0432 9.22167 11.7154C8.89249 11.5504 8.52413 11.4795 8.1572 11.5104C7.42836 11.5719 6.75554 12.2448 5.40989 13.5904L3.5 15.5003V2.8877C3.3844 2.9738 3.27519 3.06825 3.17157 3.17187Z",fill:"CurrentColor"}),l.createElement("path",{d:"M3 10C3 8.08611 3.00212 6.75129 3.13753 5.74416C3.26907 4.76579 3.50966 4.2477 3.87868 3.87868C4.2477 3.50966 4.76579 3.26907 5.74416 3.13753C6.75129 3.00212 8.08611 3 10 3H14C15.9139 3 17.2487 3.00212 18.2558 3.13753C19.2342 3.26907 19.7523 3.50966 20.1213 3.87868C20.4903 4.2477 20.7309 4.76579 20.8625 5.74416C20.9979 6.75129 21 8.08611 21 10V14C21 15.9139 20.9979 17.2487 20.8625 18.2558C20.7309 19.2342 20.4903 19.7523 20.1213 20.1213C19.7523 20.4903 19.2342 20.7309 18.2558 20.8625C17.2487 20.9979 15.9139 21 14 21H10C8.08611 21 6.75129 20.9979 5.74416 20.8625C4.76579 20.7309 4.2477 20.4903 3.87868 20.1213C3.50966 19.7523 3.26907 19.2342 3.13753 18.2558C3.00212 17.2487 3 15.9139 3 14V10Z",stroke:"CurrentColor",strokeWidth:2}),l.createElement("circle",{cx:15,cy:9,r:2,fill:"CurrentColor"})),aL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19 4H18V2H16V4H8V2H6V4H5C3.89 4 3.01 4.9 3.01 6L3 20C3 21.1 3.89 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM19 20H5V10H19V20ZM19 8H5V6H19V8ZM17 13H12V18H17V13Z"})),sL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{id:"Vector",d:"M20 2H4C3 2 2 2.9 2 4V7.01C2 7.73 2.43 8.35 3 8.7V20C3 21.1 4.1 22 5 22H19C19.9 22 21 21.1 21 20V8.7C21.57 8.35 22 7.73 22 7.01V4C22 2.9 21 2 20 2ZM14 14H10C9.45 14 9 13.55 9 13C9 12.45 9.45 12 10 12H14C14.55 12 15 12.45 15 13C15 13.55 14.55 14 14 14ZM20 7H4V4H20V7Z"})),iL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M15 22H19C20.1 22 21 21.1 21 20V17C21 15.9 20.1 15 19 15H18V13C18 11.9 17.1 11 16 11H13V9H14C15.1 9 16 8.1 16 7V4C16 2.9 15.1 2 14 2H10C8.9 2 8 2.9 8 4V7C8 8.1 8.9 9 10 9H11V11H8C6.9 11 6 11.9 6 13V15H5C3.9 15 3 15.9 3 17V20C3 21.1 3.9 22 5 22H9C10.1 22 11 21.1 11 20V17C11 15.9 10.1 15 9 15H8V13H16V15H15C13.9 15 13 15.9 13 17V20C13 21.1 13.9 22 15 22Z"})),lL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M13 22H21V15H18V11H13V9H16V2H8V9H11V11H6V15H3V22H11V15H8V13H16V15H13V22ZM10 7V4H14V7H10ZM9 17V20H5V17H9ZM19 17V20H15V17H19Z"})),cL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19 15H5C4.45 15 4 14.55 4 14C4 13.45 4.45 13 5 13H19C19.55 13 20 13.45 20 14C20 14.55 19.55 15 19 15ZM19 17H5C4.45 17 4 17.45 4 18C4 18.55 4.45 19 5 19H19C19.55 19 20 18.55 20 18C20 17.45 19.55 17 19 17ZM15 11L19.58 7.75C19.84 7.56 20 7.26 20 6.94C20 6.13 19.08 5.65 18.42 6.12L15 8.55L10 5L4.48 8.36C4.18 8.55 4 8.87 4 9.22C4 10 4.85 10.48 5.52 10.07L9.92 7.39L15 11Z"})),uL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 7C9.24 7 7 9.24 7 12C7 14.76 9.24 17 12 17C14.76 17 17 14.76 17 12C17 9.24 14.76 7 12 7ZM2 13H4C4.55 13 5 12.55 5 12C5 11.45 4.55 11 4 11H2C1.45 11 1 11.45 1 12C1 12.55 1.45 13 2 13ZM20 13H22C22.55 13 23 12.55 23 12C23 11.45 22.55 11 22 11H20C19.45 11 19 11.45 19 12C19 12.55 19.45 13 20 13ZM11 2V4C11 4.55 11.45 5 12 5C12.55 5 13 4.55 13 4V2C13 1.45 12.55 1 12 1C11.45 1 11 1.45 11 2ZM11 20V22C11 22.55 11.45 23 12 23C12.55 23 13 22.55 13 22V20C13 19.45 12.55 19 12 19C11.45 19 11 19.45 11 20ZM5.99 4.58C5.6 4.19 4.96 4.19 4.58 4.58C4.19 4.97 4.19 5.61 4.58 5.99L5.64 7.05C6.03 7.44 6.67 7.44 7.05 7.05C7.43 6.66 7.44 6.02 7.05 5.64L5.99 4.58ZM18.36 16.95C17.97 16.56 17.33 16.56 16.95 16.95C16.56 17.34 16.56 17.98 16.95 18.36L18.01 19.42C18.4 19.81 19.04 19.81 19.42 19.42C19.81 19.03 19.81 18.39 19.42 18.01L18.36 16.95ZM19.42 5.99C19.81 5.6 19.81 4.96 19.42 4.58C19.03 4.19 18.39 4.19 18.01 4.58L16.95 5.64C16.56 6.03 16.56 6.67 16.95 7.05C17.34 7.43 17.98 7.44 18.36 7.05L19.42 5.99ZM7.05 18.36C7.44 17.97 7.44 17.33 7.05 16.95C6.66 16.56 6.02 16.56 5.64 16.95L4.58 18.01C4.19 18.4 4.19 19.04 4.58 19.42C4.97 19.8 5.61 19.81 5.99 19.42L7.05 18.36Z",fill:"currentColor"})),dL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 9C13.65 9 15 10.35 15 12C15 13.65 13.65 15 12 15C10.35 15 9 13.65 9 12C9 10.35 10.35 9 12 9ZM12 7C9.24 7 7 9.24 7 12C7 14.76 9.24 17 12 17C14.76 17 17 14.76 17 12C17 9.24 14.76 7 12 7ZM2 13H4C4.55 13 5 12.55 5 12C5 11.45 4.55 11 4 11H2C1.45 11 1 11.45 1 12C1 12.55 1.45 13 2 13ZM20 13H22C22.55 13 23 12.55 23 12C23 11.45 22.55 11 22 11H20C19.45 11 19 11.45 19 12C19 12.55 19.45 13 20 13ZM11 2V4C11 4.55 11.45 5 12 5C12.55 5 13 4.55 13 4V2C13 1.45 12.55 1 12 1C11.45 1 11 1.45 11 2ZM11 20V22C11 22.55 11.45 23 12 23C12.55 23 13 22.55 13 22V20C13 19.45 12.55 19 12 19C11.45 19 11 19.45 11 20ZM5.99 4.58C5.6 4.19 4.96 4.19 4.58 4.58C4.19 4.97 4.19 5.61 4.58 5.99L5.64 7.05C6.03 7.44 6.67 7.44 7.05 7.05C7.43 6.66 7.44 6.02 7.05 5.64L5.99 4.58ZM18.36 16.95C17.97 16.56 17.33 16.56 16.95 16.95C16.56 17.34 16.56 17.98 16.95 18.36L18.01 19.42C18.4 19.81 19.04 19.81 19.42 19.42C19.81 19.03 19.81 18.39 19.42 18.01L18.36 16.95ZM19.42 5.99C19.81 5.6 19.81 4.96 19.42 4.58C19.03 4.19 18.39 4.19 18.01 4.58L16.95 5.64C16.56 6.03 16.56 6.67 16.95 7.05C17.34 7.43 17.98 7.44 18.36 7.05L19.42 5.99ZM7.05 18.36C7.44 17.97 7.44 17.33 7.05 16.95C6.66 16.56 6.02 16.56 5.64 16.95L4.58 18.01C4.19 18.4 4.19 19.04 4.58 19.42C4.97 19.8 5.61 19.81 5.99 19.42L7.05 18.36Z"})),fL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.0044 13.519L9.97439 15.519C9.51439 15.979 9.15439 16.549 9.04439 17.189C8.74439 19.029 10.1844 20.619 12.0044 20.619C13.8244 20.619 15.2644 19.029 14.9644 17.199C14.8544 16.559 14.5044 15.979 14.0344 15.529L12.0044 13.519Z",fill:"currentColor"}),l.createElement("path",{d:"M15.5644 7.16901C14.3844 8.63901 12.0044 7.80901 12.0044 5.91901V4.38901C12.0044 3.58901 11.1144 3.10901 10.4544 3.54901C8.12439 5.10901 4.00439 8.58901 4.00439 13.619C4.00439 16.539 5.56439 19.089 7.89439 20.479C7.18439 19.459 6.83439 18.169 7.08439 16.799C7.27439 15.759 7.83439 14.819 8.59439 14.079L11.3044 11.409C11.6944 11.029 12.3144 11.029 12.7044 11.409L15.4344 14.099C16.1744 14.829 16.7344 15.749 16.9144 16.779C17.1644 18.139 16.8444 19.419 16.1444 20.439C18.0344 19.289 19.4344 17.379 19.8544 15.139C20.4644 11.869 19.0444 8.76901 16.6344 7.03901C16.3044 6.78901 15.8344 6.83901 15.5644 7.16901Z",fill:"currentColor"})),hL=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00152 2.53334C6.58364 2.53334 5.43485 3.68195 5.43485 5.09806C5.43485 6.73589 6.40611 8.49862 7.29301 9.74929C7.66088 10.2681 8.35981 10.2668 8.72573 9.74673C9.60545 8.49647 10.5682 6.73528 10.5682 5.09806C10.5682 3.68195 9.4194 2.53334 8.00152 2.53334ZM4.23485 5.09806C4.23485 3.01851 5.92159 1.33334 8.00152 1.33334C10.0814 1.33334 11.7682 3.01851 11.7682 5.09806C11.7682 7.13001 10.6101 9.15393 9.70712 10.4373C8.86426 11.6351 7.16134 11.6381 6.31415 10.4434C5.40436 9.16047 4.23485 7.13361 4.23485 5.09806Z",fill:"currentColor"}),l.createElement("path",{d:"M9.16819 5.16665C9.16819 5.81099 8.64585 6.33332 8.00152 6.33332C7.35719 6.33332 6.83485 5.81099 6.83485 5.16665C6.83485 4.52232 7.35719 3.99999 8.00152 3.99999C8.64585 3.99999 9.16819 4.52232 9.16819 5.16665Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.474 9.54723C11.6872 9.29357 12.0657 9.26079 12.3194 9.47401C12.8745 9.94064 13.3364 10.5332 13.3364 11.3333C13.3364 12.5021 12.6272 13.3584 11.644 13.891C10.6736 14.4165 9.3814 14.6677 7.99997 14.6677C6.6064 14.6677 5.31519 14.38 4.34974 13.8383C3.38499 13.297 2.66666 12.4463 2.66666 11.3333C2.66666 10.5408 3.14155 9.93605 3.67614 9.47777C3.92772 9.2621 4.3065 9.29122 4.52217 9.5428C4.73784 9.79438 4.70873 10.1732 4.45714 10.3888C4.02277 10.7612 3.86666 11.0624 3.86666 11.3333C3.86666 11.8591 4.19498 12.3755 4.93688 12.7918C5.67809 13.2076 6.75353 13.4677 7.99997 13.4677C9.25856 13.4677 10.3346 13.2355 11.0724 12.8358C11.7974 12.4431 12.1364 11.9322 12.1364 11.3333C12.1364 11.0527 11.9899 10.7647 11.5472 10.3926C11.2936 10.1794 11.2608 9.80088 11.474 9.54723Z",fill:"currentColor"})),gL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM7 9C7 6.24 9.24 4 12 4C14.76 4 17 6.24 17 9C17 11.88 14.12 16.19 12 18.88C9.92 16.21 7 11.85 7 9Z"}),l.createElement("path",{d:"M12 11.5C13.3807 11.5 14.5 10.3807 14.5 9C14.5 7.61929 13.3807 6.5 12 6.5C10.6193 6.5 9.5 7.61929 9.5 9C9.5 10.3807 10.6193 11.5 12 11.5Z"})),pL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M18 8.5H17V6.5C17 3.74 14.76 1.5 12 1.5C9.24 1.5 7 3.74 7 6.5V8.5H6C4.9 8.5 4 9.4 4 10.5V20.5C4 21.6 4.9 22.5 6 22.5H18C19.1 22.5 20 21.6 20 20.5V10.5C20 9.4 19.1 8.5 18 8.5ZM12 17.5C10.9 17.5 10 16.6 10 15.5C10 14.4 10.9 13.5 12 13.5C13.1 13.5 14 14.4 14 15.5C14 16.6 13.1 17.5 12 17.5ZM9 8.5V6.5C9 4.84 10.34 3.5 12 3.5C13.66 3.5 15 4.84 15 6.5V8.5H9Z",fill:"currentColor"})),mL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 13.5C10.9 13.5 10 14.4 10 15.5C10 16.6 10.9 17.5 12 17.5C13.1 17.5 14 16.6 14 15.5C14 14.4 13.1 13.5 12 13.5ZM18 8.5H17V6.5C17 3.74 14.76 1.5 12 1.5C9.72 1.5 7.73 3.04 7.16 5.25C7.02 5.79 7.34 6.33 7.88 6.47C8.41 6.61 8.96 6.29 9.1 5.75C9.44 4.43 10.63 3.5 12 3.5C13.65 3.5 15 4.85 15 6.5V8.5H6C4.9 8.5 4 9.4 4 10.5V20.5C4 21.6 4.9 22.5 6 22.5H18C19.1 22.5 20 21.6 20 20.5V10.5C20 9.4 19.1 8.5 18 8.5ZM18 19.5C18 20.05 17.55 20.5 17 20.5H7C6.45 20.5 6 20.05 6 19.5V11.5C6 10.95 6.45 10.5 7 10.5H17C17.55 10.5 18 10.95 18 11.5V19.5Z",fill:"currentColor"})),vL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M17 8L15.59 9.41L17.17 11H9V13H17.17L15.59 14.58L17 16L21 12L17 8ZM5 5H12V3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H12V19H5V5Z"})),CL=e=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),wL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 8C9.79 8 8 9.79 8 12C8 14.21 9.79 16 12 16C14.21 16 16 14.21 16 12C16 9.79 14.21 8 12 8ZM20.94 11C20.48 6.83 17.17 3.52 13 3.06V2C13 1.45 12.55 1 12 1C11.45 1 11 1.45 11 2V3.06C6.83 3.52 3.52 6.83 3.06 11H2C1.45 11 1 11.45 1 12C1 12.55 1.45 13 2 13H3.06C3.52 17.17 6.83 20.48 11 20.94V22C11 22.55 11.45 23 12 23C12.55 23 13 22.55 13 22V20.94C17.17 20.48 20.48 17.17 20.94 13H22C22.55 13 23 12.55 23 12C23 11.45 22.55 11 22 11H20.94ZM12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12C19 15.87 15.87 19 12 19Z"})),R9=e=>l.createElement("svg",{width:162,height:163,viewBox:"0 0 162 163",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("ellipse",{opacity:.1,cx:81,cy:157.64,rx:81,ry:4.86,fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M98.8769 29.0403C98.6303 29.0445 98.4298 29.1528 98.281 29.35C98.1233 29.5589 98.0321 29.8653 98.0872 30.2026C98.186 30.807 98.8464 31.4472 99.8607 31.5086C103.441 31.7255 107.162 33.1541 110.305 35.2753C113.444 37.3945 116.14 40.295 117.547 43.5878C117.941 44.51 118.728 44.901 119.284 44.81C119.6 44.7585 119.842 44.5865 119.978 44.3884C120.104 44.203 120.137 44.0035 120.07 43.7936C117.329 35.316 107.934 28.8859 98.8769 29.0403ZM94.9043 30.7226C94.5212 28.3773 96.122 25.8617 98.8219 25.8157C109.217 25.6384 119.937 32.8978 123.138 42.8015C123.959 45.3388 122.102 47.6176 119.804 47.9929C117.373 48.3902 115.377 46.7174 114.581 44.8549C113.476 42.2675 111.262 39.8127 108.5 37.9485C105.741 36.0863 102.567 34.9036 99.6657 34.7278C97.5686 34.6009 95.3081 33.1944 94.9043 30.7226ZM82.531 35.2703C64.93 35.2703 50.2411 47.6215 46.8878 64.0038C32.8863 65.3358 21.8626 76.8555 21.8626 91.0475C21.8626 94.4561 22.4989 97.7219 23.662 100.733C21.4996 104.197 20.25 108.289 20.25 112.673C20.25 125.141 30.3575 135.249 42.8258 135.249C55.2941 135.249 65.4016 125.141 65.4016 112.673C65.4016 100.205 55.2941 90.0972 42.8258 90.0972C36.1459 90.0972 30.1437 92.9984 26.0103 97.6094C25.4094 95.5246 25.0877 93.3238 25.0877 91.0475C25.0877 78.221 35.3634 67.7811 48.3262 67.1322C49.0828 67.0943 49.711 66.5349 49.836 65.7878C52.4191 50.3468 66.0545 38.4954 82.531 38.4954C100.859 38.4954 115.708 53.1361 115.708 71.0921V76.7936C115.708 77.6842 116.43 78.4062 117.321 78.4062H119.843C130.158 78.4062 138.525 86.6725 138.525 96.749C138.525 106.826 130.158 115.092 119.843 115.092H105C104.109 115.092 103.387 115.814 103.387 116.704C103.387 117.595 104.109 118.317 105 118.317H119.843C131.887 118.317 141.75 108.658 141.75 96.749C141.75 84.8404 131.887 75.1811 119.843 75.1811H118.934V71.0921C118.934 51.3039 102.588 35.2703 82.531 35.2703ZM23.4751 112.673C23.4751 101.986 32.1387 93.3223 42.8258 93.3223C53.5129 93.3223 62.1765 101.986 62.1765 112.673C62.1765 123.36 53.5129 132.024 42.8258 132.024C32.1387 132.024 23.4751 123.36 23.4751 112.673ZM38.7944 102.191C38.7944 99.9649 40.5993 98.16 42.8258 98.16C45.0523 98.16 46.8572 99.9649 46.8572 102.191V111.867C46.8572 114.093 45.0523 115.898 42.8258 115.898C40.5993 115.898 38.7944 114.093 38.7944 111.867V102.191ZM42.8258 101.385C42.3805 101.385 42.0195 101.746 42.0195 102.191V111.867C42.0195 112.312 42.3805 112.673 42.8258 112.673C43.2711 112.673 43.6321 112.312 43.6321 111.867V102.191C43.6321 101.746 43.2711 101.385 42.8258 101.385ZM42.8258 127.186C40.5993 127.186 38.7944 125.381 38.7944 123.155C38.7944 120.928 40.5993 119.123 42.8258 119.123C45.0523 119.123 46.8572 120.928 46.8572 123.155C46.8572 125.381 45.0523 127.186 42.8258 127.186ZM42.0195 123.155C42.0195 123.6 42.3805 123.961 42.8258 123.961C43.2711 123.961 43.6321 123.6 43.6321 123.155C43.6321 122.709 43.2711 122.348 42.8258 122.348C42.3805 122.348 42.0195 122.709 42.0195 123.155Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M94.016 86.5116C96.6994 86.5116 98.2091 89.5975 96.5623 91.7161L84.3514 107.424C83.0602 109.085 80.55 109.085 79.2589 107.424L67.048 91.7161C65.4011 89.5975 66.9109 86.5116 69.5943 86.5116L77.7737 86.5116L77.7737 64.339C77.7737 62.5578 79.2177 61.1139 80.9989 61.1139L82.6114 61.1139C84.3926 61.1139 85.8365 62.5578 85.8365 64.339L85.8365 86.5116L94.016 86.5116Z",fill:"currentColor"})),yL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{id:"Vector",d:"M20 6.5H16V4.5C16 3.95 15.78 3.45 15.41 3.09C15.05 2.72 14.55 2.5 14 2.5H10C8.9 2.5 8 3.4 8 4.5V6.5H4C2.9 6.5 2 7.4 2 8.5V19.5C2 20.6 2.9 21.5 4 21.5H20C21.1 21.5 22 20.6 22 19.5V8.5C22 7.4 21.1 6.5 20 6.5ZM10 4.5H14V6.5H10V4.5ZM10.5 17.5C10.22 17.22 10.22 16.78 10.5 16.5L13 14L10.5 11.5C10.22 11.22 10.22 10.78 10.5 10.5C10.78 10.22 11.22 10.22 11.5 10.5L14.65 13.65C14.85 13.85 14.85 14.16 14.65 14.36L11.5 17.5C11.22 17.78 10.78 17.78 10.5 17.5Z"})),bL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M20.5863 20.3986L3.60631 3.41864C3.21631 3.02864 2.58631 3.02864 2.19631 3.41864C1.80631 3.80864 1.80631 4.43864 2.19631 4.82864L3.75631 6.38864C2.50631 8.26864 1.87631 10.5986 2.16631 13.0886C2.69631 17.6286 6.37631 21.3086 10.9063 21.8286C13.3963 22.1186 15.7163 21.4886 17.6063 20.2386L19.1663 21.7986C19.5563 22.1886 20.1863 22.1886 20.5763 21.7986C20.9763 21.4186 20.9763 20.7886 20.5863 20.3986ZM9.97631 15.7986L7.14631 12.9686C6.75631 12.5786 6.75631 11.9486 7.14631 11.5586C7.53631 11.1686 8.16631 11.1686 8.55631 11.5586L10.6763 13.6786L10.8563 13.4986L12.2663 14.9086L11.3863 15.7886C10.9963 16.1886 10.3663 16.1886 9.97631 15.7986ZM13.6863 10.6686L6.58631 3.56864C8.46631 2.31864 10.7963 1.68864 13.2863 1.97864C17.8263 2.50864 21.5063 6.18864 22.0263 10.7186C22.3163 13.2086 21.6863 15.5386 20.4363 17.4186L15.0963 12.0786L17.0363 10.1386C17.4263 9.74864 17.4263 9.11864 17.0363 8.72864C16.6463 8.33864 16.0163 8.33864 15.6263 8.72864L13.6863 10.6686Z"})),xL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M9.29624 5.7041C9.29624 6.2641 9.74624 6.7041 10.2962 6.7041H15.8862L4.99624 17.5941C4.60624 17.9841 4.60624 18.6141 4.99624 19.0041C5.38624 19.3941 6.01624 19.3941 6.40624 19.0041L17.2962 8.1141V13.7041C17.2962 14.2541 17.7462 14.7041 18.2962 14.7041C18.8462 14.7041 19.2962 14.2541 19.2962 13.7041V5.7041C19.2962 5.1541 18.8462 4.7041 18.2962 4.7041H10.2962C9.74624 4.7041 9.29624 5.1541 9.29624 5.7041Z",fill:"currentColor"})),SL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M17.4139 16.29L21.0039 12.7C21.3939 12.31 21.3939 11.68 21.0039 11.29L17.4139 7.7C17.0239 7.31 16.3939 7.31 16.0039 7.7C15.6139 8.09 15.6139 8.72 16.0039 9.11L17.8739 11H9.70386C9.15386 11 8.70386 11.45 8.70386 12C8.70386 12.55 9.15386 13 9.70386 13H17.8739L15.9939 14.88C15.6039 15.27 15.6039 15.9 15.9939 16.29C16.3839 16.68 17.0239 16.68 17.4139 16.29Z"}),l.createElement("path",{d:"M18.7039 19H4.70386V5H18.7039V6C18.7039 6.55 19.1539 7 19.7039 7C20.2539 7 20.7039 6.55 20.7039 6V5C20.7039 3.9 19.8039 3 18.7039 3H4.70386C3.60386 3 2.70386 3.9 2.70386 5V19C2.70386 20.1 3.60386 21 4.70386 21H18.7039C19.8139 21 20.7039 20.1 20.7039 19V18C20.7039 17.45 20.2539 17 19.7039 17C19.1539 17 18.7039 17.45 18.7039 18V19Z"})),EL=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("circle",{cx:8,cy:8,r:6.3,stroke:"currentColor",strokeWidth:1.4}),l.createElement("path",{d:"M6.5 5.5V10.5",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"}),l.createElement("path",{d:"M9.5 5.5V10.5",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"})),ML=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2593 7.47792L5.22219 16.515C5.0159 16.7213 4.90001 17.0011 4.90001 17.2929L4.90001 19C4.90001 19.0552 4.94478 19.1 5.00001 19.1H6.70711C6.99885 19.1 7.27864 18.9841 7.48493 18.7778L16.522 9.74066L14.2593 7.47792ZM15.5321 6.20513L17.7948 8.46787L18.9262 7.3365C19.1605 7.10219 19.1605 6.72229 18.9262 6.48797L17.512 5.07376C17.2777 4.83944 16.8978 4.83944 16.6634 5.07376L15.5321 6.20513ZM3.94939 15.2423L15.3907 3.80097C16.3279 2.86371 17.8475 2.86371 18.7848 3.80097L20.199 5.21518C21.1362 6.15244 21.1362 7.67203 20.199 8.60929L8.75772 20.0506C8.21387 20.5944 7.47624 20.9 6.70711 20.9L5.00001 20.9C3.95067 20.9 3.10001 20.0493 3.10001 19L3.10001 17.2929C3.10001 16.5237 3.40554 15.7861 3.94939 15.2423Z",fill:"black",fillOpacity:.5})),LL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M16.67 13.13C18.04 14.06 19 15.32 19 17V20H23V17C23 14.82 19.43 13.53 16.67 13.13Z"}),l.createElement("path",{d:"M15 12C17.21 12 19 10.21 19 8C19 5.79 17.21 4 15 4C14.53 4 14.09 4.1 13.67 4.24C14.5 5.27 15 6.58 15 8C15 9.42 14.5 10.73 13.67 11.76C14.09 11.9 14.53 12 15 12Z"}),l.createElement("path",{d:"M9 12C11.21 12 13 10.21 13 8C13 5.79 11.21 4 9 4C6.79 4 5 5.79 5 8C5 10.21 6.79 12 9 12ZM9 6C10.1 6 11 6.9 11 8C11 9.1 10.1 10 9 10C7.9 10 7 9.1 7 8C7 6.9 7.9 6 9 6Z"}),l.createElement("path",{d:"M9 13C6.33 13 1 14.34 1 17V20H17V17C17 14.34 11.67 13 9 13ZM15 18H3V17.01C3.2 16.29 6.3 15 9 15C11.7 15 14.8 16.29 15 17V18Z"})),NL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 12C10.9 12 9.95833 11.6083 9.175 10.825C8.39167 10.0417 8 9.1 8 8C8 6.9 8.39167 5.95833 9.175 5.175C9.95833 4.39167 10.9 4 12 4C13.1 4 14.0417 4.39167 14.825 5.175C15.6083 5.95833 16 6.9 16 8C16 9.1 15.6083 10.0417 14.825 10.825C14.0417 11.6083 13.1 12 12 12ZM4 20V17.2C4 16.6333 4.14583 16.1125 4.4375 15.6375C4.72917 15.1625 5.11667 14.8 5.6 14.55C6.63333 14.0333 7.68333 13.6458 8.75 13.3875C9.81667 13.1292 10.9 13 12 13C13.1 13 14.1833 13.1292 15.25 13.3875C16.3167 13.6458 17.3667 14.0333 18.4 14.55C18.8833 14.8 19.2708 15.1625 19.5625 15.6375C19.8542 16.1125 20 16.6333 20 17.2V20H4Z",fill:"currentColor"})),PL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 6C13.1 6 14 6.9 14 8C14 9.1 13.1 10 12 10C10.9 10 10 9.1 10 8C10 6.9 10.9 6 12 6ZM12 16C14.7 16 17.8 17.29 18 18H6C6.23 17.28 9.31 16 12 16ZM12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM12 14C9.33 14 4 15.34 4 18V20H20V18C20 15.34 14.67 14 12 14Z"})),_L=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M21.5 6.5H18.33L16.5 4.5H10.5V6.5H15.62L17.45 8.5H21.5V20.5H5.5V11.5H3.5V20.5C3.5 21.6 4.4 22.5 5.5 22.5H21.5C22.6 22.5 23.5 21.6 23.5 20.5V8.5C23.5 7.4 22.6 6.5 21.5 6.5ZM8.5 14.5C8.5 17.26 10.74 19.5 13.5 19.5C16.26 19.5 18.5 17.26 18.5 14.5C18.5 11.74 16.26 9.5 13.5 9.5C10.74 9.5 8.5 11.74 8.5 14.5ZM13.5 11.5C15.15 11.5 16.5 12.85 16.5 14.5C16.5 16.15 15.15 17.5 13.5 17.5C11.85 17.5 10.5 16.15 10.5 14.5C10.5 12.85 11.85 11.5 13.5 11.5ZM7.5 1.5H5.5V6.5H7.5V1.5Z"}),l.createElement("path",{d:"M5.5 7.5H7.5V9.5H5.5V7.5Z"})),IL=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M13.0239 7.13074C13.6587 7.51454 13.6587 8.48386 13.0239 8.86765L6.41221 12.8653C5.78279 13.2459 5 12.7645 5 11.9969V4.00148C5 3.23384 5.7828 2.75245 6.41221 3.13302L13.0239 7.13074Z"})),kL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12.7038 9.20312H2.70375C2.15375 9.20312 1.70375 9.65312 1.70375 10.2031C1.70375 10.7531 2.15375 11.2031 2.70375 11.2031H12.7038C13.2538 11.2031 13.7038 10.7531 13.7038 10.2031C13.7038 9.65312 13.2538 9.20312 12.7038 9.20312ZM12.7038 5.20312H2.70375C2.15375 5.20312 1.70375 5.65312 1.70375 6.20312C1.70375 6.75312 2.15375 7.20312 2.70375 7.20312H12.7038C13.2538 7.20312 13.7038 6.75312 13.7038 6.20312C13.7038 5.65312 13.2538 5.20312 12.7038 5.20312ZM2.70375 15.2031H8.70375C9.25375 15.2031 9.70375 14.7531 9.70375 14.2031C9.70375 13.6531 9.25375 13.2031 8.70375 13.2031H2.70375C2.15375 13.2031 1.70375 13.6531 1.70375 14.2031C1.70375 14.7531 2.15375 15.2031 2.70375 15.2031ZM21.9137 11.4131L22.0037 11.5031C22.3937 11.8931 22.3937 12.5231 22.0037 12.9131L16.4237 18.5031C16.0337 18.8931 15.4038 18.8931 15.0138 18.5031L11.9238 15.4131C11.5338 15.0231 11.5338 14.3931 11.9238 14.0031L12.0138 13.9131C12.4038 13.5231 13.0338 13.5231 13.4238 13.9131L15.7238 16.2131L20.5037 11.4231C20.8837 11.0231 21.5238 11.0231 21.9137 11.4131Z"})),TL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 12.25C13.24 12.25 14.25 11.24 14.25 10C14.25 8.76 13.24 7.75 12 7.75C10.76 7.75 9.75 8.76 9.75 10C9.75 11.24 10.76 12.25 12 12.25ZM16.5 16.25C16.5 14.75 13.5 14 12 14C10.5 14 7.5 14.75 7.5 16.25V17H16.5V16.25ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM18 19H6C5.45 19 5 18.55 5 18V6C5 5.45 5.45 5 6 5H18C18.55 5 19 5.45 19 6V18C19 18.55 18.55 19 18 19Z"})),DL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19.928 8.66759L16.328 10.3476L13.998 8.01759V6.61759L16.328 4.28759L19.928 5.96759C20.308 6.14759 20.748 5.97759 20.928 5.60759C21.108 5.22759 20.938 4.78759 20.568 4.60759L16.648 2.77759C16.268 2.59759 15.818 2.67759 15.518 2.97759L13.778 4.71759C13.598 4.47759 13.318 4.31759 12.998 4.31759C12.448 4.31759 11.998 4.76759 11.998 5.31759V6.31759H8.81805C8.39805 5.15759 7.29805 4.31759 5.99805 4.31759C4.33805 4.31759 2.99805 5.65759 2.99805 7.31759C2.99805 8.41759 3.59805 9.36759 4.47805 9.89759L7.07805 18.3176H5.99805C4.89805 18.3176 3.99805 19.2176 3.99805 20.3176V21.3176H16.998V20.3176C16.998 19.2176 16.098 18.3176 14.998 18.3176H13.378L8.40805 9.08759C8.57805 8.84759 8.71805 8.59759 8.81805 8.31759H11.998V9.31759C11.998 9.86759 12.448 10.3176 12.998 10.3176C13.318 10.3176 13.598 10.1576 13.778 9.91759L15.518 11.6576C15.818 11.9576 16.268 12.0376 16.648 11.8576L20.568 10.0276C20.948 9.84759 21.108 9.40759 20.928 9.02759C20.748 8.65759 20.308 8.48759 19.928 8.66759ZM5.99805 8.31759C5.44805 8.31759 4.99805 7.86759 4.99805 7.31759C4.99805 6.76759 5.44805 6.31759 5.99805 6.31759C6.54805 6.31759 6.99805 6.76759 6.99805 7.31759C6.99805 7.86759 6.54805 8.31759 5.99805 8.31759ZM11.108 18.3176H9.16805L6.70805 10.3176H6.80805L11.108 18.3176Z"})),OL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M16.7071 16.7071C16.3166 17.0976 15.6834 17.0976 15.2929 16.7071L12 13.4142L8.70711 16.7071C8.31658 17.0976 7.68342 17.0976 7.29289 16.7071C6.90237 16.3166 6.90237 15.6834 7.29289 15.2929L10.5858 12C11.3668 11.219 12.6332 11.2189 13.4142 12L16.7071 15.2929C17.0976 15.6834 17.0976 16.3166 16.7071 16.7071Z",fill:"currentColor"}),l.createElement("path",{d:"M15.2929 12.1071C15.6834 12.4976 16.3166 12.4976 16.7071 12.1071C17.0976 11.7166 17.0976 11.0834 16.7071 10.6929L13.4142 7.39999C12.6332 6.61894 11.3668 6.61895 10.5858 7.39999L7.29289 10.6929C6.90237 11.0834 6.90237 11.7166 7.29289 12.1071C7.68342 12.4976 8.31658 12.4976 8.70711 12.1071L12 8.81421L15.2929 12.1071Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",fill:"currentColor"})),VL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M5 5C5 5.55 5.45 6 6 6H18C18.55 6 19 5.55 19 5C19 4.45 18.55 4 18 4H6C5.45 4 5 4.45 5 5ZM7.41 14H9V19C9 19.55 9.45 20 10 20H14C14.55 20 15 19.55 15 19V14H16.59C17.48 14 17.93 12.92 17.3 12.29L12.71 7.7C12.32 7.31 11.69 7.31 11.3 7.7L6.71 12.29C6.08 12.92 6.52 14 7.41 14Z",fill:"currentColor"})),HL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 34 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{clipPath:"url(#push_pin_clip)"},l.createElement("path",{d:"M24.0416 12.7279L20.5061 16.2634C19.7142 17.0554 19.2404 18.0524 19.0919 19.0918L14.8493 14.8492C15.917 14.7007 16.8999 14.2128 17.6777 13.435L21.2132 9.89945L24.0416 12.7279ZM27.5772 13.435L20.5061 6.36392C20.1172 5.97501 19.4808 5.97501 19.0919 6.36392C18.703 6.75283 18.703 7.38923 19.0919 7.77813L19.799 8.48524L16.2635 12.0208C15.0897 13.1946 13.1946 13.1946 12.0208 12.0208L10.6066 13.435L14.828 17.6564L9.8783 22.6062V24.0204H11.2925L16.2423 19.0706L20.5061 23.3345L21.9203 21.9203C20.7465 20.7465 20.7465 18.8514 21.9203 17.6776L25.4559 14.1421L26.163 14.8492C26.5519 15.2381 27.1883 15.2381 27.5772 14.8492C27.9661 14.4603 27.9661 13.8239 27.5772 13.435Z"})),l.createElement("defs",null,l.createElement("clipPath",{id:"push_pin_clip"},l.createElement("rect",{width:24,height:24,fill:"white",transform:"translate(16.9706) rotate(45)"})))),AL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5384 3H9.4616H9.46159C8.51409 2.99999 7.74834 2.99998 7.12792 3.05067C6.48863 3.10291 5.92481 3.21341 5.40244 3.47957C4.57453 3.90141 3.90141 4.57453 3.47957 5.40244C3.21341 5.92481 3.10291 6.48863 3.05067 7.12792C2.99998 7.74834 2.99999 8.51409 3 9.46158V9.46159V14.5384V14.5384C2.99999 15.4859 2.99998 16.2517 3.05067 16.8721C3.10291 17.5114 3.21341 18.0752 3.47957 18.5976C3.90141 19.4255 4.57453 20.0986 5.40244 20.5204C5.92481 20.7866 6.48863 20.8971 7.12792 20.9493C7.74834 21 8.51409 21 9.46159 21H14.5384C15.4859 21 16.2517 21 16.8721 20.9493C17.5114 20.8971 18.0752 20.7866 18.5976 20.5204C19.4255 20.0986 20.0986 19.4255 20.5204 18.5976C20.7866 18.0752 20.8971 17.5114 20.9493 16.8721C21 16.2517 21 15.4859 21 14.5384V9.46159C21 8.51409 21 7.74834 20.9493 7.12792C20.8971 6.48863 20.7866 5.92481 20.5204 5.40244C20.0986 4.57453 19.4255 3.90141 18.5976 3.47957C18.0752 3.21341 17.5114 3.10291 16.8721 3.05067C16.2517 2.99998 15.4859 2.99999 14.5384 3H14.5384ZM6.21963 5.08338C6.44595 4.96807 6.74652 4.88783 7.2745 4.8447C7.81298 4.8007 8.50506 4.8 9.5 4.8H11.1L11.1 13.2018H4.8V9.5C4.8 8.50506 4.8007 7.81298 4.8447 7.2745C4.88783 6.74652 4.96807 6.44595 5.08338 6.21963C5.33265 5.7304 5.7304 5.33265 6.21963 5.08338ZM4.8003 15.0018H11.1V19.2H9.5C8.50506 19.2 7.81298 19.1993 7.2745 19.1553C6.74652 19.1122 6.44595 19.0319 6.21963 18.9166C5.7304 18.6673 5.33265 18.2696 5.08338 17.7804C4.96807 17.5541 4.88783 17.2535 4.8447 16.7255C4.80851 16.2826 4.80161 15.7357 4.8003 15.0018ZM12.9 19.2H14.5C15.4949 19.2 16.187 19.1993 16.7255 19.1553C17.2535 19.1122 17.5541 19.0319 17.7804 18.9166C18.2696 18.6673 18.6673 18.2696 18.9166 17.7804C19.0319 17.5541 19.1122 17.2535 19.1553 16.7255C19.1993 16.187 19.2 15.4949 19.2 14.5V10.7969H12.9V19.2ZM12.9 8.99689V4.8H14.5C15.4949 4.8 16.187 4.8007 16.7255 4.8447C17.2535 4.88783 17.5541 4.96807 17.7804 5.08338C18.2696 5.33265 18.6673 5.7304 18.9166 6.21963C19.0319 6.44595 19.1122 6.74652 19.1553 7.2745C19.1915 7.71718 19.1984 8.26366 19.1997 8.99689H12.9Z",fill:"currentColor"})),FL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7C3 5.59987 3 4.8998 3.27248 4.36502C3.51217 3.89462 3.89462 3.51217 4.36502 3.27248C4.8998 3 5.59987 3 7 3H17C18.4001 3 19.1002 3 19.635 3.27248C20.1054 3.51217 20.4878 3.89462 20.7275 4.36502C21 4.8998 21 5.59987 21 7C21 8.40013 21 9.1002 20.7275 9.63498C20.4878 10.1054 20.1054 10.4878 19.635 10.7275C19.1002 11 18.4001 11 17 11H7C5.59987 11 4.8998 11 4.36502 10.7275C3.89462 10.4878 3.51217 10.1054 3.27248 9.63498C3 9.1002 3 8.40013 3 7ZM7 4.8H17C17.7298 4.8 18.1688 4.8014 18.4954 4.82808C18.7167 4.84616 18.8016 4.871 18.8207 4.87778C18.9501 4.94448 19.0555 5.04989 19.1222 5.17932C19.129 5.19843 19.1538 5.28331 19.1719 5.50458C19.1986 5.83116 19.2 6.27023 19.2 7C19.2 7.72977 19.1986 8.16884 19.1719 8.49542C19.1538 8.71668 19.129 8.80156 19.1222 8.82068C19.0555 8.95011 18.9501 9.05552 18.8207 9.12222C18.8016 9.129 18.7167 9.15384 18.4954 9.17192C18.1688 9.1986 17.7298 9.2 17 9.2H7C6.27023 9.2 5.83116 9.1986 5.50458 9.17192C5.2833 9.15384 5.19843 9.129 5.17932 9.12222C5.04989 9.05552 4.94448 8.95011 4.87778 8.82068C4.871 8.80158 4.84616 8.7167 4.82808 8.49542C4.8014 8.16884 4.8 7.72977 4.8 7C4.8 6.27023 4.8014 5.83116 4.82808 5.50458C4.84616 5.2833 4.871 5.19842 4.87778 5.17932C4.94448 5.04989 5.04989 4.94448 5.17932 4.87778C5.19842 4.871 5.2833 4.84616 5.50458 4.82808C5.83116 4.8014 6.27023 4.8 7 4.8ZM19.1208 8.82399C19.1206 8.82466 19.1204 8.82504 19.1205 8.82509C19.1205 8.82519 19.1212 8.82343 19.1222 8.82068C19.1217 8.82185 19.1211 8.82334 19.1208 8.82399ZM18.8251 9.12045C18.8251 9.12047 18.8254 9.1203 18.8251 9.12045V9.12045Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 17C3 15.5999 3 14.8998 3.27248 14.365C3.51217 13.8946 3.89462 13.5122 4.36502 13.2725C4.8998 13 5.59987 13 7 13H17C18.4001 13 19.1002 13 19.635 13.2725C20.1054 13.5122 20.4878 13.8946 20.7275 14.365C21 14.8998 21 15.5999 21 17C21 18.4001 21 19.1002 20.7275 19.635C20.4878 20.1054 20.1054 20.4878 19.635 20.7275C19.1002 21 18.4001 21 17 21H7C5.59987 21 4.8998 21 4.36502 20.7275C3.89462 20.4878 3.51217 20.1054 3.27248 19.635C3 19.1002 3 18.4001 3 17ZM7 14.8H17C17.7298 14.8 18.1688 14.8014 18.4954 14.8281C18.7167 14.8462 18.8016 14.871 18.8207 14.8778C18.9501 14.9445 19.0555 15.0499 19.1222 15.1793C19.129 15.1984 19.1538 15.2833 19.1719 15.5046C19.1986 15.8312 19.2 16.2702 19.2 17C19.2 17.7298 19.1986 18.1688 19.1719 18.4954C19.1538 18.7167 19.129 18.8016 19.1222 18.8207C19.0555 18.9501 18.9501 19.0555 18.8207 19.1222C18.8016 19.129 18.7167 19.1538 18.4954 19.1719C18.1688 19.1986 17.7298 19.2 17 19.2H7C6.27023 19.2 5.83116 19.1986 5.50458 19.1719C5.2833 19.1538 5.19843 19.129 5.17932 19.1222C5.04989 19.0555 4.94448 18.9501 4.87778 18.8207C4.871 18.8016 4.84616 18.7167 4.82808 18.4954C4.8014 18.1688 4.8 17.7298 4.8 17C4.8 16.2702 4.8014 15.8312 4.82808 15.5046C4.84616 15.2833 4.871 15.1984 4.87778 15.1793C4.94448 15.0499 5.04989 14.9445 5.17932 14.8778C5.19842 14.871 5.2833 14.8462 5.50458 14.8281C5.83116 14.8014 6.27023 14.8 7 14.8ZM19.121 15.176C19.1206 15.1752 19.1205 15.1749 19.1205 15.1749C19.1204 15.175 19.1211 15.1769 19.1222 15.1793C19.1218 15.1781 19.1212 15.1766 19.121 15.176ZM19.1222 18.8207C19.1211 18.8231 19.1204 18.825 19.1205 18.8251C19.1205 18.8251 19.1207 18.8248 19.121 18.8239C19.1213 18.8233 19.1218 18.8218 19.1222 18.8207ZM18.8207 19.1222C18.8234 19.1212 18.8252 19.1205 18.8251 19.1205C18.825 19.1204 18.8245 19.1206 18.8235 19.121C18.8229 19.1213 18.8216 19.1218 18.8207 19.1222Z",fill:"currentColor"})),$L=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M17.645 6.35C16.195 4.9 14.205 4 11.995 4C7.575 4 4.005 7.58 4.005 12C4.005 16.42 7.575 20 11.995 20C15.725 20 18.835 17.45 19.725 14H17.645C16.825 16.33 14.605 18 11.995 18C8.685 18 5.995 15.31 5.995 12C5.995 8.69 8.685 6 11.995 6C13.655 6 15.135 6.69 16.215 7.78L12.995 11H19.995V4L17.645 6.35Z"})),zL=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("circle",{cx:8,cy:8,r:6.3,stroke:"currentColor",strokeWidth:1.4}),l.createElement("path",{d:"M5.5 8H10.5",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"})),BL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"#000",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M1 21L12 2L23 21H1ZM3.6 19.5H20.4L12 5L3.6 19.5ZM12.1044 18.075C12.3181 18.075 12.4958 18.0027 12.6375 17.8581C12.7792 17.7135 12.85 17.5344 12.85 17.3206C12.85 17.1069 12.7777 16.9292 12.6331 16.7875C12.4885 16.6458 12.3094 16.575 12.0956 16.575C11.8819 16.575 11.7042 16.6473 11.5625 16.7919C11.4208 16.9365 11.35 17.1156 11.35 17.3294C11.35 17.5431 11.4223 17.7208 11.5669 17.8625C11.7115 18.0042 11.8906 18.075 12.1044 18.075ZM11.35 15.3H12.85V9.7H11.35V15.3Z"})),ZL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 5.53491V2.53491L8 6.53491L12 10.5349V7.53491C15.31 7.53491 18 10.2249 18 13.5349C18 16.5049 15.83 18.9649 13 19.4449V21.4649C16.95 20.9749 20 17.6149 20 13.5349C20 9.11491 16.42 5.53491 12 5.53491Z"}),l.createElement("path",{d:"M6 13.5349C6 11.8849 6.67 10.3849 7.76 9.29491L6.34 7.87491C4.9 9.32491 4 11.3249 4 13.5349C4 17.6149 7.05 20.9749 11 21.4649V19.4449C8.17 18.9649 6 16.5049 6 13.5349Z"})),WL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,viewBox:"0 0 25 24",fill:"currentColor",...e},l.createElement("path",{d:"M13.9041 3.00155C8.81407 2.86155 4.64407 6.94155 4.64407 12.0015H2.85407C2.40407 12.0015 2.18407 12.5415 2.50407 12.8515L5.29407 15.6515C5.49407 15.8515 5.80407 15.8515 6.00407 15.6515L8.79407 12.8515C9.11407 12.5415 8.88407 12.0015 8.44407 12.0015H6.64407C6.64407 8.10154 9.82407 4.95155 13.7441 5.00155C17.4641 5.05155 20.5941 8.18154 20.6441 11.9015C20.6941 15.8115 17.5441 19.0015 13.6441 19.0015C12.0341 19.0015 10.5441 18.4515 9.36407 17.5215C8.96407 17.2115 8.40407 17.2415 8.04407 17.6015C7.62407 18.0315 7.65407 18.7315 8.12407 19.1015C9.64407 20.2915 11.5641 21.0015 13.6441 21.0015C18.6941 21.0015 22.7841 16.8315 22.6441 11.7415C22.5141 7.05154 18.5941 3.13155 13.9041 3.00155ZM13.3941 8.00155C12.9841 8.00155 12.6441 8.34155 12.6441 8.75155V12.4315C12.6441 12.7815 12.8341 13.1115 13.1341 13.2915L16.2541 15.1415C16.6141 15.3515 17.0741 15.2315 17.2841 14.8815C17.4941 14.5215 17.3741 14.0615 17.0241 13.8515L14.1441 12.1415V8.74155C14.1441 8.34155 13.8141 8.00155 13.3941 8.00155Z"})),RL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12 2.16113C7.8 2.16113 4 5.38113 4 10.3611C4 13.5411 6.45 17.2811 11.34 21.5911C11.72 21.9211 12.29 21.9211 12.67 21.5911C17.55 17.2811 20 13.5411 20 10.3611C20 5.38113 16.2 2.16113 12 2.16113ZM12 12.1611C10.9 12.1611 10 11.2611 10 10.1611C10 9.06113 10.9 8.16113 12 8.16113C13.1 8.16113 14 9.06113 14 10.1611C14 11.2611 13.1 12.1611 12 12.1611Z",fill:"currentColor"})),G9=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{clipPath:"url(#clip0_2951_18849)"},l.createElement("path",{d:"M6.41531 8.91849C5.95531 8.45849 5.16531 8.53849 4.85531 9.10849C4.57531 9.61849 4.35531 10.1385 4.18531 10.6885C3.99531 11.3185 4.49531 11.9385 5.14531 11.9385H5.15531C5.58531 11.9385 5.97531 11.6585 6.09531 11.2385C6.21531 10.8385 6.37531 10.4485 6.57531 10.0685C6.79531 9.69849 6.72531 9.22849 6.41531 8.91849ZM5.16531 13.9385H5.14531C4.49531 13.9385 3.99531 14.5585 4.18531 15.1885C4.34531 15.7285 4.56531 16.2585 4.84531 16.7685C5.15531 17.3385 5.95531 17.4285 6.41531 16.9685C6.71531 16.6585 6.79531 16.1985 6.58531 15.8185C6.38531 15.4485 6.22531 15.0585 6.10531 14.6585C5.98531 14.2185 5.59531 13.9385 5.16531 13.9385ZM8.01531 19.9585C8.52531 20.2385 9.05531 20.4585 9.60531 20.6185C10.2253 20.7985 10.8453 20.2985 10.8453 19.6585V19.6285C10.8453 19.1985 10.5653 18.8085 10.1453 18.6885C9.74531 18.5685 9.36531 18.4085 8.99531 18.2085C8.61531 17.9985 8.13531 18.0685 7.83531 18.3785L7.80531 18.4085C7.35531 18.8585 7.44531 19.6485 8.01531 19.9585ZM12.8553 5.00849V4.34849C12.8553 3.45849 11.7753 3.00849 11.1453 3.63849L9.02531 5.76849C8.62531 6.16849 8.62531 6.80849 9.02531 7.19849L11.1553 9.27849C11.7853 9.89849 12.8553 9.44849 12.8553 8.55849V7.02849C15.6953 7.50849 17.8553 9.96849 17.8553 12.9385C17.8553 15.6685 16.0353 17.9585 13.5353 18.6885C13.1253 18.8085 12.8553 19.1985 12.8553 19.6285V19.6485C12.8553 20.2985 13.4653 20.7885 14.0853 20.6085C17.4253 19.6485 19.8553 16.5785 19.8553 12.9385C19.8553 8.85849 16.8053 5.49849 12.8553 5.00849Z"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2951_18849"},l.createElement("rect",{width:24,height:24,rx:12})))),j9=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("g",{clipPath:"url(#clip0_2951_18864)"},l.createElement("path",{d:"M14.9745 5.76625L12.8445 3.63625C12.2245 3.01625 11.1445 3.45625 11.1445 4.34625V5.00625C7.20453 5.49625 4.14453 8.85625 4.14453 12.9363C4.14453 16.5763 6.57453 19.6463 9.91453 20.6163C10.5345 20.7963 11.1445 20.2962 11.1445 19.6562V19.6263C11.1445 19.1963 10.8745 18.8063 10.4645 18.6863C7.96453 17.9663 6.14453 15.6663 6.14453 12.9363C6.14453 9.96625 8.30453 7.50625 11.1445 7.02625V8.55625C11.1445 9.44625 12.2145 9.88625 12.8445 9.26625L14.9745 7.18625C15.3745 6.80625 15.3745 6.16625 14.9745 5.76625ZM19.8145 10.6963C19.6545 10.1463 19.4345 9.61625 19.1545 9.10625C18.8445 8.53625 18.0545 8.44625 17.5945 8.90625L17.5845 8.91625C17.2745 9.22625 17.2045 9.69625 17.4145 10.0763C17.6145 10.4463 17.7745 10.8363 17.8945 11.2363C18.0145 11.6562 18.4045 11.9363 18.8345 11.9363H18.8545C19.5045 11.9363 20.0045 11.3163 19.8145 10.6963ZM13.1445 19.6163V19.6363C13.1445 20.2863 13.7645 20.7763 14.3845 20.5963C14.9345 20.4363 15.4645 20.2163 15.9745 19.9363C16.5445 19.6263 16.6345 18.8363 16.1745 18.3763L16.1545 18.3563C15.8445 18.0463 15.3745 17.9763 14.9945 18.1863C14.6245 18.3963 14.2345 18.5563 13.8345 18.6763C13.4245 18.7963 13.1445 19.1863 13.1445 19.6163ZM17.5845 16.9663C18.0445 17.4263 18.8345 17.3363 19.1445 16.7663C19.4245 16.2563 19.6445 15.7263 19.8145 15.1763C19.9945 14.5563 19.5045 13.9363 18.8545 13.9363H18.8345C18.3945 13.9363 18.0145 14.2163 17.8945 14.6363C17.7745 15.0363 17.6145 15.4263 17.4145 15.8063C17.2045 16.1863 17.2845 16.6663 17.5845 16.9663Z"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2951_18864"},l.createElement("rect",{width:24,height:24,rx:12})))),GL=e=>l.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M6.66667 12.0702C9.65094 12.0702 12.0702 9.65094 12.0702 6.66667C12.0702 3.68239 9.65094 1.26316 6.66667 1.26316C3.68239 1.26316 1.26316 3.68239 1.26316 6.66667C1.26316 9.65094 3.68239 12.0702 6.66667 12.0702ZM6.66667 13.3333C2.98477 13.3333 0 10.3486 0 6.66667C0 2.98477 2.98477 0 6.66667 0C10.3486 0 13.3333 2.98477 13.3333 6.66667C13.3333 10.3486 10.3486 13.3333 6.66667 13.3333Z"})),jL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M17.59 3.59C17.21 3.21 16.7 3 16.17 3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V7.83C21 7.3 20.79 6.79 20.41 6.42L17.59 3.59ZM12 19C10.34 19 9 17.66 9 16C9 14.34 10.34 13 12 13C13.66 13 15 14.34 15 16C15 17.66 13.66 19 12 19ZM13 9H7C5.9 9 5 8.1 5 7C5 5.9 5.9 5 7 5H13C14.1 5 15 5.9 15 7C15 8.1 14.1 9 13 9Z"})),Y9=e=>l.createElement("svg",{width:148,height:148,viewBox:"0 0 148 148",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("ellipse",{opacity:.1,cx:74.0005,cy:143.164,rx:73.5786,ry:4.41472,fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M105.825 24.4994C107.093 22.7738 109.52 22.4026 111.245 23.6702C112.971 24.9379 113.342 27.3645 112.074 29.0901L107.352 35.5177C106.085 37.2433 103.658 37.6145 101.932 36.3468C100.207 35.0792 99.8357 32.6526 101.103 30.927L105.825 24.4994ZM109.503 26.0421C109.087 25.7368 108.503 25.8262 108.197 26.2418L103.475 32.6695C103.17 33.0851 103.259 33.6696 103.675 33.9749C104.091 34.2803 104.675 34.1909 104.98 33.7752L109.702 27.3476C110.008 26.932 109.918 26.3475 109.503 26.0421ZM35.9101 62.584C35.9101 43.7353 51.19 28.4554 70.0387 28.4554C88.8874 28.4554 104.167 43.7353 104.167 62.584C104.167 81.4326 88.8874 96.7125 70.0387 96.7125C51.19 96.7125 35.9101 81.4326 35.9101 62.584ZM70.0387 25.5123C49.5645 25.5123 32.967 42.1098 32.967 62.584C32.967 83.0581 49.5645 99.6556 70.0387 99.6556C76.7693 99.6556 83.081 97.862 88.5218 94.7266L93.3336 99.5383C93.1961 101.583 93.9089 103.675 95.472 105.238L110.32 120.085C113.193 122.959 117.852 122.959 120.725 120.085L123.927 116.884C126.8 114.011 126.8 109.352 123.927 106.478L109.079 91.6307C107.516 90.0673 105.424 89.3545 103.378 89.4925L99.2711 85.3853C104.183 79.0966 107.11 71.1821 107.11 62.584C107.11 42.1098 90.5128 25.5123 70.0387 25.5123ZM100.188 90.4646L97.3623 87.6388C95.4803 89.6901 93.3703 91.5289 91.0725 93.115L94.3054 96.3479C94.6194 95.8062 95.0083 95.2959 95.472 94.8322L98.6735 91.6308C99.1369 91.1673 99.6468 90.7786 100.188 90.4646ZM87.0534 58.1284C87.7803 57.765 88.075 56.8811 87.7115 56.1541C87.3481 55.4272 86.4641 55.1326 85.7372 55.496L74.1912 61.269C73.6927 61.5183 73.3777 62.0278 73.3777 62.5852C73.3777 63.1426 73.6927 63.6522 74.1912 63.9014L85.7372 69.6744C86.4641 70.0379 87.3481 69.7433 87.7115 69.0163C88.075 68.2894 87.7803 67.4055 87.0534 67.042L78.1398 62.5852L87.0534 58.1284ZM52.3644 56.1541C52.0009 56.8811 52.2956 57.765 53.0225 58.1284L61.9361 62.5852L53.0225 67.042C52.2956 67.4055 52.0009 68.2894 52.3644 69.0163C52.7279 69.7433 53.6118 70.0379 54.3387 69.6744L65.8847 63.9014C66.3833 63.6522 66.6982 63.1426 66.6982 62.5852C66.6982 62.0278 66.3833 61.5183 65.8847 61.269L54.3387 55.496C53.6118 55.1326 52.7279 55.4272 52.3644 56.1541ZM45.5314 62.5836C45.5314 49.0488 56.5035 38.0767 70.0383 38.0767C83.5731 38.0767 94.5452 49.0488 94.5452 62.5836C94.5452 76.1183 83.5731 87.0905 70.0383 87.0905C56.5035 87.0905 45.5314 76.1183 45.5314 62.5836ZM70.0383 35.1335C54.8781 35.1335 42.5882 47.4233 42.5882 62.5836C42.5882 77.7438 54.8781 90.0336 70.0383 90.0336C85.1985 90.0336 97.4883 77.7438 97.4883 62.5836C97.4883 47.4233 85.1985 35.1335 70.0383 35.1335ZM122.168 38.7523C121.517 36.7124 119.336 35.5865 117.296 36.2374L109.698 38.662C107.658 39.3129 106.532 41.4942 107.183 43.5341C107.834 45.5739 110.015 46.6999 112.055 46.049L119.653 43.6244C121.693 42.9735 122.819 40.7922 122.168 38.7523ZM118.191 39.0412C118.682 38.8845 119.208 39.1557 119.364 39.647C119.521 40.1383 119.25 40.6637 118.759 40.8205L111.16 43.2451C110.669 43.4019 110.144 43.1307 109.987 42.6393C109.83 42.148 110.101 41.6226 110.593 41.4658L118.191 39.0412ZM22.9291 84.4847C20.8734 85.0837 19.6925 87.2358 20.2916 89.2915C20.8906 91.3472 23.0427 92.5281 25.0984 91.9291L32.7556 89.6977C34.8113 89.0987 35.9921 86.9466 35.3931 84.8909C34.7941 82.8352 32.642 81.6544 30.5863 82.2534L22.9291 84.4847ZM23.1172 88.4681C22.9729 87.973 23.2573 87.4546 23.7525 87.3103L31.4097 85.079C31.9048 84.9347 32.4232 85.2192 32.5675 85.7143C32.7118 86.2095 32.4273 86.7278 31.9322 86.8721L24.275 89.1034C23.7798 89.2477 23.2615 88.9633 23.1172 88.4681ZM30.7137 104.725C29.0207 103.414 28.7111 100.979 30.0221 99.2863L34.9054 92.9803C36.2164 91.2874 38.6515 90.9778 40.3445 92.2888C42.0374 93.5997 42.347 96.0349 41.036 97.7278L36.1528 104.034C34.8418 105.727 32.4066 106.036 30.7137 104.725ZM32.3491 101.088C32.0333 101.496 32.1079 102.083 32.5157 102.398C32.9234 102.714 33.51 102.64 33.8258 102.232L38.709 95.9258C39.0248 95.5181 38.9502 94.9315 38.5425 94.6157C38.1347 94.3 37.5481 94.3745 37.2324 94.7823L32.3491 101.088Z",fill:"currentColor"})),YL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"currentColor",...e},l.createElement("path",{d:"M17.84 9.51061L10.4817 2.15228C10.1734 1.84395 9.74837 1.66895 9.30671 1.66895H3.33171C2.41504 1.66895 1.66504 2.41895 1.66504 3.33561V9.31061C1.66504 9.75228 1.84004 10.1773 2.15671 10.4856L9.51504 17.8439C10.165 18.4939 11.2234 18.4939 11.8734 17.8439L17.8484 11.8689C18.4984 11.2189 18.4984 10.1689 17.84 9.51061ZM10.69 16.6689L3.33171 9.31061V3.33561H9.30671L16.665 10.6939L10.69 16.6689Z"}),l.createElement("path",{d:"M5.41504 6.66895C6.10539 6.66895 6.66504 6.1093 6.66504 5.41895C6.66504 4.72859 6.10539 4.16895 5.41504 4.16895C4.72468 4.16895 4.16504 4.72859 4.16504 5.41895C4.16504 6.1093 4.72468 6.66895 5.41504 6.66895Z"})),UL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M19.4999 12C19.4999 11.77 19.4899 11.55 19.4699 11.32L21.3299 9.91C21.7299 9.61 21.8399 9.05 21.5899 8.61L19.7199 5.38C19.4699 4.94 18.9299 4.76 18.4699 4.96L16.3199 5.87C15.9499 5.61 15.5599 5.38 15.1499 5.19L14.8599 2.88C14.7999 2.38 14.3699 2 13.8699 2H10.1399C9.62991 2 9.19991 2.38 9.13991 2.88L8.84991 5.19C8.43991 5.38 8.04991 5.61 7.67991 5.87L5.52991 4.96C5.06991 4.76 4.52991 4.94 4.27991 5.38L2.40991 8.62C2.15991 9.06 2.26991 9.61 2.66991 9.92L4.52991 11.33C4.50991 11.55 4.49991 11.77 4.49991 12C4.49991 12.23 4.50991 12.45 4.52991 12.68L2.66991 14.09C2.26991 14.39 2.15991 14.95 2.40991 15.39L4.27991 18.62C4.52991 19.06 5.06991 19.24 5.52991 19.04L7.67991 18.13C8.04991 18.39 8.43991 18.62 8.84991 18.81L9.13991 21.12C9.19991 21.62 9.62991 22 10.1299 22H13.8599C14.3599 22 14.7899 21.62 14.8499 21.12L15.1399 18.81C15.5499 18.62 15.9399 18.39 16.3099 18.13L18.4599 19.04C18.9199 19.24 19.4599 19.06 19.7099 18.62L21.5799 15.39C21.8299 14.95 21.7199 14.4 21.3199 14.09L19.4599 12.68C19.4899 12.45 19.4999 12.23 19.4999 12ZM12.0399 15.5C10.1099 15.5 8.53991 13.93 8.53991 12C8.53991 10.07 10.1099 8.5 12.0399 8.5C13.9699 8.5 15.5399 10.07 15.5399 12C15.5399 13.93 13.9699 15.5 12.0399 15.5Z",fill:"currentColor"})),qL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19.4323 12.98C19.4723 12.66 19.5023 12.34 19.5023 12C19.5023 11.66 19.4723 11.34 19.4323 11.02L21.5423 9.37C21.7323 9.22 21.7823 8.95 21.6623 8.73L19.6623 5.27C19.5723 5.11 19.4023 5.02 19.2223 5.02C19.1623 5.02 19.1023 5.03 19.0523 5.05L16.5623 6.05C16.0423 5.65 15.4823 5.32 14.8723 5.07L14.4923 2.42C14.4623 2.18 14.2523 2 14.0023 2H10.0023C9.75228 2 9.54228 2.18 9.51228 2.42L9.13228 5.07C8.52228 5.32 7.96228 5.66 7.44228 6.05L4.95228 5.05C4.89228 5.03 4.83228 5.02 4.77228 5.02C4.60228 5.02 4.43228 5.11 4.34228 5.27L2.34228 8.73C2.21228 8.95 2.27228 9.22 2.46228 9.37L4.57228 11.02C4.53228 11.34 4.50228 11.67 4.50228 12C4.50228 12.33 4.53228 12.66 4.57228 12.98L2.46228 14.63C2.27228 14.78 2.22228 15.05 2.34228 15.27L4.34228 18.73C4.43228 18.89 4.60228 18.98 4.78228 18.98C4.84228 18.98 4.90228 18.97 4.95228 18.95L7.44228 17.95C7.96228 18.35 8.52228 18.68 9.13228 18.93L9.51228 21.58C9.54228 21.82 9.75228 22 10.0023 22H14.0023C14.2523 22 14.4623 21.82 14.4923 21.58L14.8723 18.93C15.4823 18.68 16.0423 18.34 16.5623 17.95L19.0523 18.95C19.1123 18.97 19.1723 18.98 19.2323 18.98C19.4023 18.98 19.5723 18.89 19.6623 18.73L21.6623 15.27C21.7823 15.05 21.7323 14.78 21.5423 14.63L19.4323 12.98ZM17.4523 11.27C17.4923 11.58 17.5023 11.79 17.5023 12C17.5023 12.21 17.4823 12.43 17.4523 12.73L17.3123 13.86L18.2023 14.56L19.2823 15.4L18.5823 16.61L17.3123 16.1L16.2723 15.68L15.3723 16.36C14.9423 16.68 14.5323 16.92 14.1223 17.09L13.0623 17.52L12.9023 18.65L12.7023 20H11.3023L10.9523 17.52L9.89228 17.09C9.46228 16.91 9.06228 16.68 8.66228 16.38L7.75228 15.68L6.69228 16.11L5.42228 16.62L4.72228 15.41L5.80228 14.57L6.69228 13.87L6.55228 12.74C6.52228 12.43 6.50228 12.2 6.50228 12C6.50228 11.8 6.52228 11.57 6.55228 11.27L6.69228 10.14L5.80228 9.44L4.72228 8.6L5.42228 7.39L6.69228 7.9L7.73228 8.32L8.63228 7.64C9.06228 7.32 9.47228 7.08 9.88228 6.91L10.9423 6.48L11.1023 5.35L11.3023 4H12.6923L13.0423 6.48L14.1023 6.91C14.5323 7.09 14.9323 7.32 15.3323 7.62L16.2423 8.32L17.3023 7.89L18.5723 7.38L19.2723 8.59L18.2023 9.44L17.3123 10.14L17.4523 11.27ZM12.0023 8C9.79228 8 8.00228 9.79 8.00228 12C8.00228 14.21 9.79228 16 12.0023 16C14.2123 16 16.0023 14.21 16.0023 12C16.0023 9.79 14.2123 8 12.0023 8ZM12.0023 14C10.9023 14 10.0023 13.1 10.0023 12C10.0023 10.9 10.9023 10 12.0023 10C13.1023 10 14.0023 10.9 14.0023 12C14.0023 13.1 13.1023 14 12.0023 14Z"})),KL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M22 9.50664H17.21L12.82 2.93664C12.42 2.34664 11.55 2.34664 11.16 2.93664L6.77 9.50664H2C1.45 9.50664 1 9.95664 1 10.5066C1 10.5966 1.01 10.6866 1.04 10.7766L3.58 20.0466C3.81 20.8866 4.58 21.5066 5.5 21.5066H18.5C19.42 21.5066 20.19 20.8866 20.43 20.0466L22.97 10.7766L23 10.5066C23 9.95664 22.55 9.50664 22 9.50664ZM11.99 5.29664L14.8 9.50664H9.18L11.99 5.29664ZM12 17.5066C10.9 17.5066 10 16.6066 10 15.5066C10 14.4066 10.9 13.5066 12 13.5066C13.1 13.5066 14 14.4066 14 15.5066C14 16.6066 13.1 17.5066 12 17.5066Z",fill:"currentColor"})),XL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M18 2H10.83C10.3 2 9.79 2.21 9.41 2.59L4.59 7.41C4.21 7.79 4 8.3 4 8.83V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V4C20 2.9 19.1 2 18 2ZM11.65 16.65L8.86 13.86C8.54 13.54 8.76 13 9.21 13H11V10.01C11 9.46 11.44 9.02 11.99 9.01C12.55 9 13 9.45 13 10.01V13H14.79C15.24 13 15.46 13.54 15.14 13.85L12.35 16.64C12.16 16.84 11.84 16.84 11.65 16.65Z"})),QL=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M20 2H4C2.9 2 2 2.9 2 4V22L6 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2ZM13 14H11V12H13V14ZM12 10C11.45 10 11 9.55 11 9V7C11 6.45 11.45 6 12 6C12.55 6 13 6.45 13 7V9C13 9.55 12.55 10 12 10Z"})),gs=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:9,viewBox:"0 0 14 9",fill:"currentColor",...e},l.createElement("path",{d:"M0.75 9H3.75C4.1625 9 4.5 8.6625 4.5 8.25C4.5 7.8375 4.1625 7.5 3.75 7.5H0.75C0.3375 7.5 0 7.8375 0 8.25C0 8.6625 0.3375 9 0.75 9ZM0 0.75C0 1.1625 0.3375 1.5 0.75 1.5H12.75C13.1625 1.5 13.5 1.1625 13.5 0.75C13.5 0.3375 13.1625 0 12.75 0H0.75C0.3375 0 0 0.3375 0 0.75ZM0.75 5.25H8.25C8.6625 5.25 9 4.9125 9 4.5C9 4.0875 8.6625 3.75 8.25 3.75H0.75C0.3375 3.75 0 4.0875 0 4.5C0 4.9125 0.3375 5.25 0.75 5.25Z"})),JL=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",fill:"currentColor",...e},l.createElement("path",{d:"M13.7241 10.8703C13.4316 10.5778 12.9591 10.5778 12.6666 10.8703L9.74913 13.7803V2.40283C9.74913 1.99033 9.41163 1.65283 8.99913 1.65283C8.58663 1.65283 8.24913 1.99033 8.24913 2.40283V13.7878L5.33913 10.8778C5.04663 10.5853 4.57413 10.5853 4.28163 10.8778C3.98913 11.1703 3.98913 11.6428 4.28163 11.9353L8.47413 16.1278C8.76663 16.4203 9.23913 16.4203 9.53163 16.1278L13.7241 11.9353C14.0091 11.6428 14.0091 11.1628 13.7241 10.8703Z"})),eN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.60001 10.8996L7.63334 10.8996C8.02485 10.8996 8.37134 10.8996 8.65849 10.8762C8.96428 10.8512 9.28113 10.7952 9.58959 10.638C10.0412 10.4079 10.4083 10.0408 10.6384 9.58919C10.7956 9.28074 10.8516 8.96388 10.8766 8.6581C10.9 8.37095 10.9 8.02447 10.9 7.63298V7.63297V7.63296V7.63294L10.9 7.59961V6.39961L10.9 6.36628C10.9 5.97477 10.9 5.62828 10.8766 5.34113C10.8516 5.03534 10.7956 4.71849 10.6384 4.41004C10.4083 3.95845 10.0412 3.59129 9.58959 3.3612C9.28113 3.20403 8.96428 3.14802 8.6585 3.12304C8.37136 3.09958 8.02489 3.09959 7.63341 3.09961H7.63335L7.60001 3.09961L6.40001 3.09961L6.36667 3.09961H6.36661C5.97513 3.09959 5.62866 3.09958 5.34152 3.12304C5.03574 3.14802 4.71889 3.20403 4.41043 3.3612C3.95884 3.59129 3.59169 3.95845 3.36159 4.41003C3.20443 4.71849 3.14842 5.03534 3.12343 5.34113C3.09997 5.62826 3.09999 5.97473 3.10001 6.36621V6.36628L3.10001 6.39961L3.10001 7.59961L3.10001 7.63295V7.63301C3.09999 8.02449 3.09997 8.37096 3.12343 8.6581C3.14842 8.96388 3.20443 9.28073 3.36159 9.58919C3.59169 10.0408 3.95884 10.4079 4.41043 10.638C4.71889 10.7952 5.03574 10.8512 5.34152 10.8762C5.62867 10.8996 5.97515 10.8996 6.36664 10.8996H6.36665H6.36666H6.36667L6.40001 10.8996H7.60001ZM8.7724 9.03422C8.75999 9.04054 8.70639 9.06628 8.51192 9.08217C8.30694 9.09891 8.0349 9.09961 7.60001 9.09961L6.40001 9.09961C5.96512 9.09961 5.69308 9.09891 5.4881 9.08217C5.29363 9.06628 5.24003 9.04054 5.22761 9.03422C5.11472 8.97669 5.02293 8.8849 4.96541 8.77201C4.95908 8.75959 4.93334 8.70599 4.91746 8.51152C4.90071 8.30654 4.90001 8.0345 4.90001 7.59961L4.90001 6.39961C4.90001 5.96472 4.90071 5.69268 4.91746 5.4877C4.93335 5.29323 4.95908 5.23963 4.96541 5.22722C5.02293 5.11432 5.11472 5.02253 5.22761 4.96501C5.24003 4.95868 5.29363 4.93295 5.4881 4.91706C5.69308 4.90031 5.96512 4.89961 6.40001 4.89961L7.60001 4.89961C8.0349 4.89961 8.30694 4.90031 8.51192 4.91706C8.70639 4.93295 8.75999 4.95868 8.7724 4.96501C8.8853 5.02253 8.97709 5.11432 9.03461 5.22722C9.04094 5.23963 9.06667 5.29323 9.08256 5.4877C9.09931 5.69268 9.10001 5.96472 9.10001 6.39961L9.10001 7.59961C9.10001 8.0345 9.09931 8.30654 9.08256 8.51152C9.06667 8.70599 9.04094 8.75959 9.03461 8.77201C8.97709 8.8849 8.8853 8.97669 8.7724 9.03422ZM7.60001 20.8996L7.63334 20.8996H7.63344C8.02491 20.8996 8.37136 20.8996 8.65849 20.8762C8.96428 20.8512 9.28113 20.7952 9.58959 20.638C10.0412 20.4079 10.4083 20.0408 10.6384 19.5892C10.7956 19.2807 10.8516 18.9639 10.8766 18.6581C10.9 18.371 10.9 18.0245 10.9 17.633V17.633V17.633V17.6329L10.9 17.5996V16.3996L10.9 16.3663C10.9 15.9748 10.9 15.6283 10.8766 15.3411C10.8516 15.0353 10.7956 14.7185 10.6384 14.41C10.4083 13.9584 10.0412 13.5913 9.58959 13.3612C9.28113 13.204 8.96428 13.148 8.6585 13.123C8.37136 13.0996 8.02489 13.0996 7.63342 13.0996H7.63341H7.6334H7.63335L7.60001 13.0996H6.40001L6.36667 13.0996H6.36662H6.36661H6.3666C5.97512 13.0996 5.62866 13.0996 5.34152 13.123C5.03574 13.148 4.71889 13.204 4.41043 13.3612C3.95884 13.5913 3.59169 13.9584 3.36159 14.41C3.20443 14.7185 3.14842 15.0353 3.12343 15.3411C3.09997 15.6283 3.09999 15.9747 3.10001 16.3662V16.3663L3.10001 16.3996L3.10001 17.5996L3.10001 17.6329V17.633C3.09999 18.0245 3.09997 18.371 3.12343 18.6581C3.14842 18.9639 3.20443 19.2807 3.36159 19.5892C3.59169 20.0408 3.95884 20.4079 4.41043 20.638C4.71889 20.7952 5.03574 20.8512 5.34152 20.8762C5.62865 20.8996 5.97511 20.8996 6.36657 20.8996H6.36667L6.40001 20.8996H7.60001ZM8.7724 19.0342C8.75999 19.0405 8.70639 19.0663 8.51192 19.0822C8.30694 19.0989 8.0349 19.0996 7.60001 19.0996H6.40001C5.96512 19.0996 5.69308 19.0989 5.4881 19.0822C5.29363 19.0663 5.24003 19.0405 5.22761 19.0342C5.11472 18.9767 5.02293 18.8849 4.96541 18.772C4.95908 18.7596 4.93334 18.706 4.91746 18.5115C4.90071 18.3065 4.90001 18.0345 4.90001 17.5996L4.90001 16.3996C4.90001 15.9647 4.90071 15.6927 4.91746 15.4877C4.93335 15.2932 4.95908 15.2396 4.96541 15.2272C5.02293 15.1143 5.11472 15.0225 5.22761 14.965C5.24003 14.9587 5.29363 14.9329 5.4881 14.9171C5.69308 14.9003 5.96512 14.8996 6.40001 14.8996H7.60001C8.0349 14.8996 8.30694 14.9003 8.51192 14.9171C8.70639 14.9329 8.75999 14.9587 8.7724 14.965C8.8853 15.0225 8.97709 15.1143 9.03461 15.2272C9.04094 15.2396 9.06667 15.2932 9.08256 15.4877C9.09931 15.6927 9.10001 15.9647 9.10001 16.3996L9.10001 17.5996C9.10001 18.0345 9.09931 18.3065 9.08256 18.5115C9.06667 18.706 9.04094 18.7596 9.03461 18.772C8.97709 18.8849 8.8853 18.9767 8.7724 19.0342ZM17.6333 10.8996L17.6 10.8996H16.4L16.3667 10.8996H16.3667H16.3666C15.9752 10.8996 15.6287 10.8996 15.3415 10.8762C15.0357 10.8512 14.7189 10.7952 14.4104 10.638C13.9588 10.4079 13.5917 10.0408 13.3616 9.58919C13.2044 9.28073 13.1484 8.96388 13.1234 8.6581C13.1 8.37094 13.1 8.02445 13.1 7.63295L13.1 7.59961V6.39961L13.1 6.36628C13.1 5.97477 13.1 5.62828 13.1234 5.34113C13.1484 5.03534 13.2044 4.71849 13.3616 4.41003C13.5917 3.95845 13.9588 3.59129 14.4104 3.3612C14.7189 3.20403 15.0357 3.14802 15.3415 3.12304C15.6287 3.09958 15.9751 3.09959 16.3666 3.09961H16.3667L16.4 3.09961L17.6 3.09961L17.6333 3.09961H17.6334C18.0249 3.09959 18.3714 3.09958 18.6585 3.12304C18.9643 3.14802 19.2811 3.20403 19.5896 3.3612C20.0412 3.59129 20.4083 3.95845 20.6384 4.41004C20.7956 4.71849 20.8516 5.03534 20.8766 5.34113C20.9 5.62828 20.9 5.97477 20.9 6.36628L20.9 6.39961V7.59961L20.9 7.63294C20.9 8.02445 20.9 8.37094 20.8766 8.6581C20.8516 8.96388 20.7956 9.28074 20.6384 9.58919C20.4083 10.0408 20.0412 10.4079 19.5896 10.638C19.2811 10.7952 18.9643 10.8512 18.6585 10.8762C18.3713 10.8996 18.0248 10.8996 17.6333 10.8996ZM18.5119 9.08217C18.7064 9.06628 18.76 9.04054 18.7724 9.03422C18.8853 8.97669 18.9771 8.8849 19.0346 8.77201C19.0409 8.75959 19.0667 8.70599 19.0826 8.51152C19.0993 8.30654 19.1 8.0345 19.1 7.59961V6.39961C19.1 5.96472 19.0993 5.69268 19.0826 5.4877C19.0667 5.29323 19.0409 5.23963 19.0346 5.22722C18.9771 5.11432 18.8853 5.02253 18.7724 4.96501C18.76 4.95868 18.7064 4.93295 18.5119 4.91706C18.3069 4.90031 18.0349 4.89961 17.6 4.89961L16.4 4.89961C15.9651 4.89961 15.6931 4.90031 15.4881 4.91706C15.2936 4.93295 15.24 4.95868 15.2276 4.96501C15.1147 5.02253 15.0229 5.11432 14.9654 5.22722C14.9591 5.23963 14.9333 5.29323 14.9175 5.4877C14.9007 5.69268 14.9 5.96472 14.9 6.39961V7.59961C14.9 8.0345 14.9007 8.30654 14.9175 8.51152C14.9333 8.70599 14.9591 8.75959 14.9654 8.77201C15.0229 8.8849 15.1147 8.97669 15.2276 9.03422C15.24 9.04054 15.2936 9.06628 15.4881 9.08217C15.6931 9.09891 15.9651 9.09961 16.4 9.09961L17.6 9.09961C18.0349 9.09961 18.3069 9.09891 18.5119 9.08217ZM17.6 20.8996L17.6333 20.8996H17.6334C18.0249 20.8996 18.3714 20.8996 18.6585 20.8762C18.9643 20.8512 19.2811 20.7952 19.5896 20.638C20.0412 20.4079 20.4083 20.0408 20.6384 19.5892C20.7956 19.2807 20.8516 18.9639 20.8766 18.6581C20.9 18.3709 20.9 18.0245 20.9 17.6329L20.9 17.5996V16.3996L20.9 16.3663C20.9 15.9748 20.9 15.6283 20.8766 15.3411C20.8516 15.0353 20.7956 14.7185 20.6384 14.41C20.4083 13.9584 20.0412 13.5913 19.5896 13.3612C19.2811 13.204 18.9643 13.148 18.6585 13.123C18.3714 13.0996 18.0249 13.0996 17.6334 13.0996H17.6333L17.6 13.0996H16.4L16.3667 13.0996H16.3666C15.9751 13.0996 15.6287 13.0996 15.3415 13.123C15.0357 13.148 14.7189 13.204 14.4104 13.3612C13.9588 13.5913 13.5917 13.9584 13.3616 14.41C13.2044 14.7185 13.1484 15.0353 13.1234 15.3411C13.1 15.6283 13.1 15.9748 13.1 16.3663L13.1 16.3996V17.5996L13.1 17.6329C13.1 18.0245 13.1 18.3709 13.1234 18.6581C13.1484 18.9639 13.2044 19.2807 13.3616 19.5892C13.5917 20.0408 13.9588 20.4079 14.4104 20.638C14.7189 20.7952 15.0357 20.8512 15.3415 20.8762C15.6287 20.8996 15.9751 20.8996 16.3666 20.8996H16.3667L16.4 20.8996H17.6ZM18.7724 19.0342C18.76 19.0405 18.7064 19.0663 18.5119 19.0822C18.3069 19.0989 18.0349 19.0996 17.6 19.0996H16.4C15.9651 19.0996 15.6931 19.0989 15.4881 19.0822C15.2936 19.0663 15.24 19.0405 15.2276 19.0342C15.1147 18.9767 15.0229 18.8849 14.9654 18.772C14.9591 18.7596 14.9333 18.706 14.9175 18.5115C14.9007 18.3065 14.9 18.0345 14.9 17.5996V16.3996C14.9 15.9647 14.9007 15.6927 14.9175 15.4877C14.9333 15.2932 14.9591 15.2396 14.9654 15.2272C15.0229 15.1143 15.1147 15.0225 15.2276 14.965C15.24 14.9587 15.2936 14.9329 15.4881 14.9171C15.6931 14.9003 15.9651 14.8996 16.4 14.8996H17.6C18.0349 14.8996 18.3069 14.9003 18.5119 14.9171C18.7064 14.9329 18.76 14.9587 18.7724 14.965C18.8853 15.0225 18.9771 15.1143 19.0346 15.2272C19.0409 15.2396 19.0667 15.2932 19.0826 15.4877C19.0993 15.6927 19.1 15.9647 19.1 16.3996V17.5996C19.1 18.0345 19.0993 18.3065 19.0826 18.5115C19.0667 18.706 19.0409 18.7596 19.0346 18.772C18.9771 18.8849 18.8853 18.9767 18.7724 19.0342Z",fill:"currentColor"})),tN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,viewBox:"0 0 25 24",fill:"currentColor",...e},l.createElement("path",{d:"M12.5003 17.5198L16.6503 20.0298C17.4103 20.4898 18.3403 19.8098 18.1403 18.9498L17.0403 14.2298L20.7103 11.0498C21.3803 10.4698 21.0203 9.36977 20.1403 9.29977L15.3103 8.88977L13.4203 4.42977C13.0803 3.61977 11.9203 3.61977 11.5803 4.42977L9.69032 8.87977L4.86032 9.28977C3.98032 9.35977 3.62032 10.4598 4.29032 11.0398L7.96032 14.2198L6.86032 18.9398C6.66032 19.7998 7.59032 20.4798 8.35032 20.0198L12.5003 17.5198Z"})),nN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM15.22 17.39L12 15.45L8.78 17.39C8.4 17.62 7.93 17.28 8.03 16.85L8.88 13.19L6.05 10.74C5.72 10.45 5.9 9.9 6.34 9.86L10.08 9.54L11.54 6.09C11.71 5.68 12.29 5.68 12.46 6.09L13.92 9.53L17.66 9.85C18.1 9.89 18.28 10.44 17.94 10.73L15.11 13.18L15.96 16.85C16.06 17.28 15.6 17.62 15.22 17.39Z",fill:"currentColor"})),rN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M21 6H3C1.9 6 1 6.9 1 8V16C1 17.1 1.9 18 3 18H21C22.1 18 23 17.1 23 16V8C23 6.9 22.1 6 21 6ZM20 16H4C3.45 16 3 15.55 3 15V9C3 8.45 3.45 8 4 8H5V11C5 11.55 5.45 12 6 12C6.55 12 7 11.55 7 11V8H9V11C9 11.55 9.45 12 10 12C10.55 12 11 11.55 11 11V8H13V11C13 11.55 13.45 12 14 12C14.55 12 15 11.55 15 11V8H17V11C17 11.55 17.45 12 18 12C18.55 12 19 11.55 19 11V8H20C20.55 8 21 8.45 21 9V15C21 15.55 20.55 16 20 16Z",fill:"currentColor"})),oN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M21.63 17.37L22.77 16.37L21.77 14.64L20.32 15.13C20 14.86 19.64 14.65 19.24 14.5L18.94 13H16.94L16.64 14.49C16.24 14.64 15.88 14.85 15.56 15.12L14.11 14.63L13.11 16.36L14.25 17.36C14.17 17.86 14.17 18.12 14.25 18.62L13.11 19.62L14.11 21.35L15.56 20.86C15.88 21.13 16.24 21.34 16.64 21.49L16.94 23H18.94L19.24 21.51C19.64 21.36 20 21.15 20.32 20.88L21.77 21.37L22.77 19.64L21.63 18.64C21.71 18.13 21.71 17.87 21.63 17.37ZM17.94 20C16.84 20 15.94 19.1 15.94 18C15.94 16.9 16.84 16 17.94 16C19.04 16 19.94 16.9 19.94 18C19.94 19.1 19.04 20 17.94 20ZM9.94 6V11.41L12.3 13.77L13.34 11.98L11.94 10.59V6H9.94ZM9.8 17.91C6.81 17.42 4.45 15.01 4.02 12H2C2.5 16.5 6.31 20 10.94 20C10.96 20 10.99 20 11.01 20L9.8 17.91Z"}),l.createElement("path",{d:"M2 11C2 6.03 6.03 2 11 2C13.83 2 16.35 3.32 18 5.36V3H20V9H14V7H16.74C15.47 5.19 13.37 4 11 4C7.14 4 4 7.14 4 11H2Z"})),aN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19.5 14.5L13.5 20.5L12.08 19.08L15.67 15.5H4.5V3.5H6.5V13.5H15.67L12.08 9.92L13.5 8.5L19.5 14.5Z"})),sN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M9 12C10.93 12 12.5 10.43 12.5 8.5C12.5 6.57 10.93 5 9 5C7.07 5 5.5 6.57 5.5 8.5C5.5 10.43 7.07 12 9 12ZM9 7C9.83 7 10.5 7.67 10.5 8.5C10.5 9.33 9.83 10 9 10C8.17 10 7.5 9.33 7.5 8.5C7.5 7.67 8.17 7 9 7ZM9.05 17H4.77C5.76 16.5 7.47 16 9 16C9.11 16 9.23 16.01 9.34 16.01C9.68 15.28 10.27 14.68 10.98 14.2C10.25 14.07 9.56 14 9 14C6.66 14 2 15.17 2 17.5V19H9V17.5C9 17.33 9.02 17.16 9.05 17ZM16.5 14.5C14.66 14.5 11 15.51 11 17.5V19H22V17.5C22 15.51 18.34 14.5 16.5 14.5ZM17.71 12.68C18.47 12.25 19 11.44 19 10.5C19 9.12 17.88 8 16.5 8C15.12 8 14 9.12 14 10.5C14 11.44 14.53 12.25 15.29 12.68C15.65 12.88 16.06 13 16.5 13C16.94 13 17.35 12.88 17.71 12.68Z"})),iN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M9.5 10.02H14.5V21H9.5V10.02ZM16.5 21H19.5C20.6 21 21.5 20.1 21.5 19V10H16.5V21ZM19.5 3H4.5C3.4 3 2.5 3.9 2.5 5V8H21.5V5C21.5 3.9 20.6 3 19.5 3ZM2.5 19C2.5 20.1 3.4 21 4.5 21H7.5V10H2.5V19Z",fill:"currentColor"})),U9=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 5V8H5V5H19ZM19 10V14H5V10H19ZM5 19V16H19V19H5Z"})),lN=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M8 1.14258C8.31559 1.14258 8.57143 1.39842 8.57143 1.71401L8.57206 2.31371C11.2714 2.58202 13.418 4.7288 13.6861 7.42823L14.2857 7.42829C14.6013 7.42829 14.8571 7.68413 14.8571 7.99972C14.8571 8.31531 14.6013 8.57115 14.2857 8.57115L13.686 8.57178C13.4177 11.2709 11.2712 13.4174 8.57206 13.6857L8.57143 14.2854C8.57143 14.601 8.31559 14.8569 8 14.8569C7.68441 14.8569 7.42857 14.601 7.42857 14.2854L7.42851 13.6858C4.72908 13.4177 2.5823 11.2711 2.31399 8.57178L1.71429 8.57115C1.39869 8.57115 1.14286 8.31531 1.14286 7.99972C1.14286 7.68413 1.39869 7.42829 1.71429 7.42829L2.31393 7.42823C2.582 4.72861 4.72889 2.58172 7.42851 2.31366L7.42857 1.71401C7.42857 1.39842 7.68441 1.14258 8 1.14258ZM8.57197 3.46373L8.57143 3.99972C8.57143 4.31531 8.31559 4.57115 8 4.57115C7.68441 4.57115 7.42857 4.31531 7.42857 3.99972L7.4286 3.46366C5.36074 3.7215 3.72178 5.36046 3.46394 7.42832L4 7.42829C4.31559 7.42829 4.57143 7.68413 4.57143 7.99972C4.57143 8.31531 4.31559 8.57115 4 8.57115L3.46401 8.57169C3.72208 10.6393 5.36093 12.278 7.4286 12.5358L7.42857 11.9997C7.42857 11.6841 7.68441 11.4283 8 11.4283C8.31559 11.4283 8.57143 11.6841 8.57143 11.9997L8.57197 12.5357C10.6394 12.2777 12.2779 10.6391 12.536 8.57169L12 8.57115C11.6844 8.57115 11.4286 8.31531 11.4286 7.99972C11.4286 7.68413 11.6844 7.42829 12 7.42829L12.5361 7.42832C12.2782 5.36065 10.6396 3.72181 8.57197 3.46373ZM8 6.85686C8.63118 6.85686 9.14286 7.36854 9.14286 7.99972C9.14286 8.6309 8.63118 9.14258 8 9.14258C7.36882 9.14258 6.85714 8.6309 6.85714 7.99972C6.85714 7.36854 7.36882 6.85686 8 6.85686Z",fill:"currentColor"})),cN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M15 13V5C15 3.34 13.66 2 12 2C10.34 2 9 3.34 9 5V13C7.79 13.91 7 15.37 7 17C7 19.76 9.24 22 12 22C14.76 22 17 19.76 17 17C17 15.37 16.21 13.91 15 13ZM13 11H11V5C11 4.45 11.45 4 12 4C12.55 4 13 4.45 13 5H12.5C12.22 5 12 5.22 12 5.5C12 5.78 12.22 6 12.5 6H13V8H12.5C12.22 8 12 8.22 12 8.5C12 8.78 12.22 9 12.5 9H13V11Z"})),uN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M19 4H18V3C18 2.45 17.55 2 17 2C16.45 2 16 2.45 16 3V4H8V3C8 2.45 7.55 2 7 2C6.45 2 6 2.45 6 3V4H5C3.89 4 3.01 4.9 3.01 6L3 20C3 21.1 3.89 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM18 20H6C5.45 20 5 19.55 5 19V9H19V19C19 19.55 18.55 20 18 20ZM8 11H11C11.55 11 12 11.45 12 12V15C12 15.55 11.55 16 11 16H8C7.45 16 7 15.55 7 15V12C7 11.45 7.45 11 8 11Z"})),dN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M15 4C10.58 4 7 7.58 7 12C7 16.42 10.58 20 15 20C19.42 20 23 16.42 23 12C23 7.58 19.42 4 15 4ZM15 18C11.69 18 9 15.31 9 12C9 8.69 11.69 6 15 6C18.31 6 21 8.69 21 12C21 15.31 18.31 18 15 18ZM3 12C3 9.39 4.67 7.17 7 6.35V4.26C3.55 5.15 1 8.27 1 12C1 15.73 3.55 18.85 7 19.74V17.65C4.67 16.83 3 14.61 3 12Z",fill:"currentColor"})),fN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M20 4H6V2H4V22H6V14H20L18 9L20 4ZM16.14 9.74L17.04 12H6V6H17.05L16.15 8.26L15.85 9L16.14 9.74ZM13 9C13 10.1 12.1 11 11 11C9.9 11 9 10.1 9 9C9 7.9 9.9 7 11 7C12.1 7 13 7.9 13 9Z",fill:"currentColor"})),hN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12.8551 15.67C12.9951 15.31 12.9051 14.9 12.6251 14.62L10.5351 12.56L10.5651 12.53C12.3051 10.59 13.5451 8.36 14.2751 6H16.2151C16.7551 6 17.2051 5.55 17.2051 5.01V4.99C17.2051 4.45 16.7551 4 16.2151 4H10.2051V3C10.2051 2.45 9.75508 2 9.20508 2C8.65508 2 8.20508 2.45 8.20508 3V4H2.19508C1.65508 4 1.20508 4.45 1.20508 4.99C1.20508 5.54 1.65508 5.98 2.19508 5.98H12.3751C11.7051 7.92 10.6451 9.75 9.20508 11.35C8.39508 10.46 7.71508 9.49 7.14508 8.47C6.98508 8.18 6.69508 8 6.36508 8C5.67508 8 5.23508 8.75 5.57508 9.35C6.20508 10.48 6.97508 11.56 7.87508 12.56L3.50508 16.87C3.10508 17.26 3.10508 17.9 3.50508 18.29C3.89508 18.68 4.52508 18.68 4.92508 18.29L9.20508 14L11.2251 16.02C11.7351 16.53 12.6051 16.34 12.8551 15.67ZM17.7051 10C17.1051 10 16.5651 10.37 16.3551 10.94L12.6851 20.74C12.4451 21.35 12.9051 22 13.5551 22C13.9451 22 14.2951 21.76 14.4351 21.39L15.3251 19H20.0751L20.9751 21.39C21.1151 21.75 21.4651 22 21.8551 22C22.5051 22 22.9651 21.35 22.7351 20.74L19.0651 10.94C18.8451 10.37 18.3051 10 17.7051 10ZM16.0851 17L17.7051 12.67L19.3251 17H16.0851Z"})),gN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M3 18C3 18.55 3.45 19 4 19H9V17H4C3.45 17 3 17.45 3 18ZM3 6C3 6.55 3.45 7 4 7H13V5H4C3.45 5 3 5.45 3 6ZM13 20V19H20C20.55 19 21 18.55 21 18C21 17.45 20.55 17 20 17H13V16C13 15.45 12.55 15 12 15C11.45 15 11 15.45 11 16V20C11 20.55 11.45 21 12 21C12.55 21 13 20.55 13 20ZM7 10V11H4C3.45 11 3 11.45 3 12C3 12.55 3.45 13 4 13H7V14C7 14.55 7.45 15 8 15C8.55 15 9 14.55 9 14V10C9 9.45 8.55 9 8 9C7.45 9 7 9.45 7 10ZM21 12C21 11.45 20.55 11 20 11H11V13H20C20.55 13 21 12.55 21 12ZM16 9C16.55 9 17 8.55 17 8V7H20C20.55 7 21 6.55 21 6C21 5.45 20.55 5 20 5H17V4C17 3.45 16.55 3 16 3C15.45 3 15 3.45 15 4V8C15 8.55 15.45 9 16 9Z"})),pN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M16.75 8.00136H8.25V7.12645C8.24974 6.15652 8.56265 5.21401 9.13954 4.44709C9.71643 3.68017 10.5246 3.13234 11.4369 2.88972C12.3493 2.64711 13.3141 2.72348 14.1797 3.10681C15.0453 3.49015 15.7626 4.15872 16.2188 5.0074C16.2729 5.10788 16.3458 5.19639 16.4333 5.26787C16.5207 5.33935 16.6209 5.39241 16.7283 5.42401C16.8356 5.45561 16.948 5.46514 17.0589 5.45206C17.1698 5.43897 17.2771 5.40353 17.3748 5.34775C17.4724 5.29197 17.5583 5.21694 17.6278 5.12695C17.6972 5.03697 17.7488 4.93378 17.7795 4.82329C17.8102 4.7128 17.8195 4.59717 17.8067 4.48299C17.794 4.36882 17.7596 4.25834 17.7054 4.15786C17.0664 2.97 16.0621 2.03437 14.8503 1.49805C13.6384 0.961718 12.2878 0.855103 11.0107 1.19496C9.73357 1.53482 8.60238 2.30187 7.79493 3.37556C6.98748 4.44924 6.54956 5.76867 6.55 7.12645V8.37233C5.79296 8.71241 5.1486 9.2722 4.69572 9.98323C4.24285 10.6943 4.00109 11.5257 4 12.3759V17.6254C4.00135 18.7852 4.44955 19.8971 5.24629 20.7172C6.04302 21.5373 7.12324 21.9986 8.25 22H16.75C17.8768 21.9986 18.957 21.5373 19.7537 20.7172C20.5505 19.8971 20.9987 18.7852 21 17.6254V12.3759C20.9987 11.2162 20.5505 10.1043 19.7537 9.28418C18.957 8.46409 17.8768 8.00275 16.75 8.00136ZM19.3 17.6254C19.3 18.3216 19.0313 18.9892 18.5531 19.4814C18.0749 19.9736 17.4263 20.2502 16.75 20.2502H8.25C7.5737 20.2502 6.9251 19.9736 6.44688 19.4814C5.96866 18.9892 5.7 18.3216 5.7 17.6254V12.3759C5.7 11.6798 5.96866 11.0122 6.44688 10.52C6.9251 10.0277 7.5737 9.75119 8.25 9.75119H16.75C17.4263 9.75119 18.0749 10.0277 18.5531 10.52C19.0313 11.0122 19.3 11.6798 19.3 12.3759V17.6254Z",fill:"currentColor"}),l.createElement("path",{d:"M12.4531 13C12.0677 13 11.6981 13.1049 11.4256 13.2917C11.1531 13.4786 11 13.7319 11 13.9961V15.9883C11 16.2525 11.1531 16.5058 11.4256 16.6926C11.6981 16.8794 12.0677 16.9844 12.4531 16.9844C12.8385 16.9844 13.2081 16.8794 13.4806 16.6926C13.7532 16.5058 13.9062 16.2525 13.9062 15.9883V13.9961C13.9062 13.7319 13.7532 13.4786 13.4806 13.2917C13.2081 13.1049 12.8385 13 12.4531 13Z",fill:"currentColor"})),mN=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M10.75 5.25C10.75 3.73063 9.51937 2.5 8 2.5C6.48063 2.5 5.25 3.73063 5.25 5.25C5.25 6.76937 6.48063 8 8 8C9.51937 8 10.75 6.76937 10.75 5.25ZM2.5 12.1154V12.83C2.5 13.2 2.79997 13.5 3.17 13.5H12.83C13.2 13.5 13.5 13.2 13.5 12.83V12.1154C13.5 9.69231 9.83563 9 8 9C6.16437 9 2.5 9.69231 2.5 12.1154Z",fill:"currentColor"})),k1=e=>l.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M13.17 2.5H6.01C4.91 2.5 4.01 3.39 4.01 4.5L4 20.5C4 21.6 4.9 22.5 6 22.5H18C19.1 22.5 20 21.6 20 20.5V9.33C20 8.8 19.79 8.29 19.41 7.92L14.58 3.09C14.21 2.71 13.7 2.5 13.17 2.5ZM13 8.5V4L18.5 9.5H14C13.45 9.5 13 9.05 13 8.5ZM14 14.5L15.27 13.83C15.6 13.65 16 13.89 16 14.27V16.73C16 17.11 15.6 17.35 15.27 17.17L14 16.5V17.5C14 18.05 13.55 18.5 13 18.5H9C8.45 18.5 8 18.05 8 17.5V13.5C8 12.95 8.45 12.5 9 12.5H13C13.55 12.5 14 12.95 14 13.5V14.5Z"})),vN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M4 14H6C6.55 14 7 13.55 7 13V11C7 10.45 6.55 10 6 10H4C3.45 10 3 10.45 3 11V13C3 13.55 3.45 14 4 14ZM4 19H6C6.55 19 7 18.55 7 18V16C7 15.45 6.55 15 6 15H4C3.45 15 3 15.45 3 16V18C3 18.55 3.45 19 4 19ZM4 9H6C6.55 9 7 8.55 7 8V6C7 5.45 6.55 5 6 5H4C3.45 5 3 5.45 3 6V8C3 8.55 3.45 9 4 9ZM9 14H20C20.55 14 21 13.55 21 13V11C21 10.45 20.55 10 20 10H9C8.45 10 8 10.45 8 11V13C8 13.55 8.45 14 9 14ZM9 19H20C20.55 19 21 18.55 21 18V16C21 15.45 20.55 15 20 15H9C8.45 15 8 15.45 8 16V18C8 18.55 8.45 19 9 19ZM8 6V8C8 8.55 8.45 9 9 9H20C20.55 9 21 8.55 21 8V6C21 5.45 20.55 5 20 5H9C8.45 5 8 5.45 8 6Z"})),CN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M15 20H3C2.45 20 2 19.55 2 19V5C2 4.45 2.45 4 3 4H15C15.55 4 16 4.45 16 5V19C16 19.55 15.55 20 15 20ZM19 8H21C21.55 8 22 7.55 22 7V5C22 4.45 21.55 4 21 4H19C18.45 4 18 4.45 18 5V7C18 7.55 18.45 8 19 8ZM19 20H21C21.55 20 22 19.55 22 19V17C22 16.45 21.55 16 21 16H19C18.45 16 18 16.45 18 17V19C18 19.55 18.45 20 19 20ZM19 14H21C21.55 14 22 13.55 22 13V11C22 10.45 21.55 10 21 10H19C18.45 10 18 10.45 18 11V13C18 13.55 18.45 14 19 14Z",fill:"currentColor"})),q9=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M22 20L22 4L2 4L2 20L22 20ZM4 15.33L6.5 15.33L6.5 18L4 18L4 15.33ZM6.5 13.33L4 13.33L4 10.66L6.5 10.66L6.5 13.33ZM20 18L8.5 18L8.5 6L20 6L20 18ZM6.5 6L6.5 8.67L4 8.67L4 6L6.5 6Z"})),wN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M22 18.9262V8.27623C22 7.45623 21.5 6.72623 20.74 6.41623L12.74 3.21623C12.26 3.02623 11.73 3.02623 11.25 3.21623L3.25 6.41623C2.5 6.72623 2 7.46623 2 8.27623V18.9262C2 20.0262 2.9 20.9262 4 20.9262H7V11.9262H17V20.9262H20C21.1 20.9262 22 20.0262 22 18.9262ZM11 18.9262H9V20.9262H11V18.9262ZM13 15.9262H11V17.9262H13V15.9262ZM15 18.9262H13V20.9262H15V18.9262Z"})),yN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M20 8.35V19H18V11H6V19H4V8.35L12 5.15L20 8.35ZM22 21V7L12 3L2 7V21H8V13H16V21H22ZM11 19H9V21H11V19ZM13 16H11V18H13V16ZM15 19H13V21H15V19Z"})),bN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.0001 5.49384L19.5301 18.5038H4.47012L12.0001 5.49384ZM2.74012 17.5038C1.97012 18.8338 2.93012 20.5038 4.47012 20.5038H19.5301C21.0701 20.5038 22.0301 18.8338 21.2601 17.5038L13.7301 4.49384C12.9601 3.16384 11.0401 3.16384 10.2701 4.49384L2.74012 17.5038ZM11.0001 10.5038V12.5038C11.0001 13.0538 11.4501 13.5038 12.0001 13.5038C12.5501 13.5038 13.0001 13.0538 13.0001 12.5038V10.5038C13.0001 9.95384 12.5501 9.50384 12.0001 9.50384C11.4501 9.50384 11.0001 9.95384 11.0001 10.5038ZM11.0001 15.5038H13.0001V17.5038H11.0001V15.5038Z"})),xN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2ZM15.55 15.8L11.47 13.29C11.17 13.11 10.99 12.79 10.99 12.44V7.75C11 7.34 11.34 7 11.75 7C12.16 7 12.5 7.34 12.5 7.75V12.2L16.34 14.51C16.7 14.73 16.82 15.2 16.6 15.56C16.38 15.91 15.91 16.02 15.55 15.8Z"})),K9=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12.5 7H11V13L16.2 16.2L17 14.9L12.5 12.2V7Z"})),SN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M16.75 4C17.85 4 18.75 4.9 18.75 6V18C18.75 19.1 17.85 20 16.75 20V4ZM1.75 20C1.75 21.1 2.65 22 3.75 22H12.75C13.85 22 14.75 21.1 14.75 20V4C14.75 2.9 13.85 2 12.75 2H3.75C2.65 2 1.75 2.9 1.75 4V20ZM20.75 18C21.58 18 22.25 17.33 22.25 16.5V7.5C22.25 6.67 21.58 6 20.75 6V18Z"})),EN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M17.09 4.77574C16.39 3.74574 15.59 2.78574 14.69 1.92574C14.34 1.58574 13.75 1.90574 13.85 2.38574C14.04 3.32574 14.24 4.56574 14.24 5.67574C14.24 7.73574 12.89 9.40574 10.83 9.40574C9.29 9.40574 8.03 8.47574 7.48 7.14574C7.38 6.94574 7.34 6.82574 7.28 6.60574C7.17 6.18574 6.62 6.05574 6.38 6.42574C6.2 6.69574 6.03 6.96574 5.87 7.25574C4.68 9.29574 4 11.6757 4 14.2157C4 18.6357 7.58 22.2157 12 22.2157C16.42 22.2157 20 18.6357 20 14.2157C20 10.7257 18.92 7.48574 17.09 4.77574ZM11.71 19.2157C9.93 19.2157 8.49 17.8157 8.49 16.0757C8.49 14.4557 9.54 13.3157 11.3 12.9557C12.77 12.6557 14.28 12.0257 15.33 11.0357C15.61 10.7757 16.07 10.8957 16.15 11.2657C16.38 12.2857 16.5 13.3457 16.5 14.4157C16.51 17.0657 14.36 19.2157 11.71 19.2157Z"})),MN=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M6 13C3.8 13 2 14.8 2 17C2 19.2 3.8 21 6 21C8.2 21 10 19.2 10 17C10 14.8 8.2 13 6 13ZM12 3C9.8 3 8 4.8 8 7C8 9.2 9.8 11 12 11C14.2 11 16 9.2 16 7C16 4.8 14.2 3 12 3ZM18 13C15.8 13 14 14.8 14 17C14 19.2 15.8 21 18 21C20.2 21 22 19.2 22 17C22 14.8 20.2 13 18 13Z",fill:"currentColor"})),LN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M8.25635 3.17205C9.76957 1.65882 12.194 1.61109 13.7642 3.02947L13.9136 3.17205L15.7632 5.02166C17.5908 6.84928 17.7064 9.73863 16.1128 11.7023L20.0024 15.5929C20.7835 16.374 20.7835 17.64 20.0024 18.4211L18.7749 19.6486C17.9938 20.4293 16.7277 20.4295 15.9468 19.6486L12.0562 15.759C10.0925 17.3523 7.20299 17.2368 5.37549 15.4094L3.52588 13.5597C1.96418 11.9978 1.96416 9.46461 3.52588 7.90252L3.96533 7.46306L4.03857 7.39666C4.21642 7.25082 4.44037 7.17023 4.67236 7.17009C4.93754 7.17009 5.19187 7.27559 5.37939 7.46306L8.07178 10.1545L10.5034 7.72185L7.81201 5.03045C7.62459 4.84298 7.51911 4.58849 7.51904 4.32341C7.51907 4.05839 7.62471 3.80386 7.81201 3.61638L8.25635 3.17205ZM13.4907 14.3644L17.3608 18.2345L18.5884 17.007L14.7183 13.1369L13.4907 14.3644ZM12.4985 4.58611C11.8071 3.89504 10.7361 3.81542 9.95752 4.34783L11.9175 6.30779V6.30877C12.6976 7.08953 12.6984 8.35574 11.9175 9.13689L9.48584 11.5685H9.48486C8.70394 12.3484 7.4385 12.3487 6.65771 11.5685H6.65674L4.69775 9.60955C4.17012 10.3874 4.25018 11.4551 4.93896 12.1447L6.78955 13.9953C7.96101 15.1667 9.86112 15.1665 11.0327 13.9953L14.3491 10.6789C15.5207 9.50732 15.5207 7.60729 14.3491 6.43572L12.4985 4.58611Z"})),NN=e=>l.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M9.45867 4.18164L11.818 6.54097L6.06944 12.2903C5.55393 12.8057 4.91967 13.1867 4.22244 13.3995L2.28744 13.9902C2.16992 14.0261 2.04557 13.9599 2.00969 13.8424C1.99677 13.8001 1.99677 13.7548 2.00969 13.7125L2.60036 11.7777C2.81325 11.0803 3.19426 10.446 3.70985 9.93041L9.45867 4.18164ZM12.7594 2.2958L13.7049 3.24131C14.0711 3.6074 14.0939 4.18677 13.7736 4.57955L13.7049 4.6555L12.5253 5.8343L10.1653 3.47431L11.3451 2.29577C11.7357 1.9053 12.3689 1.90532 12.7594 2.2958Z",fill:"currentColor"})),PN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",fill:"currentColor",...e},l.createElement("path",{d:"M12.4989 11.0006H11.7089L11.4289 10.7306C12.6289 9.33063 13.2489 7.42063 12.9089 5.39063C12.4389 2.61063 10.1189 0.390626 7.31892 0.0506256C3.08892 -0.469374 -0.46108 3.09063 0.0489202 7.32063C0.38892 10.1206 2.60892 12.4406 5.38892 12.9106C7.41892 13.2506 9.32892 12.6306 10.7289 11.4306L10.9989 11.7106V12.5006L15.2589 16.7506C15.6689 17.1606 16.3289 17.1606 16.7389 16.7506L16.7489 16.7406C17.1589 16.3306 17.1589 15.6706 16.7489 15.2606L12.4989 11.0006ZM6.49892 11.0006C4.00892 11.0006 1.99892 8.99063 1.99892 6.50063C1.99892 4.01063 4.00892 2.00063 6.49892 2.00063C8.98892 2.00063 10.9989 4.01063 10.9989 6.50063C10.9989 8.99063 8.98892 11.0006 6.49892 11.0006ZM6.49892 4.00063C6.21892 4.00063 5.99892 4.22063 5.99892 4.50063V6.00063H4.49892C4.21892 6.00063 3.99892 6.22063 3.99892 6.50063C3.99892 6.78063 4.21892 7.00063 4.49892 7.00063H5.99892V8.50063C5.99892 8.78063 6.21892 9.00063 6.49892 9.00063C6.77892 9.00063 6.99892 8.78063 6.99892 8.50063V7.00063H8.49892C8.77892 7.00063 8.99892 6.78063 8.99892 6.50063C8.99892 6.22063 8.77892 6.00063 8.49892 6.00063H6.99892V4.50063C6.99892 4.22063 6.77892 4.00063 6.49892 4.00063Z"})),_N=e=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M15 3L17.3 5.3L14.41 8.17L15.83 9.59L18.7 6.7L21 9V3H15ZM3 9L5.3 6.7L8.17 9.59L9.59 8.17L6.7 5.3L9 3H3V9ZM9 21L6.7 18.7L9.59 15.83L8.17 14.41L5.3 17.3L3 15V21H9ZM21 15L18.7 17.3L15.83 14.41L14.41 15.83L17.3 18.7L15 21H21V15Z"})),IN=e=>l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e},l.createElement("path",{d:"M15.9713 14.4716H15.1813L14.9013 14.2016C16.1013 12.8016 16.7213 10.8916 16.3813 8.86157C15.9113 6.08157 13.5913 3.86157 10.7913 3.52157C6.56133 3.00157 3.00133 6.56157 3.52133 10.7916C3.86133 13.5916 6.08133 15.9116 8.86133 16.3816C10.8913 16.7216 12.8013 16.1016 14.2013 14.9016L14.4713 15.1816V15.9716L18.7313 20.2216C19.1413 20.6316 19.8013 20.6316 20.2113 20.2216L20.2213 20.2116C20.6313 19.8016 20.6313 19.1416 20.2213 18.7316L15.9713 14.4716ZM9.97133 14.4716C7.48133 14.4716 5.47133 12.4616 5.47133 9.97157C5.47133 7.48157 7.48133 5.47157 9.97133 5.47157C12.4613 5.47157 14.4713 7.48157 14.4713 9.97157C14.4713 12.4616 12.4613 14.4716 9.97133 14.4716ZM7.97133 9.47157H11.9713C12.2513 9.47157 12.4713 9.69157 12.4713 9.97157C12.4713 10.2516 12.2513 10.4716 11.9713 10.4716H7.97133C7.69133 10.4716 7.47133 10.2516 7.47133 9.97157C7.47133 9.69157 7.69133 9.47157 7.97133 9.47157Z"}));var kN="Portal",X9=l.forwardRef((e,n)=>{var i;const{container:t,...r}=e,[o,a]=l.useState(!1);He(()=>a(!0),[]);const s=t||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Yt.createPortal(c.jsx(oe.div,{...r,ref:n}),s):null});X9.displayName=kN;var TN=Symbol("radix.slottable");function DN(e){const n=({children:t})=>c.jsx(c.Fragment,{children:t});return n.displayName=`${e}.Slottable`,n.__radixId=TN,n}var[ps]=nt("Tooltip",[gn]),ms=gn(),Q9="TooltipProvider",ON=700,T1="tooltip.open",[VN,D1]=ps(Q9),O1=e=>{const{__scopeTooltip:n,delayDuration:t=ON,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=l.useRef(!0),i=l.useRef(!1),u=l.useRef(0);return l.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),c.jsx(VN,{scope:n,isOpenDelayedRef:s,delayDuration:t,onOpen:l.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:a})};O1.displayName=Q9;var Eo="Tooltip",[HN,Mo]=ps(Eo),J9=e=>{const{__scopeTooltip:n,children:t,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,u=D1(Eo,e.__scopeTooltip),d=ms(n),[f,h]=l.useState(null),g=qe(),m=l.useRef(0),C=s??u.disableHoverableContent,p=i??u.delayDuration,v=l.useRef(!1),[w,y]=ht({prop:r,defaultProp:o??!1,onChange:E=>{E?(u.onOpen(),document.dispatchEvent(new CustomEvent(T1))):u.onClose(),a==null||a(E)},caller:Eo}),b=l.useMemo(()=>w?v.current?"delayed-open":"instant-open":"closed",[w]),S=l.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,y(!0)},[y]),M=l.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y(!1)},[y]),L=l.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,y(!0),m.current=0},p)},[p,y]);return l.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),c.jsx(jr,{...d,children:c.jsx(HN,{scope:n,contentId:g,open:w,stateAttribute:b,trigger:f,onTriggerChange:h,onTriggerEnter:l.useCallback(()=>{u.isOpenDelayedRef.current?L():S()},[u.isOpenDelayedRef,L,S]),onTriggerLeave:l.useCallback(()=>{C?M():(window.clearTimeout(m.current),m.current=0)},[M,C]),onOpen:S,onClose:M,disableHoverableContent:C,children:t})})};J9.displayName=Eo;var V1="TooltipTrigger",e4=l.forwardRef((e,n)=>{const{__scopeTooltip:t,...r}=e,o=Mo(V1,t),a=D1(V1,t),s=ms(t),i=l.useRef(null),u=he(n,i,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),h=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(Yr,{asChild:!0,...s,children:c.jsx(oe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,onPointerMove:ne(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:ne(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:ne(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ne(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:ne(e.onBlur,o.onClose),onClick:ne(e.onClick,o.onClose)})})});e4.displayName=V1;var H1="TooltipPortal",[AN,FN]=ps(H1,{forceMount:void 0}),t4=e=>{const{__scopeTooltip:n,forceMount:t,children:r,container:o}=e,a=Mo(H1,n);return c.jsx(AN,{scope:n,forceMount:t,children:c.jsx(Ke,{present:t||a.open,children:c.jsx(X9,{asChild:!0,container:o,children:r})})})};t4.displayName=H1;var Nr="TooltipContent",n4=l.forwardRef((e,n)=>{const t=FN(Nr,e.__scopeTooltip),{forceMount:r=t.forceMount,side:o="top",...a}=e,s=Mo(Nr,e.__scopeTooltip);return c.jsx(Ke,{present:r||s.open,children:s.disableHoverableContent?c.jsx(r4,{side:o,...a,ref:n}):c.jsx($N,{side:o,...a,ref:n})})}),$N=l.forwardRef((e,n)=>{const t=Mo(Nr,e.__scopeTooltip),r=D1(Nr,e.__scopeTooltip),o=l.useRef(null),a=he(n,o),[s,i]=l.useState(null),{trigger:u,onClose:d}=t,f=o.current,{onPointerInTransitChange:h}=r,g=l.useCallback(()=>{i(null),h(!1)},[h]),m=l.useCallback((C,p)=>{const v=C.currentTarget,w={x:C.clientX,y:C.clientY},y=RN(w,v.getBoundingClientRect()),b=GN(w,y),S=jN(p.getBoundingClientRect()),M=UN([...b,...S]);i(M),h(!0)},[h]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(u&&f){const C=v=>m(v,f),p=v=>m(v,u);return u.addEventListener("pointerleave",C),f.addEventListener("pointerleave",p),()=>{u.removeEventListener("pointerleave",C),f.removeEventListener("pointerleave",p)}}},[u,f,m,g]),l.useEffect(()=>{if(s){const C=p=>{const v=p.target,w={x:p.clientX,y:p.clientY},y=(u==null?void 0:u.contains(v))||(f==null?void 0:f.contains(v)),b=!YN(w,s);y?g():b&&(g(),d())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[u,f,s,d,g]),c.jsx(r4,{...e,ref:a})}),[zN,BN]=ps(Eo,{isInside:!1}),ZN=DN("TooltipContent"),r4=l.forwardRef((e,n)=>{const{__scopeTooltip:t,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,u=Mo(Nr,t),d=ms(t),{onClose:f}=u;return l.useEffect(()=>(document.addEventListener(T1,f),()=>document.removeEventListener(T1,f)),[f]),l.useEffect(()=>{if(u.trigger){const h=g=>{const m=g.target;m!=null&&m.contains(u.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[u.trigger,f]),c.jsx(kn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:c.jsxs(ia,{"data-state":u.stateAttribute,...d,...i,ref:n,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:[c.jsx(ZN,{children:r}),c.jsx(zN,{scope:t,isInside:!0,children:c.jsx(lC,{id:u.contentId,role:"tooltip",children:o||r})})]})})});n4.displayName=Nr;var o4="TooltipArrow",WN=l.forwardRef((e,n)=>{const{__scopeTooltip:t,...r}=e,o=ms(t);return BN(o4,t).isInside?null:c.jsx(la,{...o,...r,ref:n})});WN.displayName=o4;function RN(e,n){const t=Math.abs(n.top-e.y),r=Math.abs(n.bottom-e.y),o=Math.abs(n.right-e.x),a=Math.abs(n.left-e.x);switch(Math.min(t,r,o,a)){case a:return"left";case o:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function GN(e,n,t=5){const r=[];switch(n){case"top":r.push({x:e.x-t,y:e.y+t},{x:e.x+t,y:e.y+t});break;case"bottom":r.push({x:e.x-t,y:e.y-t},{x:e.x+t,y:e.y-t});break;case"left":r.push({x:e.x+t,y:e.y-t},{x:e.x+t,y:e.y+t});break;case"right":r.push({x:e.x-t,y:e.y-t},{x:e.x-t,y:e.y+t});break}return r}function jN(e){const{top:n,right:t,bottom:r,left:o}=e;return[{x:o,y:n},{x:t,y:n},{x:t,y:r},{x:o,y:r}]}function YN(e,n){const{x:t,y:r}=e;let o=!1;for(let a=0,s=n.length-1;a<n.length;s=a++){const i=n[a],u=n[s],d=i.x,f=i.y,h=u.x,g=u.y;f>r!=g>r&&t<(h-d)*(r-f)/(g-f)+d&&(o=!o)}return o}function UN(e){const n=e.slice();return n.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),qN(n)}function qN(e){if(e.length<=1)return e.slice();const n=[];for(let r=0;r<e.length;r++){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}n.pop();const t=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}return t.pop(),n.length===1&&t.length===1&&n[0].x===t[0].x&&n[0].y===t[0].y?n:n.concat(t)}var KN=O1,XN=J9,QN=e4,JN=t4,a4=n4;const s4=e=>{const n=/\*\*(.*?)\*\*/g,t=e.match(n);if(!t)return e;const r=t.map(o=>o.replaceAll("*",""));return e.split("**").map(o=>r.includes(o)?c.jsx("span",{className:"text-foreground font-medium",children:o},o):o)},rn=KN,Wt=XN,It=QN,kt=l.forwardRef(({className:e,sideOffset:n=4,...t},r)=>c.jsx(JN,{children:c.jsx(a4,{ref:r,sideOffset:n,className:N("z-50 overflow-hidden rounded-lg bg-background-primary dark:bg-background-tertiary text-content-primary dark:text-content-primary-inverted p-2 text-xs shadow-tooltip 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",e),...t,children:t.children})}));kt.displayName=a4.displayName;const eP=({children:e,text:n="",delayDuration:t})=>c.jsx(rn,{children:c.jsxs(Wt,{delayDuration:t,children:[c.jsx(It,{children:e}),c.jsx(kt,{className:"max-w-[300px]",children:c.jsx("div",{className:"whitespace-pre-line text-xs",children:s4(n)})})]})}),i4=D.forwardRef(({node:e,children:n,onClick:t,onDoubleClick:r,className:o,"data-index":a},s)=>c.jsx("tr",{ref:s,"data-index":a,onClick:t,onDoubleClick:r,className:o,children:n}));i4.displayName="DefaultTableRow";const tP=e=>{var Je,ct;const{nodes:n,selected:t,config:r,headers:o,headerCells:a,className:s,columnWidths:i,columnAlignments:u,onExpand:d,tableRowComponent:f,virtualized:h=!1,estimateRowSize:g=40,overscan:m=20,scrollElementRef:C,scrollContainerId:p,striped:v=!1,horizontalPadding:w="medium",density:y="default",renderFirstColumnHeader:b}=e,S=f??i4,M=y==="compact",L=()=>{switch(w){case"none":return"";case"small":return"pl-4";case"large":return"pl-8";case"medium":default:return"pl-6"}},E=()=>{switch(w){case"none":return"";case"small":return"pr-4";case"large":return"pr-8";case"medium":default:return"pr-6"}},I=X=>N("relative flex min-w-0 flex-1",X&&"box-border h-full self-stretch",M?"items-center py-[3px]":"items-stretch py-2"),k=(X,se)=>{var pe;return N("truncate font-normal text-foreground-primary",M?"text-xs leading-4":"text-sm leading-5",{"cursor-pointer":se},(pe=r.getNodeHeadingClassName)==null?void 0:pe.call(r,X))},O=(X,se)=>N("transition-colors hover:bg-background-primary-hover",v&&X%2===1&&"bg-background-secondary",se&&"bg-background-primary-selected"),A=()=>r.dataCellVerticalPadding==="none"?M?"py-0":"px-2 py-0":M?"py-[3px]":"p-2",V=()=>r.treeGuideColumnWidth??24,Y=()=>r.treeLineAnchorOffset??V()/2,$=()=>{const X=r.treeLineAnchorTop??"50%";return typeof X=="number"?`${X}px`:X},U=()=>{const X=V();return{width:X,minWidth:X,maxWidth:X}},T=(X,se,pe)=>X?c.jsx(Hr,{className:N("w-6 h-6 cursor-pointer text-icon-contrast transition-transform duration-200 -rotate-90 flex-shrink-0",{"rotate-0":se}),onClick:ge=>{ge.stopPropagation(),pe()}}):c.jsx("div",{className:"w-6 flex-shrink-0"}),W="text-foreground-secondary text-xs font-normal leading-4 tracking-[0.4px] truncate",P=(X,se)=>{var be,Le;if(!se)return null;const pe=N(W,(be=r.getNodeFooterClassName)==null?void 0:be.call(r,X)),ge=(Le=r.getNodeFooterNode)==null?void 0:Le.call(r,X,{text:se,className:pe});return ge||c.jsx("span",{className:pe,title:String(se),children:se})},z=(X,se,pe,ge,be)=>{const Le=$();return Array.from({length:X}).map((je,Se)=>c.jsxs("div",{className:N("relative flex-shrink-0",be&&"h-full self-stretch"),style:U(),children:[se[Se]&&Se!==X-1&&!ge[Se]&&c.jsx("div",{className:"absolute left-1/2 top-0 bottom-0 w-[1px] -translate-x-1/2 bg-line-contrast"}),Se===X-1&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"absolute left-1/2 top-0 w-[1px] -translate-x-1/2 bg-line-contrast",style:{height:Le}}),c.jsx("div",{className:"absolute h-[1px] bg-line-contrast",style:{top:Le,left:"50%",width:`calc(50% + ${Y()}px)`}}),!pe&&c.jsx("div",{className:"absolute left-1/2 bottom-0 w-[1px] -translate-x-1/2 bg-line-contrast",style:{top:Le}})]})]},Se))},q=(X,se,pe,ge,be,Le,je,Se)=>{var Xe;return c.jsxs("div",{className:"flex min-w-0 flex-1 items-center",children:[(Xe=r.getNodeHeadingPrefix)!=null&&Xe.call(r,X)?c.jsxs("div",{className:"relative mr-1 flex shrink-0 self-stretch",style:U(),children:[c.jsx("div",{className:"flex items-center justify-center",style:U(),children:r.getNodeHeadingPrefix(X)}),se&&pe&&c.jsx("div",{className:"absolute left-1/2 w-[1px] -translate-x-1/2 bg-line-contrast",style:{top:"17px",bottom:"-8px"}})]}):null,!r.getNodeHeadingPrefix&&!!(Se!=null&&Se.length)&&pe&&c.jsx("div",{className:"absolute bottom-0 w-[1px] -translate-x-1/2 bg-line-contrast",style:{top:$(),left:Y()}}),c.jsx("div",{className:"relative flex shrink-0",children:r.renderExpandIcon?r.renderExpandIcon(X,pe,()=>d(X)):T(se,pe,()=>d(X))}),c.jsxs("div",{className:"ml-2 flex min-w-0 flex-col gap-[2px]",children:[r.renderTooltip?c.jsx(rn,{children:c.jsxs(Wt,{children:[c.jsx(It,{asChild:!0,children:c.jsx("span",{className:k(X,ge),style:Le?{maxWidth:`${Le}ch`}:void 0,children:be})}),c.jsx(kt,{className:"max-w-[300px]",children:r.renderTooltip(X)})]})}):c.jsx("span",{className:k(X,ge),style:Le?{maxWidth:`${Le}ch`}:void 0,title:String(be??""),children:be}),P(X,je)]})]})},K=D.useMemo(()=>{const X=new Map;let se=0;const pe=ge=>{ge.forEach(be=>{X.set(r.getNodeId(be),se),se+=1;const Le=r.getNodeChildren(be);Le!=null&&Le.length&&r.isNodeExpanded(be)&&pe(Le)})};return pe(n),X},[n,r]),Z=D.useRef(null),H=C??Z,_=D.useMemo(()=>{if(!h)return[];const X=[],se=(pe,ge=[],be=[])=>{pe.forEach((Le,je)=>{const Se=je===pe.length-1,Xe=r.getNodeLevel(Le);X.push({node:Le,guides:ge,isLastChild:Se,skipGuides:be});const Qe=r.getNodeChildren(Le),et=r.isNodeExpanded(Le);if(Qe!=null&&Qe.length&&et){const wt=new Array(Xe+1).fill(!1);for(let ut=0;ut<Xe-1;ut++)wt[ut]=be[ut]||!1;Se&&Xe>0&&(wt[Xe-1]=!0),se(Qe,[...ge,!0],wt)}})};return se(n),X},[n,h,r]),B=IE({count:h?_.length:0,getScrollElement:()=>H.current,estimateSize:()=>g,overscan:m}),G=h?B.getVirtualItems():[],F=h?((Je=G[0])==null?void 0:Je.start)??0:0,R=h?B.getTotalSize()-(((ct=G[G.length-1])==null?void 0:ct.end)??0):0,Q=X=>{if(!i||!i[X])return;const se=i[X];return{width:typeof se=="number"?`${se}px`:se,maxWidth:typeof se=="number"?`${se}px`:se,minWidth:typeof se=="number"?`${se}px`:se}},re=X=>!u||!u[X]?X===0?"left":"center":u[X],te=(X,se,pe,ge,be,Le,je,Se,Xe,Qe,et,wt,ut)=>{var Ee;const J=(Ee=r.getNodeRowHeight)==null?void 0:Ee.call(r,X),ce=J!=null;return c.jsx("td",{className:N("border-r border-line-primary p-0",ce&&"h-full align-top",{"border-r-0":ut.length===0}),style:Q(0),children:c.jsxs("div",{className:N("flex items-stretch",ce&&"h-full min-h-full",L()),style:ce?{height:J}:void 0,children:[z(se,pe,ge,be,ce),c.jsx("div",{className:I(ce),children:q(X,Le,je,Se,Xe,Qe,et,wt)})]})})},j=X=>X.map((se,pe)=>c.jsx("td",{className:N("border-r border-line-primary align-middle text-foreground-primary",A(),{"text-left":re(pe+1)==="left","text-center":re(pe+1)==="center","text-right":re(pe+1)==="right","border-r-0":pe===X.length-1},pe===X.length-1&&E()),style:Q(pe+1),children:se},pe)),ee=(X,se,pe,ge=[],be,Le)=>{var Pe;const je=r.getNodeId(X),Se=be!==void 0?be:je,Xe=r.getNodeLevel(X),Qe=r.getNodeChildren(X),et=r.hasNestedNodes(X),wt=r.isNodeExpanded(X),ut=t?r.isNodeSelected(X,t):!1,J=r.getNodeHeadingText(X),ce=(Pe=r.getNodeHeadingMaxLength)==null?void 0:Pe.call(r,X),Ee=r.getNodeFooterText(X),Me=r.getNodeCellValues(X),ke=!!(X.onClick||X.onDoubleClick),Fe=be!==void 0?Number(be):K.get(je)??0;return c.jsxs(S,{ref:Le,"data-index":be,node:X,className:N("group",O(Fe,ut)),onClick:()=>{var Ae;return(Ae=X.onClick)==null?void 0:Ae.call(X)},onDoubleClick:()=>{var Ae;return(Ae=X.onDoubleClick)==null?void 0:Ae.call(X)},children:[te(X,Xe,se,pe,ge,et,wt,ke,J,ce,Ee,Qe,Me),j(Me)]},Se)},ie=(X=[],se=[],pe=[])=>X.map((ge,be)=>{var Fe;const Le=r.getNodeId(ge),je=r.getNodeLevel(ge),Se=r.getNodeChildren(ge),Xe=r.hasNestedNodes(ge),Qe=r.isNodeExpanded(ge),et=t?r.isNodeSelected(ge,t):!1,wt=r.getNodeHeadingText(ge),ut=(Fe=r.getNodeHeadingMaxLength)==null?void 0:Fe.call(r,ge),J=r.getNodeFooterText(ge),ce=r.getNodeCellValues(ge),Ee=be===X.length-1,Me=!!(ge.onClick||ge.onDoubleClick),ke=K.get(Le)??0;return c.jsxs(D.Fragment,{children:[c.jsxs(S,{node:ge,className:N("group",O(ke,et)),onClick:()=>{var Pe;return(Pe=ge.onClick)==null?void 0:Pe.call(ge)},onDoubleClick:()=>{var Pe;return(Pe=ge.onDoubleClick)==null?void 0:Pe.call(ge)},children:[te(ge,je,se,Ee,pe,Xe,Qe,Me,wt,ut,J,Se,ce),j(ce)]}),!!(Se!=null&&Se.length)&&Qe&&(()=>{const Pe=new Array(je+1).fill(!1);for(let Ae=0;Ae<je-1;Ae++)Pe[Ae]=pe[Ae]||!1;return Ee&&je>0&&(Pe[je-1]=!0),ie(Se,[...se,!0],Pe)})()]},Le)}),le=o||[],we=a??le,xe=we.length>0&&we.some(X=>a?X!=null:String(X).trim()!=="")||b!==void 0,_e=a?we.length||1:Math.max(le.length,1),Be=(X,se)=>N("box-border min-h-9 overflow-hidden border-b border-r border-line-primary border-b-line-primary-disabled bg-background-secondary p-2 text-left font-medium text-foreground-primary align-middle min-w-0",X===0&&L(),se&&N(E(),"border-r-0"),{"text-left":X===0||re(X)==="left","text-center":X!==0&&re(X)==="center","text-right":X!==0&&re(X)==="right"});return c.jsx("div",{ref:H,id:p,className:N("h-full overflow-auto",s),children:c.jsxs("table",{className:"w-full border-collapse text-sm",children:[xe&&c.jsx("thead",{className:"sticky top-0 z-10 bg-background-secondary",children:c.jsx("tr",{children:a?we.map((X,se)=>c.jsx("th",{className:Be(se,se===we.length-1),style:Q(se),children:X},se)):c.jsxs(c.Fragment,{children:[c.jsx("th",{className:Be(0,le.length<=1),style:Q(0),children:b??(le[0]!=null&&String(le[0]).trim()!==""?c.jsx("span",{className:"block truncate",title:String(le[0]),children:le[0]}):null)}),le.slice(1).map((X,se)=>c.jsx("th",{className:Be(se+1,se+1===le.length-1),style:Q(se+1),children:c.jsx("span",{className:"block truncate",title:String(X),children:X})},se+1))]})})}),c.jsx("tbody",{children:h?c.jsxs(c.Fragment,{children:[F>0&&c.jsx("tr",{style:{height:`${F}px`},children:c.jsx("td",{colSpan:_e})}),G.map(X=>{const{node:se,guides:pe,isLastChild:ge,skipGuides:be}=_[X.index];return ee(se,pe,ge,be,X.index,B.measureElement)}),R>0&&c.jsx("tr",{style:{height:`${R}px`},children:c.jsx("td",{colSpan:_e})})]}):ie(n)})]})})};var nP="Portal",l4=l.forwardRef((e,n)=>{var i;const{container:t,...r}=e,[o,a]=l.useState(!1);He(()=>a(!0),[]);const s=t||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Yt.createPortal(c.jsx(oe.div,{...r,ref:n}),s):null});l4.displayName=nP;var A1="ToastProvider",[F1,rP,oP]=Uo("Toast"),[c4]=nt("Toast",[oP]),[aP,vs]=c4(A1),u4=e=>{const{__scopeToast:n,label:t="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:s}=e,[i,u]=l.useState(null),[d,f]=l.useState(0),h=l.useRef(!1),g=l.useRef(!1);return t.trim()||console.error(`Invalid prop \`label\` supplied to \`${A1}\`. Expected non-empty \`string\`.`),c.jsx(F1.Provider,{scope:n,children:c.jsx(aP,{scope:n,label:t,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:d,viewport:i,onViewportChange:u,onToastAdd:l.useCallback(()=>f(m=>m+1),[]),onToastRemove:l.useCallback(()=>f(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:g,children:s})})};u4.displayName=A1;var d4="ToastViewport",sP=["F8"],$1="toast.viewportPause",z1="toast.viewportResume",f4=l.forwardRef((e,n)=>{const{__scopeToast:t,hotkey:r=sP,label:o="Notifications ({hotkey})",...a}=e,s=vs(d4,t),i=rP(t),u=l.useRef(null),d=l.useRef(null),f=l.useRef(null),h=l.useRef(null),g=he(n,h,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=s.toastCount>0;l.useEffect(()=>{const v=w=>{var b;r.length!==0&&r.every(S=>w[S]||w.code===S)&&((b=h.current)==null||b.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),l.useEffect(()=>{const v=u.current,w=h.current;if(C&&v&&w){const y=()=>{if(!s.isClosePausedRef.current){const L=new CustomEvent($1);w.dispatchEvent(L),s.isClosePausedRef.current=!0}},b=()=>{if(s.isClosePausedRef.current){const L=new CustomEvent(z1);w.dispatchEvent(L),s.isClosePausedRef.current=!1}},S=L=>{!v.contains(L.relatedTarget)&&b()},M=()=>{v.contains(document.activeElement)||b()};return v.addEventListener("focusin",y),v.addEventListener("focusout",S),v.addEventListener("pointermove",y),v.addEventListener("pointerleave",M),window.addEventListener("blur",y),window.addEventListener("focus",b),()=>{v.removeEventListener("focusin",y),v.removeEventListener("focusout",S),v.removeEventListener("pointermove",y),v.removeEventListener("pointerleave",M),window.removeEventListener("blur",y),window.removeEventListener("focus",b)}}},[C,s.isClosePausedRef]);const p=l.useCallback(({tabbingDirection:v})=>{const y=i().map(b=>{const S=b.ref.current,M=[S,...wP(S)];return v==="forwards"?M:M.reverse()});return(v==="forwards"?y.reverse():y).flat()},[i]);return l.useEffect(()=>{const v=h.current;if(v){const w=y=>{var M,L,E;const b=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!b){const I=document.activeElement,k=y.shiftKey;if(y.target===v&&k){(M=d.current)==null||M.focus();return}const V=p({tabbingDirection:k?"backwards":"forwards"}),Y=V.findIndex($=>$===I);W1(V.slice(Y+1))?y.preventDefault():k?(L=d.current)==null||L.focus():(E=f.current)==null||E.focus()}};return v.addEventListener("keydown",w),()=>v.removeEventListener("keydown",w)}},[i,p]),c.jsxs(xm,{ref:u,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:C?void 0:"none"},children:[C&&c.jsx(B1,{ref:d,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"forwards"});W1(v)}}),c.jsx(F1.Slot,{scope:t,children:c.jsx(oe.ol,{tabIndex:-1,...a,ref:g})}),C&&c.jsx(B1,{ref:f,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"backwards"});W1(v)}})]})});f4.displayName=d4;var h4="ToastFocusProxy",B1=l.forwardRef((e,n)=>{const{__scopeToast:t,onFocusFromOutsideViewport:r,...o}=e,a=vs(h4,t);return c.jsx(ua,{tabIndex:0,...o,ref:n,style:{position:"fixed"},onFocus:s=>{var d;const i=s.relatedTarget;!((d=a.viewport)!=null&&d.contains(i))&&r()}})});B1.displayName=h4;var Lo="Toast",iP="toast.swipeStart",lP="toast.swipeMove",cP="toast.swipeCancel",uP="toast.swipeEnd",g4=l.forwardRef((e,n)=>{const{forceMount:t,open:r,defaultOpen:o,onOpenChange:a,...s}=e,[i,u]=ht({prop:r,defaultProp:o??!0,onChange:a,caller:Lo});return c.jsx(Ke,{present:t||i,children:c.jsx(hP,{open:i,...s,ref:n,onClose:()=>u(!1),onPause:Re(e.onPause),onResume:Re(e.onResume),onSwipeStart:ne(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ne(e.onSwipeMove,d=>{const{x:f,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:ne(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ne(e.onSwipeEnd,d=>{const{x:f,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),u(!1)})})})});g4.displayName=Lo;var[dP,fP]=c4(Lo,{onClose(){}}),hP=l.forwardRef((e,n)=>{const{__scopeToast:t,type:r="foreground",duration:o,open:a,onClose:s,onEscapeKeyDown:i,onPause:u,onResume:d,onSwipeStart:f,onSwipeMove:h,onSwipeCancel:g,onSwipeEnd:m,...C}=e,p=vs(Lo,t),[v,w]=l.useState(null),y=he(n,$=>w($)),b=l.useRef(null),S=l.useRef(null),M=o||p.duration,L=l.useRef(0),E=l.useRef(M),I=l.useRef(0),{onToastAdd:k,onToastRemove:O}=p,A=Re(()=>{var U;(v==null?void 0:v.contains(document.activeElement))&&((U=p.viewport)==null||U.focus()),s()}),V=l.useCallback($=>{!$||$===1/0||(window.clearTimeout(I.current),L.current=new Date().getTime(),I.current=window.setTimeout(A,$))},[A]);l.useEffect(()=>{const $=p.viewport;if($){const U=()=>{V(E.current),d==null||d()},T=()=>{const W=new Date().getTime()-L.current;E.current=E.current-W,window.clearTimeout(I.current),u==null||u()};return $.addEventListener($1,T),$.addEventListener(z1,U),()=>{$.removeEventListener($1,T),$.removeEventListener(z1,U)}}},[p.viewport,M,u,d,V]),l.useEffect(()=>{a&&!p.isClosePausedRef.current&&V(M)},[a,M,p.isClosePausedRef,V]),l.useEffect(()=>(k(),()=>O()),[k,O]);const Y=l.useMemo(()=>v?b4(v):null,[v]);return p.viewport?c.jsxs(c.Fragment,{children:[Y&&c.jsx(gP,{__scopeToast:t,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:Y}),c.jsx(dP,{scope:t,onClose:A,children:Dr.createPortal(c.jsx(F1.ItemSlot,{scope:t,children:c.jsx(bm,{asChild:!0,onEscapeKeyDown:ne(i,()=>{p.isFocusedToastEscapeKeyDownRef.current||A(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(oe.li,{tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":p.swipeDirection,...C,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ne(e.onKeyDown,$=>{$.key==="Escape"&&(i==null||i($.nativeEvent),$.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:ne(e.onPointerDown,$=>{$.button===0&&(b.current={x:$.clientX,y:$.clientY})}),onPointerMove:ne(e.onPointerMove,$=>{if(!b.current)return;const U=$.clientX-b.current.x,T=$.clientY-b.current.y,W=!!S.current,P=["left","right"].includes(p.swipeDirection),z=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,q=P?z(0,U):0,K=P?0:z(0,T),Z=$.pointerType==="touch"?10:2,H={x:q,y:K},_={originalEvent:$,delta:H};W?(S.current=H,Cs(lP,h,_,{discrete:!1})):x4(H,p.swipeDirection,Z)?(S.current=H,Cs(iP,f,_,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(U)>Z||Math.abs(T)>Z)&&(b.current=null)}),onPointerUp:ne(e.onPointerUp,$=>{const U=S.current,T=$.target;if(T.hasPointerCapture($.pointerId)&&T.releasePointerCapture($.pointerId),S.current=null,b.current=null,U){const W=$.currentTarget,P={originalEvent:$,delta:U};x4(U,p.swipeDirection,p.swipeThreshold)?Cs(uP,m,P,{discrete:!0}):Cs(cP,g,P,{discrete:!0}),W.addEventListener("click",z=>z.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),gP=e=>{const{__scopeToast:n,children:t,...r}=e,o=vs(Lo,n),[a,s]=l.useState(!1),[i,u]=l.useState(!1);return vP(()=>s(!0)),l.useEffect(()=>{const d=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(d)},[]),i?null:c.jsx(l4,{asChild:!0,children:c.jsx(ua,{...r,children:a&&c.jsxs(c.Fragment,{children:[o.label," ",t]})})})},pP="ToastTitle",p4=l.forwardRef((e,n)=>{const{__scopeToast:t,...r}=e;return c.jsx(oe.div,{...r,ref:n})});p4.displayName=pP;var mP="ToastDescription",m4=l.forwardRef((e,n)=>{const{__scopeToast:t,...r}=e;return c.jsx(oe.div,{...r,ref:n})});m4.displayName=mP;var v4="ToastAction",C4=l.forwardRef((e,n)=>{const{altText:t,...r}=e;return t.trim()?c.jsx(y4,{altText:t,asChild:!0,children:c.jsx(Z1,{...r,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${v4}\`. Expected non-empty \`string\`.`),null)});C4.displayName=v4;var w4="ToastClose",Z1=l.forwardRef((e,n)=>{const{__scopeToast:t,...r}=e,o=fP(w4,t);return c.jsx(y4,{asChild:!0,children:c.jsx(oe.button,{type:"button",...r,ref:n,onClick:ne(e.onClick,o.onClose)})})});Z1.displayName=w4;var y4=l.forwardRef((e,n)=>{const{__scopeToast:t,altText:r,...o}=e;return c.jsx(oe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:n})});function b4(e){const n=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&n.push(r.textContent),CP(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const s=r.dataset.radixToastAnnounceAlt;s&&n.push(s)}else n.push(...b4(r))}}),n}function Cs(e,n,t,{discrete:r}){const o=t.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:t});n&&o.addEventListener(e,n,{once:!0}),r?Ci(o,a):o.dispatchEvent(a)}var x4=(e,n,t=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return n==="left"||n==="right"?a&&r>t:!a&&o>t};function vP(e=()=>{}){const n=Re(e);He(()=>{let t=0,r=0;return t=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(t),window.cancelAnimationFrame(r)}},[n])}function CP(e){return e.nodeType===e.ELEMENT_NODE}function wP(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function W1(e){const n=document.activeElement;return e.some(t=>t===n?!0:(t.focus(),document.activeElement!==n))}var yP=u4,S4=f4,E4=g4,M4=p4,L4=m4,N4=C4,P4=Z1;const _4=yP,R1=l.forwardRef(({className:e,...n},t)=>c.jsx(S4,{ref:t,className:N("fixed top-0 z-[200] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px] gap-4",e),...n}));R1.displayName=S4.displayName;const bP=ln("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-lg py-3 px-4 shadow-float transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"bg-background text-foreground",destructive:"destructive group bg-background-error-fade text-foreground-error border border-line-primary",success:"success group bg-background-success-fade text-foreground-success border border-line-primary"}},defaultVariants:{variant:"default"}}),G1=l.forwardRef(({className:e,variant:n,children:t,...r},o)=>c.jsx(E4,{ref:o,className:N(bP({variant:n}),e),...r,children:c.jsxs("div",{className:"flex gap-2 whitespace-pre-line",children:[n==="destructive"&&c.jsx(m1,{className:"min-w-6 h-6"}),n==="success"&&c.jsx(p1,{className:"min-w-6 h-6"}),t]})}));G1.displayName=E4.displayName;const I4=l.forwardRef(({className:e,...n},t)=>c.jsx(N4,{ref:t,className:N("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-[transparent] px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-background-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...n}));I4.displayName=N4.displayName;const j1=l.forwardRef(({className:e,...n},t)=>c.jsx(P4,{ref:t,className:N("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...n,children:c.jsx(Ma,{className:"h-4 w-4"})}));j1.displayName=P4.displayName;const Y1=l.forwardRef(({className:e,...n},t)=>c.jsx(M4,{ref:t,className:N("text-sm leading-5 tracking-[0.25px]",e),...n}));Y1.displayName=M4.displayName;const U1=l.forwardRef(({className:e,...n},t)=>c.jsx(L4,{ref:t,className:N("text-sm opacity-90",e),...n}));U1.displayName=L4.displayName;var xP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],SP=xP.reduce((e,n)=>{const t=Wo(`Primitive.${n}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,u=s?t:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...i,ref:a})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),EP="Portal",k4=l.forwardRef((e,n)=>{var i;const{container:t,...r}=e,[o,a]=l.useState(!1);He(()=>a(!0),[]);const s=t||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Yt.createPortal(c.jsx(SP.div,{...r,ref:n}),s):null});k4.displayName=EP;var MP=k4;const LP=5,NP=1e6;let q1=0;function PP(){return q1=(q1+1)%Number.MAX_SAFE_INTEGER,q1.toString()}const K1=new Map,T4=e=>{if(K1.has(e))return;const n=setTimeout(()=>{K1.delete(e),No({type:"REMOVE_TOAST",toastId:e})},NP);K1.set(e,n)},D4=(e,n)=>{switch(n.type){case"ADD_TOAST":return{...e,toasts:[n.toast,...e.toasts].slice(0,LP)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(t=>t.id===n.toast.id?{...t,...n.toast}:t)};case"DISMISS_TOAST":{const{toastId:t}=n;return t?T4(t):e.toasts.forEach(r=>{T4(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===t||t===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(t=>t.id!==n.toastId)}}},ws=[];let ys={toasts:[]};function No(e){ys=D4(ys,e),ws.forEach(n=>{n(ys)})}function O4({...e}){const n=PP(),t=o=>No({type:"UPDATE_TOAST",toast:{...o,id:n}}),r=()=>No({type:"DISMISS_TOAST",toastId:n});return No({type:"ADD_TOAST",toast:{...e,id:n,open:!0,onOpenChange:o=>{o||r()}}}),{id:n,dismiss:r,update:t}}function X1(){const[e,n]=l.useState(ys);return l.useEffect(()=>(ws.push(n),()=>{const t=ws.indexOf(n);t>-1&&ws.splice(t,1)}),[e]),{...e,toast:O4,dismiss:t=>No({type:"DISMISS_TOAST",toastId:t})}}function _P(e){const{viewportClassname:n}=e,{toasts:t}=X1();return c.jsx(MP,{children:c.jsxs(_4,{children:[t.map(function({id:r,title:o,description:a,action:s,...i}){return c.jsxs(G1,{...i,children:[c.jsxs("div",{className:"grid gap-1",children:[o&&c.jsx(Y1,{children:o}),a&&c.jsx(U1,{children:a})]}),s,c.jsx(j1,{})]},r)}),c.jsx(R1,{className:n})]})})}const IP=({className:e,children:n,column:t,enableMultiSort:r=!1,maxMultiSortColumns:o,sortingCount:a=0})=>{const s=t.getIsSorted(),i=t.getSortIndex(),u=()=>{r?t.getIsSorted()?t.toggleSorting(s==="asc",!0):(o===void 0||a<o)&&t.toggleSorting(void 0,!0):t.toggleSorting(s==="asc")};return c.jsxs("div",{className:N("flex items-center gap-1 cursor-pointer",e),onClick:u,children:[c.jsx(gs,{className:N("h-4 w-4 shrink-0 text-icon transition-transform",s==="asc"&&"rotate-180",s&&"text-foreground-theme")}),r&&a>1&&i!==-1&&c.jsx("span",{className:"inline-flex items-center justify-center min-w-5 h-5 text-xs font-semibold bg-foreground-theme text-background-primary rounded",children:i+1}),n]})},bs=1024*1024,Rt=(e=0)=>e*bs,Q1=(e=0)=>(e/bs).toFixed(2),V4=async(e,{quality:n=1,type:t=e.type}={})=>{const r=await createImageBitmap(e),o=document.createElement("canvas");o.width=r.width,o.height=r.height;const a=o.getContext("2d");if(!a)return e;a.drawImage(r,0,0);const s=await new Promise(i=>o.toBlob(i,t,n));return s?new File([s],e.name,{type:s.type}):e},H4=async(e,{quality:n=1,type:t=e.type}={})=>n===1?e:t.includes("image")?V4(e,{quality:n,type:t}):e,A4=(e,n)=>{const t=e.size<Rt(n),r=`Размер файла должен быть не более ${n} МБ`;return t?{ok:!0}:{ok:!1,fileSizeError:r}},F4=async(e,n)=>new Promise((t,r)=>{if(!n.includes(e.type)){r({ok:!1,fileTypeError:"Тип файла не поддерживается"});return}const o=new FileReader;o.onload=function(a){var f;const s=(f=a.target)==null?void 0:f.result;if(!s)return;const i=new Uint8Array(s).subarray(0,12);let u="";for(let h=0;h<i.length;h++)u+=i[h].toString(16);let d=!1;u.startsWith("89504e47")?d=e.type==="image/png":u.startsWith("ffd8ff")?d=e.type==="image/jpeg"||e.type==="image/jpg":u.startsWith("000")&&(u.includes("66747970")||u.toLowerCase().includes("6d703432"))&&(d=e.type==="video/mp4"),d?t({ok:!0}):r({ok:!1,fileTypeError:"Тип файла не поддерживается"})},e?o.readAsArrayBuffer(e):r({ok:!1,fileTypeError:"Файл не выбран"})}),$4=async(e,n,t=10)=>{const r=await F4(e,n).catch(o=>o);return r.ok?A4(e,t):r},kP=e=>new Promise(n=>{const t=document.createElement("canvas"),r=document.createElement("video");r.autoplay=!0,r.muted=!0,r.src=URL.createObjectURL(e),r.onloadeddata=()=>{const o=t.getContext("2d");return t.width=r.videoWidth,t.height=r.videoHeight,o==null||o.drawImage(r,0,0,r.videoWidth,r.videoHeight),r.pause(),n(t.toDataURL("image/png"))}}),z4=e=>{if(e.type.includes("image"))return URL.createObjectURL(e);if(e.type.includes("video"))return kP(e)},B4=async e=>{const n=[];for(const t of e)n.push({id:new Date().getTime(),file:t,contentType:t.type,fileName:t.name,url:await z4(t)||URL.createObjectURL(t)});return n},Z4=l.forwardRef(({className:e,onAdd:n,onClick:t,onFileRemove:r,error:o,accept:a,maxFileSize:s,defaultValue:i,...u},d)=>{const[f,h]=l.useState(""),g=async p=>{const v=await $4(p[0],a??"",s);v.ok?(h(p[0].name),n(p[0])):n(p[0],{fileTypeError:v.fileTypeError,fileSizeError:v.fileSizeError})};function m(p){t&&(p.preventDefault(),t())}const C=()=>c.jsxs("div",{className:N("flex flex-row gap-1"),children:[r&&c.jsx("div",{className:"cursor-pointer",onClick:p=>{p.stopPropagation(),p.preventDefault(),r(()=>h(""))},children:c.jsx(wo,{})}),c.jsx(W9,{})]});return c.jsx(c.Fragment,{children:c.jsxs("label",{className:e,onClick:m,children:[c.jsx("input",{type:"file",style:{display:"none"},accept:a,...u,ref:d,onChange:p=>{var v;return((v=p.target.files)==null?void 0:v.length)&&g(p.target.files)}},f),c.jsx(tn,{defaultValue:f||i,style:{pointerEvents:"none",background:"white"},placeholder:u.placeholder,error:o,rightIcon:C()})]})})});Z4.displayName="FileInput";const J1=l.forwardRef(({className:e,error:n,rows:t,onEnter:r,...o},a)=>{var f;const[s,i]=l.useState(((f=o.value)==null?void 0:f.toString().length)??0),u=h=>{var g;i(h.target.value.length),(g=o.onChange)==null||g.call(o,h)},d=c.jsxs(c.Fragment,{children:[c.jsx("textarea",{className:N("w-full rounded-lg border border-line-primary bg-[transparent] blur-none px-3 py-2 text-sm tracking-[0.1px] leading-5 transition-colors duration-300 ease-in-out ring-offset-background file:border-0 file:bg-[transparent] file:text-sm font-normal placeholder:text-foreground-secondary focus-visible:outline-none focus-visible:border-line-focused disabled:cursor-not-allowed disabled:opacity-50 resize-none",n?"border-line-error focus-visible:border-line-error":"",o.maxLength?"pb-2.5":"pb-0.5"),ref:a,placeholder:o.placeholder,rows:t??4,onKeyDown:h=>{h.key==="Enter"&&(r==null||r(h.target.value))},...o,onChange:u}),o.maxLength&&c.jsxs("span",{className:`absolute right-2 bottom-2.5
|
|
136
|
+
text-foreground-tertiary text-xs`,children:[s,"/",o.maxLength]})]});return c.jsx("span",{className:N("relative transition-colors",e),children:d})});J1.displayName="TextArea";var xs="Switch",[TP]=nt(xs),[DP,OP]=TP(xs),W4=l.forwardRef((e,n)=>{const{__scopeSwitch:t,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:u="on",onCheckedChange:d,form:f,...h}=e,[g,m]=l.useState(null),C=he(n,b=>m(b)),p=l.useRef(!1),v=g?f||!!g.closest("form"):!0,[w,y]=ht({prop:o,defaultProp:a??!1,onChange:d,caller:xs});return c.jsxs(DP,{scope:t,checked:w,disabled:i,children:[c.jsx(oe.button,{type:"button",role:"switch","aria-checked":w,"aria-required":s,"data-state":Y4(w),"data-disabled":i?"":void 0,disabled:i,value:u,...h,ref:C,onClick:ne(e.onClick,b=>{y(S=>!S),v&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})}),v&&c.jsx(j4,{control:g,bubbles:!p.current,name:r,value:u,checked:w,required:s,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});W4.displayName=xs;var R4="SwitchThumb",G4=l.forwardRef((e,n)=>{const{__scopeSwitch:t,...r}=e,o=OP(R4,t);return c.jsx(oe.span,{"data-state":Y4(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:n})});G4.displayName=R4;var VP="SwitchBubbleInput",j4=l.forwardRef(({__scopeSwitch:e,control:n,checked:t,bubbles:r=!0,...o},a)=>{const s=l.useRef(null),i=he(s,a),u=ca(t),d=sa(n);return l.useEffect(()=>{const f=s.current;if(!f)return;const h=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(h,"checked").set;if(u!==t&&m){const C=new Event("click",{bubbles:r});m.call(f,t),f.dispatchEvent(C)}},[u,t,r]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});j4.displayName=VP;function Y4(e){return e?"checked":"unchecked"}var U4=W4,HP=G4;const q4=l.forwardRef(({className:e,...n},t)=>c.jsx(U4,{className:N("peer inline-flex h-3 w-8 shrink-0 cursor-pointer items-center rounded-full 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-background-success data-[state=unchecked]:bg-background-contrast-fade",e),...n,ref:t,children:c.jsx(HP,{className:N("pointer-events-none block h-[18px] w-[18px] rounded-full bg-background shadow-switch ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));q4.displayName=U4.displayName;const K4=ve.z.object({id:ve.z.number().or(ve.z.string()),contentType:ve.z.string(),url:ve.z.string().optional(),file:ve.z.instanceof(File).optional(),fileName:ve.z.string().optional(),size:ve.z.number().optional(),isMain:ve.z.boolean().optional(),inProgress:ve.z.boolean().optional(),downloadUrl:ve.z.string().optional(),previewUrl:ve.z.string().optional(),onDownload:ve.z.function().optional(),onRemove:ve.z.function().optional()}).or(ve.z.object({id:ve.z.number().or(ve.z.string()),contentType:ve.z.string(),url:ve.z.string().optional(),file:ve.z.instanceof(File),fileName:ve.z.string().optional(),size:ve.z.number().optional(),isMain:ve.z.boolean().optional(),inProgress:ve.z.boolean().optional(),downloadUrl:ve.z.string().optional(),previewUrl:ve.z.string().optional(),onDownload:ve.z.function().optional(),onRemove:ve.z.function().optional()})),AP=ve.z.array(ve.z.object({label:ve.z.string(),items:ve.z.array(K4),disableIfEmpty:ve.z.boolean().optional(),hideIfEmpty:ve.z.boolean().optional(),canAdd:ve.z.boolean().optional(),maxFiles:ve.z.number().optional()})),ec=["video","audio","image","pdf","word","excel","archive"],X4=new Map([["video","video/mp4"],["image","image/png, image/jpeg"],["audio","audio/mp3"],["pdf","application/pdf"],["word","application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/msword"],["excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel.sheet.macroEnabled.12, application/vnd.ms-excel"],["archive","application/zip, application/x-rar-compressed, application/x-7z-compressed"]]),tc=40,nc=20,rc=10,oc=1,ac=1,sc=20,ic=20,lc=20,Q4=e=>{let n;const t=new Set,r=(d,f)=>{const h=typeof d=="function"?d(n):d;if(!Object.is(h,n)){const g=n;n=f??(typeof h!="object"||h===null)?h:Object.assign({},n,h),t.forEach(m=>m(n,g))}},o=()=>n,i={setState:r,getState:o,getInitialState:()=>u,subscribe:d=>(t.add(d),()=>t.delete(d))},u=n=e(r,o,i);return i},FP=e=>e?Q4(e):Q4,$P=e=>e;function zP(e,n=$P){const t=D.useSyncExternalStore(e.subscribe,D.useCallback(()=>n(e.getState()),[e,n]),D.useCallback(()=>n(e.getInitialState()),[e,n]));return D.useDebugValue(t),t}const BP=e=>{const n=FP(e),t=r=>zP(n,r);return Object.assign(t,n),t},Ss=(e=>BP)()(e=>({title:"",description:"",confirmText:"",confirmType:"fade-contrast-outlined",confirmHidden:!1,cancelText:"",cancelHidden:!1,inputValue:"",inputPlaceholder:"",inputRequiredLabel:"",setInput:n=>e({inputValue:n}),confirmed:!1,visible:!1,setVisible:n=>e({visible:n,confirmed:null}),show:n=>e({visible:!0,title:n.title??"",description:n.description,confirmText:n.confirmText,confirmType:n.confirmType??"fade-contrast-filled",confirmHidden:n.confirmHidden??!1,cancelText:n.cancelText??"",cancelHidden:n.cancelHidden??!1,input:n.input,inputPlaceholder:n.inputPlaceholder??"",inputRequiredLabel:n.inputRequiredLabel??"",inputMaxLength:n.inputMaxLength,inputRequired:n.inputRequired}),hide:()=>e({visible:!1}),confirm:n=>e({confirmed:!0,visible:!1,inputValue:n}),cancel:()=>e({confirmed:!1,visible:!1})})),cc=()=>{const e=Ss();return{confirm:async r=>{const{confirmed:o,unsubscribe:a}=await new Promise(s=>{e.show(r);const i=Ss.subscribe(({visible:u,confirmed:d})=>{u||s({confirmed:d,unsubscribe:i})})});return a(),o},prompt:async r=>{e.setInput("");const{inputValue:o,unsubscribe:a}=await new Promise(s=>{e.show(r);const i=Ss.subscribe(({visible:u,inputValue:d})=>{u||s({inputValue:d,unsubscribe:i})})});return a(),o}}},uc=e=>{var n;return(n=e.response)==null?void 0:n.data},ZP=(e,n)=>{var t,r;return(r=(t=n.split(e+"='")[1])==null?void 0:t.split("'")[0])==null?void 0:r.trim()},Es=e=>{const{t:n}=rt(),{toast:t}=X1(),r=(h,g)=>{const m=`${n("errorOccurred")}: `;t({variant:"destructive",title:h?`${g??m}${h}`:n("errorOccurred")})},o=h=>{t({variant:"success",title:h})},a=h=>h?Array.isArray(h.errors)?h.errors.join(", "):h.errors&&typeof h.errors=="object"?Object.values(h.errors).flat().join(", "):"":"",s=h=>{const g=uc(h),m=g&&"title"in g?g.title:void 0,C=(g==null?void 0:g.message)||String(g&&("Message"in g?g.Message:""))||(g==null?void 0:g.detail),p=h==null?void 0:h.errorDescription;if(p)return p;const v=C||(g==null?void 0:g.error)||m,w=a(g);return e||w||v};return{toast:t,notifyError:r,onError:h=>{const g=s(h);r(g)},getErrorHandler:h=>g=>{const m=s(g),C=[];for(const[p,v]of Object.entries(h)){const w=uc(g),y=(w==null?void 0:w.message)||w&&("Message"in w?w.Message:""),b=typeof v=="function"?v(w==null?void 0:w.errors):v;(!!p&&p===y||!!b&&!p)&&C.push(b)}C.length?C.forEach(p=>r(p)):r(m)},getSuccessHandler:h=>()=>o(h),notifySuccess:o,onSuccess:()=>{o(e||"Success")}}},Pr=["image","video","audio"],qn=e=>{const n=e.toLowerCase();return n.includes("pdf")?"pdf":n.includes("wordprocessingml")||n==="application/msword"?"word":n.includes("spreadsheetml")||n.includes("ms-excel")?"excel":n==="application/zip"||n.includes("rar")||n.includes("7z")?"archive":n.includes("image")?"image":n.includes("video")?"video":n.includes("audio")?"audio":null},Po=e=>e!=null&&e.contentType&&qn(e.contentType)||"image",Nn=e=>(e==null?void 0:e.previewUrl)||(e==null?void 0:e.url),dc=e=>(e==null?void 0:e.downloadUrl)||(e==null?void 0:e.url),_r=e=>(e??[]).filter(n=>(n==null?void 0:n.contentType)&&(n.url||n.previewUrl||n.downloadUrl||n.file||n.onDownload)),WP={image:ac,video:nc,total:tc,audio:rc,pdf:oc,word:sc,excel:ic,archive:lc},J4=e=>{const{accepts:n=ec,multiple:t=!0,max:r,maxSizes:o,withCompress:a=!0,onAdd:s,attachmentData:i=[]}=e,u=D.useMemo(()=>({...WP,...o}),[o]),{notifyError:d}=Es(),{t:f}=rt(),h=D.useRef(null),[g,m]=D.useState(!1),p=_r(i).length,w=r!=null&&p>=r||g||!s,y=D.useCallback(async L=>{const E=_r(i),I=E.length,k=_=>qn(_.type)==="image",O=_=>qn(_.type)==="audio",A=_=>qn(_.type)==="pdf",V=_=>qn(_.type)==="word",Y=_=>qn(_.type)==="excel",$=_=>qn(_.type)==="archive",U=_=>k(_)?_.size<Rt(u.image):O(_)?_.size<Rt(u.audio):A(_)?_.size<Rt(u.pdf):V(_)?_.size<Rt(u.word):Y(_)?_.size<Rt(u.excel):$(_)?_.size<Rt(u.archive):_.size<Rt(u.video),T=(_,B)=>k(_)?B.image:O(_)?B.audio:A(_)?B.pdf:V(_)?B.word:Y(_)?B.excel:$(_)?B.archive:B.video,W=_=>{const B=T(_,u),G=Rt(B??u.video),F=Number((G/_.size).toFixed(2));return F>=1?1:F},P=Array.from(L);if(!P.length)return;m(!0);for(let _=0;_<P.length;_++){const B=P[_],G=!U(B)&&a?await H4(B,{quality:W(B)}):B;P[_]=G,U(G)||(k(B)?d(`${f("imageSizeLimitMB")} ${u.image}(MB) (${B.name})`):O(B)?d(`${f("audioSizeLimitMB")} ${u.audio}(MB) (${B.name})`):A(B)?d(`${f("pdfSizeLimitMB")} ${u.pdf}(MB) (${B.name})`):V(B)?d(`${f("videoSizeLimitMB")} ${u.word}(MB) (${B.name})`):Y(B)?d(`${f("videoSizeLimitMB")} ${u.excel}(MB) (${B.name})`):$(B)?d(`${f("videoSizeLimitMB")} ${u.archive}(MB) (${B.name})`):d(`${f("videoSizeLimitMB")} ${u.video}(MB) (${B.name})`))}const z=P.filter(U),K=[...E.filter(_=>!!_.file).map(_=>_.file),...z].reduce((_,B)=>_+B.size,0)/bs;if(u.total!=null&&K>u.total){d(`${f("maxSizeOfFilesMB")} ${u.total}(MB)`),m(!1);return}const Z=r!=null?Math.max(0,r-I):z.length,H=r!=null?z.slice(0,Z):z;H.length&&(s==null||s(H)),h.current&&(h.current.value=""),m(!1)},[i,r,u,a,s,d,f]),b=D.useCallback(L=>{var E;(E=L.target.files)!=null&&E.length&&y(L.target.files).catch(()=>m(!1))},[y]),S=D.useCallback(()=>{var L;w||(L=h.current)==null||L.click()},[w]),M=n.map(L=>X4.get(L)).filter(Boolean).join(",");return{inputRef:h,openPicker:S,processing:g,pickerDisabled:w,acceptAttr:M,multiple:t,onFileInputChange:b}},RP=({onRotate:e,onPrev:n,onNext:t,onRemove:r,isImage:o})=>c.jsx("div",{className:"flex justify-center items-center z-50",children:c.jsxs("div",{className:"flex bg-foreground-primary-disabled py-2 px-3 rounded-[8px] gap-4",children:[c.jsx(ao,{className:N("cursor-pointer text-icon-on-contrast",{"opacity-50":!n}),onClick:()=>n==null?void 0:n()}),c.jsx(Vn,{className:N("cursor-pointer text-icon-on-contrast",{"opacity-50":!t}),onClick:()=>t==null?void 0:t()}),c.jsx(G9,{className:N("cursor-pointer text-icon-on-contrast",{"opacity-50":!o}),onClick:()=>e("left")}),c.jsx(j9,{className:N("cursor-pointer text-icon-on-contrast",{"opacity-50":!o}),onClick:()=>e("right")}),r&&c.jsx(Qi,{className:"cursor-pointer text-icon-on-contrast",onClick:r})]})}),e3=({children:e,src:n,name:t,type:r,onPrev:o,onNext:a,onRemove:s})=>{var C,p;const i=D.useRef(null),[u,d]=D.useState(!0),[f,h]=D.useState(0),g=90,m=v=>{h(v==="left"?(f-g+360)%360:(f+g)%360)};return D.useEffect(()=>{var v;!((v=i.current)!=null&&v.complete)&&r!=="pdf"&&d(!0),h(0)},[n]),c.jsxs(Za,{children:[c.jsx(vl,{asChild:!0,children:e}),c.jsxs(no,{className:"bg-[transparent] shadow-none flex flex-col gap-12 overflow-hidden",children:[c.jsx(Wa,{className:"sr-only",children:t||""}),c.jsxs("div",{className:"flex items-center justify-center max-h-[90vh]",children:[r==="image"&&c.jsx("img",{ref:i,style:{visibility:u?"hidden":void 0,rotate:`${f}deg`},src:n,className:"object-cover w-full h-full max-w-full max-h-[calc(90vh-150px)]",onError:()=>d(!1),onLoad:()=>d(!1),alt:t||"Изображение для просмотра"}),r==="video"&&c.jsx("video",{style:{visibility:u?"hidden":void 0},className:"object-cover",controls:!0,onError:()=>d(!1),onLoadedData:()=>d(!1),children:c.jsx("source",{src:n,type:"video/mp4"})}),r==="audio"&&c.jsx("audio",{style:{visibility:u?"hidden":void 0},className:"object-cover self-center",controls:!0,onError:()=>d(!1),onLoadedData:()=>d(!1),children:c.jsx("source",{src:n,type:"audio/mp3"})}),r==="pdf"&&c.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:N("flex flex-col items-center justify-center bg-background-secondary h-[130px] w-[130px] text-icon-theme rounded-lg border-2 border-line-secondary"),children:[c.jsx(Ln,{}),c.jsx("div",{className:"text-sm mt-1 text-foreground-secondary truncate w-full text-center p-0.5",title:t,children:t})]}),u&&c.jsx(vr,{style:{width:(C=i.current)==null?void 0:C.width,height:(p=i.current)==null?void 0:p.height},className:"min-w-[-webkit-fill-available] h-auto flex justify-center items-center absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"})]}),c.jsx(RP,{onRotate:m,onPrev:o,onNext:a,onRemove:s,isImage:r==="image"})]})]})},t3=e=>{const{className:n,placeholder:t,data:r=[],accepts:o=ec,multiple:a=!0,max:s=10,hint:i,previewSize:u=130,gap:d=2,title:f,orientation:h="horizontal",maxSizes:g={image:ac,video:nc,total:tc,audio:rc,pdf:oc,word:sc,excel:ic,archive:lc},withCompress:m=!0,onAdd:C,onRemove:p,handleFileLimit:v,handleAllFilesLimit:w}=e,{confirm:y}=cc(),{notifyError:b}=Es(),{t:S}=rt(),[M,L]=D.useState([]),{inputRef:E,processing:I,pickerDisabled:k,acceptAttr:O,multiple:A,onFileInputChange:V}=J4({accepts:o,multiple:a,max:s,maxSizes:g,withCompress:m,onAdd:C,attachmentData:r}),Y=_=>Po(_),$=_r(r),U=$.filter(_=>Pr.includes(Y(_))&&!!Nn(_)),[T,W]=D.useState(U[0]);D.useEffect(()=>{const B=_r(r).filter(G=>Pr.includes(Y(G))&&!!Nn(G));W(G=>B.includes(G)?G:B[0])},[r]);const P=()=>{const _=U[U.indexOf(T)-1];return _?()=>W(_):void 0},z=()=>{const _=U[U.indexOf(T)+1];return _?()=>W(_):void 0},q=async(_,B)=>{var F;await y({description:S("confirmDeleteMedia"),confirmText:S("delete"),confirmType:"warning-filled"})&&((F=_.onRemove)!=null&&F.call(_)||(p==null||p(B)))},K=(_="")=>`${_}h-[${u}px] ${_}w-[${u}px]`,Z=()=>K("min-"),H=C&&(!s||$.length<s);return c.jsxs("div",{className:N(h==="vertical"?"flex flex-col gap-2 pt-1 overflow-y-auto overflow-x-hidden w-full":"grid grid-flow-col auto-cols-[130px] pt-1 overflow-x-auto overflow-y-hidden w-full",h==="horizontal"?`gap-${d}`:"",h==="horizontal"?`auto-cols-[${u}px]`:"",n),children:[H&&c.jsxs("div",{className:N("w-[130px] h-[130px] relative flex justify-center items-center rounded-lg border-foreground/10 bg-[transparent] text-[transparent] cursor-pointer transition-colors",Z(),K()),children:[c.jsx(tn,{ref:E,className:"h-full w-full flex justify-center items-center cursor-pointer file:text-[transparent] file:bg-[transparent] file:hidden border-dashed hover:bg-background-secondary",id:"attachment",type:"file",accept:O,multiple:A,disabled:k,onChange:V}),I?c.jsx(mr,{className:"absolute pointer-events-none h-7 w-7 animate-spin opacity-80"}):c.jsxs("div",{className:"absolute pointer-events-none flex flex-col gap-1 items-center justify-center",children:[c.jsx(F9,{className:N("text-icon-fade-contrast",{"opacity-50":$.length>=s})}),c.jsx("span",{className:"text-sm text-foreground-tertiary",children:S("attachFile")}),i&&c.jsx("span",{className:"px-2 text-center text-xs leading-tight text-foreground-quaternary",children:i})]})]}),t&&!($!=null&&$.length)&&c.jsx("span",{className:"text-base text-secondary-foreground",children:t}),$==null?void 0:$.map((_,B)=>{var we,Te;const G=Y(_),F=Nn(_),R=!Pr.includes(G)||!F,Q=dc(_),re=_.size??((we=_.file)==null?void 0:we.size),te=_.fileName||`${(Q==null?void 0:Q.split("/").pop())??"file"}.${((Te=_.contentType)==null?void 0:Te.split("/").pop())||(G==="video"?"mp4":G==="audio"?"mp3":G==="word"?"docx":G==="excel"?"xlsx":G==="archive"?"zip":"pdf")}`,j=String(_.id??B),ee=M.includes(j),ie=async xe=>{if(!(!_.onDownload||ee)){xe.preventDefault(),L(_e=>[..._e,j]);try{await _.onDownload()}catch(_e){b(_e instanceof Error?_e.message:void 0)}finally{L(_e=>_e.filter(Be=>Be!==j))}}},le=c.jsxs("span",{className:"relative",children:[G==="image"&&!R&&(F?c.jsxs(c.Fragment,{children:[c.jsx("img",{src:F,alt:"",className:N("rounded-lg object-cover border border-line-primary",K()),loading:"lazy",onClick:()=>W(_)}),f&&c.jsx("span",{className:"absolute bottom-2 left-2 display-block p-0.5 rounded-xl bg-background-on-image text-xs text-foreground-on-image w-[calc(100%-1rem)] truncate",children:f})]}):c.jsx("div",{className:N("flex flex-col items-center justify-center h-full w-full text-icon-theme rounded-lg border-2 border-line-secondary",K()),children:c.jsx(Ln,{})})),G==="video"&&!R&&c.jsxs("div",{className:N("flex flex-col items-center justify-center h-full w-full text-icon-theme rounded-lg border-2 border-line-secondary",K()),onClick:()=>W(_),children:[c.jsx(k1,{}),h==="horizontal"&&c.jsx(rn,{children:c.jsxs(Wt,{children:[c.jsx(It,{asChild:!0,children:c.jsx("div",{className:"text-sm mt-1 text-foreground-secondary w-full truncate text-center p-0.5",children:te})}),c.jsx(kt,{children:c.jsx("p",{children:te})})]})})]}),G==="audio"&&!R&&c.jsxs("div",{className:N("flex flex-col items-center justify-center h-full w-full text-icon-theme rounded-lg border-2 border-line-secondary",K()),onClick:()=>W(_),children:[c.jsx(I1,{}),h==="horizontal"&&c.jsx(rn,{children:c.jsxs(Wt,{children:[c.jsx(It,{asChild:!0,children:c.jsx("div",{className:"text-sm mt-1 text-foreground-secondary w-full truncate text-center p-0.5",children:te})}),c.jsx(kt,{children:c.jsx("p",{children:te})})]})})]}),R&&(Q&&!_.onDownload?c.jsxs("a",{href:Q,target:"_blank",rel:"noopener noreferrer",download:te,className:N("flex flex-col items-center justify-center h-full w-full text-icon-theme rounded-lg border-2 border-line-secondary",K()),children:[c.jsx(Ln,{}),h==="horizontal"&&c.jsx(rn,{children:c.jsxs(Wt,{children:[c.jsx(It,{asChild:!0,children:c.jsx("div",{className:"text-sm mt-1 text-foreground-secondary w-full truncate text-center p-0.5",children:te})}),c.jsx(kt,{children:c.jsx("p",{children:te})})]})})]}):c.jsxs("button",{type:"button",onClick:ie,disabled:ee,className:N("flex flex-col items-center justify-center h-full w-full text-icon-theme rounded-lg border-2 border-line-secondary bg-transparent",K()),children:[ee?c.jsx(mr,{className:"h-6 w-6 animate-spin"}):c.jsx(Ln,{}),h==="horizontal"&&c.jsx(rn,{children:c.jsxs(Wt,{children:[c.jsx(It,{asChild:!0,children:c.jsx("div",{className:"text-sm mt-1 text-foreground-secondary w-full truncate text-center p-0.5",children:te})}),c.jsx(kt,{children:c.jsx("p",{children:te})})]})})]}))]});return c.jsxs("div",{className:N("relative select-none",!R&&"cursor-pointer",h==="vertical"?"grid grid-cols-[130px_1fr] items-center gap-4 w-full h-full":"",h==="horizontal"?Z():"",h==="horizontal"?K():""),children:[R?le:c.jsx(e3,{type:Y(T),src:Nn(T),name:T==null?void 0:T.fileName,onPrev:P(),onNext:z(),onRemove:(p||_.onRemove)&&(()=>q(_,B)),children:le}),h==="vertical"&&c.jsxs("div",{className:"flex flex-col justify-start flex-1 h-full py-2 group min-w-0 overflow-hidden",children:[c.jsxs("div",{className:"flex flex-row gap-2 items-center gap-2 pb-2",children:[c.jsx(rn,{children:c.jsxs(Wt,{children:[c.jsx(It,{asChild:!0,children:c.jsx("span",{className:"text-sm text-foreground-primary line-clamp-2 cursor-default",children:te})}),c.jsx(kt,{children:c.jsx("p",{children:te})})]})}),(p||_.onRemove)&&c.jsx("div",{onClick:()=>q(_,B),className:"opacity-0 group-hover:opacity-100 transition-opacity",children:c.jsx(z9,{className:"bg-background text-icon-fade-contrast cursor-pointer"})})]}),c.jsxs("span",{className:"text-sm text-foreground-quaternary",children:[re?Q1(re):0," ",S("mb")]})]}),_.inProgress&&c.jsx("div",{className:"absolute inset-0 flex items-center justify-center rounded-lg bg-background-primary/70",children:c.jsx(mr,{className:"h-6 w-6 animate-spin text-icon-theme"})}),h==="horizontal"&&!_.inProgress&&(p||_.onRemove)&&c.jsx("div",{onClick:()=>q(_,B),children:c.jsx(wo,{className:"absolute top-[2px] right-[2px] rounded-full bg-background text-destructive-foreground cursor-pointer"})})]},`${String(_.id)}-${B}`)})]})},GP=(e,n)=>{var t,r;return e.fileName||`${((t=dc(e))==null?void 0:t.split("/").pop())??"file"}.${((r=e.contentType)==null?void 0:r.split("/").pop())||(n==="video"?"mp4":n==="audio"?"mp3":n==="word"?"docx":n==="excel"?"xlsx":n==="archive"?"zip":"pdf")}`},fc=()=>N("relative flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-lg border border-line-primary bg-background-tertiary"),n3=()=>N("group flex min-w-[200px] max-w-[280px] shrink-0 items-center gap-2 rounded-xl border border-line-primary bg-background-secondary p-2 transition-colors hover:bg-background-primary-hover"),jP=({className:e,data:n=[],onRemove:t,title:r})=>{const{confirm:o}=cc(),{notifyError:a}=Es(),{t:s}=rt(),[i,u]=D.useState([]),d=_r(n),f=d.filter(v=>Pr.includes(Po(v))&&!!Nn(v)),[h,g]=D.useState(f[0]);D.useEffect(()=>{const v=_r(n).filter(w=>Pr.includes(Po(w))&&!!Nn(w));g(w=>w&&v.includes(w)?w:v[0])},[n]);const m=()=>{if(!h)return;const v=f[f.indexOf(h)-1];return v?()=>g(v):void 0},C=()=>{if(!h)return;const v=f[f.indexOf(h)+1];return v?()=>g(v):void 0},p=async(v,w)=>{var b;await o({description:s("confirmDeleteMedia"),confirmText:s("delete"),confirmType:"warning-filled"})&&((b=v.onRemove)!=null&&b.call(v)||(t==null||t(w)))};return d.length?c.jsx("div",{className:N("flex w-full gap-2 overflow-x-auto overflow-y-hidden pt-1 pb-0.5 [scrollbar-width:thin]",e),children:d.map((v,w)=>{var U;const y=Po(v),b=GP(v,y),S=v.size??((U=v.file)==null?void 0:U.size),M=S!=null?`${Q1(S)} ${s("mb")}`:"—",L=Nn(v),E=!Pr.includes(y)||!L,I=dc(v),k=String(v.id??w),O=i.includes(k),A=async()=>{if(!(!v.onDownload||O)){u(T=>[...T,k]);try{await v.onDownload()}catch(T){a(T instanceof Error?T.message:void 0)}finally{u(T=>T.filter(W=>W!==k))}}},V=c.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[c.jsx(rn,{children:c.jsxs(Wt,{children:[c.jsx(It,{asChild:!0,children:c.jsx("span",{className:"truncate text-left text-sm font-normal leading-5 text-foreground-primary",children:b})}),c.jsx(kt,{children:c.jsx("p",{children:b})})]})}),c.jsx("span",{className:"truncate text-left text-xs font-normal leading-4 text-foreground-quaternary",children:M})]}),Y=(t||v.onRemove)&&c.jsx("div",{className:"flex h-6 w-6 shrink-0 items-center justify-center self-start",children:c.jsx("button",{type:"button",className:N("flex size-6 items-center justify-center rounded-full bg-background-primary p-1 text-icon-fade-contrast opacity-0 transition-opacity","pointer-events-none group-hover:pointer-events-auto group-hover:opacity-100","focus-visible:pointer-events-auto focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),onClick:T=>{T.preventDefault(),T.stopPropagation(),p(v,w)},"aria-label":s("delete"),children:c.jsx(wo,{className:"size-4 shrink-0","aria-hidden":!0})})});if(E){const T=v.onDownload?c.jsx("button",{type:"button",onClick:()=>{A()},disabled:O,className:N(fc(),"text-icon-fade-contrast"),"aria-label":b,children:O?c.jsx(mr,{className:"size-5 shrink-0 animate-spin","aria-hidden":!0}):c.jsx(Ln,{className:"size-6 shrink-0","aria-hidden":!0})}):c.jsx("a",{href:I,target:"_blank",rel:"noopener noreferrer",download:b,className:N(fc(),"text-icon-fade-contrast"),"aria-label":b,children:c.jsx(Ln,{className:"size-6 shrink-0","aria-hidden":!0})});return c.jsxs("div",{className:n3(),children:[T,V,Y]},`${String(v.id)}-${w}`)}const $=y==="image"?L?c.jsx("img",{src:L,alt:"",className:"size-full object-cover",loading:"lazy"}):c.jsx(Ln,{className:"size-6 shrink-0 text-icon-fade-contrast","aria-hidden":!0}):y==="video"?c.jsx(k1,{className:"size-6 shrink-0 text-icon-fade-contrast","aria-hidden":!0}):c.jsx(I1,{className:"size-6 shrink-0 text-icon-fade-contrast","aria-hidden":!0});return c.jsxs("div",{className:n3(),children:[c.jsx(e3,{type:Po(h),src:Nn(h),name:h==null?void 0:h.fileName,onPrev:m(),onNext:C(),onRemove:(t||v.onRemove)&&(async()=>{await p(v,w)}),children:c.jsxs("button",{type:"button",className:"relative shrink-0 cursor-pointer border-0 bg-transparent p-0 text-left",onClick:()=>g(v),"aria-label":b,children:[y==="image"&&r&&c.jsx("span",{className:"absolute bottom-0.5 left-0.5 z-[1] max-w-[calc(100%-4px)] truncate rounded-md bg-background-on-image px-1 text-[10px] text-foreground-on-image",children:r}),c.jsx("div",{className:N(fc(),y!=="image"&&"text-icon-fade-contrast"),children:$})]})}),V,Y]},`${String(v.id)}-${w}`)})}):null},YP=({className:e,title:n,titleActions:t,leftMeta:r,meta:o,actions:a,onBack:s,onNext:i,onPrevious:u})=>{const d=i||u;return c.jsxs("div",{className:N("w-full flex justify-between items-center",e),children:[c.jsxs("div",{className:"flex gap-2 items-center",children:[s&&c.jsx("div",{className:"p-2 cursor-pointer hover:text-foreground-primary-disabled",onClick:s,children:c.jsx(v1,{})}),d&&c.jsx("div",{className:N("p-2 cursor-pointer hover:text-foreground-primary-disabled",!u&&"opacity-50 pointer-events-none"),onClick:u,children:c.jsx(ao,{})}),d&&c.jsx("div",{className:N("p-2 cursor-pointer hover:text-foreground-primary-disabled",!i&&"opacity-50 pointer-events-none"),onClick:i,children:c.jsx(Vn,{})}),r&&c.jsx("div",{className:"text-[28px] font-medium tracking-[0.18px] text-foreground-primary opacity-50",children:r}),c.jsx("div",{className:"text-[28px] font-medium tracking-[0.18px] text-foreground-primary flex items-center gap-1",children:n}),c.jsx("div",{className:"text-[28px] font-medium tracking-[0.18px] text-foreground-theme",children:o}),c.jsx("div",{className:"flex gap-3 items-center ml-2",children:t})]}),c.jsx("div",{className:"flex gap-4",children:a})]})},UP=({headerSlot:e,filterSlot:n,contentSlot:t,contentSlotOverflowHidden:r=!1})=>c.jsxs("div",{className:N("relative flex min-h-0 flex-1 flex-col pt-4 gap-4",r?"overflow-hidden":"overflow-y-auto"),children:[(e||n)&&c.jsxs("div",{className:"flex-shrink-0 px-6 flex flex-col gap-4",children:[e&&c.jsx("div",{children:e}),n&&c.jsx("div",{children:n})]}),t&&c.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:t})]});var Ms="Tabs",[qP]=nt(Ms,[br]),r3=br(),[KP,hc]=qP(Ms),o3=l.forwardRef((e,n)=>{const{__scopeTabs:t,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:u="automatic",...d}=e,f=ar(i),[h,g]=ht({prop:r,onChange:o,defaultProp:a??"",caller:Ms});return c.jsx(KP,{scope:t,baseId:qe(),value:h,onValueChange:g,orientation:s,dir:f,activationMode:u,children:c.jsx(oe.div,{dir:f,"data-orientation":s,...d,ref:n})})});o3.displayName=Ms;var a3="TabsList",s3=l.forwardRef((e,n)=>{const{__scopeTabs:t,loop:r=!0,...o}=e,a=hc(a3,t),s=r3(t);return c.jsx(Xl,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:c.jsx(oe.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:n})})});s3.displayName=a3;var i3="TabsTrigger",l3=l.forwardRef((e,n)=>{const{__scopeTabs:t,value:r,disabled:o=!1,...a}=e,s=hc(i3,t),i=r3(t),u=d3(s.baseId,r),d=f3(s.baseId,r),f=r===s.value;return c.jsx(Ql,{asChild:!0,...i,focusable:!o,active:f,children:c.jsx(oe.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...a,ref:n,onMouseDown:ne(e.onMouseDown,h=>{!o&&h.button===0&&h.ctrlKey===!1?s.onValueChange(r):h.preventDefault()}),onKeyDown:ne(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&s.onValueChange(r)}),onFocus:ne(e.onFocus,()=>{const h=s.activationMode!=="manual";!f&&!o&&h&&s.onValueChange(r)})})})});l3.displayName=i3;var c3="TabsContent",u3=l.forwardRef((e,n)=>{const{__scopeTabs:t,value:r,forceMount:o,children:a,...s}=e,i=hc(c3,t),u=d3(i.baseId,r),d=f3(i.baseId,r),f=r===i.value,h=l.useRef(f);return l.useEffect(()=>{const g=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(g)},[]),c.jsx(Ke,{present:o||f,children:({present:g})=>c.jsx(oe.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":u,hidden:!g,id:d,tabIndex:0,...s,ref:n,style:{...e.style,animationDuration:h.current?"0s":void 0},children:g&&a})})});u3.displayName=c3;function d3(e,n){return`${e}-trigger-${n}`}function f3(e,n){return`${e}-content-${n}`}var XP=o3,h3=s3,g3=l3,p3=u3;const QP=ln("inline-flex items-center justify-center rounded-lg bg-background-secondary p-1 text-foreground",{variants:{size:{default:"h-9",icon:"h-9"}},defaultVariants:{size:"default"}}),JP=ln("inline-flex gap-1 items-center justify-center whitespace-nowrap rounded-lg text-sm font-normal ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 text-icon-contrast [&_svg]:text-icon-contrast data-[state=active]:bg-background-contrast-fade data-[state=active]:text-foreground-primary data-[state=active]:[&_svg]:text-foreground-primary data-[state=active]:shadow-sm",{variants:{size:{default:"h-7 px-4 py-1.5",icon:"h-7 px-1 py-1.5"}},defaultVariants:{size:"default"}}),m3=XP,Ls=l.forwardRef(({className:e,size:n,...t},r)=>c.jsx(h3,{ref:r,className:N(QP({size:n}),e),...t}));Ls.displayName=h3.displayName;const _o=l.forwardRef(({className:e,size:n,...t},r)=>c.jsx(g3,{ref:r,className:N(JP({size:n}),e),...t}));_o.displayName=g3.displayName;const v3=l.forwardRef(({className:e,...n},t)=>c.jsx(p3,{ref:t,className:N("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...n}));v3.displayName=p3.displayName,ve.z.setErrorMap(o6.makeZodI18nMap({ns:["zod","translation"]}));const gc=(e,n,{count:t}={})=>[e,{params:{i18n:{key:n,values:{count:t?String(t):""}}}}],e_=e=>typeof e=="string"?e.trim().length>0:!!e,C3=(e,{count:n}={})=>gc(e_,e,{count:n}),t_=(e,n)=>n?typeof e=="string"?e.length>=n:typeof e=="number"?e>=n:!0:!0,n_=(e,{count:n}={})=>gc(t=>t_(t,n),e,{count:n});function w3(e,n,t){function r(i,u){var d;Object.defineProperty(i,"_zod",{value:i._zod??{},enumerable:!1}),(d=i._zod).traits??(d.traits=new Set),i._zod.traits.add(e),n(i,u);for(const f in s.prototype)f in i||Object.defineProperty(i,f,{value:s.prototype[f].bind(i)});i._zod.constr=s,i._zod.def=u}const o=(t==null?void 0:t.Parent)??Object;class a extends o{}Object.defineProperty(a,"name",{value:e});function s(i){var u;const d=t!=null&&t.Parent?new a:this;r(d,i),(u=d._zod).deferred??(u.deferred=[]);for(const f of d._zod.deferred)f();return d}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:i=>{var u,d;return t!=null&&t.Parent&&i instanceof t.Parent?!0:(d=(u=i==null?void 0:i._zod)==null?void 0:u.traits)==null?void 0:d.has(e)}}),Object.defineProperty(s,"name",{value:e}),s}class r_ extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const o_={};function y3(e){return o_}function a_(e,n){return typeof n=="bigint"?n.toString():n}const b3=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Ns(e){return typeof e=="string"?e:e==null?void 0:e.message}function x3(e,n,t){var o,a,s,i,u,d;const r={...e,path:e.path??[]};if(!e.message){const f=Ns((s=(a=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:a.error)==null?void 0:s.call(a,e))??Ns((i=n==null?void 0:n.error)==null?void 0:i.call(n,e))??Ns((u=t.customError)==null?void 0:u.call(t,e))??Ns((d=t.localeError)==null?void 0:d.call(t,e))??"Invalid input";r.message=f}return delete r.inst,delete r.continue,n!=null&&n.reportInput||delete r.input,r}const S3=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(n,a_,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},s_=w3("$ZodError",S3),E3=w3("$ZodError",S3,{Parent:Error}),i_=(e=>(n,t,r,o)=>{const a=r?Object.assign(r,{async:!1}):{async:!1},s=n._zod.run({value:t,issues:[]},a);if(s instanceof Promise)throw new r_;if(s.issues.length){const i=new((o==null?void 0:o.Err)??e)(s.issues.map(u=>x3(u,a,y3())));throw b3(i,o==null?void 0:o.callee),i}return s.value})(E3),l_=(e=>async(n,t,r,o)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let s=n._zod.run({value:t,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){const i=new((o==null?void 0:o.Err)??e)(s.issues.map(u=>x3(u,a,y3())));throw b3(i,o==null?void 0:o.callee),i}return s.value})(E3);function M3(e,n){try{var t=e()}catch(r){return n(r)}return t&&t.then?t.then(void 0,n):t}function c_(e,n){for(var t={};e.length;){var r=e[0],o=r.code,a=r.message,s=r.path.join(".");if(!t[s])if("unionErrors"in r){var i=r.unionErrors[0].errors[0];t[s]={message:i.message,type:i.code}}else t[s]={message:a,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(f){return f.errors.forEach(function(h){return e.push(h)})}),n){var u=t[s].types,d=u&&u[r.code];t[s]=Qn.appendErrors(s,n,t,o,d?[].concat(d,r.message):r.message)}e.shift()}return t}function u_(e,n){for(var t={};e.length;){var r=e[0],o=r.code,a=r.message,s=r.path.join(".");if(!t[s])if(r.code==="invalid_union"&&r.errors.length>0){var i=r.errors[0][0];t[s]={message:i.message,type:i.code}}else t[s]={message:a,type:o};if(r.code==="invalid_union"&&r.errors.forEach(function(f){return f.forEach(function(h){return e.push(h)})}),n){var u=t[s].types,d=u&&u[r.code];t[s]=Qn.appendErrors(s,n,t,o,d?[].concat(d,r.message):r.message)}e.shift()}return t}function d_(e,n,t){if(t===void 0&&(t={}),function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def}(e))return function(r,o,a){try{return Promise.resolve(M3(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](r,n)).then(function(s){return a.shouldUseNativeValidation&&Bo.validateFieldsNatively({},a),{errors:{},values:t.raw?Object.assign({},r):s}})},function(s){if(function(i){return Array.isArray(i==null?void 0:i.issues)}(s))return{values:{},errors:Bo.toNestErrors(c_(s.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw s}))}catch(s){return Promise.reject(s)}};if(function(r){return"_zod"in r&&typeof r._zod=="object"}(e))return function(r,o,a){try{return Promise.resolve(M3(function(){return Promise.resolve((t.mode==="sync"?i_:l_)(e,r,n)).then(function(s){return a.shouldUseNativeValidation&&Bo.validateFieldsNatively({},a),{errors:{},values:t.raw?Object.assign({},r):s}})},function(s){if(function(i){return i instanceof s_}(s))return{values:{},errors:Bo.toNestErrors(u_(s.issues,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw s}))}catch(s){return Promise.reject(s)}};throw new Error("Invalid input: not a Zod schema")}const f_=e=>{const{title:n,description:t,confirmType:r="theme-filled",confirmText:o="OK",confirmHidden:a,cancelText:s,cancelHidden:i,input:u,inputPlaceholder:d,inputRequiredLabel:f,inputMaxLength:h,inputRequired:g,children:m,visible:C,onVisibleChange:p,onConfirm:v,onCancel:w}=e,{t:y}=rt(),b=!!(u||d),S=ve.z.object({inputValue:g?ve.z.string().refine(...C3("fillField")):ve.z.string()}),M=Qn.useForm({resolver:d_(S),defaultValues:{inputValue:""}});D.useEffect(()=>{C||M.reset({inputValue:""})},[C]);const L=k=>{p==null||p(k),k||M.reset({inputValue:""})},E=k=>{v==null||v(k==null?void 0:k.inputValue)},I=()=>t===null||t===""?null:c.jsxs(c.Fragment,{children:[s4(t??y("confirmAction")),g&&c.jsx("span",{className:"text-foreground-error",children:"*"})]});return c.jsxs(Za,{open:C,onOpenChange:L,children:[c.jsx(vl,{children:m}),c.jsx(no,{className:"w-[460px]",children:c.jsxs($5,{...M,children:[c.jsx(wl,{children:c.jsx(Wa,{children:n||y("warning")})}),c.jsxs(xl,{className:N(d&&"space-y-2",u&&"flex flex-row items-center space-y-0 space-x-4"),children:[c.jsx(bl,{className:u||d?"text-foreground-secondary":"",children:I()}),b&&c.jsx(z5,{control:M.control,name:"inputValue",render:({field:k,fieldState:O})=>c.jsxs(Wn,{children:[c.jsx(Rn,{children:u?c.jsx(u,{...k}):c.jsx(J1,{rows:4,placeholder:d,maxLength:h,autoFocus:!0,...k})}),O.error&&c.jsx(g1,{children:f})]})})]}),c.jsxs(yl,{align:"end",children:[!i&&c.jsx(P0,{"aria-label":"Close",asChild:!0,children:c.jsx(Ze,{type:"button",variant:"fade-contrast-outlined",size:"sm",onClick:w,children:s||y("cancellation")})}),!a&&c.jsx(Ze,{variant:r,size:"sm",onClick:b?M.handleSubmit(E):()=>E(),children:o})]})]})})]})},L3="p-2 w-48 border-0 shadow-lg rounded-xl bg-[hsl(var(--background-popover-menu))] [&_*]:text-[hsl(var(--text-popover-menu))]",h_="justify-start gap-2 px-2 min-w-0 text-[hsl(var(--text-popover-menu))] hover:text-[hsl(var(--text-popover-menu))]",g_="text-sm truncate min-w-0 flex-1 text-[hsl(var(--text-popover-menu))]",p_="h-4 w-4 flex-shrink-0 text-[hsl(var(--text-popover-menu))]",N3=({children:e,itemVariant:n,LinkComponent:t,onChildClick:r})=>c.jsx("nav",{className:"flex flex-col gap-1.5",children:e.map((o,a)=>c.jsxs(t,{to:o.to??"#",className:N(h_,Pn({variant:o.variant||n(o),size:"sm"}),"text-[hsl(var(--text-popover-menu))] hover:text-[hsl(var(--text-popover-menu))] focus:text-[hsl(var(--text-popover-menu))] active:text-[hsl(var(--text-popover-menu))]",o.className),onClick:s=>{var i;o.to||s.preventDefault(),(i=o.onClick)==null||i.call(o),r()},children:[o.icon&&c.jsx(o.icon,{className:p_}),c.jsx("span",{className:g_,children:o.title}),o.label&&c.jsx("span",{className:"ml-auto flex-shrink-0 text-[hsl(var(--text-popover-menu))]",children:o.label})]},a))}),m_=({item:e,index:n,isCollapsed:t,itemVariant:r,LinkComponent:o})=>{const a=e.children&&e.children.length>0,[s,i]=D.useState(!1),u=g=>{g.preventDefault(),i(!s)},d=(g,m)=>{e.to||g.preventDefault(),m==null||m()},f=N(Pn({variant:e.variant||r(e),size:t?"icon":"sm"}),!t&&"justify-start gap-2 px-2 min-w-0 w-full",e.variant==="theme-filled"&&"justify-center",e.className),h=({children:g})=>c.jsx(O1,{children:c.jsxs(Wt,{delayDuration:0,children:[g,c.jsxs(kt,{side:"right",className:"flex items-center gap-4",children:[e.title,e.label&&c.jsx("span",{className:"ml-auto text-muted-foreground",children:e.label})]})]})},n);return t?a?c.jsx(h,{children:c.jsxs(zn,{open:s,onOpenChange:i,children:[c.jsx(It,{asChild:!0,children:c.jsx(Bn,{asChild:!0,children:c.jsxs("button",{className:f,onClick:u,children:[e.icon&&c.jsx(e.icon,{className:"h-6 w-6"}),c.jsx("span",{className:"sr-only",children:e.title})]})})}),c.jsx(Sn,{side:"right",align:"start",className:L3,children:c.jsx(N3,{children:e.children,itemVariant:r,LinkComponent:o,onChildClick:()=>i(!1)})})]})}):c.jsx(h,{children:c.jsx(It,{asChild:!0,children:c.jsxs(o,{to:e.to??"#",className:f,onClick:g=>d(g,e.onClick),children:[e.icon&&c.jsx(e.icon,{className:"h-6 w-6"}),c.jsx("span",{className:"sr-only",children:e.title})]})})}):a?c.jsxs(zn,{open:s,onOpenChange:i,children:[c.jsx(Bn,{asChild:!0,children:c.jsxs(Ze,{variant:e.variant||r(e),className:f,onClick:u,children:[e.icon&&c.jsx(e.icon,{className:"h-6 w-6 flex-shrink-0"}),c.jsx("span",{className:"text-sm tracking-[0.25px] animate-in fade-in truncate min-w-0 flex-1 text-left",children:e.title}),e.label&&c.jsx("span",{className:N("ml-auto flex-shrink-0",e.variant==="fade-contrast-filled"&&"text-background dark:text-white"),children:e.label}),c.jsx(M2,{className:"h-4 w-4 flex-shrink-0 transition-transform"})]})}),c.jsx(Sn,{side:"right",align:"start",className:L3,children:c.jsx(N3,{children:e.children,itemVariant:r,LinkComponent:o,onChildClick:()=>i(!1)})})]},n):c.jsxs(o,{to:e.to??"#",className:f,onClick:g=>d(g,e.onClick),children:[e.icon&&c.jsx(e.icon,{className:"h-6 w-6 flex-shrink-0"}),c.jsx("span",{className:"text-sm tracking-[0.25px] animate-in fade-in truncate min-w-0 flex-1",children:e.title}),e.label&&c.jsx("span",{className:N("ml-auto flex-shrink-0",e.variant==="fade-contrast-filled"&&"text-background dark:text-white"),children:e.label})]},n)};function P3(e){const{items:n,isCollapsed:t,itemVariant:r=a=>a.variant||"fade-contrast-filled",LinkComponent:o}=e;return c.jsx("div",{"data-collapsed":t,className:"group flex flex-col gap-4 py-4 data-[collapsed=true]:py-4",children:c.jsx("nav",{className:"grid gap-1.5 px-2 group-[[data-collapsed=true]]:justify-center group-[[data-collapsed=true]]:px-2",children:n.map((a,s)=>c.jsx(m_,{item:a,index:s,isCollapsed:t,itemVariant:r,LinkComponent:o},s))})})}function _3(){return c.jsx(Fn,{intent:"sidebar",className:"w-[calc(100%_-_24px)] ml-3"})}const I3=e=>{const{isCollapsed:n,navItems:t,projectName:r,linkComponent:o,profileNavSlot:a,expandableNavSlot:s,location:i,bottomSlot:u}=e,d=h=>{var y;if(!(i!=null&&i.pathname))return"nav-item";const g=i.pathname,m=String(h.to||""),C=g===m,p=m&&g.startsWith(m+"/"),v=(y=h.children)==null?void 0:y.some(b=>{const S=String(b.to||"");return S&&(g===S||g.startsWith(S+"/"))});return C||p||v?"nav-item-selected":"nav-item"},f=(t??[]).map((h,g)=>c.jsxs(D.Fragment,{children:[g!==0&&c.jsx(_3,{}),c.jsx(P3,{isCollapsed:n,items:h,itemVariant:d,LinkComponent:o,location:i})]},g));return c.jsxs("div",{className:N("bg-background-sidebar","flex flex-col h-screen"),children:[c.jsx("div",{className:N("text-sm px-2 leading-5 py-4 cursor-default whitespace-nowrap flex justify-normal",{"text-center justify-center":n}),children:r}),c.jsxs("div",{className:"overflow-y-auto flex-col flex-grow [scrollbar-width:none] [-webkit-scrollbar-width:none] [-webkit-scrollbar:0px] [-webkit-appearance:none]",style:{msHighContrastAdjust:"none"},children:[f,a]}),s&&c.jsxs("div",{className:"mt-auto",children:[c.jsx("div",{className:"px-2",children:u}),s]})]})};I3.displayName="NavPanel";const v_=({defaultValue:e,options:n,onClick:t})=>c.jsx(m3,{value:e,children:c.jsx(Ls,{className:"w-fit",children:n==null?void 0:n.map(r=>c.jsxs(_o,{value:r.value,onClick:()=>t==null?void 0:t(r.value),children:[r.icon,r.label]},r.value))})});var pc="Radio",[C_,k3]=nt(pc),[w_,y_]=C_(pc),T3=l.forwardRef((e,n)=>{const{__scopeRadio:t,name:r,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:u,form:d,...f}=e,[h,g]=l.useState(null),m=he(n,v=>g(v)),C=l.useRef(!1),p=h?d||!!h.closest("form"):!0;return c.jsxs(w_,{scope:t,checked:o,disabled:s,children:[c.jsx(oe.button,{type:"button",role:"radio","aria-checked":o,"data-state":H3(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:m,onClick:ne(e.onClick,v=>{o||u==null||u(),p&&(C.current=v.isPropagationStopped(),C.current||v.stopPropagation())})}),p&&c.jsx(V3,{control:h,bubbles:!C.current,name:r,value:i,checked:o,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});T3.displayName=pc;var D3="RadioIndicator",O3=l.forwardRef((e,n)=>{const{__scopeRadio:t,forceMount:r,...o}=e,a=y_(D3,t);return c.jsx(Ke,{present:r||a.checked,children:c.jsx(oe.span,{"data-state":H3(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:n})})});O3.displayName=D3;var b_="RadioBubbleInput",V3=l.forwardRef(({__scopeRadio:e,control:n,checked:t,bubbles:r=!0,...o},a)=>{const s=l.useRef(null),i=he(s,a),u=ca(t),d=sa(n);return l.useEffect(()=>{const f=s.current;if(!f)return;const h=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(h,"checked").set;if(u!==t&&m){const C=new Event("click",{bubbles:r});m.call(f,t),f.dispatchEvent(C)}},[u,t,r]),c.jsx(oe.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});V3.displayName=b_;function H3(e){return e?"checked":"unchecked"}var x_=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ps="RadioGroup",[S_]=nt(Ps,[br,k3]),A3=br(),F3=k3(),[E_,M_]=S_(Ps),$3=l.forwardRef((e,n)=>{const{__scopeRadioGroup:t,name:r,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:u,dir:d,loop:f=!0,onValueChange:h,...g}=e,m=A3(t),C=ar(d),[p,v]=ht({prop:a,defaultProp:o??null,onChange:h,caller:Ps});return c.jsx(E_,{scope:t,name:r,required:s,disabled:i,value:p,onValueChange:v,children:c.jsx(Xl,{asChild:!0,...m,orientation:u,dir:C,loop:f,children:c.jsx(oe.div,{role:"radiogroup","aria-required":s,"aria-orientation":u,"data-disabled":i?"":void 0,dir:C,...g,ref:n})})})});$3.displayName=Ps;var z3="RadioGroupItem",B3=l.forwardRef((e,n)=>{const{__scopeRadioGroup:t,disabled:r,...o}=e,a=M_(z3,t),s=a.disabled||r,i=A3(t),u=F3(t),d=l.useRef(null),f=he(n,d),h=a.value===o.value,g=l.useRef(!1);return l.useEffect(()=>{const m=p=>{x_.includes(p.key)&&(g.current=!0)},C=()=>g.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",C),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",C)}},[]),c.jsx(Ql,{asChild:!0,...i,focusable:!s,active:h,children:c.jsx(T3,{disabled:s,required:a.required,checked:h,...u,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:ne(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:ne(o.onFocus,()=>{var m;g.current&&((m=d.current)==null||m.click())})})})});B3.displayName=z3;var L_="RadioGroupIndicator",Z3=l.forwardRef((e,n)=>{const{__scopeRadioGroup:t,...r}=e,o=F3(t);return c.jsx(O3,{...o,...r,ref:n})});Z3.displayName=L_;var N_=$3,P_=B3,__=Z3;const W3=l.forwardRef(({className:e,...n},t)=>c.jsx(N_,{className:N("grid gap-2",e),...n,ref:t}));W3.displayName="RadioGroup";const R3=l.forwardRef(({className:e,...n},t)=>c.jsx(P_,{ref:t,className:N("aspect-square h-4 w-4 shrink-0 rounded-full border border-line-contrast data-[state=checked]:border-line-theme text-foreground ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:c.jsx(__,{className:"flex items-center justify-center",children:c.jsx(L2,{className:"h-2.5 w-2.5 fill-background-theme text-line-theme"})})}));R3.displayName="RadioGroupItem";const G3=({className:e,title:n,subtitle:t,variant:r,icon:o="bill-empty",actionText:a,onActionClick:s})=>{const i=u=>{switch(u){case"network-error":return c.jsx(R9,{});case"search-empty":return c.jsx(Y9,{});case"bill-empty":default:return c.jsx($9,{})}};return c.jsxs("div",{className:N("w-full h-full flex-1 flex flex-col items-center justify-center select-none",e),children:[c.jsx("span",{className:N("text-line-theme",r==="secondary"&&"text-line-secondary"),children:i(o)}),c.jsx("div",{className:N("mt-6 text-base font-medium",r==="secondary"&&"text-foreground-tertiary"),children:n}),c.jsx("div",{className:"mt-2 text-sm text-foreground-secondary",children:t}),a&&c.jsx(Ze,{variant:"theme-filled",className:"mt-4",onClick:s,children:a})]})},j3=({className:e,onRefetchClick:n})=>{const{t}=rt();return c.jsx(G3,{className:e,icon:"network-error",title:t("networkError"),subtitle:t("networkErrorDescription"),actionText:t("refetch"),onActionClick:n})},I_=()=>c.jsx(j3,{onRefetchClick:()=>window.location.reload()}),Y3=({children:e})=>c.jsx("div",{className:"w-full bg-background-secondary rounded-lg flex items-center justify-center h-12 text-foreground-secondary text-xs select-none",children:e}),U3=l.forwardRef(({className:e,label:n,actions:t,open:r=!0,...o},a)=>r?c.jsxs("div",{ref:a,style:{left:"calc(var(--sidebar-width, 0px) + 1rem)"},className:N("fixed bottom-[8px] right-4 flex h-[52px] items-center justify-between gap-4","rounded-[12px] border-0 bg-background-sidebar px-4 py-2 shadow-none",e),...o,children:[c.jsx("p",{className:"text-sm font-normal leading-5 tracking-[0.25px] text-foreground-white",children:n}),t&&c.jsx("div",{className:"flex items-center gap-2",children:t})]}):null);U3.displayName="BottomMenu";const k_=({title:e,tabs:n=[],orientation:t,previewsOrientation:r,hint:o,visibleSections:a,accepts:s,maxSizes:i,withCompress:u,onAdd:d,onRemove:f,showNoDataBanner:h=!0})=>{const{t:g}=rt(),[m,C]=D.useState(0),p=S=>n.findIndex(M=>M.label===S),v=async(S,M)=>{const L=await B4(S);await(d==null?void 0:d(L,M))},[w,y]=D.useState(n);D.useEffect(()=>{const S=(L,E)=>!(a!=null&&a.length)||(a==null?void 0:a.includes(L.label))||(a==null?void 0:a.includes(E)),M=n.filter(S).filter((L,E)=>!L.hideIfEmpty||L.items.length>0||!!(a!=null&&a.length)&&S(L,E));y(M)},[n,a]);const b=(w==null?void 0:w.filter(S=>S.items.length>0).length)>0;return c.jsxs(c.Fragment,{children:[e&&c.jsx("div",{className:"text-sm font-medium",children:e}),c.jsxs("div",{className:N("flex gap-5 mb-1",t==="horizontal"?"flex-row":"flex-col"),children:[!b&&!d&&h&&c.jsx(Y3,{children:g("noMediaFiles")}),(!!b||!!d)&&w.map(S=>c.jsxs("div",{className:N("flex flex-col items-start gap-1 rounded-lg w-auto cursor-default transition-colors",S.disableIfEmpty&&!S.items.length&&"pointer-events-none opacity-50"),onClick:()=>C(p(S.label)),children:[c.jsx("span",{className:"text-foreground-secondary font-normal text-sm flex",children:S.label}),c.jsx(t3,{data:S.items,max:S==null?void 0:S.maxFiles,hint:o,accepts:s,maxSizes:i,withCompress:u,orientation:r,onRemove:f?M=>f==null?void 0:f(M,m):void 0,onAdd:d&&S.canAdd?M=>v(M,p(S.label)):void 0})]},S.label))]})]})};function q3(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function T_(e,n,t){return n=_s(n),function(r,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}(r)}(e,Q3()?Reflect.construct(n,t||[],_s(e).constructor):n.apply(e,t))}function D_(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function O_(e,n,t){return Object.defineProperty(e,"prototype",{writable:!1}),e}function K3(e,n){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(u,d){if(u){if(typeof u=="string")return q3(u,d);var f={}.toString.call(u).slice(8,-1);return f==="Object"&&u.constructor&&(f=u.constructor.name),f==="Map"||f==="Set"?Array.from(u):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?q3(u,d):void 0}}(e))||n){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
137
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){i=!0,a=u},f:function(){try{s||t.return==null||t.return()}finally{if(i)throw a}}}}function X3(e,n,t){return(n=function(r){var o=function(a,s){if(typeof a!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var u=i.call(a,s);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(a)}(r,"string");return typeof o=="symbol"?o:o+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function _s(e){return _s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_s(e)}function V_(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&mc(e,n)}function Q3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q3=function(){return!!e})()}function J3(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,r)}return t}function Is(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?J3(Object(t),!0).forEach(function(r){X3(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J3(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function H_(e,n){if(e==null)return{};var t,r,o=function(s,i){if(s==null)return{};var u={};for(var d in s)if({}.hasOwnProperty.call(s,d)){if(i.includes(d))continue;u[d]=s[d]}return u}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.includes(t)||{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function mc(e,n){return mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},mc(e,n)}function Io(e,n){var t,r=n.replacementChars,o=n.replacement,a=n.separate,s=r,i="",u=K3(e);try{for(u.s();!(t=u.n()).done;){var d,f=t.value,h=!Object.prototype.hasOwnProperty.call(o,f)&&((d=o[s[0]])===null||d===void 0?void 0:d.test(f));(a&&f===s[0]||h)&&(s=s.slice(1),i+=f)}}catch(g){u.e(g)}finally{u.f()}return i}function e8(e,n){var t,r=n.mask,o=n.replacement,a=n.separate,s=n.showMask,i=0,u="",d=K3(r);try{for(d.s();!(t=d.n()).done;){var f=t.value;if(!s&&e[i]===void 0)break;Object.prototype.hasOwnProperty.call(o,f)&&e[i]!==void 0?u+=e[i++]:u+=f}}catch(g){d.e(g)}finally{d.f()}if(a&&!s){for(var h=r.length-1;h>=0&&u[h]===r[h];h--);u=u.slice(0,h+1)}return u}function t8(e,n){for(var t=n.mask,r=n.replacement,o=[],a=0;a<t.length;a++){var s,i=(s=e[a])!==null&&s!==void 0?s:t[a],u=Object.prototype.hasOwnProperty.call(r,i)?"replacement":e[a]!==void 0&&e[a]!==t[a]?"input":"mask";o.push({type:u,value:i,index:a})}return o}function Ir(e){return e.length>0?X3({},e,/./):{}}function vc(e,n){for(var t=n.start,r=t===void 0?0:t,o=n.end,a=n.mask,s=n.replacement,i=n.separate,u=e.slice(r,o),d=a.slice(r,o),f="",h=0;h<d.length;h++){var g=Object.prototype.hasOwnProperty.call(s,d[h]);g&&u[h]!==void 0&&u[h]!==d[h]?f+=u[h]:g&&i&&(f+=d[h])}return f}function n8(e,n){var t=n.mask,r=n.replacement,o=typeof r=="string"?Ir(r):r,a=RegExp("[^".concat(Object.keys(o).join(""),"]"),"g");return e8(Io(e,{replacementChars:t.replace(a,""),replacement:o,separate:!1}),{mask:t,replacement:o,separate:!1,showMask:!1})}function A_(e,n){var t=n.mask,r=n.replacement,o=typeof r=="string"?Ir(r):r,a=vc(e,{mask:t,replacement:o,separate:!1}),s=RegExp("[^".concat(Object.keys(o).join(""),"]"),"g");return Io(a,{replacementChars:t.replace(s,""),replacement:o,separate:!1})}function F_(e,n){var t=n.mask,r=n.replacement,o=typeof r=="string"?Ir(r):r;return t8(n8(e,{mask:t,replacement:o}),{mask:t,replacement:o})}var $_=["[","]","\\","/","^","$",".","|","?","*","+","(",")","{","}"];function r8(e){return $_.includes(e)?"\\".concat(e):e}function z_(e,n){for(var t=n.mask,r=n.replacement,o=typeof r=="string"?Ir(r):r,a=e==="partial"||e==="partial-inexact",s=e==="full"||e==="partial",i="",u=0;u<t.length;u++){var d=t[u];u===0&&(i="^"),a&&(i+="("),i+=Object.prototype.hasOwnProperty.call(o,d)?"".concat(s?"(?!".concat(r8(d),")"):"","(").concat(o[d].source,")"):r8(d),u===t.length-1&&(a&&(i+=")?".repeat(t.length)),i+="$")}return i}function B_(e,n){return new Proxy(e,{set:function(t,r,o){return r==="current"&&(o!==e.current&&(e.current!==null&&n.unregister(e.current),o!==null&&n.register(o)),t[r]=o,!0)}})}function Z_(e,n,t){return n=ko(n),function(r,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}(r)}(e,Cc()?Reflect.construct(n,t||[],ko(e).constructor):n.apply(e,t))}function o8(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function a8(e,n,t){return Object.defineProperty(e,"prototype",{writable:!1}),e}function W_(e,n,t){return(n=function(r){var o=function(a,s){if(typeof a!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var u=i.call(a,s);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(a)}(r,"string");return typeof o=="symbol"?o:o+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ko(e){return ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ko(e)}function R_(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&To(e,n)}function Cc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cc=function(){return!!e})()}function s8(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,r)}return t}function i8(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?s8(Object(t),!0).forEach(function(r){W_(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s8(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function G_(e,n){if(e==null)return{};var t,r,o=function(s,i){if(s==null)return{};var u={};for(var d in s)if({}.hasOwnProperty.call(s,d)){if(i.includes(d))continue;u[d]=s[d]}return u}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.includes(t)||{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function To(e,n){return To=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},To(e,n)}function wc(e){var n=typeof Map=="function"?new Map:void 0;return wc=function(t){if(t===null||!function(o){try{return Function.toString.call(o).indexOf("[native code]")!==-1}catch{return typeof o=="function"}}(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(n!==void 0){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return function(o,a,s){if(Cc())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,a);var u=new(o.bind.apply(o,i));return s&&To(u,s.prototype),u}(t,arguments,ko(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),To(r,t)},wc(e)}var Do=function(e){function n(t){var r;return o8(this,n),(r=Z_(this,n,[t])).name="SyntheticChangeError",r}return R_(n,e),a8(n)}(wc(Error)),l8,j_=["options"],c8=["text","email","tel","search","url"],u8=a8(function e(n){var t=n.init,r=n.tracking;o8(this,e);var o=new WeakMap;this.register=function(a){var s;if(c8.includes(a.type)){var i=(s=a._wrapperState)!==null&&s!==void 0?s:{},u=i.initialValue,d=u===void 0?"":u,f=i.controlled,h=f!==void 0&&f,g=t({initialValue:a.value||d,controlled:h}),m=g.value,C=g.options,p={value:m,options:C,fallbackOptions:C},v={id:-1,cachedId:-1},w={value:"",selectionStart:0,selectionEnd:0},y=Object.getOwnPropertyDescriptor("_valueTracker"in a?a:HTMLInputElement.prototype,"value");Object.defineProperty(a,"value",i8(i8({},y),{},{set:function(L){var E;w.value=L,y==null||(E=y.set)===null||E===void 0||E.call(a,L)}})),a.value=m;var b=function(){var L=function(){var E,I;w.selectionStart=(E=a.selectionStart)!==null&&E!==void 0?E:0,w.selectionEnd=(I=a.selectionEnd)!==null&&I!==void 0?I:0,v.id=window.setTimeout(L)};v.id=window.setTimeout(L)},S=function(){window.clearTimeout(v.id),v.id=-1,v.cachedId=-1},M=function(L){try{var E,I;if(v.cachedId===v.id)throw new Do("The input selection has not been updated.");v.cachedId=v.id;var k=a.value,O=a.selectionStart,A=a.selectionEnd;if(O===null||A===null)throw new Do("The selection attributes have not been initialized.");var V,Y=w.value;if(L.inputType===void 0&&(w.selectionStart=0,w.selectionEnd=Y.length),O>w.selectionStart?V="insert":O<=w.selectionStart&&O<w.selectionEnd?V="deleteBackward":O===w.selectionEnd&&k.length<Y.length&&(V="deleteForward"),V===void 0||(V==="deleteBackward"||V==="deleteForward")&&k.length>Y.length)throw new Do("Input type detection error.");var $="",U=w.selectionStart,T=w.selectionEnd;if(V==="insert")$=k.slice(w.selectionStart,O);else{var W=Y.length-k.length;U=O,T=O+W}p.value!==Y?p.options=p.fallbackOptions:p.fallbackOptions=p.options;var P=p.options,z=r({inputType:V,previousValue:Y,previousOptions:P,value:k,addedValue:$,changeStart:U,changeEnd:T,selectionStart:O,selectionEnd:A}),q=z.options,K=G_(z,j_);a.value=K.value,a.setSelectionRange(K.selectionStart,K.selectionEnd),p.value=K.value,p.options=q,w.selectionStart=K.selectionStart,w.selectionEnd=K.selectionEnd,(E=a._valueTracker)===null||E===void 0||(I=E.setValue)===null||I===void 0||I.call(E,Y)}catch(Z){if(a.value=w.value,a.setSelectionRange(w.selectionStart,w.selectionEnd),L.preventDefault(),L.stopPropagation(),Z.name!=="SyntheticChangeError")throw Z}};document.activeElement===a&&b(),a.addEventListener("focus",b),a.addEventListener("blur",S),a.addEventListener("input",M),o.set(a,{onFocus:b,onBlur:S,onInput:M})}else process.env.NODE_ENV!=="production"&&console.warn("Warn: The input element type does not match one of the types: ".concat(c8.join(", "),"."))},this.unregister=function(a){var s=o.get(a);s!==void 0&&(a.removeEventListener("focus",s.onFocus),a.removeEventListener("blur",s.onBlur),a.removeEventListener("input",s.onInput),o.delete(a))}});l8=u8,Object.defineProperty(l8.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Input"});var yc=function(e){return function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return new e("".concat(t.join(`
|
|
138
138
|
|
|
139
139
|
`),`
|
|
140
|
-
`))}},d8,Y_=["track","modify"];function kr(e){var n,t,r,o;return{mask:(n=e.mask)!==null&&n!==void 0?n:"",replacement:typeof e.replacement=="string"?Ir(e.replacement):(t=e.replacement)!==null&&t!==void 0?t:{},showMask:(r=e.showMask)!==null&&r!==void 0&&r,separate:(o=e.separate)!==null&&o!==void 0&&o,track:e.track,modify:e.modify}}var f8=function(e){function n(){var t,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return D_(this,n),(t=T_(this,n,[{init:function(o){var a=o.initialValue,s=o.controlled,i=kr(r),u=i.mask,d=i.replacement,f=i.separate,h=i.showMask;return a=s||a?a:h?u:"",process.env.NODE_ENV!=="production"&&function(g){var m=g.initialValue,C=g.mask,p=g.replacement;m.length>C.length&&console.error(yc(Error)("The initialized value of the `value` or `defaultValue` property is longer than the value specified in the `mask` property. Check the correctness of the initialized value in the specified property.",'Invalid value: "'.concat(m,'".'),"To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));var v=Object.keys(p).filter(function(M){return M.length>1});v.length>0&&console.error(yc(Error)("Object keys in the `replacement` property are longer than one character. Replacement keys must be one character long. Check the correctness of the value in the specified property.","Invalid keys: ".concat(v.join(", "),"."),"To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));for(var w=C.slice(0,m.length),y=-1,b=0;b<w.length;b++){var S=Object.prototype.hasOwnProperty.call(p,w[b]);if(!(w[b]===m[b]||S&&p[w[b]].test(m[b]))){y=b;break}}y!==-1&&console.error(yc(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(y,"). Check the correctness of the initialized value in the specified property."),'Invalid value: "'.concat(m,'".'),"To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."))}({initialValue:a,mask:u,replacement:d}),{value:a,options:{mask:u,replacement:d,separate:f}}},tracking:function(o){var a=o.inputType,s=o.previousValue,i=o.previousOptions,u=o.addedValue,d=o.changeStart,f=o.changeEnd,h=kr(r),g=h.track,m=h.modify,C=H_(h,Y_),p=C.mask,v=C.replacement,w=C.showMask,y=C.separate,b=Is(Is({},a==="insert"?{inputType:a,data:u}:{inputType:a,data:null}),{},{value:s,selectionStart:d,selectionEnd:f}),S=g==null?void 0:g(b);if(S===!1)throw new Do("Custom tracking stop.");S===null?u="":S!==!0&&S!==void 0&&(u=S);var M=m==null?void 0:m(b);(M==null?void 0:M.mask)!==void 0&&(p=M.mask),(M==null?void 0:M.replacement)!==void 0&&(v=typeof(M==null?void 0:M.replacement)=="string"?Ir(M==null?void 0:M.replacement):M.replacement),(M==null?void 0:M.showMask)!==void 0&&(w=M.showMask),(M==null?void 0:M.separate)!==void 0&&(y=M.separate);var L=vc(s,Is({end:d},i)),E=vc(s,Is({start:f},i)),I=RegExp("[^".concat(Object.keys(v).join(""),"]"),"g"),k=p.replace(I,"");if(L&&(L=Io(L,{replacementChars:k,replacement:v,separate:y}),k=k.slice(L.length)),u&&(u=Io(u,{replacementChars:k,replacement:v,separate:!1}),k=k.slice(u.length)),a==="insert"&&u==="")throw new Do("The character does not match the key value of the `replacement` object.");if(y){var O=p.slice(d,f).replace(I,""),H=O.length-u.length;H<0?E=E.slice(-H):H>0&&(E=O.slice(-H)+E)}E&&(E=Io(E,{replacementChars:k,replacement:v,separate:y}));var V=e8(L+u+E,{mask:p,replacement:v,separate:y,showMask:w}),Y=function($){var U,T,W,P=$.inputType,z=$.value,q=$.addedValue,K=$.beforeChangeValue,Z=$.mask,A=$.replacement,_=$.separate,B=t8(z,{mask:Z,replacement:A}).filter(function(re){var te=re.type;return te==="input"||_&&te==="replacement"}),G=(U=B[K.length+q.length-1])===null||U===void 0?void 0:U.index,F=(T=B[K.length-1])===null||T===void 0?void 0:T.index,R=(W=B[K.length+q.length])===null||W===void 0?void 0:W.index;if(P==="insert"){if(G!==void 0)return G+1;if(R!==void 0)return R;if(F!==void 0)return F+1}if(P==="deleteForward"){if(R!==void 0)return R;if(F!==void 0)return F+1}if(P==="deleteBackward"){if(F!==void 0)return F+1;if(R!==void 0)return R}var Q=z.split("").findIndex(function(re){return Object.prototype.hasOwnProperty.call(A,re)});return Q!==-1?Q:z.length}({inputType:a,value:V,addedValue:u,beforeChangeValue:L,mask:p,replacement:v,separate:y});return{value:V,selectionStart:Y,selectionEnd:Y,options:{mask:p,replacement:v,separate:y}}}}])).format=function(o){return n8(o,kr(r))},t.formatToParts=function(o){return F_(o,kr(r))},t.unformat=function(o){return A_(o,kr(r))},t.generatePattern=function(o){return z_(o,kr(r))},t}return V_(n,u8),O_(n)}();d8=f8,Object.defineProperty(d8.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Mask"});function U_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.mask,t=e.replacement,r=e.showMask,o=e.separate,a=e.track,s=e.modify,i=D.useRef(null),u=D.useRef({mask:n,replacement:t,showMask:r,separate:o,track:a,modify:s});return u.current.mask=n,u.current.replacement=t,u.current.showMask=r,u.current.separate=o,u.current.track=a,u.current.modify=s,D.useMemo(function(){return B_(i,new f8(u.current))},[])}const h8=(...e)=>D.useCallback(n=>{e.forEach(t=>{t&&(typeof t=="function"?t(n):t.current=n)})},e),bc=e=>{if(typeof e!="string")return null;const n=e.match(/^([01]\d|2[0-3]):([0-5]\d)$/);return n?Number(n[1])*60+Number(n[2]):null},g8=e=>{const n=Math.floor(e/60),t=e%60;return`${n.toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`},xc=(e,{min:n,max:t}={})=>{const r=bc(e);if(r==null)return e;const o=bc(n),a=bc(t);return o!=null&&r<o?g8(o):a!=null&&r>a?g8(a):e},p8="--:--",m8=l.forwardRef(({value:e,onChange:n,onBlur:t,placeholder:r,className:o,disabled:a,readOnly:s,min:i,max:u,showMask:d=!0,...f},h)=>{const[g,m]=l.useState(!1),C=!a&&!s,p=U_({mask:p8,replacement:{"-":/\d/},showMask:d}),v=h8(h,p),w=O=>{if(!O)return"";const H=O.replace(/\D/g,"").slice(0,4);if(!H)return"";const V=H.slice(0,2).padStart(2,"0"),Y=H.slice(2,4).padStart(2,"0");return`${V}:${Y}`},[y,b]=l.useState(w(e));l.useEffect(()=>{b(w(e))},[e]);const S=O=>{const H=Math.min(23,parseInt(O.slice(0,2),10)||0),V=Math.min(59,parseInt(O.slice(2,4),10)||0);return`${H.toString().padStart(2,"0")}:${V.toString().padStart(2,"0")}`},M=O=>{const H=O.target.value;b(H);const V=H.replace(/\D/g,"");if(V.length===4){const Y=xc(S(V),{min:i,max:u});n==null||n(Y)}},L=O=>{const H=y.replace(/\D/g,"");if(H.length===0){b(""),n==null||n("");return}const V=H.padEnd(4,"0").slice(0,4),Y=xc(S(V),{min:i,max:u});Y!==y&&(b(Y),n==null||n(Y)),t&&t(O)},E=(O,H)=>{if(!C)return;const V=xc(`${O.padStart(2,"0")}:${H.padStart(2,"0")}`,{min:i,max:u});b(V),n==null||n(V)},[I="",k=""]=y.split(":");return c.jsx("div",{className:N("relative",o),children:c.jsxs(zn,{open:C?g:!1,onOpenChange:O=>{C&&m(O)},children:[c.jsx(tn,{...f,ref:v,value:y,onChange:M,onBlur:L,placeholder:r??(d?p8:void 0),disabled:a,readOnly:s,min:i,max:u,className:"pr-10",type:"text"}),c.jsx(Bn,{asChild:!0,children:c.jsx("div",{className:N("absolute right-3 top-1/2 -translate-y-1/2 z-10",C?"cursor-pointer":"cursor-default pointer-events-none"),children:c.jsx(K9,{className:"text-icon-fade-contrast min-w-6 h-6"})})}),c.jsx(Sn,{align:"end",sideOffset:5,collisionPadding:8,className:"bg-background-primary w-full p-2 min-w-[120px] translate-x-3",onOpenAutoFocus:O=>O.preventDefault(),children:c.jsxs("div",{className:"flex gap-2 w-full items-center justify-center",children:[c.jsx(v8,{items:Array.from({length:24},(O,H)=>H.toString().padStart(2,"0")),value:I,onSelect:O=>E(O,k)}),c.jsx(v8,{items:Array.from({length:60},(O,H)=>H.toString().padStart(2,"0")),value:k,onSelect:O=>E(I,O)})]})})]})})});m8.displayName="TimePicker";const v8=({items:e,value:n,onSelect:t})=>{const r=l.useRef(null);return l.useEffect(()=>{const o=r.current;if(!o)return;const a=s=>{s.preventDefault(),o.scrollTop+=s.deltaY};return o.addEventListener("wheel",a),()=>o.removeEventListener("wheel",a)},[]),l.useEffect(()=>{if(r.current&&n){const o=e.findIndex(a=>a===n);o>-1&&(r.current.scrollTop=o*32)}},[e,n]),c.jsx("div",{className:"flex flex-col items-center flex-1",children:c.jsx("div",{ref:r,className:"h-48 overflow-y-auto w-full scroll-smooth [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:e.map(o=>c.jsx("div",{className:N("py-1 text-center cursor-pointer transition-colors hover:bg-background-secondary rounded-lg",o===n&&"bg-background-theme text-foreground-on-contrast hover:bg-background-theme/80"),onClick:()=>t(o),children:o},o))})})};function q_(e){return Object.prototype.toString.call(e)==="[object Object]"}function C8(e){return q_(e)||Array.isArray(e)}function K_(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Sc(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(n.breakpoints||{}));return o!==a?!1:t.every(s=>{const i=e[s],u=n[s];return typeof i=="function"?`${i}`==`${u}`:!C8(i)||!C8(u)?i===u:Sc(i,u)})}function w8(e){return e.concat().sort((n,t)=>n.name>t.name?1:-1).map(n=>n.options)}function X_(e,n){if(e.length!==n.length)return!1;const t=w8(e),r=w8(n);return t.every((o,a)=>{const s=r[a];return Sc(o,s)})}function Ec(e){return typeof e=="number"}function Mc(e){return typeof e=="string"}function ks(e){return typeof e=="boolean"}function y8(e){return Object.prototype.toString.call(e)==="[object Object]"}function ze(e){return Math.abs(e)}function Lc(e){return Math.sign(e)}function Oo(e,n){return ze(e-n)}function Q_(e,n){if(e===0||n===0||ze(e)<=ze(n))return 0;const t=Oo(ze(e),ze(n));return ze(t/e)}function J_(e){return Math.round(e*100)/100}function Vo(e){return Ao(e).map(Number)}function Tt(e){return e[Ho(e)]}function Ho(e){return Math.max(0,e.length-1)}function Nc(e,n){return n===Ho(e)}function b8(e,n=0){return Array.from(Array(e),(t,r)=>n+r)}function Ao(e){return Object.keys(e)}function x8(e,n){return[e,n].reduce((t,r)=>(Ao(r).forEach(o=>{const a=t[o],s=r[o],i=y8(a)&&y8(s);t[o]=i?x8(a,s):s}),t),{})}function Pc(e,n){return typeof n.MouseEvent<"u"&&e instanceof n.MouseEvent}function eI(e,n){const t={start:r,center:o,end:a};function r(){return 0}function o(u){return a(u)/2}function a(u){return n-u}function s(u,d){return Mc(e)?t[e](u):e(n,u,d)}return{measure:s}}function Fo(){let e=[];function n(o,a,s,i={passive:!0}){let u;if("addEventListener"in o)o.addEventListener(a,s,i),u=()=>o.removeEventListener(a,s,i);else{const d=o;d.addListener(s),u=()=>d.removeListener(s)}return e.push(u),r}function t(){e=e.filter(o=>o())}const r={add:n,clear:t};return r}function tI(e,n,t,r){const o=Fo(),a=1e3/60;let s=null,i=0,u=0;function d(){o.add(e,"visibilitychange",()=>{e.hidden&&C()})}function f(){m(),o.clear()}function h(v){if(!u)return;s||(s=v,t(),t());const w=v-s;for(s=v,i+=w;i>=a;)t(),i-=a;const y=i/a;r(y),u&&(u=n.requestAnimationFrame(h))}function g(){u||(u=n.requestAnimationFrame(h))}function m(){n.cancelAnimationFrame(u),s=null,i=0,u=0}function C(){s=null,i=0}return{init:d,destroy:f,start:g,stop:m,update:t,render:r}}function nI(e,n){const t=n==="rtl",r=e==="y",o=r?"y":"x",a=r?"x":"y",s=!r&&t?-1:1,i=f(),u=h();function d(C){const{height:p,width:v}=C;return r?p:v}function f(){return r?"top":t?"right":"left"}function h(){return r?"bottom":t?"left":"right"}function g(C){return C*s}return{scroll:o,cross:a,startEdge:i,endEdge:u,measureSize:d,direction:g}}function Kn(e=0,n=0){const t=ze(e-n);function r(d){return d<e}function o(d){return d>n}function a(d){return r(d)||o(d)}function s(d){return a(d)?r(d)?e:n:d}function i(d){return t?d-t*Math.ceil((d-n)/t):d}return{length:t,max:n,min:e,constrain:s,reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:i}}function S8(e,n,t){const{constrain:r}=Kn(0,e),o=e+1;let a=s(n);function s(g){return t?ze((o+g)%o):r(g)}function i(){return a}function u(g){return a=s(g),h}function d(g){return f().set(i()+g)}function f(){return S8(e,i(),t)}const h={get:i,set:u,add:d,clone:f};return h}function rI(e,n,t,r,o,a,s,i,u,d,f,h,g,m,C,p,v,w,y){const{cross:b,direction:S}=e,M=["INPUT","SELECT","TEXTAREA"],L={passive:!1},E=Fo(),I=Fo(),k=Kn(50,225).constrain(m.measure(20)),O={mouse:300,touch:400},H={mouse:500,touch:600},V=C?43:25;let Y=!1,$=0,U=0,T=!1,W=!1,P=!1,z=!1;function q(j){if(!y)return;function ee(le){(ks(y)||y(j,le))&&G(le)}const ie=n;E.add(ie,"dragstart",le=>le.preventDefault(),L).add(ie,"touchmove",()=>{},L).add(ie,"touchend",()=>{}).add(ie,"touchstart",ee).add(ie,"mousedown",ee).add(ie,"touchcancel",R).add(ie,"contextmenu",R).add(ie,"click",Q,!0)}function K(){E.clear(),I.clear()}function Z(){const j=z?t:n;I.add(j,"touchmove",F,L).add(j,"touchend",R).add(j,"mousemove",F,L).add(j,"mouseup",R)}function A(j){const ee=j.nodeName||"";return M.includes(ee)}function _(){return(C?H:O)[z?"mouse":"touch"]}function B(j,ee){const ie=h.add(Lc(j)*-1),le=f.byDistance(j,!C).distance;return C||ze(j)<k?le:v&&ee?le*.5:f.byIndex(ie.get(),0).distance}function G(j){const ee=Pc(j,r);z=ee,P=C&&ee&&!j.buttons&&Y,Y=Oo(o.get(),s.get())>=2,!(ee&&j.button!==0)&&(A(j.target)||(T=!0,a.pointerDown(j),d.useFriction(0).useDuration(0),o.set(s),Z(),$=a.readPoint(j),U=a.readPoint(j,b),g.emit("pointerDown")))}function F(j){if(!Pc(j,r)&&j.touches.length>=2)return R(j);const ie=a.readPoint(j),le=a.readPoint(j,b),we=Oo(ie,$),Te=Oo(le,U);if(!W&&!z&&(!j.cancelable||(W=we>Te,!W)))return R(j);const xe=a.pointerMove(j);we>p&&(P=!0),d.useFriction(.3).useDuration(.75),i.start(),o.add(S(xe)),j.preventDefault()}function R(j){const ie=f.byDistance(0,!1).index!==h.get(),le=a.pointerUp(j)*_(),we=B(S(le),ie),Te=Q_(le,we),xe=V-10*Te,Pe=w+Te/50;W=!1,T=!1,I.clear(),d.useDuration(xe).useFriction(Pe),u.distance(we,!C),z=!1,g.emit("pointerUp")}function Q(j){P&&(j.stopPropagation(),j.preventDefault(),P=!1)}function re(){return T}return{init:q,destroy:K,pointerDown:re}}function oI(e,n){let r,o;function a(h){return h.timeStamp}function s(h,g){const C=`client${(g||e.scroll)==="x"?"X":"Y"}`;return(Pc(h,n)?h:h.touches[0])[C]}function i(h){return r=h,o=h,s(h)}function u(h){const g=s(h)-s(o),m=a(h)-a(r)>170;return o=h,m&&(r=h),g}function d(h){if(!r||!o)return 0;const g=s(o)-s(r),m=a(h)-a(r),C=a(h)-a(o)>170,p=g/m;return m&&!C&&ze(p)>.1?p:0}return{pointerDown:i,pointerMove:u,pointerUp:d,readPoint:s}}function aI(){function e(t){const{offsetTop:r,offsetLeft:o,offsetWidth:a,offsetHeight:s}=t;return{top:r,right:o+a,bottom:r+s,left:o,width:a,height:s}}return{measure:e}}function sI(e){function n(r){return e*(r/100)}return{measure:n}}function iI(e,n,t,r,o,a,s){const i=[e].concat(r);let u,d,f=[],h=!1;function g(v){return o.measureSize(s.measure(v))}function m(v){if(!a)return;d=g(e),f=r.map(g);function w(y){for(const b of y){if(h)return;const S=b.target===e,M=r.indexOf(b.target),L=S?d:f[M],E=g(S?e:r[M]);if(ze(E-L)>=.5){v.reInit(),n.emit("resize");break}}}u=new ResizeObserver(y=>{(ks(a)||a(v,y))&&w(y)}),t.requestAnimationFrame(()=>{i.forEach(y=>u.observe(y))})}function C(){h=!0,u&&u.disconnect()}return{init:m,destroy:C}}function lI(e,n,t,r,o,a){let s=0,i=0,u=o,d=a,f=e.get(),h=0;function g(){const L=r.get()-e.get(),E=!u;let I=0;return E?(s=0,t.set(r),e.set(r),I=L):(t.set(e),s+=L/u,s*=d,f+=s,e.add(s),I=f-h),i=Lc(I),h=f,M}function m(){const L=r.get()-n.get();return ze(L)<.001}function C(){return u}function p(){return i}function v(){return s}function w(){return b(o)}function y(){return S(a)}function b(L){return u=L,M}function S(L){return d=L,M}const M={direction:p,duration:C,velocity:v,seek:g,settled:m,useBaseFriction:y,useBaseDuration:w,useFriction:S,useDuration:b};return M}function cI(e,n,t,r,o){const a=o.measure(10),s=o.measure(50),i=Kn(.1,.99);let u=!1;function d(){return!(u||!e.reachedAny(t.get())||!e.reachedAny(n.get()))}function f(m){if(!d())return;const C=e.reachedMin(n.get())?"min":"max",p=ze(e[C]-n.get()),v=t.get()-n.get(),w=i.constrain(p/s);t.subtract(v*w),!m&&ze(v)<a&&(t.set(e.constrain(t.get())),r.useDuration(25).useBaseFriction())}function h(m){u=!m}return{shouldConstrain:d,constrain:f,toggleActive:h}}function uI(e,n,t,r,o){const a=Kn(-n+e,0),s=h(),i=f(),u=g();function d(C,p){return Oo(C,p)<=1}function f(){const C=s[0],p=Tt(s),v=s.lastIndexOf(C),w=s.indexOf(p)+1;return Kn(v,w)}function h(){return t.map((C,p)=>{const{min:v,max:w}=a,y=a.constrain(C),b=!p,S=Nc(t,p);return b?w:S||d(v,y)?v:d(w,y)?w:y}).map(C=>parseFloat(C.toFixed(3)))}function g(){if(n<=e+o)return[a.max];if(r==="keepSnaps")return s;const{min:C,max:p}=i;return s.slice(C,p)}return{snapsContained:u,scrollContainLimit:i}}function dI(e,n,t){const r=n[0],o=t?r-e:Tt(n);return{limit:Kn(o,r)}}function fI(e,n,t,r){const a=n.min+.1,s=n.max+.1,{reachedMin:i,reachedMax:u}=Kn(a,s);function d(g){return g===1?u(t.get()):g===-1?i(t.get()):!1}function f(g){if(!d(g))return;const m=e*(g*-1);r.forEach(C=>C.add(m))}return{loop:f}}function hI(e){const{max:n,length:t}=e;function r(a){const s=a-n;return t?s/-t:0}return{get:r}}function gI(e,n,t,r,o){const{startEdge:a,endEdge:s}=e,{groupSlides:i}=o,u=h().map(n.measure),d=g(),f=m();function h(){return i(r).map(p=>Tt(p)[s]-p[0][a]).map(ze)}function g(){return r.map(p=>t[a]-p[a]).map(p=>-ze(p))}function m(){return i(d).map(p=>p[0]).map((p,v)=>p+u[v])}return{snaps:d,snapsAligned:f}}function pI(e,n,t,r,o,a){const{groupSlides:s}=o,{min:i,max:u}=r,d=f();function f(){const g=s(a),m=!e||n==="keepSnaps";return t.length===1?[a]:m?g:g.slice(i,u).map((C,p,v)=>{const w=!p,y=Nc(v,p);if(w){const b=Tt(v[0])+1;return b8(b)}if(y){const b=Ho(a)-Tt(v)[0]+1;return b8(b,Tt(v)[0])}return C})}return{slideRegistry:d}}function mI(e,n,t,r,o){const{reachedAny:a,removeOffset:s,constrain:i}=r;function u(C){return C.concat().sort((p,v)=>ze(p)-ze(v))[0]}function d(C){const p=e?s(C):i(C),v=n.map((y,b)=>({diff:f(y-p,0),index:b})).sort((y,b)=>ze(y.diff)-ze(b.diff)),{index:w}=v[0];return{index:w,distance:p}}function f(C,p){const v=[C,C+t,C-t];if(!e)return C;if(!p)return u(v);const w=v.filter(y=>Lc(y)===p);return w.length?u(w):Tt(v)-t}function h(C,p){const v=n[C]-o.get(),w=f(v,p);return{index:C,distance:w}}function g(C,p){const v=o.get()+C,{index:w,distance:y}=d(v),b=!e&&a(v);if(!p||b)return{index:w,distance:C};const S=n[w]-y,M=C+f(S,0);return{index:w,distance:M}}return{byDistance:g,byIndex:h,shortcut:f}}function vI(e,n,t,r,o,a,s){function i(h){const g=h.distance,m=h.index!==n.get();a.add(g),g&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(t.set(n.get()),n.set(h.index),s.emit("select"))}function u(h,g){const m=o.byDistance(h,g);i(m)}function d(h,g){const m=n.clone().set(h),C=o.byIndex(m.get(),g);i(C)}return{distance:u,index:d}}function CI(e,n,t,r,o,a,s,i){const u={passive:!0,capture:!0};let d=0;function f(m){if(!i)return;function C(p){if(new Date().getTime()-d>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;const y=t.findIndex(b=>b.includes(p));Ec(y)&&(o.useDuration(0),r.index(y,0),s.emit("slideFocus"))}a.add(document,"keydown",h,!1),n.forEach((p,v)=>{a.add(p,"focus",w=>{(ks(i)||i(m,w))&&C(v)},u)})}function h(m){m.code==="Tab"&&(d=new Date().getTime())}return{init:f}}function $o(e){let n=e;function t(){return n}function r(u){n=s(u)}function o(u){n+=s(u)}function a(u){n-=s(u)}function s(u){return Ec(u)?u:u.get()}return{get:t,set:r,add:o,subtract:a}}function E8(e,n){const t=e.scroll==="x"?s:i,r=n.style;let o=null,a=!1;function s(g){return`translate3d(${g}px,0px,0px)`}function i(g){return`translate3d(0px,${g}px,0px)`}function u(g){if(a)return;const m=J_(e.direction(g));m!==o&&(r.transform=t(m),o=m)}function d(g){a=!g}function f(){a||(r.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:f,to:u,toggleActive:d}}function wI(e,n,t,r,o,a,s,i,u){const f=Vo(o),h=Vo(o).reverse(),g=w().concat(y());function m(E,I){return E.reduce((k,O)=>k-o[O],I)}function C(E,I){return E.reduce((k,O)=>m(k,I)>0?k.concat([O]):k,[])}function p(E){return a.map((I,k)=>({start:I-r[k]+.5+E,end:I+n-.5+E}))}function v(E,I,k){const O=p(I);return E.map(H=>{const V=k?0:-t,Y=k?t:0,$=k?"end":"start",U=O[H][$];return{index:H,loopPoint:U,slideLocation:$o(-1),translate:E8(e,u[H]),target:()=>i.get()>U?V:Y}})}function w(){const E=s[0],I=C(h,E);return v(I,t,!1)}function y(){const E=n-s[0]-1,I=C(f,E);return v(I,-t,!0)}function b(){return g.every(({index:E})=>{const I=f.filter(k=>k!==E);return m(I,n)<=.1})}function S(){g.forEach(E=>{const{target:I,translate:k,slideLocation:O}=E,H=I();H!==O.get()&&(k.to(H),O.set(H))})}function M(){g.forEach(E=>E.translate.clear())}return{canLoop:b,clear:M,loop:S,loopPoints:g}}function yI(e,n,t){let r,o=!1;function a(u){if(!t)return;function d(f){for(const h of f)if(h.type==="childList"){u.reInit(),n.emit("slidesChanged");break}}r=new MutationObserver(f=>{o||(ks(t)||t(u,f))&&d(f)}),r.observe(e,{childList:!0})}function s(){r&&r.disconnect(),o=!0}return{init:a,destroy:s}}function bI(e,n,t,r){const o={};let a=null,s=null,i,u=!1;function d(){i=new IntersectionObserver(C=>{u||(C.forEach(p=>{const v=n.indexOf(p.target);o[v]=p}),a=null,s=null,t.emit("slidesInView"))},{root:e.parentElement,threshold:r}),n.forEach(C=>i.observe(C))}function f(){i&&i.disconnect(),u=!0}function h(C){return Ao(o).reduce((p,v)=>{const w=parseInt(v),{isIntersecting:y}=o[w];return(C&&y||!C&&!y)&&p.push(w),p},[])}function g(C=!0){if(C&&a)return a;if(!C&&s)return s;const p=h(C);return C&&(a=p),C||(s=p),p}return{init:d,destroy:f,get:g}}function xI(e,n,t,r,o,a){const{measureSize:s,startEdge:i,endEdge:u}=e,d=t[0]&&o,f=C(),h=p(),g=t.map(s),m=v();function C(){if(!d)return 0;const y=t[0];return ze(n[i]-y[i])}function p(){if(!d)return 0;const y=a.getComputedStyle(Tt(r));return parseFloat(y.getPropertyValue(`margin-${u}`))}function v(){return t.map((y,b,S)=>{const M=!b,L=Nc(S,b);return M?g[b]+f:L?g[b]+h:S[b+1][i]-y[i]}).map(ze)}return{slideSizes:g,slideSizesWithGaps:m,startGap:f,endGap:h}}function SI(e,n,t,r,o,a,s,i,u){const{startEdge:d,endEdge:f,direction:h}=e,g=Ec(t);function m(w,y){return Vo(w).filter(b=>b%y===0).map(b=>w.slice(b,b+y))}function C(w){return w.length?Vo(w).reduce((y,b,S)=>{const M=Tt(y)||0,L=M===0,E=b===Ho(w),I=o[d]-a[M][d],k=o[d]-a[b][f],O=!r&&L?h(s):0,H=!r&&E?h(i):0,V=ze(k-H-(I+O));return S&&V>n+u&&y.push(b),E&&y.push(w.length),y},[]).map((y,b,S)=>{const M=Math.max(S[b-1]||0);return w.slice(M,y)}):[]}function p(w){return g?m(w,t):C(w)}return{groupSlides:p}}function EI(e,n,t,r,o,a,s){const{align:i,axis:u,direction:d,startIndex:f,loop:h,duration:g,dragFree:m,dragThreshold:C,inViewThreshold:p,slidesToScroll:v,skipSnaps:w,containScroll:y,watchResize:b,watchSlides:S,watchDrag:M,watchFocus:L}=a,E=2,I=aI(),k=I.measure(n),O=t.map(I.measure),H=nI(u,d),V=H.measureSize(k),Y=sI(V),$=eI(i,V),U=!h&&!!y,T=h||!!y,{slideSizes:W,slideSizesWithGaps:P,startGap:z,endGap:q}=xI(H,k,O,t,T,o),K=SI(H,V,v,h,k,O,z,q,E),{snaps:Z,snapsAligned:A}=gI(H,$,k,O,K),_=-Tt(Z)+Tt(P),{snapsContained:B,scrollContainLimit:G}=uI(V,_,A,y,E),F=U?B:A,{limit:R}=dI(_,F,h),Q=S8(Ho(F),f,h),re=Q.clone(),te=Vo(t),j=({dragHandler:Se,scrollBody:Xe,scrollBounds:Qe,options:{loop:et}})=>{et||Qe.constrain(Se.pointerDown()),Xe.seek()},ee=({scrollBody:Se,translate:Xe,location:Qe,offsetLocation:et,previousLocation:wt,scrollLooper:ut,slideLooper:J,dragHandler:ce,animation:Ee,eventHandler:Me,scrollBounds:ke,options:{loop:Fe}},_e)=>{const Ae=Se.settled(),on=!ke.shouldConstrain(),Xn=Fe?Ae:Ae&&on,zc=Xn&&!ce.pointerDown();zc&&Ee.stop();const hk=Qe.get()*_e+wt.get()*(1-_e);et.set(hk),Fe&&(ut.loop(Se.direction()),J.loop()),Xe.to(et.get()),zc&&Me.emit("settle"),Xn||Me.emit("scroll")},ie=tI(r,o,()=>j(je),Se=>ee(je,Se)),le=.68,we=F[Q.get()],Te=$o(we),xe=$o(we),Pe=$o(we),Be=$o(we),Je=lI(Te,Pe,xe,Be,g,le),ct=mI(h,F,_,R,Be),X=vI(ie,Q,re,Je,ct,Be,s),se=hI(R),pe=Fo(),ge=bI(n,t,s,p),{slideRegistry:be}=pI(U,y,F,G,K,te),Le=CI(e,t,be,X,Je,pe,s,L),je={ownerDocument:r,ownerWindow:o,eventHandler:s,containerRect:k,slideRects:O,animation:ie,axis:H,dragHandler:rI(H,e,r,o,Be,oI(H,o),Te,ie,X,Je,ct,Q,s,Y,m,C,w,le,M),eventStore:pe,percentOfView:Y,index:Q,indexPrevious:re,limit:R,location:Te,offsetLocation:Pe,previousLocation:xe,options:a,resizeHandler:iI(n,s,o,t,H,b,I),scrollBody:Je,scrollBounds:cI(R,Pe,Be,Je,Y),scrollLooper:fI(_,R,Pe,[Te,Pe,xe,Be]),scrollProgress:se,scrollSnapList:F.map(se.get),scrollSnaps:F,scrollTarget:ct,scrollTo:X,slideLooper:wI(H,V,_,W,P,Z,F,Pe,t),slideFocus:Le,slidesHandler:yI(n,s,S),slidesInView:ge,slideIndexes:te,slideRegistry:be,slidesToScroll:K,target:Be,translate:E8(H,n)};return je}function MI(){let e={},n;function t(d){n=d}function r(d){return e[d]||[]}function o(d){return r(d).forEach(f=>f(n,d)),u}function a(d,f){return e[d]=r(d).concat([f]),u}function s(d,f){return e[d]=r(d).filter(h=>h!==f),u}function i(){e={}}const u={init:t,emit:o,off:s,on:a,clear:i};return u}const LI={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function NI(e){function n(a,s){return x8(a,s||{})}function t(a){const s=a.breakpoints||{},i=Ao(s).filter(u=>e.matchMedia(u).matches).map(u=>s[u]).reduce((u,d)=>n(u,d),{});return n(a,i)}function r(a){return a.map(s=>Ao(s.breakpoints||{})).reduce((s,i)=>s.concat(i),[]).map(e.matchMedia)}return{mergeOptions:n,optionsAtMedia:t,optionsMediaQueries:r}}function PI(e){let n=[];function t(a,s){return n=s.filter(({options:i})=>e.optionsAtMedia(i).active!==!1),n.forEach(i=>i.init(a,e)),s.reduce((i,u)=>Object.assign(i,{[u.name]:u}),{})}function r(){n=n.filter(a=>a.destroy())}return{init:t,destroy:r}}function Ts(e,n,t){const r=e.ownerDocument,o=r.defaultView,a=NI(o),s=PI(a),i=Fo(),u=MI(),{mergeOptions:d,optionsAtMedia:f,optionsMediaQueries:h}=a,{on:g,off:m,emit:C}=u,p=H;let v=!1,w,y=d(LI,Ts.globalOptions),b=d(y),S=[],M,L,E;function I(){const{container:te,slides:j}=b;L=(Mc(te)?e.querySelector(te):te)||e.children[0];const ie=Mc(j)?L.querySelectorAll(j):j;E=[].slice.call(ie||L.children)}function k(te){const j=EI(e,L,E,r,o,te,u);if(te.loop&&!j.slideLooper.canLoop()){const ee=Object.assign({},te,{loop:!1});return k(ee)}return j}function O(te,j){v||(y=d(y,te),b=f(y),S=j||S,I(),w=k(b),h([y,...S.map(({options:ee})=>ee)]).forEach(ee=>i.add(ee,"change",H)),b.active&&(w.translate.to(w.location.get()),w.animation.init(),w.slidesInView.init(),w.slideFocus.init(re),w.eventHandler.init(re),w.resizeHandler.init(re),w.slidesHandler.init(re),w.options.loop&&w.slideLooper.loop(),L.offsetParent&&E.length&&w.dragHandler.init(re),M=s.init(re,S)))}function H(te,j){const ee=K();V(),O(d({startIndex:ee},te),j),u.emit("reInit")}function V(){w.dragHandler.destroy(),w.eventStore.clear(),w.translate.clear(),w.slideLooper.clear(),w.resizeHandler.destroy(),w.slidesHandler.destroy(),w.slidesInView.destroy(),w.animation.destroy(),s.destroy(),i.clear()}function Y(){v||(v=!0,i.clear(),V(),u.emit("destroy"),u.clear())}function $(te,j,ee){!b.active||v||(w.scrollBody.useBaseFriction().useDuration(j===!0?0:b.duration),w.scrollTo.index(te,ee||0))}function U(te){const j=w.index.add(1).get();$(j,te,-1)}function T(te){const j=w.index.add(-1).get();$(j,te,1)}function W(){return w.index.add(1).get()!==K()}function P(){return w.index.add(-1).get()!==K()}function z(){return w.scrollSnapList}function q(){return w.scrollProgress.get(w.offsetLocation.get())}function K(){return w.index.get()}function Z(){return w.indexPrevious.get()}function A(){return w.slidesInView.get()}function _(){return w.slidesInView.get(!1)}function B(){return M}function G(){return w}function F(){return e}function R(){return L}function Q(){return E}const re={canScrollNext:W,canScrollPrev:P,containerNode:R,internalEngine:G,destroy:Y,off:m,on:g,emit:C,plugins:B,previousScrollSnap:Z,reInit:p,rootNode:F,scrollNext:U,scrollPrev:T,scrollProgress:q,scrollSnapList:z,scrollTo:$,selectedScrollSnap:K,slideNodes:Q,slidesInView:A,slidesNotInView:_};return O(n,t),setTimeout(()=>u.emit("init"),0),re}Ts.globalOptions=void 0;function _c(e={},n=[]){const t=D.useRef(e),r=D.useRef(n),[o,a]=D.useState(),[s,i]=D.useState(),u=D.useCallback(()=>{o&&o.reInit(t.current,r.current)},[o]);return D.useEffect(()=>{Sc(t.current,e)||(t.current=e,u())},[e,u]),D.useEffect(()=>{X_(r.current,n)||(r.current=n,u())},[n,u]),D.useEffect(()=>{if(K_()&&s){Ts.globalOptions=_c.globalOptions;const d=Ts(s,t.current,r.current);return a(d),()=>d.destroy()}else a(void 0)},[s,a]),[i,o]}_c.globalOptions=void 0;const M8=l.createContext(null),zo=()=>{const e=l.useContext(M8);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e},L8=({orientation:e="horizontal",opts:n,setApi:t,plugins:r,className:o,children:a,...s})=>{const[i,u]=_c({...n,axis:e==="horizontal"?"x":"y"},r),[d,f]=l.useState(!1),[h,g]=l.useState(!1),[m,C]=l.useState(0),p=l.useCallback(S=>{u==null||u.scrollTo(S)},[u]),v=l.useCallback(S=>{S&&(f(S.canScrollPrev()),g(S.canScrollNext()),C(S.selectedScrollSnap()))},[]),w=l.useCallback(()=>{u==null||u.scrollPrev()},[u]),y=l.useCallback(()=>{u==null||u.scrollNext()},[u]),b=l.useCallback(S=>{S.key==="ArrowLeft"?(S.preventDefault(),w()):S.key==="ArrowRight"&&(S.preventDefault(),y())},[w,y]);return l.useEffect(()=>{!u||!t||t(u)},[u,t]),l.useEffect(()=>{if(u)return v(u),u.on("reInit",v),u.on("select",v),()=>{u==null||u.off("select",v)}},[u,v]),c.jsx(M8.Provider,{value:{carouselRef:i,api:u,opts:n,orientation:e||((n==null?void 0:n.axis)==="y"?"vertical":"horizontal"),scrollPrev:w,scrollNext:y,canScrollPrev:d,canScrollNext:h,currentIndex:m,onThumbClick:p},children:c.jsx("div",{onKeyDownCapture:b,className:N("relative",o),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...s,children:a})})},N8=({className:e,...n})=>{const{carouselRef:t,orientation:r}=zo();return c.jsx("div",{ref:t,className:"overflow-hidden","data-slot":"carousel-content",children:c.jsx("div",{className:N("flex",r==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...n})})},P8=({className:e,...n})=>{const{orientation:t}=zo();return c.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:N("min-w-0 shrink-0 grow-0 basis-full",t==="horizontal"?"pl-4":"pt-4",e),...n})},_8=({className:e,variant:n="fade-contrast-outlined",size:t="icon",...r})=>{const{orientation:o,scrollPrev:a,canScrollPrev:s}=zo();return c.jsxs(Ze,{"data-slot":"carousel-previous",variant:n,size:t,className:N("absolute size-8",o==="horizontal"?"top-1/2 -left-4 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",!s&&"hidden",e),disabled:!s,onClick:a,...r,children:[c.jsx(ao,{}),c.jsx("span",{className:"sr-only",children:"Previous slide"})]})},I8=({className:e,variant:n="fade-contrast-outlined",size:t="icon",...r})=>{const{orientation:o,scrollNext:a,canScrollNext:s}=zo();return c.jsxs(Ze,{"data-slot":"carousel-next",variant:n,size:t,className:N("absolute size-8 ",o==="horizontal"?"top-1/2 -right-4 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",!s&&"hidden",e),disabled:!s,onClick:a,...r,children:[c.jsx(Vn,{}),c.jsx("span",{className:"sr-only",children:"Next slide"})]})},k8=({className:e,...n})=>c.jsx("div",{className:N("flex justify-center mt-4 space-x-2 overflow-x-auto w-full max-w-full",e),...n}),T8=({index:e,className:n,children:t,...r})=>{const{currentIndex:o,onThumbClick:a}=zo(),s=o===e;return c.jsx("button",{type:"button",onClick:()=>a(e),className:N("aspect-square w-16 h-16 transition-opacity duration-200",s?"opacity-100 ring-2 ring-primary":"opacity-60",n),"aria-current":s,...r,children:t})},_I=({items:e=[],getUrl:n,getId:t,classNameMainImage:r,classNameOtherImages:o})=>e.length?c.jsxs(L8,{children:[c.jsx(N8,{children:e.map(a=>c.jsx(P8,{children:c.jsx("img",{src:n(a),className:N("w-full h-[159px] object-cover rounded-md",r)})},t(a)))}),c.jsx(_8,{variant:"fade-contrast-outlined",className:"bg-background-primary top-1/3"}),c.jsx(I8,{variant:"fade-contrast-outlined",className:"bg-background-primary top-1/3"}),c.jsx(k8,{className:"justify-start mt-2",children:e.map((a,s)=>c.jsx(T8,{index:s,children:c.jsx("img",{src:n(a),className:N("object-cover rounded-md w-[65px] h-[48px]",o)})},t(a)))})]}):c.jsx(Z9,{className:"mx-auto text-icon-fade-contrast"});function II(e,n){return l.useReducer((t,r)=>n[t][r]??t,e)}var Ic="ScrollArea",[D8]=nt(Ic),[kI,bt]=D8(Ic),O8=l.forwardRef((e,n)=>{const{__scopeScrollArea:t,type:r="hover",dir:o,scrollHideDelay:a=600,...s}=e,[i,u]=l.useState(null),[d,f]=l.useState(null),[h,g]=l.useState(null),[m,C]=l.useState(null),[p,v]=l.useState(null),[w,y]=l.useState(0),[b,S]=l.useState(0),[M,L]=l.useState(!1),[E,I]=l.useState(!1),k=he(n,H=>u(H)),O=ar(o);return c.jsx(kI,{scope:t,type:r,dir:O,scrollHideDelay:a,scrollArea:i,viewport:d,onViewportChange:f,content:h,onContentChange:g,scrollbarX:m,onScrollbarXChange:C,scrollbarXEnabled:M,onScrollbarXEnabledChange:L,scrollbarY:p,onScrollbarYChange:v,scrollbarYEnabled:E,onScrollbarYEnabledChange:I,onCornerWidthChange:y,onCornerHeightChange:S,children:c.jsx(oe.div,{dir:O,...s,ref:k,style:{position:"relative","--radix-scroll-area-corner-width":w+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})})});O8.displayName=Ic;var V8="ScrollAreaViewport",H8=l.forwardRef((e,n)=>{const{__scopeScrollArea:t,children:r,nonce:o,...a}=e,s=bt(V8,t),i=l.useRef(null),u=he(n,i,s.onViewportChange);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),c.jsx(oe.div,{"data-radix-scroll-area-viewport":"",...a,ref:u,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:c.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});H8.displayName=V8;var Gt="ScrollAreaScrollbar",kc=l.forwardRef((e,n)=>{const{forceMount:t,...r}=e,o=bt(Gt,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,i=e.orientation==="horizontal";return l.useEffect(()=>(i?a(!0):s(!0),()=>{i?a(!1):s(!1)}),[i,a,s]),o.type==="hover"?c.jsx(TI,{...r,ref:n,forceMount:t}):o.type==="scroll"?c.jsx(DI,{...r,ref:n,forceMount:t}):o.type==="auto"?c.jsx(A8,{...r,ref:n,forceMount:t}):o.type==="always"?c.jsx(Tc,{...r,ref:n}):null});kc.displayName=Gt;var TI=l.forwardRef((e,n)=>{const{forceMount:t,...r}=e,o=bt(Gt,e.__scopeScrollArea),[a,s]=l.useState(!1);return l.useEffect(()=>{const i=o.scrollArea;let u=0;if(i){const d=()=>{window.clearTimeout(u),s(!0)},f=()=>{u=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",d),i.addEventListener("pointerleave",f),()=>{window.clearTimeout(u),i.removeEventListener("pointerenter",d),i.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),c.jsx(Ke,{present:t||a,children:c.jsx(A8,{"data-state":a?"visible":"hidden",...r,ref:n})})}),DI=l.forwardRef((e,n)=>{const{forceMount:t,...r}=e,o=bt(Gt,e.__scopeScrollArea),a=e.orientation==="horizontal",s=Hs(()=>u("SCROLL_END"),100),[i,u]=II("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return l.useEffect(()=>{if(i==="idle"){const d=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(d)}},[i,o.scrollHideDelay,u]),l.useEffect(()=>{const d=o.viewport,f=a?"scrollLeft":"scrollTop";if(d){let h=d[f];const g=()=>{const m=d[f];h!==m&&(u("SCROLL"),s()),h=m};return d.addEventListener("scroll",g),()=>d.removeEventListener("scroll",g)}},[o.viewport,a,u,s]),c.jsx(Ke,{present:t||i!=="hidden",children:c.jsx(Tc,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:n,onPointerEnter:ne(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:ne(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),A8=l.forwardRef((e,n)=>{const t=bt(Gt,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,s]=l.useState(!1),i=e.orientation==="horizontal",u=Hs(()=>{if(t.viewport){const d=t.viewport.offsetWidth<t.viewport.scrollWidth,f=t.viewport.offsetHeight<t.viewport.scrollHeight;s(i?d:f)}},10);return Tr(t.viewport,u),Tr(t.content,u),c.jsx(Ke,{present:r||a,children:c.jsx(Tc,{"data-state":a?"visible":"hidden",...o,ref:n})})}),Tc=l.forwardRef((e,n)=>{const{orientation:t="vertical",...r}=e,o=bt(Gt,e.__scopeScrollArea),a=l.useRef(null),s=l.useRef(0),[i,u]=l.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Z8(i.viewport,i.content),f={...r,sizes:i,onSizesChange:u,hasThumb:d>0&&d<1,onThumbChange:g=>a.current=g,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:g=>s.current=g};function h(g,m){return $I(g,s.current,i,m)}return t==="horizontal"?c.jsx(OI,{...f,ref:n,onThumbPositionChange:()=>{if(o.viewport&&a.current){const g=o.viewport.scrollLeft,m=W8(g,i,o.dir);a.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:g=>{o.viewport&&(o.viewport.scrollLeft=g)},onDragScroll:g=>{o.viewport&&(o.viewport.scrollLeft=h(g,o.dir))}}):t==="vertical"?c.jsx(VI,{...f,ref:n,onThumbPositionChange:()=>{if(o.viewport&&a.current){const g=o.viewport.scrollTop,m=W8(g,i);a.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:g=>{o.viewport&&(o.viewport.scrollTop=g)},onDragScroll:g=>{o.viewport&&(o.viewport.scrollTop=h(g))}}):null}),OI=l.forwardRef((e,n)=>{const{sizes:t,onSizesChange:r,...o}=e,a=bt(Gt,e.__scopeScrollArea),[s,i]=l.useState(),u=l.useRef(null),d=he(n,u,a.onScrollbarXChange);return l.useEffect(()=>{u.current&&i(getComputedStyle(u.current))},[u]),c.jsx($8,{"data-orientation":"horizontal",...o,ref:d,sizes:t,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Vs(t)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,h)=>{if(a.viewport){const g=a.viewport.scrollLeft+f.deltaX;e.onWheelScroll(g),G8(g,h)&&f.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Os(s.paddingLeft),paddingEnd:Os(s.paddingRight)}})}})}),VI=l.forwardRef((e,n)=>{const{sizes:t,onSizesChange:r,...o}=e,a=bt(Gt,e.__scopeScrollArea),[s,i]=l.useState(),u=l.useRef(null),d=he(n,u,a.onScrollbarYChange);return l.useEffect(()=>{u.current&&i(getComputedStyle(u.current))},[u]),c.jsx($8,{"data-orientation":"vertical",...o,ref:d,sizes:t,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Vs(t)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,h)=>{if(a.viewport){const g=a.viewport.scrollTop+f.deltaY;e.onWheelScroll(g),G8(g,h)&&f.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Os(s.paddingTop),paddingEnd:Os(s.paddingBottom)}})}})}),[HI,F8]=D8(Gt),$8=l.forwardRef((e,n)=>{const{__scopeScrollArea:t,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:u,onDragScroll:d,onWheelScroll:f,onResize:h,...g}=e,m=bt(Gt,t),[C,p]=l.useState(null),v=he(n,k=>p(k)),w=l.useRef(null),y=l.useRef(""),b=m.viewport,S=r.content-r.viewport,M=Re(f),L=Re(u),E=Hs(h,10);function I(k){if(w.current){const O=k.clientX-w.current.left,H=k.clientY-w.current.top;d({x:O,y:H})}}return l.useEffect(()=>{const k=O=>{const H=O.target;(C==null?void 0:C.contains(H))&&M(O,S)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[b,C,S,M]),l.useEffect(L,[r,L]),Tr(C,E),Tr(m.content,E),c.jsx(HI,{scope:t,scrollbar:C,hasThumb:o,onThumbChange:Re(a),onThumbPointerUp:Re(s),onThumbPositionChange:L,onThumbPointerDown:Re(i),children:c.jsx(oe.div,{...g,ref:v,style:{position:"absolute",...g.style},onPointerDown:ne(e.onPointerDown,k=>{k.button===0&&(k.target.setPointerCapture(k.pointerId),w.current=C.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),I(k))}),onPointerMove:ne(e.onPointerMove,I),onPointerUp:ne(e.onPointerUp,k=>{const O=k.target;O.hasPointerCapture(k.pointerId)&&O.releasePointerCapture(k.pointerId),document.body.style.webkitUserSelect=y.current,m.viewport&&(m.viewport.style.scrollBehavior=""),w.current=null})})})}),Ds="ScrollAreaThumb",z8=l.forwardRef((e,n)=>{const{forceMount:t,...r}=e,o=F8(Ds,e.__scopeScrollArea);return c.jsx(Ke,{present:t||o.hasThumb,children:c.jsx(AI,{ref:n,...r})})}),AI=l.forwardRef((e,n)=>{const{__scopeScrollArea:t,style:r,...o}=e,a=bt(Ds,t),s=F8(Ds,t),{onThumbPositionChange:i}=s,u=he(n,h=>s.onThumbChange(h)),d=l.useRef(void 0),f=Hs(()=>{d.current&&(d.current(),d.current=void 0)},100);return l.useEffect(()=>{const h=a.viewport;if(h){const g=()=>{if(f(),!d.current){const m=zI(h,i);d.current=m,i()}};return i(),h.addEventListener("scroll",g),()=>h.removeEventListener("scroll",g)}},[a.viewport,f,i]),c.jsx(oe.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ne(e.onPointerDownCapture,h=>{const m=h.target.getBoundingClientRect(),C=h.clientX-m.left,p=h.clientY-m.top;s.onThumbPointerDown({x:C,y:p})}),onPointerUp:ne(e.onPointerUp,s.onThumbPointerUp)})});z8.displayName=Ds;var Dc="ScrollAreaCorner",B8=l.forwardRef((e,n)=>{const t=bt(Dc,e.__scopeScrollArea),r=!!(t.scrollbarX&&t.scrollbarY);return t.type!=="scroll"&&r?c.jsx(FI,{...e,ref:n}):null});B8.displayName=Dc;var FI=l.forwardRef((e,n)=>{const{__scopeScrollArea:t,...r}=e,o=bt(Dc,t),[a,s]=l.useState(0),[i,u]=l.useState(0),d=!!(a&&i);return Tr(o.scrollbarX,()=>{var h;const f=((h=o.scrollbarX)==null?void 0:h.offsetHeight)||0;o.onCornerHeightChange(f),u(f)}),Tr(o.scrollbarY,()=>{var h;const f=((h=o.scrollbarY)==null?void 0:h.offsetWidth)||0;o.onCornerWidthChange(f),s(f)}),d?c.jsx(oe.div,{...r,ref:n,style:{width:a,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Os(e){return e?parseInt(e,10):0}function Z8(e,n){const t=e/n;return isNaN(t)?0:t}function Vs(e){const n=Z8(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-t)*n;return Math.max(r,18)}function $I(e,n,t,r="ltr"){const o=Vs(t),a=o/2,s=n||a,i=o-s,u=t.scrollbar.paddingStart+s,d=t.scrollbar.size-t.scrollbar.paddingEnd-i,f=t.content-t.viewport,h=r==="ltr"?[0,f]:[f*-1,0];return R8([u,d],h)(e)}function W8(e,n,t="ltr"){const r=Vs(n),o=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,a=n.scrollbar.size-o,s=n.content-n.viewport,i=a-r,u=t==="ltr"?[0,s]:[s*-1,0],d=vi(e,u);return R8([0,s],[0,i])(d)}function R8(e,n){return t=>{if(e[0]===e[1]||n[0]===n[1])return n[0];const r=(n[1]-n[0])/(e[1]-e[0]);return n[0]+r*(t-e[0])}}function G8(e,n){return e>0&&e<n}var zI=(e,n=()=>{})=>{let t={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},s=t.left!==a.left,i=t.top!==a.top;(s||i)&&n(),t=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Hs(e,n){const t=Re(e),r=l.useRef(0);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),l.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(t,n)},[t,n])}function Tr(e,n){const t=Re(n);He(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,t])}var j8=O8,BI=H8,ZI=B8;const Oc=l.forwardRef(({className:e,children:n,...t},r)=>c.jsxs(j8,{ref:r,className:N("relative overflow-hidden",e),...t,children:[c.jsx(BI,{className:"h-full w-full rounded-[inherit]",children:n}),c.jsx(Vc,{}),c.jsx(ZI,{})]}));Oc.displayName=j8.displayName;const Vc=l.forwardRef(({className:e,orientation:n="vertical",...t},r)=>c.jsx(kc,{ref:r,orientation:n,className:N("flex touch-none select-none transition-colors",n==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",n==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...t,children:c.jsx(z8,{className:"relative flex-1 rounded-full bg-border"})}));Vc.displayName=kc.displayName;const jt=e=>e&&typeof e=="object"&&"value"in e?e.value:e,Y8=e=>e&&typeof e=="object"&&"label"in e?e.label&&typeof e.label=="object"&&"props"in e.label?{text:e.labelText??e.label.props.children,raw:e.label}:{text:e.labelText||e.label,raw:e.label}:typeof e=="string"?{text:e,raw:e}:{raw:e},WI=({table:e,column:n,excludeAllLabel:t,options:r=[],checked:o,disabled:a=[],hidden:s=[],search:i="",radio:u,onSearchChange:d,onCheckedChange:f})=>{const{t:h}=rt(),g=JSON.stringify((n==null?void 0:n.getFilterValue())||"");D.useEffect(()=>{f==null||f(n==null?void 0:n.getFilterValue())},[g]);const m=E=>{var I,k;return typeof E=="object"&&E&&"label"in E?(k=(I=Y8(E))==null?void 0:I.text)==null?void 0:k.toLowerCase().includes(i.toLowerCase()):typeof E=="string"?E.toLowerCase().includes(i.toLowerCase()):!0},C=D.useMemo(()=>!n||!e||!r?[]:r.filter(m),[e,n,i,r]),p=u??(r&&r.length===2&&(typeof r[0]=="object"&&r[0]!==null&&"value"in r[0]?typeof r[0].value=="boolean":typeof r[0]=="boolean")),v=(E,I)=>{if(E==="all"||E===null){const k=r.map(q=>jt(q)),O=(o==null?void 0:o.map(q=>jt(q)))||[],H=a||[],V=s||[],Y=[...H,...V],$=Y.filter(q=>O.includes(q)),U=Y.filter(q=>!O.includes(q)),T=k.filter(q=>!U.includes(q)),W=$.length?$:void 0,P=I?T:W,z=I?[E,...Y]:Y.filter(q=>q!==E);return f==null?void 0:f(E==="all"?P:z)}if(o===void 0)f==null||f([E]);else{const k=o.map(Y=>jt(Y)),O=r.find(Y=>jt(Y)===E);if(I&&O){const Y=jt(O);k.push(Y)}else k.splice(k.indexOf(E),1);const H=k.length?k:void 0,V=I?[E]:[];f==null||f(p?V:H)}},w=()=>{const E=o||[],I=s||[],k=new Set([...E,...I]).size,O=r.map(V=>jt(V)),H=new Set([...O,...I]).size;return k===H},y=o&&o.at(0)===null,b=w(),S=E=>b||(o==null?void 0:o.some(I=>jt(I)===E)),M=E=>a.some(I=>jt(I)===E),L=E=>s.some(I=>jt(I)===E);return c.jsxs("div",{className:"flex flex-col items-start gap-4 justify-center w-[228px]",children:[c.jsxs("p",{className:"font-semibold text-sm",children:[h("showAll"),":"]}),(i||d)&&r.length>9&&c.jsx(tn,{value:i,onChange:E=>d==null?void 0:d(E.target.value)}),t&&c.jsx(Cn,{checked:y,onCheckedChange:()=>v==null?void 0:v(null,!y),children:t}),!p&&c.jsx(Cn,{checked:b,onCheckedChange:()=>v==null?void 0:v("all",!b),children:h("chooseAll")}),c.jsx(Fn,{}),c.jsx(Oc,{children:c.jsx("div",{className:"flex flex-col items-start gap-4 py-0.5 w-[228px] h-calc(100vh-475px)",style:{maxHeight:"calc(var(--radix-popover-content-available-height) - 300px)"},children:C.map(E=>{const I=jt(E),k=!!(!y&&(b||S(I))),O=M(I);return L(I)?null:c.jsx(Cn,{checked:k,disabled:O,onCheckedChange:()=>v==null?void 0:v(I,!k),children:Y8(E).raw},String(I))})})})]})},RI=({type:e,column:n,table:t,applyText:r,locale:o,options:a,excludeFilterValues:s,sortable:i=!1,sorted:u,allowSortingReset:d=!1,children:f})=>{const h=u??(n==null?void 0:n.getIsSorted()),g=()=>{var T;if((T=n==null?void 0:n.getCanSort)!=null&&T.call(n)){if(d&&h==="desc"){n.clearSorting();return}n.toggleSorting(h==="asc")}},m=(T=!1)=>!(T||i&&n)||!n?f:c.jsxs("div",{role:"button",tabIndex:0,className:"flex items-center gap-1 cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-line-primary focus-visible:ring-offset-1 rounded",onClick:g,children:[f,c.jsx(zw,{className:N("h-4 w-4 shrink-0 text-icon",{"text-foreground-theme":!!h})})]}),{t:C}=rt(),[p,v]=D.useState(!1),w=n==null?void 0:n.getFilterValue(),[y,b]=D.useState(typeof w=="string"?w:""),[S,M]=D.useState(void 0),L=n==null?void 0:n.getFilterValue(),[E,I]=D.useState(L);D.useEffect(()=>{if(e==="date-range"){const T=n==null?void 0:n.getFilterValue();T!=null&&T.from&&(T!=null&&T.to)?M({from:new Date(T.from),to:new Date(T.to)}):M(void 0)}},[n,e]),D.useEffect(()=>{e==="search"&&b(typeof w=="string"?w:"")},[w,e]);const k=()=>{n==null||n.setFilterValue(y),v(!1)},O=T=>{M(T),T!=null&&T.from&&(T!=null&&T.to)&&(n==null||n.setFilterValue({from:T.from.toISOString(),to:T.to.toISOString()}),v(!1))},H=()=>{n==null||n.setFilterValue(E),v(!1)},V=()=>{t==null||t.resetColumnFilters(),t==null||t.resetSorting(),t==null||t.resetRowSelection(!0)},Y=()=>o||((navigator.language||navigator.languages[0]).includes("ru")?ai:Fr),$=()=>{var T,W,P,z,q;switch(e){case"search":return c.jsx(Yl,{className:N("text-foreground-tertiary",{"text-foreground-theme":!!w})});case"date-range":return c.jsx(jl,{className:N("text-foreground-tertiary",{"text-foreground-theme":!!(S!=null&&S.from)&&!!(S!=null&&S.to)})});case"select":{const K=Array.isArray(L)?!!L.length&&!L.every(Z=>s==null?void 0:s.includes(Z)):!!L;return c.jsx(Zw,{className:N("text-foreground-tertiary",{"text-foreground-theme":!!K})})}case"reset":{const K=((W=(T=t==null?void 0:t.getState())==null?void 0:T.columnFilters)==null?void 0:W.length)!==0||((z=(P=t==null?void 0:t.getState())==null?void 0:P.sorting)==null?void 0:z.length)!==0&&!!((q=t==null?void 0:t.getState())!=null&&q.sorting);return c.jsx(B9,{className:N("text-foreground-tertiary",{"text-foreground-theme cursor-pointer":K,"cursor-not-allowed":!K})})}case"sort":return null;default:return null}},U=()=>{switch(e){case"search":return c.jsxs("form",{className:"flex flex-col gap-2 w-auto p-2 rounded-lg bg-background",onSubmit:T=>{T.preventDefault(),k()},onKeyDown:T=>{T.key==="Enter"&&(T.preventDefault(),k())},children:[c.jsx(tn,{value:y,onChange:T=>b(T.target.value)}),c.jsx(Ze,{type:"submit",variant:"fade-contrast-filled",onClick:k,children:r||C("apply")})]});case"date-range":return c.jsx("div",{className:"w-auto p-0 rounded-lg",children:c.jsx(Ta,{mode:"range",locale:Y(),selected:S,onSelect:O,className:"bg-background rounded-lg",initialFocus:!0})});case"select":return c.jsxs("form",{className:"flex flex-col gap-2 w-auto p-2 rounded-lg bg-background",onSubmit:T=>{T.preventDefault(),H()},onKeyDown:T=>{T.key==="Enter"&&(T.preventDefault(),H())},children:[c.jsx(WI,{checked:E,onCheckedChange:I,column:n,options:a,table:t}),c.jsx(Ze,{type:"submit",variant:"fade-contrast-filled",onClick:H,children:r||C("apply")})]});default:return null}};return e==="sort"?c.jsx(c.Fragment,{children:m(!0)}):e==="reset"?c.jsxs(c.Fragment,{children:[m(),c.jsx(Ze,{variant:"fade-contrast-transparent",size:"icon",onClick:V,children:$()})]}):c.jsxs(c.Fragment,{children:[m(),c.jsxs(zn,{open:p,onOpenChange:v,modal:!0,children:[c.jsx(Bn,{asChild:!0,children:c.jsx(Ze,{className:"p-1",variant:"fade-contrast-transparent",size:"icon",icon:$()})}),c.jsx(Sn,{className:"w-auto rounded-lg bg-background p-0",children:U()})]})]})},GI=({children:e,type:n,column:t,table:r,applyText:o,locale:a,options:s,excludeFilterValues:i,className:u,sortable:d=!1,sorted:f,allowSortingReset:h})=>c.jsx("div",{className:N("flex flex-row gap-2 items-center justify-between",u),children:c.jsx(RI,{type:n,column:t,table:r,applyText:o,locale:a,options:s,excludeFilterValues:i,sortable:d,sorted:f,allowSortingReset:h,children:e})}),U8=l.forwardRef(({className:e,icon:n,value:t,onChange:r,onValueChange:o,onEnter:a,decimalPlaces:s=0,allowNegative:i=!1,...u},d)=>{const[f,h]=D.useState(""),g=y=>{if(y==null||y==="")return"";const b=String(y);return b==="NaN"||b==="Infinity"||b==="-Infinity"?"":b},m=y=>{if(!y)return"";let b=y;if(b=b.replace(/,/g,"."),i?b=b.replace(/[^0-9.-]/g,""):b=b.replace(/[^0-9.]/g,""),i&&((b.match(/-/g)||[]).length>1?(b=b.replace(/-/g,""),y.startsWith("-")&&(b="-"+b)):b.includes("-")&&!b.startsWith("-")&&(b=b.replace(/-/g,""))),(b.match(/\./g)||[]).length>1){const M=b.indexOf(".");b=b.substring(0,M+1)+b.substring(M+1).replace(/\./g,"")}if(s>=0&&b.includes(".")){const M=b.split(".");M[1]&&M[1].length>s&&(M[1]=M[1].substring(0,s)),b=M[0]+(s>0?"."+(M[1]||""):"")}else s===0&&b.includes(".")&&(b=b.split(".")[0]);return b},C=y=>{if(!y||y==="-")return null;const b=parseFloat(y);return isNaN(b)?null:b},p=y=>{const b=m(y.target.value);h(b);const S=C(b);r==null||r(S),o==null||o(S)};D.useEffect(()=>{if(t!==void 0){const y=g(t);y!==f&&h(y)}},[t]),D.useEffect(()=>{t!==void 0&&!f&&h(g(t))},[]);const v=!!n,w=c.jsxs("div",{className:"relative",children:[c.jsx("input",{type:"text",inputMode:"decimal",className:N("flex h-9 w-full rounded-lg border border-line-primary bg-[transparent] blur-none pl-3 py-2 text-sm tracking-[0.1px] leading-5 transition-colors duration-300 ease-in-out ring-offset-background file:border-0 file:bg-[transparent] file:text-sm font-normal placeholder:text-foreground-secondary focus-visible:outline-none focus-visible:border-line-focused disabled:cursor-not-allowed disabled:opacity-50 truncate line-clamp-1","[&~label>svg]:text-icon-secondary","has-[+p.text-foreground-error]:border-line-error",n?"pr-8":"pr-3",u.readOnly&&"cursor-not-allowed pointer-events-none opacity-95",e),ref:d,...u,value:f,onChange:p,onKeyDown:y=>y.key==="Enter"&&(a==null?void 0:a(y)),onFocus:u.onFocus||(y=>y.target.setAttribute("autocomplete","off"))}),n&&c.jsx("span",{className:"absolute right-1.5 top-1/2 -translate-y-1/2",children:n})]});return v?c.jsx("div",{className:N("inline-block relative transition-colors",v&&e),children:w}):w});U8.displayName="NumberInput";const jI=fl,YI=C0,UI=za,q8=hl,Hc=l.forwardRef(({className:e,...n},t)=>c.jsx(Qr,{className:N("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",e),...n,ref:t}));Hc.displayName=Qr.displayName;const qI=ln("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{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 rounded-r-lg 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 rounded-l-lg data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),K8=l.forwardRef(({side:e="right",className:n,children:t,...r},o)=>c.jsxs(q8,{children:[c.jsx(Hc,{}),c.jsxs(Jr,{ref:o,className:N(qI({side:e}),n),...r,children:[t,c.jsxs(za,{className:N("absolute top-4 z-10 flex h-10 w-10 items-center justify-center rounded-full bg-background-contrast text-foreground-on-contrast shadow-md transition-all hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",e==="right"&&"-left-12",e==="left"&&"-right-12",e==="top"&&"left-1/2 -translate-x-1/2 -bottom-6",e==="bottom"&&"left-1/2 -translate-x-1/2 -top-6"),children:[c.jsx(Ma,{className:"h-5 w-5"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));K8.displayName=Jr.displayName;const X8=({className:e,...n})=>c.jsx("div",{className:N("flex flex-col space-y-2 text-center sm:text-left",e),...n});X8.displayName="SheetHeader";const Q8=({className:e,...n})=>c.jsx("div",{className:N("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});Q8.displayName="SheetFooter";const J8=l.forwardRef(({className:e,...n},t)=>c.jsx(Fa,{ref:t,className:N("text-lg font-semibold text-foreground",e),...n}));J8.displayName=Fa.displayName;const e6=l.forwardRef(({className:e,...n},t)=>c.jsx($a,{ref:t,className:N("text-sm text-muted-foreground",e),...n}));e6.displayName=$a.displayName;const KI=({emptyStateText:e,actionsSlot:n,children:t,isEmpty:r,className:o,innerClassName:a})=>c.jsx("div",{className:N("box-border rounded-lg bg-background-secondary p-6",o),children:c.jsxs("div",{className:N("flex w-full flex-col items-stretch gap-4",a),children:[n!=null?c.jsx("div",{className:"self-start",children:n}):null,r?c.jsx("div",{className:"flex w-full items-center justify-center rounded-lg bg-background-primary py-8",children:c.jsx("p",{className:"text-center text-sm leading-5 tracking-[0.25px] text-foreground-primary",children:e})}):t]})}),As=({dateTime:e,duration:n,variant:t="default",className:r})=>{if(!(e||n))return null;const s=N("inline-flex items-center px-2 rounded text-sm leading-5 tracking-[0.25px]",{default:"text-foreground-primary",warning:"bg-background-warning-fade text-foreground-warning",error:"bg-background-error-fade text-foreground-error",success:"bg-background-success-fade text-foreground-success"}[t],r);return t==="default"?c.jsxs("span",{className:N("text-foreground-primary text-sm leading-5 tracking-[0.25px]",r),children:[e,e&&n&&" ",n]}):c.jsxs("div",{className:"flex items-center gap-2",children:[e&&c.jsx("span",{className:s,children:e}),n&&c.jsx("span",{className:s,children:n})]})};As.displayName="TimeBadge";const XI="text-foreground-primary text-sm leading-5 font-medium tracking-[0.25px]",QI="text-foreground-primary text-sm leading-5 tracking-[0.25px]",JI="text-foreground-secondary text-sm leading-5 tracking-[0.25px]",Fs=({children:e})=>c.jsx("div",{className:XI,children:e}),t6=({children:e})=>c.jsx("div",{className:QI,children:e}),n6=({delta:e,className:n})=>c.jsx("div",{className:N(JI,n),children:e}),r6=({rows:e,orientation:n="vertical",className:t})=>{const r=(a,s)=>s?c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-x-4",children:[c.jsx(Fs,{children:a.planLabel}),c.jsx(Fs,{children:a.factLabel})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-x-4",children:[c.jsx(t6,{children:a.planValue}),c.jsx(As,{dateTime:a.factDateTime,duration:a.factDuration,variant:a.factVariant??"default"})]}),a.delta&&c.jsx(n6,{delta:a.delta,className:"mt-2"})]}):c.jsxs("div",{className:"grid grid-cols-2 gap-x-4",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx(Fs,{children:a.planLabel}),c.jsx(t6,{children:a.planValue})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx(Fs,{children:a.factLabel}),c.jsx(As,{dateTime:a.factDateTime,duration:a.factDuration,variant:a.factVariant??"default"})]}),a.delta&&c.jsx("div",{className:"col-span-2 mt-2",children:c.jsx(n6,{delta:a.delta})})]}),o=n==="horizontal";return!e||e.length===0?null:c.jsx("div",{className:N("rounded-lg border border-line-primary bg-background-primary",t),children:o?c.jsx("div",{className:"grid",style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((a,s)=>c.jsx("div",{className:N("px-6 py-4",{"border-r border-line-primary":s<e.length-1}),children:r(a,!0)},s))}):e.map((a,s)=>c.jsx("div",{className:"px-4 py-4 border-b border-line-primary last:border-b-0",children:r(a,!1)},s))})};r6.displayName="WidgetPlanFact";const Ac={ASC:"asc",DESC:"desc"},ek=({sortOrder:e=Ac.DESC,sortField:n,className:t,options:r,placeholder:o,onOrderToggle:a,onFieldChange:s})=>{const{t:i}=rt(),u=o??i("withoutSort");return c.jsxs("div",{className:N("flex w-full items-center gap-2 text-xs text-foreground-secondary",t),children:[n&&a&&c.jsx(Ze,{onClick:a,variant:"fade-contrast-transparent",className:N("flex flex-shrink-0 min-w-6 h-6 p-0 hover:bg-transparent",{"rotate-180":e===Ac.ASC}),icon:c.jsx(gs,{})}),!n&&c.jsx(gs,{className:"h-[9px] w-[14px] flex-shrink-0 text-foreground-secondary"}),c.jsx("div",{className:"flex-1 min-w-0",children:c.jsx(Kr,{triggerClassName:"text-foreground-secondary border-none p-0 text-xs hover:bg-[transparent] h-auto min-w-0 w-full font-normal [&>span]:pr-0 [&>span]:truncate",placeholder:u,value:n,options:r,onChange:d=>s==null?void 0:s(d),renderValue:d=>c.jsx("span",{className:"whitespace-nowrap text-foreground-secondary",children:d.label})})})]})},Fc={LIST:"list",TABLE:"table"},tk=({className:e,listAriaLabel:n,tableAriaLabel:t})=>{const{t:r}=rt();return c.jsxs(Ls,{className:N(e),children:[c.jsx(_o,{value:Fc.LIST,size:"icon","aria-label":n??r("listView"),children:c.jsx(q9,{})}),c.jsx(_o,{value:Fc.TABLE,size:"icon","aria-label":t??r("tableView"),children:c.jsx(U9,{})})]})},nk=()=>{const e=D.useContext(Na);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},$c=(e=document.cookie)=>e.split(";").map(n=>n.split("=")).reduce((n,t)=>{if(!t.filter(Boolean).length)return n;const r=decodeURIComponent(t[0].trim()),o=decodeURIComponent(t[1].trim());return n.set(r,o),n},new Map),rk=(e=[4,96],n=[12,88])=>{const t="react-resizable-panels:layout",r="react-resizable-panels:collapsed",o=$c().get(t),a=$c().get(r),s=o?JSON.parse(o):e,i=a?JSON.parse(a):!1,[u,d]=D.useState(i),f=D.useRef(null),h=()=>{const C=document.querySelectorAll("[data-panel-id]");if(C.length>0){const v=C[0].getBoundingClientRect().width;document.documentElement.style.setProperty("--sidebar-width",`${v}px`)}else document.documentElement.style.setProperty("--sidebar-width","0px")};return D.useEffect(()=>{h();const C=document.querySelector("[data-panel-group]");if(!C)return;const p=new ResizeObserver(()=>{h()}),v=()=>{C.querySelectorAll("[data-panel-id]").forEach(b=>{p.observe(b)})};v();const w=new MutationObserver(()=>{v(),h()});return w.observe(C,{childList:!0,subtree:!0}),()=>{p.disconnect(),w.disconnect()}},[u]),{layoutName:t,collapsedName:r,defaultLayout:s,isCollapsed:u,ref:f,collapse:()=>{var C;(C=f.current)==null||C.resize(e[0]),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!0)}`,d(!0)},expand:()=>{var C;(C=f.current)==null||C.resize(n[0]),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!1)}`,d(!1)}}},ok=(e,n)=>{const t=i=>localStorage.setItem(n,i),r=()=>localStorage.getItem(n)||e,[o,a]=D.useState(r());return{tab:o,handleTabChange:i=>{t(i),a(i)}}},ak=(e,n)=>{try{const t=(n==="localStorage"?localStorage:sessionStorage).getItem(e);return t?JSON.parse(t):{}}catch{return{}}},sk=(e,n,t)=>{try{(t==="localStorage"?localStorage:sessionStorage).setItem(e,JSON.stringify(n))}catch{}},ik=(e,n={})=>{const{storage:t="sessionStorage",defaultWhenMissing:r=!0}=n,[o,a]=D.useState(()=>ak(e,t)),s=D.useCallback(d=>{a(f=>{const h=typeof d=="function"?d(f):d;return sk(e,h,t),h})},[e,t]),i=D.useCallback(d=>{s(f=>{const h=String(d),g=h in f?f[h]:r;return{...f,[h]:!g}})},[r,s]);return{expanded:o,setExpanded:s,toggleNode:i,isNodeExpanded:d=>{const f=String(d);return f in o?o[f]:r}}},lk=({paginationInitialState:e={pageIndex:0,pageSize:20},onSort:n,onPagination:t}={})=>{const[r,o]=D.useState(!1),[a,s]=D.useState({}),[i,u]=D.useState([]),[d,f]=D.useState(e),[h,g]=D.useState({});return D.useEffect(()=>{if(!i.length)return;const m=i[0].id,C=i[0].desc?"desc":"asc";n==null||n(m,C)},[i,n]),D.useEffect(()=>{if(!r){o(!0);return}d&&(t==null||t(d.pageIndex,d.pageSize))},[d,t,r]),{selection:a,setSelection:s,sorting:i,setSorting:u,pagination:d,setPagination:f,expanded:h,setExpanded:g}},ck=(e,n=[])=>{const t=i=>{localStorage.setItem(e,JSON.stringify(i))},r=()=>{const i=localStorage.getItem(e);return i?JSON.parse(i):n},[o,a]=D.useState(r());return{fields:o,handleFieldsChange:i=>{t(i),a(i)}}},uk=()=>{const[e,n]=D.useState([]);return{state:e,setState:n,get:(r,o)=>{var a;return(a=(o||e).find(s=>s.id===r))==null?void 0:a.value}}},dk=(e,n)=>((e==null?void 0:e.replace(/{(\w+)}/g,(r,o)=>String((n==null?void 0:n[o])||"")))||"").replace(/\s*\(\s*\)\s*/g,"").trim();function fk({data:e=[],idField:n,nameField:t,additionalNameField:r,labelTemplate:o,lockedValues:a=[],lowerCaseValues:s=!1}){return!Array.isArray(e)||!e.length||!n?[]:e.map(i=>({value:s?String(i[n]??"").toLowerCase():String(i[n]??""),label:o?dk(o,i):(t?String(i[t]):"")+(r&&i[r]?` - ${i[r]}`:""),disabled:a==null?void 0:a.includes(String(i[n]))}))}x.AccessDeniedDarkIcon=HE,x.AccessDeniedLightIcon=AE,x.AccountBalanceIcon=FE,x.AccountBoxIcon=$E,x.AccountCircleIcon=zE,x.AccountTreeIcon=BE,x.AddBoxIcon=WE,x.AddCircleOutlineIcon=RE,x.AddIcon=ZE,x.AddOutlineIcon=R2,x.AiAssistantIcon=GE,x.AiChatSendIcon=jE,x.AiChatWelcomeIcon=YE,x.AnalyticsIcon=UE,x.ArchiveIcon=qE,x.ArrowBackIcon=v1,x.ArrowDropDownIcon=Hr,x.ArrowForwardIcon=KE,x.AssignmentIcon=XE,x.AssignmentTurnedInIcon=QE,x.AttachFileIcon=F9,x.AttachmentsSection=k_,x.AudioFileIcon=I1,x.Badge=H6,x.Banner=G3,x.BarChartIcon=JE,x.BgDarkIcon=eM,x.BgLightIcon=tM,x.BillEmptyIcon=$9,x.BlockIcon=nM,x.BottomMenu=U3,x.BuildCircleIcon=oM,x.BuildCircleOutlineIcon=aM,x.BuildIcon=rM,x.Button=Ze,x.Calendar=Ta,x.CalendarOutlineIcon=jl,x.CancelCircleOutlineIcon=iM,x.CancelIcon=sM,x.CancelOutlineIcon=lM,x.Card=F2,x.CardContent=Z2,x.CardDescription=B2,x.CardEditActions=Jw,x.CardFooter=W2,x.CardHeader=$2,x.CardTitle=z2,x.Carousel=L8,x.CarouselContent=N8,x.CarouselItem=P8,x.CarouselNext=I8,x.CarouselPrevious=_8,x.CarouselThumbItem=T8,x.CarouselThumbs=k8,x.CategoryIcon=cM,x.CheckCircleOutlineIcon=p1,x.CheckCloseFolderIcon=dM,x.CheckIcon=uM,x.Checkbox=Cn,x.CheckboxWithLabel=Qw,x.ChecksOutlineIcon=fM,x.ChevronDownIcon=hM,x.ChevronLeftIcon=ao,x.ChevronLeftOutlineIcon=p2,x.ChevronRightIcon=Vn,x.ChevronRightOutlineIcon=m2,x.ChevronUpIcon=nl,x.CloseCircleIcon=La,x.CloseIcon=wo,x.CoinsIcon=gM,x.Collapsible=q2,x.CollapsibleContent=X2,x.CollapsibleSection=oy,x.CollapsibleTrigger=K2,x.Command=Ra,x.CommandDialog=Gy,x.CommandEmpty=_0,x.CommandGroup=I0,x.CommandInput=Sl,x.CommandItem=Ml,x.CommandList=El,x.CommandSeparator=k0,x.CommandShortcut=T0,x.ConfirmModal=f_,x.ConstructionIcon=pM,x.ContentPasteSearchIcon=mM,x.ControlPointIcon=vM,x.CorporateFareIcon=CM,x.CupOutlineIcon=wM,x.DEFAULT_PAGE_SIZE_OPTIONS=Y0,x.DarkModeIcon=yM,x.DarkModeOutlineIcon=bM,x.DashboardIcon=xM,x.DataTable=Vb,x.DataTablePagination=tf,x.DatePicker=bf,x.DeleteIcon=Qi,x.DeleteOutlineIcon=z9,x.Dialog=Za,x.DialogClose=P0,x.DialogContent=no,x.DialogDescription=bl,x.DialogFooter=yl,x.DialogHeader=wl,x.DialogOverlay=Cl,x.DialogPortal=N0,x.DialogSection=xl,x.DialogTitle=Wa,x.DialogTrigger=vl,x.DoNotDisturbIcon=SM,x.DocumentArrowUpOutlineIcon=EM,x.DocumentListOutlineIcon=MM,x.DonateOutlineIcon=LM,x.DoneIcon=NM,x.DoneOutlineIcon=PM,x.DoorArrowRightOutlineIcon=_M,x.Dot=tl,x.DownloadOutlineIcon=IM,x.DragIndicatorIcon=kM,x.DropdownActions=AS,x.DropdownMenu=c1,x.DropdownMenuCheckboxItem=I5,x.DropdownMenuContent=rs,x.DropdownMenuGroup=DS,x.DropdownMenuItem=os,x.DropdownMenuLabel=T5,x.DropdownMenuPortal=OS,x.DropdownMenuRadioGroup=HS,x.DropdownMenuRadioItem=k5,x.DropdownMenuSeparator=D5,x.DropdownMenuShortcut=O5,x.DropdownMenuSub=VS,x.DropdownMenuSubContent=_5,x.DropdownMenuSubTrigger=P5,x.DropdownMenuTrigger=ns,x.EditIcon=TM,x.EditOutlineIcon=DM,x.ErrorBanner=j3,x.ErrorOutlineIcon=m1,x.EventAvailableIcon=OM,x.EventNoteIcon=VM,x.EventRepeatOutlinedIcon=HM,x.ExpandMoreIcon=A5,x.FactCheckOutlineIcon=AM,x.FactoryIcon=FM,x.FeaturedPlayListIcon=$M,x.FileCopyIcon=zM,x.FileCopyOutlineIcon=BM,x.FileDownloadIcon=ZM,x.FileIcon=Ln,x.FileInput=Z4,x.FilterAltOffOutlineIcon=B9,x.FiltersColumnHeader=GI,x.FirstPageIcon=WM,x.FlagFillIcon=GM,x.FlagIcon=RM,x.Form=$5,x.FormControl=Rn,x.FormDescription=Z5,x.FormField=z5,x.FormFieldContext=u1,x.FormItem=Wn,x.FormItemContext=d1,x.FormItemDatePicker=G5,x.FormItemInput=GS,x.FormItemMultiSelect=R5,x.FormItemSelect=W5,x.FormLabel=B5,x.FormMessage=g1,x.FormatAlignLeftIcon=jM,x.GalleryImages=_I,x.GearsAlarmIcon=YM,x.GroupOutlineIcon=UM,x.GroupWorkIcon=qM,x.HandPaperIcon=KM,x.HandymanIcon=XM,x.HardwareIcon=QM,x.HelpCenterIcon=JM,x.HelpCenterOutlineIcon=eL,x.HideImageIcon=Z9,x.HideOutlineIcon=nf,x.HistoryIcon=tL,x.HotelClassIcon=nL,x.ImageIcon=rL,x.ImageOutlineIcon=oL,x.ImgBoxFillIcon=W9,x.InfoIcon=j5,x.InfoTooltip=eP,x.Input=tn,x.InsertInvitationOutlineIcon=aL,x.InventoryIcon=sL,x.Label=f1,x.LanIcon=iL,x.LanOutlineIcon=lL,x.LastPageIcon=Bl,x.LegendToggleIcon=cL,x.LightModeIcon=uL,x.LightModeOutlineIcon=dL,x.Loader2=mr,x.LocalFireDepartmentIcon=fL,x.LocationMapOutlineIcon=hL,x.LocationOnIcon=gL,x.LockIcon=pL,x.LockOpenIcon=mL,x.LogoutOutlineIcon=vL,x.MAX_ARCHIVE_SIZE_MB=lc,x.MAX_AUDIO_SIZE_MB=rc,x.MAX_EXCEL_SIZE_MB=ic,x.MAX_IMAGE_SIZE_MB=ac,x.MAX_PDF_SIZE_MB=oc,x.MAX_TOTAL_SIZE_MB=tc,x.MAX_VIDEO_SIZE_MB=nc,x.MAX_WORD_SIZE_MB=sc,x.MB_IN_BYTES=bs,x.MenuIcon=CL,x.MoreVertIcon=l1,x.MultiSelect=h1,x.MyLocationIcon=wL,x.N00Icon=kE,x.N01Icon=TE,x.N02Icon=DE,x.N03Icon=OE,x.N04Icon=VE,x.Nav=P3,x.NavPanel=I3,x.NavSeparator=_3,x.NetworkErrorIcon=R9,x.NetworkErrorMessage=Pa,x.NextWeekIcon=yL,x.NoAssignmentIcon=bL,x.NoDataBanner=Y3,x.NorthEastIcon=xL,x.Notification=U5,x.NumberInput=U8,x.OutputIcon=SL,x.PAGE_VIEW_TAB=Fc,x.PageHeader=YP,x.PageLayout=UP,x.PageViewModeToggle=tk,x.Pagination=U0,x.PauseCircleOutlineIcon=EL,x.PenOutlineIcon=ML,x.PeopleAltOutlinedIcon=LL,x.PersonIcon=NL,x.PersonOutlineIcon=PL,x.PhotoMusthaveIcon=_L,x.PlayIcon=IL,x.PlaylistAddCheckIcon=kL,x.Popover=zn,x.PopoverAnchor=yf,x.PopoverClose=sx,x.PopoverContent=Sn,x.PopoverTrigger=Bn,x.PortraitIcon=TL,x.PostCard=I9,x.PostCardBody=L9,x.PostCardHeader=M9,x.PostCardLeftPanel=_9,x.PostCardLeftPanelItem=P9,x.PostCardSidebar=N9,x.PrecisionManufacturingOutlineIcon=DL,x.Preloader=vr,x.Previews=t3,x.PreviewsCompactList=jP,x.PriorityIcon=OL,x.Profile=k9,x.PublishIcon=VL,x.PushPinIcon=HL,x.RadioGroup=W3,x.RadioGroupItem=R3,x.RectangleSplit4UnevenOutlineIcon=AL,x.RectanglesOutlineIcon=FL,x.RefreshIcon=$L,x.RemoveCircleOutlineIcon=zL,x.ReportProblemOutlineIcon=BL,x.ResizableHandle=E9,x.ResizablePanel=_1,x.ResizablePanelGroup=P1,x.RestartAltIcon=ZL,x.RestoreIcon=WL,x.RoomIcon=RL,x.RotateLeftIcon=G9,x.RotateRightIcon=j9,x.RoundStrokedIcon=GL,x.RouteErrorBanner=I_,x.SaveFillIcon=jL,x.SaveIcon=I2,x.ScrollArea=Oc,x.ScrollBar=Vc,x.SearchEmptyIcon=Y9,x.SearchIcon=Yl,x.SecondaryPanelSection=KI,x.SegmentedControl=v_,x.Select=Kr,x.SelectContent=ka,x.SelectItem=Xr,x.SelectLabel=P2,x.SelectSeparator=_2,x.SelectTrigger=Ia,x.SelectValue=_a,x.SellOutlineIcon=YL,x.Separator=Fn,x.SettingsIcon=UL,x.SettingsOutlineIcon=qL,x.Sheet=jI,x.SheetClose=UI,x.SheetContent=K8,x.SheetDescription=e6,x.SheetFooter=Q8,x.SheetHeader=X8,x.SheetOverlay=Hc,x.SheetPortal=q8,x.SheetTitle=J8,x.SheetTrigger=YI,x.ShoppingBasketIcon=KL,x.SimCardDownloadIcon=XL,x.SmsFailedIcon=QL,x.SortComponent=ek,x.SortIcon=gs,x.SortOrder=Ac,x.SortableHeader=IP,x.SouthIcon=JL,x.Square4OutlineIcon=eN,x.StarIcon=tN,x.StarsIcon=nN,x.StraightenIcon=rN,x.StrategyIcon=oN,x.SubdirectoryArrowRightIcon=aN,x.SupervisorAccountIcon=sN,x.Switch=q4,x.Table=Zl,x.TableBody=Rl,x.TableCaption=ef,x.TableCell=so,x.TableChartIcon=iN,x.TableFooter=J0,x.TableHead=Gl,x.TableHeader=Wl,x.TableRow=$n,x.TableRowsOutlineIcon=U9,x.Tabs=m3,x.TabsContent=v3,x.TabsList=Ls,x.TabsTrigger=_o,x.TargetOutlineIcon=lN,x.TextArea=J1,x.ThemeProvider=Rw,x.ThemeProviderContext=Na,x.ThermostatIcon=cN,x.TimeBadge=As,x.TimePicker=m8,x.Toast=G1,x.ToastAction=I4,x.ToastClose=j1,x.ToastDescription=U1,x.ToastProvider=_4,x.ToastTitle=Y1,x.ToastViewport=R1,x.Toaster=_P,x.TodayIcon=uN,x.TollIcon=dN,x.Tooltip=Wt,x.TooltipContent=kt,x.TooltipProvider=rn,x.TooltipTrigger=It,x.TourIcon=fN,x.TranslateIcon=hN,x.TreeView=tP,x.TruncatedCell=Hb,x.TuneOutlineIcon=gN,x.UnlockIcon=pN,x.UserIcon=mN,x.VideoFileIcon=k1,x.ViewListIcon=vN,x.ViewOutlineIcon=rf,x.ViewSidebarIcon=CN,x.ViewSidebarOutlineIcon=q9,x.WarehouseIcon=wN,x.WarehouseOutlineIcon=yN,x.WarningAmberIcon=bN,x.WatchLaterIcon=xN,x.WatchLaterOutlineIcon=K9,x.WebStoriesIcon=SN,x.WhatshotIcon=EN,x.WidgetPlanFact=r6,x.WorkspacesIcon=MN,x.WrenchToolIcon=LN,x.WriteIcon=NN,x.ZoomInOutlinedIcon=PN,x.ZoomOutMapOutlinedIcon=_N,x.ZoomOutOutlinedIcon=IN,x.acceptMap=X4,x.attachmentItemSchema=K4,x.attachmentsSchema=AP,x.badgeVariants=Jc,x.buttonVariants=Pn,x.bytesToMb=Q1,x.cn=N,x.compressFile=H4,x.compressImage=V4,x.cookies=$c,x.defaultAccepts=ec,x.filesToAttachments=B4,x.getErrorData=uc,x.getFileThumbnail=z4,x.getRefineArgs=gc,x.mbToBytes=Rt,x.notificationVariants=Y5,x.parseValueFromError=ZP,x.reducer=D4,x.toOptions=fk,x.toast=O4,x.useColumnFilters=uk,x.useColumnSizing=j0,x.useCombinedRefs=h8,x.useConfirm=cc,x.useConfirmStore=Ss,x.useFormField=Co,x.useNotify=Es,x.usePreviewsFilePicker=J4,x.useSidebar=rk,x.useStoredExpand=ik,x.useStoredFields=ck,x.useStoredTabs=ok,x.useTableStates=lk,x.useTheme=nk,x.useToast=X1,x.validateFile=$4,x.validateFileSize=A4,x.validateFileType=F4,x.zMin=n_,x.zRequired=C3,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
|
140
|
+
`))}},d8,Y_=["track","modify"];function kr(e){var n,t,r,o;return{mask:(n=e.mask)!==null&&n!==void 0?n:"",replacement:typeof e.replacement=="string"?Ir(e.replacement):(t=e.replacement)!==null&&t!==void 0?t:{},showMask:(r=e.showMask)!==null&&r!==void 0&&r,separate:(o=e.separate)!==null&&o!==void 0&&o,track:e.track,modify:e.modify}}var f8=function(e){function n(){var t,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return D_(this,n),(t=T_(this,n,[{init:function(o){var a=o.initialValue,s=o.controlled,i=kr(r),u=i.mask,d=i.replacement,f=i.separate,h=i.showMask;return a=s||a?a:h?u:"",process.env.NODE_ENV!=="production"&&function(g){var m=g.initialValue,C=g.mask,p=g.replacement;m.length>C.length&&console.error(yc(Error)("The initialized value of the `value` or `defaultValue` property is longer than the value specified in the `mask` property. Check the correctness of the initialized value in the specified property.",'Invalid value: "'.concat(m,'".'),"To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));var v=Object.keys(p).filter(function(M){return M.length>1});v.length>0&&console.error(yc(Error)("Object keys in the `replacement` property are longer than one character. Replacement keys must be one character long. Check the correctness of the value in the specified property.","Invalid keys: ".concat(v.join(", "),"."),"To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));for(var w=C.slice(0,m.length),y=-1,b=0;b<w.length;b++){var S=Object.prototype.hasOwnProperty.call(p,w[b]);if(!(w[b]===m[b]||S&&p[w[b]].test(m[b]))){y=b;break}}y!==-1&&console.error(yc(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(y,"). Check the correctness of the initialized value in the specified property."),'Invalid value: "'.concat(m,'".'),"To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."))}({initialValue:a,mask:u,replacement:d}),{value:a,options:{mask:u,replacement:d,separate:f}}},tracking:function(o){var a=o.inputType,s=o.previousValue,i=o.previousOptions,u=o.addedValue,d=o.changeStart,f=o.changeEnd,h=kr(r),g=h.track,m=h.modify,C=H_(h,Y_),p=C.mask,v=C.replacement,w=C.showMask,y=C.separate,b=Is(Is({},a==="insert"?{inputType:a,data:u}:{inputType:a,data:null}),{},{value:s,selectionStart:d,selectionEnd:f}),S=g==null?void 0:g(b);if(S===!1)throw new Do("Custom tracking stop.");S===null?u="":S!==!0&&S!==void 0&&(u=S);var M=m==null?void 0:m(b);(M==null?void 0:M.mask)!==void 0&&(p=M.mask),(M==null?void 0:M.replacement)!==void 0&&(v=typeof(M==null?void 0:M.replacement)=="string"?Ir(M==null?void 0:M.replacement):M.replacement),(M==null?void 0:M.showMask)!==void 0&&(w=M.showMask),(M==null?void 0:M.separate)!==void 0&&(y=M.separate);var L=vc(s,Is({end:d},i)),E=vc(s,Is({start:f},i)),I=RegExp("[^".concat(Object.keys(v).join(""),"]"),"g"),k=p.replace(I,"");if(L&&(L=Io(L,{replacementChars:k,replacement:v,separate:y}),k=k.slice(L.length)),u&&(u=Io(u,{replacementChars:k,replacement:v,separate:!1}),k=k.slice(u.length)),a==="insert"&&u==="")throw new Do("The character does not match the key value of the `replacement` object.");if(y){var O=p.slice(d,f).replace(I,""),A=O.length-u.length;A<0?E=E.slice(-A):A>0&&(E=O.slice(-A)+E)}E&&(E=Io(E,{replacementChars:k,replacement:v,separate:y}));var V=e8(L+u+E,{mask:p,replacement:v,separate:y,showMask:w}),Y=function($){var U,T,W,P=$.inputType,z=$.value,q=$.addedValue,K=$.beforeChangeValue,Z=$.mask,H=$.replacement,_=$.separate,B=t8(z,{mask:Z,replacement:H}).filter(function(re){var te=re.type;return te==="input"||_&&te==="replacement"}),G=(U=B[K.length+q.length-1])===null||U===void 0?void 0:U.index,F=(T=B[K.length-1])===null||T===void 0?void 0:T.index,R=(W=B[K.length+q.length])===null||W===void 0?void 0:W.index;if(P==="insert"){if(G!==void 0)return G+1;if(R!==void 0)return R;if(F!==void 0)return F+1}if(P==="deleteForward"){if(R!==void 0)return R;if(F!==void 0)return F+1}if(P==="deleteBackward"){if(F!==void 0)return F+1;if(R!==void 0)return R}var Q=z.split("").findIndex(function(re){return Object.prototype.hasOwnProperty.call(H,re)});return Q!==-1?Q:z.length}({inputType:a,value:V,addedValue:u,beforeChangeValue:L,mask:p,replacement:v,separate:y});return{value:V,selectionStart:Y,selectionEnd:Y,options:{mask:p,replacement:v,separate:y}}}}])).format=function(o){return n8(o,kr(r))},t.formatToParts=function(o){return F_(o,kr(r))},t.unformat=function(o){return A_(o,kr(r))},t.generatePattern=function(o){return z_(o,kr(r))},t}return V_(n,u8),O_(n)}();d8=f8,Object.defineProperty(d8.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Mask"});function U_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.mask,t=e.replacement,r=e.showMask,o=e.separate,a=e.track,s=e.modify,i=D.useRef(null),u=D.useRef({mask:n,replacement:t,showMask:r,separate:o,track:a,modify:s});return u.current.mask=n,u.current.replacement=t,u.current.showMask=r,u.current.separate=o,u.current.track=a,u.current.modify=s,D.useMemo(function(){return B_(i,new f8(u.current))},[])}const h8=(...e)=>D.useCallback(n=>{e.forEach(t=>{t&&(typeof t=="function"?t(n):t.current=n)})},e),bc=e=>{if(typeof e!="string")return null;const n=e.match(/^([01]\d|2[0-3]):([0-5]\d)$/);return n?Number(n[1])*60+Number(n[2]):null},g8=e=>{const n=Math.floor(e/60),t=e%60;return`${n.toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`},xc=(e,{min:n,max:t}={})=>{const r=bc(e);if(r==null)return e;const o=bc(n),a=bc(t);return o!=null&&r<o?g8(o):a!=null&&r>a?g8(a):e},p8="--:--",m8=l.forwardRef(({value:e,onChange:n,onBlur:t,placeholder:r,className:o,disabled:a,readOnly:s,min:i,max:u,showMask:d=!0,...f},h)=>{const[g,m]=l.useState(!1),C=!a&&!s,p=U_({mask:p8,replacement:{"-":/\d/},showMask:d}),v=h8(h,p),w=O=>{if(!O)return"";const A=O.replace(/\D/g,"").slice(0,4);if(!A)return"";const V=A.slice(0,2).padStart(2,"0"),Y=A.slice(2,4).padStart(2,"0");return`${V}:${Y}`},[y,b]=l.useState(w(e));l.useEffect(()=>{b(w(e))},[e]);const S=O=>{const A=Math.min(23,parseInt(O.slice(0,2),10)||0),V=Math.min(59,parseInt(O.slice(2,4),10)||0);return`${A.toString().padStart(2,"0")}:${V.toString().padStart(2,"0")}`},M=O=>{const A=O.target.value;b(A);const V=A.replace(/\D/g,"");if(V.length===4){const Y=xc(S(V),{min:i,max:u});n==null||n(Y)}},L=O=>{const A=y.replace(/\D/g,"");if(A.length===0){b(""),n==null||n("");return}const V=A.padEnd(4,"0").slice(0,4),Y=xc(S(V),{min:i,max:u});Y!==y&&(b(Y),n==null||n(Y)),t&&t(O)},E=(O,A)=>{if(!C)return;const V=xc(`${O.padStart(2,"0")}:${A.padStart(2,"0")}`,{min:i,max:u});b(V),n==null||n(V)},[I="",k=""]=y.split(":");return c.jsx("div",{className:N("relative",o),children:c.jsxs(zn,{open:C?g:!1,onOpenChange:O=>{C&&m(O)},children:[c.jsx(tn,{...f,ref:v,value:y,onChange:M,onBlur:L,placeholder:r??(d?p8:void 0),disabled:a,readOnly:s,min:i,max:u,className:"pr-10",type:"text"}),c.jsx(Bn,{asChild:!0,children:c.jsx("div",{className:N("absolute right-3 top-1/2 -translate-y-1/2 z-10",C?"cursor-pointer":"cursor-default pointer-events-none"),children:c.jsx(K9,{className:"text-icon-fade-contrast min-w-6 h-6"})})}),c.jsx(Sn,{align:"end",sideOffset:5,collisionPadding:8,className:"bg-background-primary w-full p-2 min-w-[120px] translate-x-3",onOpenAutoFocus:O=>O.preventDefault(),children:c.jsxs("div",{className:"flex gap-2 w-full items-center justify-center",children:[c.jsx(v8,{items:Array.from({length:24},(O,A)=>A.toString().padStart(2,"0")),value:I,onSelect:O=>E(O,k)}),c.jsx(v8,{items:Array.from({length:60},(O,A)=>A.toString().padStart(2,"0")),value:k,onSelect:O=>E(I,O)})]})})]})})});m8.displayName="TimePicker";const v8=({items:e,value:n,onSelect:t})=>{const r=l.useRef(null);return l.useEffect(()=>{const o=r.current;if(!o)return;const a=s=>{s.preventDefault(),o.scrollTop+=s.deltaY};return o.addEventListener("wheel",a),()=>o.removeEventListener("wheel",a)},[]),l.useEffect(()=>{if(r.current&&n){const o=e.findIndex(a=>a===n);o>-1&&(r.current.scrollTop=o*32)}},[e,n]),c.jsx("div",{className:"flex flex-col items-center flex-1",children:c.jsx("div",{ref:r,className:"h-48 overflow-y-auto w-full scroll-smooth [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:e.map(o=>c.jsx("div",{className:N("py-1 text-center cursor-pointer transition-colors hover:bg-background-secondary rounded-lg",o===n&&"bg-background-theme text-foreground-on-contrast hover:bg-background-theme/80"),onClick:()=>t(o),children:o},o))})})};function q_(e){return Object.prototype.toString.call(e)==="[object Object]"}function C8(e){return q_(e)||Array.isArray(e)}function K_(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Sc(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(n.breakpoints||{}));return o!==a?!1:t.every(s=>{const i=e[s],u=n[s];return typeof i=="function"?`${i}`==`${u}`:!C8(i)||!C8(u)?i===u:Sc(i,u)})}function w8(e){return e.concat().sort((n,t)=>n.name>t.name?1:-1).map(n=>n.options)}function X_(e,n){if(e.length!==n.length)return!1;const t=w8(e),r=w8(n);return t.every((o,a)=>{const s=r[a];return Sc(o,s)})}function Ec(e){return typeof e=="number"}function Mc(e){return typeof e=="string"}function ks(e){return typeof e=="boolean"}function y8(e){return Object.prototype.toString.call(e)==="[object Object]"}function ze(e){return Math.abs(e)}function Lc(e){return Math.sign(e)}function Oo(e,n){return ze(e-n)}function Q_(e,n){if(e===0||n===0||ze(e)<=ze(n))return 0;const t=Oo(ze(e),ze(n));return ze(t/e)}function J_(e){return Math.round(e*100)/100}function Vo(e){return Ao(e).map(Number)}function Tt(e){return e[Ho(e)]}function Ho(e){return Math.max(0,e.length-1)}function Nc(e,n){return n===Ho(e)}function b8(e,n=0){return Array.from(Array(e),(t,r)=>n+r)}function Ao(e){return Object.keys(e)}function x8(e,n){return[e,n].reduce((t,r)=>(Ao(r).forEach(o=>{const a=t[o],s=r[o],i=y8(a)&&y8(s);t[o]=i?x8(a,s):s}),t),{})}function Pc(e,n){return typeof n.MouseEvent<"u"&&e instanceof n.MouseEvent}function eI(e,n){const t={start:r,center:o,end:a};function r(){return 0}function o(u){return a(u)/2}function a(u){return n-u}function s(u,d){return Mc(e)?t[e](u):e(n,u,d)}return{measure:s}}function Fo(){let e=[];function n(o,a,s,i={passive:!0}){let u;if("addEventListener"in o)o.addEventListener(a,s,i),u=()=>o.removeEventListener(a,s,i);else{const d=o;d.addListener(s),u=()=>d.removeListener(s)}return e.push(u),r}function t(){e=e.filter(o=>o())}const r={add:n,clear:t};return r}function tI(e,n,t,r){const o=Fo(),a=1e3/60;let s=null,i=0,u=0;function d(){o.add(e,"visibilitychange",()=>{e.hidden&&C()})}function f(){m(),o.clear()}function h(v){if(!u)return;s||(s=v,t(),t());const w=v-s;for(s=v,i+=w;i>=a;)t(),i-=a;const y=i/a;r(y),u&&(u=n.requestAnimationFrame(h))}function g(){u||(u=n.requestAnimationFrame(h))}function m(){n.cancelAnimationFrame(u),s=null,i=0,u=0}function C(){s=null,i=0}return{init:d,destroy:f,start:g,stop:m,update:t,render:r}}function nI(e,n){const t=n==="rtl",r=e==="y",o=r?"y":"x",a=r?"x":"y",s=!r&&t?-1:1,i=f(),u=h();function d(C){const{height:p,width:v}=C;return r?p:v}function f(){return r?"top":t?"right":"left"}function h(){return r?"bottom":t?"left":"right"}function g(C){return C*s}return{scroll:o,cross:a,startEdge:i,endEdge:u,measureSize:d,direction:g}}function Kn(e=0,n=0){const t=ze(e-n);function r(d){return d<e}function o(d){return d>n}function a(d){return r(d)||o(d)}function s(d){return a(d)?r(d)?e:n:d}function i(d){return t?d-t*Math.ceil((d-n)/t):d}return{length:t,max:n,min:e,constrain:s,reachedAny:a,reachedMax:o,reachedMin:r,removeOffset:i}}function S8(e,n,t){const{constrain:r}=Kn(0,e),o=e+1;let a=s(n);function s(g){return t?ze((o+g)%o):r(g)}function i(){return a}function u(g){return a=s(g),h}function d(g){return f().set(i()+g)}function f(){return S8(e,i(),t)}const h={get:i,set:u,add:d,clone:f};return h}function rI(e,n,t,r,o,a,s,i,u,d,f,h,g,m,C,p,v,w,y){const{cross:b,direction:S}=e,M=["INPUT","SELECT","TEXTAREA"],L={passive:!1},E=Fo(),I=Fo(),k=Kn(50,225).constrain(m.measure(20)),O={mouse:300,touch:400},A={mouse:500,touch:600},V=C?43:25;let Y=!1,$=0,U=0,T=!1,W=!1,P=!1,z=!1;function q(j){if(!y)return;function ee(le){(ks(y)||y(j,le))&&G(le)}const ie=n;E.add(ie,"dragstart",le=>le.preventDefault(),L).add(ie,"touchmove",()=>{},L).add(ie,"touchend",()=>{}).add(ie,"touchstart",ee).add(ie,"mousedown",ee).add(ie,"touchcancel",R).add(ie,"contextmenu",R).add(ie,"click",Q,!0)}function K(){E.clear(),I.clear()}function Z(){const j=z?t:n;I.add(j,"touchmove",F,L).add(j,"touchend",R).add(j,"mousemove",F,L).add(j,"mouseup",R)}function H(j){const ee=j.nodeName||"";return M.includes(ee)}function _(){return(C?A:O)[z?"mouse":"touch"]}function B(j,ee){const ie=h.add(Lc(j)*-1),le=f.byDistance(j,!C).distance;return C||ze(j)<k?le:v&&ee?le*.5:f.byIndex(ie.get(),0).distance}function G(j){const ee=Pc(j,r);z=ee,P=C&&ee&&!j.buttons&&Y,Y=Oo(o.get(),s.get())>=2,!(ee&&j.button!==0)&&(H(j.target)||(T=!0,a.pointerDown(j),d.useFriction(0).useDuration(0),o.set(s),Z(),$=a.readPoint(j),U=a.readPoint(j,b),g.emit("pointerDown")))}function F(j){if(!Pc(j,r)&&j.touches.length>=2)return R(j);const ie=a.readPoint(j),le=a.readPoint(j,b),we=Oo(ie,$),Te=Oo(le,U);if(!W&&!z&&(!j.cancelable||(W=we>Te,!W)))return R(j);const xe=a.pointerMove(j);we>p&&(P=!0),d.useFriction(.3).useDuration(.75),i.start(),o.add(S(xe)),j.preventDefault()}function R(j){const ie=f.byDistance(0,!1).index!==h.get(),le=a.pointerUp(j)*_(),we=B(S(le),ie),Te=Q_(le,we),xe=V-10*Te,_e=w+Te/50;W=!1,T=!1,I.clear(),d.useDuration(xe).useFriction(_e),u.distance(we,!C),z=!1,g.emit("pointerUp")}function Q(j){P&&(j.stopPropagation(),j.preventDefault(),P=!1)}function re(){return T}return{init:q,destroy:K,pointerDown:re}}function oI(e,n){let r,o;function a(h){return h.timeStamp}function s(h,g){const C=`client${(g||e.scroll)==="x"?"X":"Y"}`;return(Pc(h,n)?h:h.touches[0])[C]}function i(h){return r=h,o=h,s(h)}function u(h){const g=s(h)-s(o),m=a(h)-a(r)>170;return o=h,m&&(r=h),g}function d(h){if(!r||!o)return 0;const g=s(o)-s(r),m=a(h)-a(r),C=a(h)-a(o)>170,p=g/m;return m&&!C&&ze(p)>.1?p:0}return{pointerDown:i,pointerMove:u,pointerUp:d,readPoint:s}}function aI(){function e(t){const{offsetTop:r,offsetLeft:o,offsetWidth:a,offsetHeight:s}=t;return{top:r,right:o+a,bottom:r+s,left:o,width:a,height:s}}return{measure:e}}function sI(e){function n(r){return e*(r/100)}return{measure:n}}function iI(e,n,t,r,o,a,s){const i=[e].concat(r);let u,d,f=[],h=!1;function g(v){return o.measureSize(s.measure(v))}function m(v){if(!a)return;d=g(e),f=r.map(g);function w(y){for(const b of y){if(h)return;const S=b.target===e,M=r.indexOf(b.target),L=S?d:f[M],E=g(S?e:r[M]);if(ze(E-L)>=.5){v.reInit(),n.emit("resize");break}}}u=new ResizeObserver(y=>{(ks(a)||a(v,y))&&w(y)}),t.requestAnimationFrame(()=>{i.forEach(y=>u.observe(y))})}function C(){h=!0,u&&u.disconnect()}return{init:m,destroy:C}}function lI(e,n,t,r,o,a){let s=0,i=0,u=o,d=a,f=e.get(),h=0;function g(){const L=r.get()-e.get(),E=!u;let I=0;return E?(s=0,t.set(r),e.set(r),I=L):(t.set(e),s+=L/u,s*=d,f+=s,e.add(s),I=f-h),i=Lc(I),h=f,M}function m(){const L=r.get()-n.get();return ze(L)<.001}function C(){return u}function p(){return i}function v(){return s}function w(){return b(o)}function y(){return S(a)}function b(L){return u=L,M}function S(L){return d=L,M}const M={direction:p,duration:C,velocity:v,seek:g,settled:m,useBaseFriction:y,useBaseDuration:w,useFriction:S,useDuration:b};return M}function cI(e,n,t,r,o){const a=o.measure(10),s=o.measure(50),i=Kn(.1,.99);let u=!1;function d(){return!(u||!e.reachedAny(t.get())||!e.reachedAny(n.get()))}function f(m){if(!d())return;const C=e.reachedMin(n.get())?"min":"max",p=ze(e[C]-n.get()),v=t.get()-n.get(),w=i.constrain(p/s);t.subtract(v*w),!m&&ze(v)<a&&(t.set(e.constrain(t.get())),r.useDuration(25).useBaseFriction())}function h(m){u=!m}return{shouldConstrain:d,constrain:f,toggleActive:h}}function uI(e,n,t,r,o){const a=Kn(-n+e,0),s=h(),i=f(),u=g();function d(C,p){return Oo(C,p)<=1}function f(){const C=s[0],p=Tt(s),v=s.lastIndexOf(C),w=s.indexOf(p)+1;return Kn(v,w)}function h(){return t.map((C,p)=>{const{min:v,max:w}=a,y=a.constrain(C),b=!p,S=Nc(t,p);return b?w:S||d(v,y)?v:d(w,y)?w:y}).map(C=>parseFloat(C.toFixed(3)))}function g(){if(n<=e+o)return[a.max];if(r==="keepSnaps")return s;const{min:C,max:p}=i;return s.slice(C,p)}return{snapsContained:u,scrollContainLimit:i}}function dI(e,n,t){const r=n[0],o=t?r-e:Tt(n);return{limit:Kn(o,r)}}function fI(e,n,t,r){const a=n.min+.1,s=n.max+.1,{reachedMin:i,reachedMax:u}=Kn(a,s);function d(g){return g===1?u(t.get()):g===-1?i(t.get()):!1}function f(g){if(!d(g))return;const m=e*(g*-1);r.forEach(C=>C.add(m))}return{loop:f}}function hI(e){const{max:n,length:t}=e;function r(a){const s=a-n;return t?s/-t:0}return{get:r}}function gI(e,n,t,r,o){const{startEdge:a,endEdge:s}=e,{groupSlides:i}=o,u=h().map(n.measure),d=g(),f=m();function h(){return i(r).map(p=>Tt(p)[s]-p[0][a]).map(ze)}function g(){return r.map(p=>t[a]-p[a]).map(p=>-ze(p))}function m(){return i(d).map(p=>p[0]).map((p,v)=>p+u[v])}return{snaps:d,snapsAligned:f}}function pI(e,n,t,r,o,a){const{groupSlides:s}=o,{min:i,max:u}=r,d=f();function f(){const g=s(a),m=!e||n==="keepSnaps";return t.length===1?[a]:m?g:g.slice(i,u).map((C,p,v)=>{const w=!p,y=Nc(v,p);if(w){const b=Tt(v[0])+1;return b8(b)}if(y){const b=Ho(a)-Tt(v)[0]+1;return b8(b,Tt(v)[0])}return C})}return{slideRegistry:d}}function mI(e,n,t,r,o){const{reachedAny:a,removeOffset:s,constrain:i}=r;function u(C){return C.concat().sort((p,v)=>ze(p)-ze(v))[0]}function d(C){const p=e?s(C):i(C),v=n.map((y,b)=>({diff:f(y-p,0),index:b})).sort((y,b)=>ze(y.diff)-ze(b.diff)),{index:w}=v[0];return{index:w,distance:p}}function f(C,p){const v=[C,C+t,C-t];if(!e)return C;if(!p)return u(v);const w=v.filter(y=>Lc(y)===p);return w.length?u(w):Tt(v)-t}function h(C,p){const v=n[C]-o.get(),w=f(v,p);return{index:C,distance:w}}function g(C,p){const v=o.get()+C,{index:w,distance:y}=d(v),b=!e&&a(v);if(!p||b)return{index:w,distance:C};const S=n[w]-y,M=C+f(S,0);return{index:w,distance:M}}return{byDistance:g,byIndex:h,shortcut:f}}function vI(e,n,t,r,o,a,s){function i(h){const g=h.distance,m=h.index!==n.get();a.add(g),g&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(t.set(n.get()),n.set(h.index),s.emit("select"))}function u(h,g){const m=o.byDistance(h,g);i(m)}function d(h,g){const m=n.clone().set(h),C=o.byIndex(m.get(),g);i(C)}return{distance:u,index:d}}function CI(e,n,t,r,o,a,s,i){const u={passive:!0,capture:!0};let d=0;function f(m){if(!i)return;function C(p){if(new Date().getTime()-d>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;const y=t.findIndex(b=>b.includes(p));Ec(y)&&(o.useDuration(0),r.index(y,0),s.emit("slideFocus"))}a.add(document,"keydown",h,!1),n.forEach((p,v)=>{a.add(p,"focus",w=>{(ks(i)||i(m,w))&&C(v)},u)})}function h(m){m.code==="Tab"&&(d=new Date().getTime())}return{init:f}}function $o(e){let n=e;function t(){return n}function r(u){n=s(u)}function o(u){n+=s(u)}function a(u){n-=s(u)}function s(u){return Ec(u)?u:u.get()}return{get:t,set:r,add:o,subtract:a}}function E8(e,n){const t=e.scroll==="x"?s:i,r=n.style;let o=null,a=!1;function s(g){return`translate3d(${g}px,0px,0px)`}function i(g){return`translate3d(0px,${g}px,0px)`}function u(g){if(a)return;const m=J_(e.direction(g));m!==o&&(r.transform=t(m),o=m)}function d(g){a=!g}function f(){a||(r.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:f,to:u,toggleActive:d}}function wI(e,n,t,r,o,a,s,i,u){const f=Vo(o),h=Vo(o).reverse(),g=w().concat(y());function m(E,I){return E.reduce((k,O)=>k-o[O],I)}function C(E,I){return E.reduce((k,O)=>m(k,I)>0?k.concat([O]):k,[])}function p(E){return a.map((I,k)=>({start:I-r[k]+.5+E,end:I+n-.5+E}))}function v(E,I,k){const O=p(I);return E.map(A=>{const V=k?0:-t,Y=k?t:0,$=k?"end":"start",U=O[A][$];return{index:A,loopPoint:U,slideLocation:$o(-1),translate:E8(e,u[A]),target:()=>i.get()>U?V:Y}})}function w(){const E=s[0],I=C(h,E);return v(I,t,!1)}function y(){const E=n-s[0]-1,I=C(f,E);return v(I,-t,!0)}function b(){return g.every(({index:E})=>{const I=f.filter(k=>k!==E);return m(I,n)<=.1})}function S(){g.forEach(E=>{const{target:I,translate:k,slideLocation:O}=E,A=I();A!==O.get()&&(k.to(A),O.set(A))})}function M(){g.forEach(E=>E.translate.clear())}return{canLoop:b,clear:M,loop:S,loopPoints:g}}function yI(e,n,t){let r,o=!1;function a(u){if(!t)return;function d(f){for(const h of f)if(h.type==="childList"){u.reInit(),n.emit("slidesChanged");break}}r=new MutationObserver(f=>{o||(ks(t)||t(u,f))&&d(f)}),r.observe(e,{childList:!0})}function s(){r&&r.disconnect(),o=!0}return{init:a,destroy:s}}function bI(e,n,t,r){const o={};let a=null,s=null,i,u=!1;function d(){i=new IntersectionObserver(C=>{u||(C.forEach(p=>{const v=n.indexOf(p.target);o[v]=p}),a=null,s=null,t.emit("slidesInView"))},{root:e.parentElement,threshold:r}),n.forEach(C=>i.observe(C))}function f(){i&&i.disconnect(),u=!0}function h(C){return Ao(o).reduce((p,v)=>{const w=parseInt(v),{isIntersecting:y}=o[w];return(C&&y||!C&&!y)&&p.push(w),p},[])}function g(C=!0){if(C&&a)return a;if(!C&&s)return s;const p=h(C);return C&&(a=p),C||(s=p),p}return{init:d,destroy:f,get:g}}function xI(e,n,t,r,o,a){const{measureSize:s,startEdge:i,endEdge:u}=e,d=t[0]&&o,f=C(),h=p(),g=t.map(s),m=v();function C(){if(!d)return 0;const y=t[0];return ze(n[i]-y[i])}function p(){if(!d)return 0;const y=a.getComputedStyle(Tt(r));return parseFloat(y.getPropertyValue(`margin-${u}`))}function v(){return t.map((y,b,S)=>{const M=!b,L=Nc(S,b);return M?g[b]+f:L?g[b]+h:S[b+1][i]-y[i]}).map(ze)}return{slideSizes:g,slideSizesWithGaps:m,startGap:f,endGap:h}}function SI(e,n,t,r,o,a,s,i,u){const{startEdge:d,endEdge:f,direction:h}=e,g=Ec(t);function m(w,y){return Vo(w).filter(b=>b%y===0).map(b=>w.slice(b,b+y))}function C(w){return w.length?Vo(w).reduce((y,b,S)=>{const M=Tt(y)||0,L=M===0,E=b===Ho(w),I=o[d]-a[M][d],k=o[d]-a[b][f],O=!r&&L?h(s):0,A=!r&&E?h(i):0,V=ze(k-A-(I+O));return S&&V>n+u&&y.push(b),E&&y.push(w.length),y},[]).map((y,b,S)=>{const M=Math.max(S[b-1]||0);return w.slice(M,y)}):[]}function p(w){return g?m(w,t):C(w)}return{groupSlides:p}}function EI(e,n,t,r,o,a,s){const{align:i,axis:u,direction:d,startIndex:f,loop:h,duration:g,dragFree:m,dragThreshold:C,inViewThreshold:p,slidesToScroll:v,skipSnaps:w,containScroll:y,watchResize:b,watchSlides:S,watchDrag:M,watchFocus:L}=a,E=2,I=aI(),k=I.measure(n),O=t.map(I.measure),A=nI(u,d),V=A.measureSize(k),Y=sI(V),$=eI(i,V),U=!h&&!!y,T=h||!!y,{slideSizes:W,slideSizesWithGaps:P,startGap:z,endGap:q}=xI(A,k,O,t,T,o),K=SI(A,V,v,h,k,O,z,q,E),{snaps:Z,snapsAligned:H}=gI(A,$,k,O,K),_=-Tt(Z)+Tt(P),{snapsContained:B,scrollContainLimit:G}=uI(V,_,H,y,E),F=U?B:H,{limit:R}=dI(_,F,h),Q=S8(Ho(F),f,h),re=Q.clone(),te=Vo(t),j=({dragHandler:Se,scrollBody:Xe,scrollBounds:Qe,options:{loop:et}})=>{et||Qe.constrain(Se.pointerDown()),Xe.seek()},ee=({scrollBody:Se,translate:Xe,location:Qe,offsetLocation:et,previousLocation:wt,scrollLooper:ut,slideLooper:J,dragHandler:ce,animation:Ee,eventHandler:Me,scrollBounds:ke,options:{loop:Fe}},Pe)=>{const Ae=Se.settled(),on=!ke.shouldConstrain(),Xn=Fe?Ae:Ae&&on,zc=Xn&&!ce.pointerDown();zc&&Ee.stop();const hk=Qe.get()*Pe+wt.get()*(1-Pe);et.set(hk),Fe&&(ut.loop(Se.direction()),J.loop()),Xe.to(et.get()),zc&&Me.emit("settle"),Xn||Me.emit("scroll")},ie=tI(r,o,()=>j(je),Se=>ee(je,Se)),le=.68,we=F[Q.get()],Te=$o(we),xe=$o(we),_e=$o(we),Be=$o(we),Je=lI(Te,_e,xe,Be,g,le),ct=mI(h,F,_,R,Be),X=vI(ie,Q,re,Je,ct,Be,s),se=hI(R),pe=Fo(),ge=bI(n,t,s,p),{slideRegistry:be}=pI(U,y,F,G,K,te),Le=CI(e,t,be,X,Je,pe,s,L),je={ownerDocument:r,ownerWindow:o,eventHandler:s,containerRect:k,slideRects:O,animation:ie,axis:A,dragHandler:rI(A,e,r,o,Be,oI(A,o),Te,ie,X,Je,ct,Q,s,Y,m,C,w,le,M),eventStore:pe,percentOfView:Y,index:Q,indexPrevious:re,limit:R,location:Te,offsetLocation:_e,previousLocation:xe,options:a,resizeHandler:iI(n,s,o,t,A,b,I),scrollBody:Je,scrollBounds:cI(R,_e,Be,Je,Y),scrollLooper:fI(_,R,_e,[Te,_e,xe,Be]),scrollProgress:se,scrollSnapList:F.map(se.get),scrollSnaps:F,scrollTarget:ct,scrollTo:X,slideLooper:wI(A,V,_,W,P,Z,F,_e,t),slideFocus:Le,slidesHandler:yI(n,s,S),slidesInView:ge,slideIndexes:te,slideRegistry:be,slidesToScroll:K,target:Be,translate:E8(A,n)};return je}function MI(){let e={},n;function t(d){n=d}function r(d){return e[d]||[]}function o(d){return r(d).forEach(f=>f(n,d)),u}function a(d,f){return e[d]=r(d).concat([f]),u}function s(d,f){return e[d]=r(d).filter(h=>h!==f),u}function i(){e={}}const u={init:t,emit:o,off:s,on:a,clear:i};return u}const LI={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function NI(e){function n(a,s){return x8(a,s||{})}function t(a){const s=a.breakpoints||{},i=Ao(s).filter(u=>e.matchMedia(u).matches).map(u=>s[u]).reduce((u,d)=>n(u,d),{});return n(a,i)}function r(a){return a.map(s=>Ao(s.breakpoints||{})).reduce((s,i)=>s.concat(i),[]).map(e.matchMedia)}return{mergeOptions:n,optionsAtMedia:t,optionsMediaQueries:r}}function PI(e){let n=[];function t(a,s){return n=s.filter(({options:i})=>e.optionsAtMedia(i).active!==!1),n.forEach(i=>i.init(a,e)),s.reduce((i,u)=>Object.assign(i,{[u.name]:u}),{})}function r(){n=n.filter(a=>a.destroy())}return{init:t,destroy:r}}function Ts(e,n,t){const r=e.ownerDocument,o=r.defaultView,a=NI(o),s=PI(a),i=Fo(),u=MI(),{mergeOptions:d,optionsAtMedia:f,optionsMediaQueries:h}=a,{on:g,off:m,emit:C}=u,p=A;let v=!1,w,y=d(LI,Ts.globalOptions),b=d(y),S=[],M,L,E;function I(){const{container:te,slides:j}=b;L=(Mc(te)?e.querySelector(te):te)||e.children[0];const ie=Mc(j)?L.querySelectorAll(j):j;E=[].slice.call(ie||L.children)}function k(te){const j=EI(e,L,E,r,o,te,u);if(te.loop&&!j.slideLooper.canLoop()){const ee=Object.assign({},te,{loop:!1});return k(ee)}return j}function O(te,j){v||(y=d(y,te),b=f(y),S=j||S,I(),w=k(b),h([y,...S.map(({options:ee})=>ee)]).forEach(ee=>i.add(ee,"change",A)),b.active&&(w.translate.to(w.location.get()),w.animation.init(),w.slidesInView.init(),w.slideFocus.init(re),w.eventHandler.init(re),w.resizeHandler.init(re),w.slidesHandler.init(re),w.options.loop&&w.slideLooper.loop(),L.offsetParent&&E.length&&w.dragHandler.init(re),M=s.init(re,S)))}function A(te,j){const ee=K();V(),O(d({startIndex:ee},te),j),u.emit("reInit")}function V(){w.dragHandler.destroy(),w.eventStore.clear(),w.translate.clear(),w.slideLooper.clear(),w.resizeHandler.destroy(),w.slidesHandler.destroy(),w.slidesInView.destroy(),w.animation.destroy(),s.destroy(),i.clear()}function Y(){v||(v=!0,i.clear(),V(),u.emit("destroy"),u.clear())}function $(te,j,ee){!b.active||v||(w.scrollBody.useBaseFriction().useDuration(j===!0?0:b.duration),w.scrollTo.index(te,ee||0))}function U(te){const j=w.index.add(1).get();$(j,te,-1)}function T(te){const j=w.index.add(-1).get();$(j,te,1)}function W(){return w.index.add(1).get()!==K()}function P(){return w.index.add(-1).get()!==K()}function z(){return w.scrollSnapList}function q(){return w.scrollProgress.get(w.offsetLocation.get())}function K(){return w.index.get()}function Z(){return w.indexPrevious.get()}function H(){return w.slidesInView.get()}function _(){return w.slidesInView.get(!1)}function B(){return M}function G(){return w}function F(){return e}function R(){return L}function Q(){return E}const re={canScrollNext:W,canScrollPrev:P,containerNode:R,internalEngine:G,destroy:Y,off:m,on:g,emit:C,plugins:B,previousScrollSnap:Z,reInit:p,rootNode:F,scrollNext:U,scrollPrev:T,scrollProgress:q,scrollSnapList:z,scrollTo:$,selectedScrollSnap:K,slideNodes:Q,slidesInView:H,slidesNotInView:_};return O(n,t),setTimeout(()=>u.emit("init"),0),re}Ts.globalOptions=void 0;function _c(e={},n=[]){const t=D.useRef(e),r=D.useRef(n),[o,a]=D.useState(),[s,i]=D.useState(),u=D.useCallback(()=>{o&&o.reInit(t.current,r.current)},[o]);return D.useEffect(()=>{Sc(t.current,e)||(t.current=e,u())},[e,u]),D.useEffect(()=>{X_(r.current,n)||(r.current=n,u())},[n,u]),D.useEffect(()=>{if(K_()&&s){Ts.globalOptions=_c.globalOptions;const d=Ts(s,t.current,r.current);return a(d),()=>d.destroy()}else a(void 0)},[s,a]),[i,o]}_c.globalOptions=void 0;const M8=l.createContext(null),zo=()=>{const e=l.useContext(M8);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e},L8=({orientation:e="horizontal",opts:n,setApi:t,plugins:r,className:o,children:a,...s})=>{const[i,u]=_c({...n,axis:e==="horizontal"?"x":"y"},r),[d,f]=l.useState(!1),[h,g]=l.useState(!1),[m,C]=l.useState(0),p=l.useCallback(S=>{u==null||u.scrollTo(S)},[u]),v=l.useCallback(S=>{S&&(f(S.canScrollPrev()),g(S.canScrollNext()),C(S.selectedScrollSnap()))},[]),w=l.useCallback(()=>{u==null||u.scrollPrev()},[u]),y=l.useCallback(()=>{u==null||u.scrollNext()},[u]),b=l.useCallback(S=>{S.key==="ArrowLeft"?(S.preventDefault(),w()):S.key==="ArrowRight"&&(S.preventDefault(),y())},[w,y]);return l.useEffect(()=>{!u||!t||t(u)},[u,t]),l.useEffect(()=>{if(u)return v(u),u.on("reInit",v),u.on("select",v),()=>{u==null||u.off("select",v)}},[u,v]),c.jsx(M8.Provider,{value:{carouselRef:i,api:u,opts:n,orientation:e||((n==null?void 0:n.axis)==="y"?"vertical":"horizontal"),scrollPrev:w,scrollNext:y,canScrollPrev:d,canScrollNext:h,currentIndex:m,onThumbClick:p},children:c.jsx("div",{onKeyDownCapture:b,className:N("relative",o),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...s,children:a})})},N8=({className:e,...n})=>{const{carouselRef:t,orientation:r}=zo();return c.jsx("div",{ref:t,className:"overflow-hidden","data-slot":"carousel-content",children:c.jsx("div",{className:N("flex",r==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...n})})},P8=({className:e,...n})=>{const{orientation:t}=zo();return c.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:N("min-w-0 shrink-0 grow-0 basis-full",t==="horizontal"?"pl-4":"pt-4",e),...n})},_8=({className:e,variant:n="fade-contrast-outlined",size:t="icon",...r})=>{const{orientation:o,scrollPrev:a,canScrollPrev:s}=zo();return c.jsxs(Ze,{"data-slot":"carousel-previous",variant:n,size:t,className:N("absolute size-8",o==="horizontal"?"top-1/2 -left-4 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",!s&&"hidden",e),disabled:!s,onClick:a,...r,children:[c.jsx(ao,{}),c.jsx("span",{className:"sr-only",children:"Previous slide"})]})},I8=({className:e,variant:n="fade-contrast-outlined",size:t="icon",...r})=>{const{orientation:o,scrollNext:a,canScrollNext:s}=zo();return c.jsxs(Ze,{"data-slot":"carousel-next",variant:n,size:t,className:N("absolute size-8 ",o==="horizontal"?"top-1/2 -right-4 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",!s&&"hidden",e),disabled:!s,onClick:a,...r,children:[c.jsx(Vn,{}),c.jsx("span",{className:"sr-only",children:"Next slide"})]})},k8=({className:e,...n})=>c.jsx("div",{className:N("flex justify-center mt-4 space-x-2 overflow-x-auto w-full max-w-full",e),...n}),T8=({index:e,className:n,children:t,...r})=>{const{currentIndex:o,onThumbClick:a}=zo(),s=o===e;return c.jsx("button",{type:"button",onClick:()=>a(e),className:N("aspect-square w-16 h-16 transition-opacity duration-200",s?"opacity-100 ring-2 ring-primary":"opacity-60",n),"aria-current":s,...r,children:t})},_I=({items:e=[],getUrl:n,getId:t,classNameMainImage:r,classNameOtherImages:o})=>e.length?c.jsxs(L8,{children:[c.jsx(N8,{children:e.map(a=>c.jsx(P8,{children:c.jsx("img",{src:n(a),className:N("w-full h-[159px] object-cover rounded-md",r)})},t(a)))}),c.jsx(_8,{variant:"fade-contrast-outlined",className:"bg-background-primary top-1/3"}),c.jsx(I8,{variant:"fade-contrast-outlined",className:"bg-background-primary top-1/3"}),c.jsx(k8,{className:"justify-start mt-2",children:e.map((a,s)=>c.jsx(T8,{index:s,children:c.jsx("img",{src:n(a),className:N("object-cover rounded-md w-[65px] h-[48px]",o)})},t(a)))})]}):c.jsx(Z9,{className:"mx-auto text-icon-fade-contrast"});function II(e,n){return l.useReducer((t,r)=>n[t][r]??t,e)}var Ic="ScrollArea",[D8]=nt(Ic),[kI,bt]=D8(Ic),O8=l.forwardRef((e,n)=>{const{__scopeScrollArea:t,type:r="hover",dir:o,scrollHideDelay:a=600,...s}=e,[i,u]=l.useState(null),[d,f]=l.useState(null),[h,g]=l.useState(null),[m,C]=l.useState(null),[p,v]=l.useState(null),[w,y]=l.useState(0),[b,S]=l.useState(0),[M,L]=l.useState(!1),[E,I]=l.useState(!1),k=he(n,A=>u(A)),O=ar(o);return c.jsx(kI,{scope:t,type:r,dir:O,scrollHideDelay:a,scrollArea:i,viewport:d,onViewportChange:f,content:h,onContentChange:g,scrollbarX:m,onScrollbarXChange:C,scrollbarXEnabled:M,onScrollbarXEnabledChange:L,scrollbarY:p,onScrollbarYChange:v,scrollbarYEnabled:E,onScrollbarYEnabledChange:I,onCornerWidthChange:y,onCornerHeightChange:S,children:c.jsx(oe.div,{dir:O,...s,ref:k,style:{position:"relative","--radix-scroll-area-corner-width":w+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})})});O8.displayName=Ic;var V8="ScrollAreaViewport",H8=l.forwardRef((e,n)=>{const{__scopeScrollArea:t,children:r,nonce:o,...a}=e,s=bt(V8,t),i=l.useRef(null),u=he(n,i,s.onViewportChange);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),c.jsx(oe.div,{"data-radix-scroll-area-viewport":"",...a,ref:u,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:c.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});H8.displayName=V8;var Gt="ScrollAreaScrollbar",kc=l.forwardRef((e,n)=>{const{forceMount:t,...r}=e,o=bt(Gt,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,i=e.orientation==="horizontal";return l.useEffect(()=>(i?a(!0):s(!0),()=>{i?a(!1):s(!1)}),[i,a,s]),o.type==="hover"?c.jsx(TI,{...r,ref:n,forceMount:t}):o.type==="scroll"?c.jsx(DI,{...r,ref:n,forceMount:t}):o.type==="auto"?c.jsx(A8,{...r,ref:n,forceMount:t}):o.type==="always"?c.jsx(Tc,{...r,ref:n}):null});kc.displayName=Gt;var TI=l.forwardRef((e,n)=>{const{forceMount:t,...r}=e,o=bt(Gt,e.__scopeScrollArea),[a,s]=l.useState(!1);return l.useEffect(()=>{const i=o.scrollArea;let u=0;if(i){const d=()=>{window.clearTimeout(u),s(!0)},f=()=>{u=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",d),i.addEventListener("pointerleave",f),()=>{window.clearTimeout(u),i.removeEventListener("pointerenter",d),i.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),c.jsx(Ke,{present:t||a,children:c.jsx(A8,{"data-state":a?"visible":"hidden",...r,ref:n})})}),DI=l.forwardRef((e,n)=>{const{forceMount:t,...r}=e,o=bt(Gt,e.__scopeScrollArea),a=e.orientation==="horizontal",s=Hs(()=>u("SCROLL_END"),100),[i,u]=II("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return l.useEffect(()=>{if(i==="idle"){const d=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(d)}},[i,o.scrollHideDelay,u]),l.useEffect(()=>{const d=o.viewport,f=a?"scrollLeft":"scrollTop";if(d){let h=d[f];const g=()=>{const m=d[f];h!==m&&(u("SCROLL"),s()),h=m};return d.addEventListener("scroll",g),()=>d.removeEventListener("scroll",g)}},[o.viewport,a,u,s]),c.jsx(Ke,{present:t||i!=="hidden",children:c.jsx(Tc,{"data-state":i==="hidden"?"hidden":"visible",...r,ref:n,onPointerEnter:ne(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:ne(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),A8=l.forwardRef((e,n)=>{const t=bt(Gt,e.__scopeScrollArea),{forceMount:r,...o}=e,[a,s]=l.useState(!1),i=e.orientation==="horizontal",u=Hs(()=>{if(t.viewport){const d=t.viewport.offsetWidth<t.viewport.scrollWidth,f=t.viewport.offsetHeight<t.viewport.scrollHeight;s(i?d:f)}},10);return Tr(t.viewport,u),Tr(t.content,u),c.jsx(Ke,{present:r||a,children:c.jsx(Tc,{"data-state":a?"visible":"hidden",...o,ref:n})})}),Tc=l.forwardRef((e,n)=>{const{orientation:t="vertical",...r}=e,o=bt(Gt,e.__scopeScrollArea),a=l.useRef(null),s=l.useRef(0),[i,u]=l.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Z8(i.viewport,i.content),f={...r,sizes:i,onSizesChange:u,hasThumb:d>0&&d<1,onThumbChange:g=>a.current=g,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:g=>s.current=g};function h(g,m){return $I(g,s.current,i,m)}return t==="horizontal"?c.jsx(OI,{...f,ref:n,onThumbPositionChange:()=>{if(o.viewport&&a.current){const g=o.viewport.scrollLeft,m=W8(g,i,o.dir);a.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:g=>{o.viewport&&(o.viewport.scrollLeft=g)},onDragScroll:g=>{o.viewport&&(o.viewport.scrollLeft=h(g,o.dir))}}):t==="vertical"?c.jsx(VI,{...f,ref:n,onThumbPositionChange:()=>{if(o.viewport&&a.current){const g=o.viewport.scrollTop,m=W8(g,i);a.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:g=>{o.viewport&&(o.viewport.scrollTop=g)},onDragScroll:g=>{o.viewport&&(o.viewport.scrollTop=h(g))}}):null}),OI=l.forwardRef((e,n)=>{const{sizes:t,onSizesChange:r,...o}=e,a=bt(Gt,e.__scopeScrollArea),[s,i]=l.useState(),u=l.useRef(null),d=he(n,u,a.onScrollbarXChange);return l.useEffect(()=>{u.current&&i(getComputedStyle(u.current))},[u]),c.jsx($8,{"data-orientation":"horizontal",...o,ref:d,sizes:t,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Vs(t)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,h)=>{if(a.viewport){const g=a.viewport.scrollLeft+f.deltaX;e.onWheelScroll(g),G8(g,h)&&f.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Os(s.paddingLeft),paddingEnd:Os(s.paddingRight)}})}})}),VI=l.forwardRef((e,n)=>{const{sizes:t,onSizesChange:r,...o}=e,a=bt(Gt,e.__scopeScrollArea),[s,i]=l.useState(),u=l.useRef(null),d=he(n,u,a.onScrollbarYChange);return l.useEffect(()=>{u.current&&i(getComputedStyle(u.current))},[u]),c.jsx($8,{"data-orientation":"vertical",...o,ref:d,sizes:t,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Vs(t)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,h)=>{if(a.viewport){const g=a.viewport.scrollTop+f.deltaY;e.onWheelScroll(g),G8(g,h)&&f.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Os(s.paddingTop),paddingEnd:Os(s.paddingBottom)}})}})}),[HI,F8]=D8(Gt),$8=l.forwardRef((e,n)=>{const{__scopeScrollArea:t,sizes:r,hasThumb:o,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:u,onDragScroll:d,onWheelScroll:f,onResize:h,...g}=e,m=bt(Gt,t),[C,p]=l.useState(null),v=he(n,k=>p(k)),w=l.useRef(null),y=l.useRef(""),b=m.viewport,S=r.content-r.viewport,M=Re(f),L=Re(u),E=Hs(h,10);function I(k){if(w.current){const O=k.clientX-w.current.left,A=k.clientY-w.current.top;d({x:O,y:A})}}return l.useEffect(()=>{const k=O=>{const A=O.target;(C==null?void 0:C.contains(A))&&M(O,S)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[b,C,S,M]),l.useEffect(L,[r,L]),Tr(C,E),Tr(m.content,E),c.jsx(HI,{scope:t,scrollbar:C,hasThumb:o,onThumbChange:Re(a),onThumbPointerUp:Re(s),onThumbPositionChange:L,onThumbPointerDown:Re(i),children:c.jsx(oe.div,{...g,ref:v,style:{position:"absolute",...g.style},onPointerDown:ne(e.onPointerDown,k=>{k.button===0&&(k.target.setPointerCapture(k.pointerId),w.current=C.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),I(k))}),onPointerMove:ne(e.onPointerMove,I),onPointerUp:ne(e.onPointerUp,k=>{const O=k.target;O.hasPointerCapture(k.pointerId)&&O.releasePointerCapture(k.pointerId),document.body.style.webkitUserSelect=y.current,m.viewport&&(m.viewport.style.scrollBehavior=""),w.current=null})})})}),Ds="ScrollAreaThumb",z8=l.forwardRef((e,n)=>{const{forceMount:t,...r}=e,o=F8(Ds,e.__scopeScrollArea);return c.jsx(Ke,{present:t||o.hasThumb,children:c.jsx(AI,{ref:n,...r})})}),AI=l.forwardRef((e,n)=>{const{__scopeScrollArea:t,style:r,...o}=e,a=bt(Ds,t),s=F8(Ds,t),{onThumbPositionChange:i}=s,u=he(n,h=>s.onThumbChange(h)),d=l.useRef(void 0),f=Hs(()=>{d.current&&(d.current(),d.current=void 0)},100);return l.useEffect(()=>{const h=a.viewport;if(h){const g=()=>{if(f(),!d.current){const m=zI(h,i);d.current=m,i()}};return i(),h.addEventListener("scroll",g),()=>h.removeEventListener("scroll",g)}},[a.viewport,f,i]),c.jsx(oe.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ne(e.onPointerDownCapture,h=>{const m=h.target.getBoundingClientRect(),C=h.clientX-m.left,p=h.clientY-m.top;s.onThumbPointerDown({x:C,y:p})}),onPointerUp:ne(e.onPointerUp,s.onThumbPointerUp)})});z8.displayName=Ds;var Dc="ScrollAreaCorner",B8=l.forwardRef((e,n)=>{const t=bt(Dc,e.__scopeScrollArea),r=!!(t.scrollbarX&&t.scrollbarY);return t.type!=="scroll"&&r?c.jsx(FI,{...e,ref:n}):null});B8.displayName=Dc;var FI=l.forwardRef((e,n)=>{const{__scopeScrollArea:t,...r}=e,o=bt(Dc,t),[a,s]=l.useState(0),[i,u]=l.useState(0),d=!!(a&&i);return Tr(o.scrollbarX,()=>{var h;const f=((h=o.scrollbarX)==null?void 0:h.offsetHeight)||0;o.onCornerHeightChange(f),u(f)}),Tr(o.scrollbarY,()=>{var h;const f=((h=o.scrollbarY)==null?void 0:h.offsetWidth)||0;o.onCornerWidthChange(f),s(f)}),d?c.jsx(oe.div,{...r,ref:n,style:{width:a,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Os(e){return e?parseInt(e,10):0}function Z8(e,n){const t=e/n;return isNaN(t)?0:t}function Vs(e){const n=Z8(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-t)*n;return Math.max(r,18)}function $I(e,n,t,r="ltr"){const o=Vs(t),a=o/2,s=n||a,i=o-s,u=t.scrollbar.paddingStart+s,d=t.scrollbar.size-t.scrollbar.paddingEnd-i,f=t.content-t.viewport,h=r==="ltr"?[0,f]:[f*-1,0];return R8([u,d],h)(e)}function W8(e,n,t="ltr"){const r=Vs(n),o=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,a=n.scrollbar.size-o,s=n.content-n.viewport,i=a-r,u=t==="ltr"?[0,s]:[s*-1,0],d=vi(e,u);return R8([0,s],[0,i])(d)}function R8(e,n){return t=>{if(e[0]===e[1]||n[0]===n[1])return n[0];const r=(n[1]-n[0])/(e[1]-e[0]);return n[0]+r*(t-e[0])}}function G8(e,n){return e>0&&e<n}var zI=(e,n=()=>{})=>{let t={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},s=t.left!==a.left,i=t.top!==a.top;(s||i)&&n(),t=a,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Hs(e,n){const t=Re(e),r=l.useRef(0);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),l.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(t,n)},[t,n])}function Tr(e,n){const t=Re(n);He(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,t])}var j8=O8,BI=H8,ZI=B8;const Oc=l.forwardRef(({className:e,children:n,...t},r)=>c.jsxs(j8,{ref:r,className:N("relative overflow-hidden",e),...t,children:[c.jsx(BI,{className:"h-full w-full rounded-[inherit]",children:n}),c.jsx(Vc,{}),c.jsx(ZI,{})]}));Oc.displayName=j8.displayName;const Vc=l.forwardRef(({className:e,orientation:n="vertical",...t},r)=>c.jsx(kc,{ref:r,orientation:n,className:N("flex touch-none select-none transition-colors",n==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",n==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...t,children:c.jsx(z8,{className:"relative flex-1 rounded-full bg-border"})}));Vc.displayName=kc.displayName;const jt=e=>e&&typeof e=="object"&&"value"in e?e.value:e,Y8=e=>e&&typeof e=="object"&&"label"in e?e.label&&typeof e.label=="object"&&"props"in e.label?{text:e.labelText??e.label.props.children,raw:e.label}:{text:e.labelText||e.label,raw:e.label}:typeof e=="string"?{text:e,raw:e}:{raw:e},WI=({table:e,column:n,excludeAllLabel:t,options:r=[],checked:o,disabled:a=[],hidden:s=[],search:i="",radio:u,onSearchChange:d,onCheckedChange:f})=>{const{t:h}=rt(),g=JSON.stringify((n==null?void 0:n.getFilterValue())||"");D.useEffect(()=>{f==null||f(n==null?void 0:n.getFilterValue())},[g]);const m=E=>{var I,k;return typeof E=="object"&&E&&"label"in E?(k=(I=Y8(E))==null?void 0:I.text)==null?void 0:k.toLowerCase().includes(i.toLowerCase()):typeof E=="string"?E.toLowerCase().includes(i.toLowerCase()):!0},C=D.useMemo(()=>!n||!e||!r?[]:r.filter(m),[e,n,i,r]),p=u??(r&&r.length===2&&(typeof r[0]=="object"&&r[0]!==null&&"value"in r[0]?typeof r[0].value=="boolean":typeof r[0]=="boolean")),v=(E,I)=>{if(E==="all"||E===null){const k=r.map(q=>jt(q)),O=(o==null?void 0:o.map(q=>jt(q)))||[],A=a||[],V=s||[],Y=[...A,...V],$=Y.filter(q=>O.includes(q)),U=Y.filter(q=>!O.includes(q)),T=k.filter(q=>!U.includes(q)),W=$.length?$:void 0,P=I?T:W,z=I?[E,...Y]:Y.filter(q=>q!==E);return f==null?void 0:f(E==="all"?P:z)}if(o===void 0)f==null||f([E]);else{const k=o.map(Y=>jt(Y)),O=r.find(Y=>jt(Y)===E);if(I&&O){const Y=jt(O);k.push(Y)}else k.splice(k.indexOf(E),1);const A=k.length?k:void 0,V=I?[E]:[];f==null||f(p?V:A)}},w=()=>{const E=o||[],I=s||[],k=new Set([...E,...I]).size,O=r.map(V=>jt(V)),A=new Set([...O,...I]).size;return k===A},y=o&&o.at(0)===null,b=w(),S=E=>b||(o==null?void 0:o.some(I=>jt(I)===E)),M=E=>a.some(I=>jt(I)===E),L=E=>s.some(I=>jt(I)===E);return c.jsxs("div",{className:"flex flex-col items-start gap-4 justify-center w-[228px]",children:[c.jsxs("p",{className:"font-semibold text-sm",children:[h("showAll"),":"]}),(i||d)&&r.length>9&&c.jsx(tn,{value:i,onChange:E=>d==null?void 0:d(E.target.value)}),t&&c.jsx(Cn,{checked:y,onCheckedChange:()=>v==null?void 0:v(null,!y),children:t}),!p&&c.jsx(Cn,{checked:b,onCheckedChange:()=>v==null?void 0:v("all",!b),children:h("chooseAll")}),c.jsx(Fn,{}),c.jsx(Oc,{children:c.jsx("div",{className:"flex flex-col items-start gap-4 py-0.5 w-[228px] h-calc(100vh-475px)",style:{maxHeight:"calc(var(--radix-popover-content-available-height) - 300px)"},children:C.map(E=>{const I=jt(E),k=!!(!y&&(b||S(I))),O=M(I);return L(I)?null:c.jsx(Cn,{checked:k,disabled:O,onCheckedChange:()=>v==null?void 0:v(I,!k),children:Y8(E).raw},String(I))})})})]})},RI=({type:e,column:n,table:t,applyText:r,locale:o,options:a,excludeFilterValues:s,sortable:i=!1,sorted:u,allowSortingReset:d=!1,children:f})=>{const h=u??(n==null?void 0:n.getIsSorted()),g=()=>{var T;if((T=n==null?void 0:n.getCanSort)!=null&&T.call(n)){if(d&&h==="desc"){n.clearSorting();return}n.toggleSorting(h==="asc")}},m=(T=!1)=>!(T||i&&n)||!n?f:c.jsxs("div",{role:"button",tabIndex:0,className:"flex items-center gap-1 cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-line-primary focus-visible:ring-offset-1 rounded",onClick:g,children:[f,c.jsx(zw,{className:N("h-4 w-4 shrink-0 text-icon",{"text-foreground-theme":!!h})})]}),{t:C}=rt(),[p,v]=D.useState(!1),w=n==null?void 0:n.getFilterValue(),[y,b]=D.useState(typeof w=="string"?w:""),[S,M]=D.useState(void 0),L=n==null?void 0:n.getFilterValue(),[E,I]=D.useState(L);D.useEffect(()=>{if(e==="date-range"){const T=n==null?void 0:n.getFilterValue();T!=null&&T.from&&(T!=null&&T.to)?M({from:new Date(T.from),to:new Date(T.to)}):M(void 0)}},[n,e]),D.useEffect(()=>{e==="search"&&b(typeof w=="string"?w:"")},[w,e]);const k=()=>{n==null||n.setFilterValue(y),v(!1)},O=T=>{M(T),T!=null&&T.from&&(T!=null&&T.to)&&(n==null||n.setFilterValue({from:T.from.toISOString(),to:T.to.toISOString()}),v(!1))},A=()=>{n==null||n.setFilterValue(E),v(!1)},V=()=>{t==null||t.resetColumnFilters(),t==null||t.resetSorting(),t==null||t.resetRowSelection(!0)},Y=()=>o||((navigator.language||navigator.languages[0]).includes("ru")?ai:Fr),$=()=>{var T,W,P,z,q;switch(e){case"search":return c.jsx(Yl,{className:N("text-foreground-tertiary",{"text-foreground-theme":!!w})});case"date-range":return c.jsx(jl,{className:N("text-foreground-tertiary",{"text-foreground-theme":!!(S!=null&&S.from)&&!!(S!=null&&S.to)})});case"select":{const K=Array.isArray(L)?!!L.length&&!L.every(Z=>s==null?void 0:s.includes(Z)):!!L;return c.jsx(Zw,{className:N("text-foreground-tertiary",{"text-foreground-theme":!!K})})}case"reset":{const K=((W=(T=t==null?void 0:t.getState())==null?void 0:T.columnFilters)==null?void 0:W.length)!==0||((z=(P=t==null?void 0:t.getState())==null?void 0:P.sorting)==null?void 0:z.length)!==0&&!!((q=t==null?void 0:t.getState())!=null&&q.sorting);return c.jsx(B9,{className:N("text-foreground-tertiary",{"text-foreground-theme cursor-pointer":K,"cursor-not-allowed":!K})})}case"sort":return null;default:return null}},U=()=>{switch(e){case"search":return c.jsxs("form",{className:"flex flex-col gap-2 w-auto p-2 rounded-lg bg-background",onSubmit:T=>{T.preventDefault(),k()},onKeyDown:T=>{T.key==="Enter"&&(T.preventDefault(),k())},children:[c.jsx(tn,{value:y,onChange:T=>b(T.target.value)}),c.jsx(Ze,{type:"submit",variant:"fade-contrast-filled",onClick:k,children:r||C("apply")})]});case"date-range":return c.jsx("div",{className:"w-auto p-0 rounded-lg",children:c.jsx(Ta,{mode:"range",locale:Y(),selected:S,onSelect:O,className:"bg-background rounded-lg",initialFocus:!0})});case"select":return c.jsxs("form",{className:"flex flex-col gap-2 w-auto p-2 rounded-lg bg-background",onSubmit:T=>{T.preventDefault(),A()},onKeyDown:T=>{T.key==="Enter"&&(T.preventDefault(),A())},children:[c.jsx(WI,{checked:E,onCheckedChange:I,column:n,options:a,table:t}),c.jsx(Ze,{type:"submit",variant:"fade-contrast-filled",onClick:A,children:r||C("apply")})]});default:return null}};return e==="sort"?c.jsx(c.Fragment,{children:m(!0)}):e==="reset"?c.jsxs(c.Fragment,{children:[m(),c.jsx(Ze,{variant:"fade-contrast-transparent",size:"icon",onClick:V,children:$()})]}):c.jsxs(c.Fragment,{children:[m(),c.jsxs(zn,{open:p,onOpenChange:v,modal:!0,children:[c.jsx(Bn,{asChild:!0,children:c.jsx(Ze,{className:"p-1",variant:"fade-contrast-transparent",size:"icon",icon:$()})}),c.jsx(Sn,{className:"w-auto rounded-lg bg-background p-0",children:U()})]})]})},GI=({children:e,type:n,column:t,table:r,applyText:o,locale:a,options:s,excludeFilterValues:i,className:u,sortable:d=!1,sorted:f,allowSortingReset:h})=>c.jsx("div",{className:N("flex flex-row gap-2 items-center justify-between",u),children:c.jsx(RI,{type:n,column:t,table:r,applyText:o,locale:a,options:s,excludeFilterValues:i,sortable:d,sorted:f,allowSortingReset:h,children:e})}),U8=l.forwardRef(({className:e,icon:n,value:t,onChange:r,onValueChange:o,onEnter:a,decimalPlaces:s=0,allowNegative:i=!1,...u},d)=>{const[f,h]=D.useState(""),g=y=>{if(y==null||y==="")return"";const b=String(y);return b==="NaN"||b==="Infinity"||b==="-Infinity"?"":b},m=y=>{if(!y)return"";let b=y;if(b=b.replace(/,/g,"."),i?b=b.replace(/[^0-9.-]/g,""):b=b.replace(/[^0-9.]/g,""),i&&((b.match(/-/g)||[]).length>1?(b=b.replace(/-/g,""),y.startsWith("-")&&(b="-"+b)):b.includes("-")&&!b.startsWith("-")&&(b=b.replace(/-/g,""))),(b.match(/\./g)||[]).length>1){const M=b.indexOf(".");b=b.substring(0,M+1)+b.substring(M+1).replace(/\./g,"")}if(s>=0&&b.includes(".")){const M=b.split(".");M[1]&&M[1].length>s&&(M[1]=M[1].substring(0,s)),b=M[0]+(s>0?"."+(M[1]||""):"")}else s===0&&b.includes(".")&&(b=b.split(".")[0]);return b},C=y=>{if(!y||y==="-")return null;const b=parseFloat(y);return isNaN(b)?null:b},p=y=>{const b=m(y.target.value);h(b);const S=C(b);r==null||r(S),o==null||o(S)};D.useEffect(()=>{if(t!==void 0){const y=g(t);y!==f&&h(y)}},[t]),D.useEffect(()=>{t!==void 0&&!f&&h(g(t))},[]);const v=!!n,w=c.jsxs("div",{className:"relative",children:[c.jsx("input",{type:"text",inputMode:"decimal",className:N("flex h-9 w-full rounded-lg border border-line-primary bg-[transparent] blur-none pl-3 py-2 text-sm tracking-[0.1px] leading-5 transition-colors duration-300 ease-in-out ring-offset-background file:border-0 file:bg-[transparent] file:text-sm font-normal placeholder:text-foreground-secondary focus-visible:outline-none focus-visible:border-line-focused disabled:cursor-not-allowed disabled:opacity-50 truncate line-clamp-1","[&~label>svg]:text-icon-secondary","has-[+p.text-foreground-error]:border-line-error",n?"pr-8":"pr-3",u.readOnly&&"cursor-not-allowed pointer-events-none opacity-95",e),ref:d,...u,value:f,onChange:p,onKeyDown:y=>y.key==="Enter"&&(a==null?void 0:a(y)),onFocus:u.onFocus||(y=>y.target.setAttribute("autocomplete","off"))}),n&&c.jsx("span",{className:"absolute right-1.5 top-1/2 -translate-y-1/2",children:n})]});return v?c.jsx("div",{className:N("inline-block relative transition-colors",v&&e),children:w}):w});U8.displayName="NumberInput";const jI=fl,YI=C0,UI=za,q8=hl,Hc=l.forwardRef(({className:e,...n},t)=>c.jsx(Qr,{className:N("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",e),...n,ref:t}));Hc.displayName=Qr.displayName;const qI=ln("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{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 rounded-r-lg 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 rounded-l-lg data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),K8=l.forwardRef(({side:e="right",className:n,children:t,...r},o)=>c.jsxs(q8,{children:[c.jsx(Hc,{}),c.jsxs(Jr,{ref:o,className:N(qI({side:e}),n),...r,children:[t,c.jsxs(za,{className:N("absolute top-4 z-10 flex h-10 w-10 items-center justify-center rounded-full bg-background-contrast text-foreground-on-contrast shadow-md transition-all hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",e==="right"&&"-left-12",e==="left"&&"-right-12",e==="top"&&"left-1/2 -translate-x-1/2 -bottom-6",e==="bottom"&&"left-1/2 -translate-x-1/2 -top-6"),children:[c.jsx(Ma,{className:"h-5 w-5"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));K8.displayName=Jr.displayName;const X8=({className:e,...n})=>c.jsx("div",{className:N("flex flex-col space-y-2 text-center sm:text-left",e),...n});X8.displayName="SheetHeader";const Q8=({className:e,...n})=>c.jsx("div",{className:N("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});Q8.displayName="SheetFooter";const J8=l.forwardRef(({className:e,...n},t)=>c.jsx(Fa,{ref:t,className:N("text-lg font-semibold text-foreground",e),...n}));J8.displayName=Fa.displayName;const e6=l.forwardRef(({className:e,...n},t)=>c.jsx($a,{ref:t,className:N("text-sm text-muted-foreground",e),...n}));e6.displayName=$a.displayName;const KI=({emptyStateText:e,actionsSlot:n,children:t,isEmpty:r,className:o,innerClassName:a})=>c.jsx("div",{className:N("box-border rounded-lg bg-background-secondary p-6",o),children:c.jsxs("div",{className:N("flex w-full flex-col items-stretch gap-4",a),children:[n!=null?c.jsx("div",{className:"self-start",children:n}):null,r?c.jsx("div",{className:"flex w-full items-center justify-center rounded-lg bg-background-primary py-8",children:c.jsx("p",{className:"text-center text-sm leading-5 tracking-[0.25px] text-foreground-primary",children:e})}):t]})}),As=({dateTime:e,duration:n,variant:t="default",className:r})=>{if(!(e||n))return null;const s=N("inline-flex items-center px-2 rounded text-sm leading-5 tracking-[0.25px]",{default:"text-foreground-primary",warning:"bg-background-warning-fade text-foreground-warning",error:"bg-background-error-fade text-foreground-error",success:"bg-background-success-fade text-foreground-success"}[t],r);return t==="default"?c.jsxs("span",{className:N("text-foreground-primary text-sm leading-5 tracking-[0.25px]",r),children:[e,e&&n&&" ",n]}):c.jsxs("div",{className:"flex items-center gap-2",children:[e&&c.jsx("span",{className:s,children:e}),n&&c.jsx("span",{className:s,children:n})]})};As.displayName="TimeBadge";const XI="text-foreground-primary text-sm leading-5 font-medium tracking-[0.25px]",QI="text-foreground-primary text-sm leading-5 tracking-[0.25px]",JI="text-foreground-secondary text-sm leading-5 tracking-[0.25px]",Fs=({children:e})=>c.jsx("div",{className:XI,children:e}),t6=({children:e})=>c.jsx("div",{className:QI,children:e}),n6=({delta:e,className:n})=>c.jsx("div",{className:N(JI,n),children:e}),r6=({rows:e,orientation:n="vertical",className:t})=>{const r=(a,s)=>s?c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-x-4",children:[c.jsx(Fs,{children:a.planLabel}),c.jsx(Fs,{children:a.factLabel})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-x-4",children:[c.jsx(t6,{children:a.planValue}),c.jsx(As,{dateTime:a.factDateTime,duration:a.factDuration,variant:a.factVariant??"default"})]}),a.delta&&c.jsx(n6,{delta:a.delta,className:"mt-2"})]}):c.jsxs("div",{className:"grid grid-cols-2 gap-x-4",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx(Fs,{children:a.planLabel}),c.jsx(t6,{children:a.planValue})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx(Fs,{children:a.factLabel}),c.jsx(As,{dateTime:a.factDateTime,duration:a.factDuration,variant:a.factVariant??"default"})]}),a.delta&&c.jsx("div",{className:"col-span-2 mt-2",children:c.jsx(n6,{delta:a.delta})})]}),o=n==="horizontal";return!e||e.length===0?null:c.jsx("div",{className:N("rounded-lg border border-line-primary bg-background-primary",t),children:o?c.jsx("div",{className:"grid",style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((a,s)=>c.jsx("div",{className:N("px-6 py-4",{"border-r border-line-primary":s<e.length-1}),children:r(a,!0)},s))}):e.map((a,s)=>c.jsx("div",{className:"px-4 py-4 border-b border-line-primary last:border-b-0",children:r(a,!1)},s))})};r6.displayName="WidgetPlanFact";const Ac={ASC:"asc",DESC:"desc"},ek=({sortOrder:e=Ac.DESC,sortField:n,className:t,options:r,placeholder:o,onOrderToggle:a,onFieldChange:s})=>{const{t:i}=rt(),u=o??i("withoutSort");return c.jsxs("div",{className:N("flex w-full items-center gap-2 text-xs text-foreground-secondary",t),children:[n&&a&&c.jsx(Ze,{onClick:a,variant:"fade-contrast-transparent",className:N("flex flex-shrink-0 min-w-6 h-6 p-0 hover:bg-transparent",{"rotate-180":e===Ac.ASC}),icon:c.jsx(gs,{})}),!n&&c.jsx(gs,{className:"h-[9px] w-[14px] flex-shrink-0 text-foreground-secondary"}),c.jsx("div",{className:"flex-1 min-w-0",children:c.jsx(Kr,{triggerClassName:"text-foreground-secondary border-none p-0 text-xs hover:bg-[transparent] h-auto min-w-0 w-full font-normal [&>span]:pr-0 [&>span]:truncate",placeholder:u,value:n,options:r,onChange:d=>s==null?void 0:s(d),renderValue:d=>c.jsx("span",{className:"whitespace-nowrap text-foreground-secondary",children:d.label})})})]})},Fc={LIST:"list",TABLE:"table"},tk=({className:e,listAriaLabel:n,tableAriaLabel:t})=>{const{t:r}=rt();return c.jsxs(Ls,{className:N(e),children:[c.jsx(_o,{value:Fc.LIST,size:"icon","aria-label":n??r("listView"),children:c.jsx(q9,{})}),c.jsx(_o,{value:Fc.TABLE,size:"icon","aria-label":t??r("tableView"),children:c.jsx(U9,{})})]})},nk=()=>{const e=D.useContext(Na);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},$c=(e=document.cookie)=>e.split(";").map(n=>n.split("=")).reduce((n,t)=>{if(!t.filter(Boolean).length)return n;const r=decodeURIComponent(t[0].trim()),o=decodeURIComponent(t[1].trim());return n.set(r,o),n},new Map),rk=(e=[4,96],n=[12,88])=>{const t="react-resizable-panels:layout",r="react-resizable-panels:collapsed",o=$c().get(t),a=$c().get(r),s=o?JSON.parse(o):e,i=a?JSON.parse(a):!1,[u,d]=D.useState(i),f=D.useRef(null),h=()=>{const C=document.querySelectorAll("[data-panel-id]");if(C.length>0){const v=C[0].getBoundingClientRect().width;document.documentElement.style.setProperty("--sidebar-width",`${v}px`)}else document.documentElement.style.setProperty("--sidebar-width","0px")};return D.useEffect(()=>{h();const C=document.querySelector("[data-panel-group]");if(!C)return;const p=new ResizeObserver(()=>{h()}),v=()=>{C.querySelectorAll("[data-panel-id]").forEach(b=>{p.observe(b)})};v();const w=new MutationObserver(()=>{v(),h()});return w.observe(C,{childList:!0,subtree:!0}),()=>{p.disconnect(),w.disconnect()}},[u]),{layoutName:t,collapsedName:r,defaultLayout:s,isCollapsed:u,ref:f,collapse:()=>{var C;(C=f.current)==null||C.resize(e[0]),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!0)}`,d(!0)},expand:()=>{var C;(C=f.current)==null||C.resize(n[0]),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!1)}`,d(!1)}}},ok=(e,n)=>{const t=i=>localStorage.setItem(n,i),r=()=>localStorage.getItem(n)||e,[o,a]=D.useState(r());return{tab:o,handleTabChange:i=>{t(i),a(i)}}},ak=(e,n)=>{try{const t=(n==="localStorage"?localStorage:sessionStorage).getItem(e);return t?JSON.parse(t):{}}catch{return{}}},sk=(e,n,t)=>{try{(t==="localStorage"?localStorage:sessionStorage).setItem(e,JSON.stringify(n))}catch{}},ik=(e,n={})=>{const{storage:t="sessionStorage",defaultWhenMissing:r=!0}=n,[o,a]=D.useState(()=>ak(e,t)),s=D.useCallback(d=>{a(f=>{const h=typeof d=="function"?d(f):d;return sk(e,h,t),h})},[e,t]),i=D.useCallback(d=>{s(f=>{const h=String(d),g=h in f?f[h]:r;return{...f,[h]:!g}})},[r,s]);return{expanded:o,setExpanded:s,toggleNode:i,isNodeExpanded:d=>{const f=String(d);return f in o?o[f]:r}}},lk=({paginationInitialState:e={pageIndex:0,pageSize:20},onSort:n,onPagination:t}={})=>{const[r,o]=D.useState(!1),[a,s]=D.useState({}),[i,u]=D.useState([]),[d,f]=D.useState(e),[h,g]=D.useState({});return D.useEffect(()=>{if(!i.length)return;const m=i[0].id,C=i[0].desc?"desc":"asc";n==null||n(m,C)},[i,n]),D.useEffect(()=>{if(!r){o(!0);return}d&&(t==null||t(d.pageIndex,d.pageSize))},[d,t,r]),{selection:a,setSelection:s,sorting:i,setSorting:u,pagination:d,setPagination:f,expanded:h,setExpanded:g}},ck=(e,n=[])=>{const t=i=>{localStorage.setItem(e,JSON.stringify(i))},r=()=>{const i=localStorage.getItem(e);return i?JSON.parse(i):n},[o,a]=D.useState(r());return{fields:o,handleFieldsChange:i=>{t(i),a(i)}}},uk=()=>{const[e,n]=D.useState([]);return{state:e,setState:n,get:(r,o)=>{var a;return(a=(o||e).find(s=>s.id===r))==null?void 0:a.value}}},dk=(e,n)=>((e==null?void 0:e.replace(/{(\w+)}/g,(r,o)=>String((n==null?void 0:n[o])||"")))||"").replace(/\s*\(\s*\)\s*/g,"").trim();function fk({data:e=[],idField:n,nameField:t,additionalNameField:r,labelTemplate:o,lockedValues:a=[],lowerCaseValues:s=!1}){return!Array.isArray(e)||!e.length||!n?[]:e.map(i=>({value:s?String(i[n]??"").toLowerCase():String(i[n]??""),label:o?dk(o,i):(t?String(i[t]):"")+(r&&i[r]?` - ${i[r]}`:""),disabled:a==null?void 0:a.includes(String(i[n]))}))}x.AccessDeniedDarkIcon=HE,x.AccessDeniedLightIcon=AE,x.AccountBalanceIcon=FE,x.AccountBoxIcon=$E,x.AccountCircleIcon=zE,x.AccountTreeIcon=BE,x.AddBoxIcon=WE,x.AddCircleOutlineIcon=RE,x.AddIcon=ZE,x.AddOutlineIcon=R2,x.AiAssistantIcon=GE,x.AiChatSendIcon=jE,x.AiChatWelcomeIcon=YE,x.AnalyticsIcon=UE,x.ArchiveIcon=qE,x.ArrowBackIcon=v1,x.ArrowDropDownIcon=Hr,x.ArrowForwardIcon=KE,x.AssignmentIcon=XE,x.AssignmentTurnedInIcon=QE,x.AttachFileIcon=F9,x.AttachmentsSection=k_,x.AudioFileIcon=I1,x.Badge=H6,x.Banner=G3,x.BarChartIcon=JE,x.BgDarkIcon=eM,x.BgLightIcon=tM,x.BillEmptyIcon=$9,x.BlockIcon=nM,x.BottomMenu=U3,x.BuildCircleIcon=oM,x.BuildCircleOutlineIcon=aM,x.BuildIcon=rM,x.Button=Ze,x.Calendar=Ta,x.CalendarOutlineIcon=jl,x.CancelCircleOutlineIcon=iM,x.CancelIcon=sM,x.CancelOutlineIcon=lM,x.Card=F2,x.CardContent=Z2,x.CardDescription=B2,x.CardEditActions=Jw,x.CardFooter=W2,x.CardHeader=$2,x.CardTitle=z2,x.Carousel=L8,x.CarouselContent=N8,x.CarouselItem=P8,x.CarouselNext=I8,x.CarouselPrevious=_8,x.CarouselThumbItem=T8,x.CarouselThumbs=k8,x.CategoryIcon=cM,x.CheckCircleOutlineIcon=p1,x.CheckCloseFolderIcon=dM,x.CheckIcon=uM,x.Checkbox=Cn,x.CheckboxWithLabel=Qw,x.ChecksOutlineIcon=fM,x.ChevronDownIcon=hM,x.ChevronLeftIcon=ao,x.ChevronLeftOutlineIcon=p2,x.ChevronRightIcon=Vn,x.ChevronRightOutlineIcon=m2,x.ChevronUpIcon=nl,x.CloseCircleIcon=La,x.CloseIcon=wo,x.CoinsIcon=gM,x.Collapsible=q2,x.CollapsibleContent=X2,x.CollapsibleSection=oy,x.CollapsibleTrigger=K2,x.Command=Ra,x.CommandDialog=Gy,x.CommandEmpty=_0,x.CommandGroup=I0,x.CommandInput=Sl,x.CommandItem=Ml,x.CommandList=El,x.CommandSeparator=k0,x.CommandShortcut=T0,x.ConfirmModal=f_,x.ConstructionIcon=pM,x.ContentPasteSearchIcon=mM,x.ControlPointIcon=vM,x.CorporateFareIcon=CM,x.CupOutlineIcon=wM,x.DEFAULT_PAGE_SIZE_OPTIONS=Y0,x.DarkModeIcon=yM,x.DarkModeOutlineIcon=bM,x.DashboardIcon=xM,x.DataTable=Vb,x.DataTablePagination=tf,x.DatePicker=bf,x.DeleteIcon=Qi,x.DeleteOutlineIcon=z9,x.Dialog=Za,x.DialogClose=P0,x.DialogContent=no,x.DialogDescription=bl,x.DialogFooter=yl,x.DialogHeader=wl,x.DialogOverlay=Cl,x.DialogPortal=N0,x.DialogSection=xl,x.DialogTitle=Wa,x.DialogTrigger=vl,x.DoNotDisturbIcon=SM,x.DocumentArrowUpOutlineIcon=EM,x.DocumentListOutlineIcon=MM,x.DonateOutlineIcon=LM,x.DoneIcon=NM,x.DoneOutlineIcon=PM,x.DoorArrowRightOutlineIcon=_M,x.Dot=tl,x.DownloadOutlineIcon=IM,x.DragIndicatorIcon=kM,x.DropdownActions=AS,x.DropdownMenu=c1,x.DropdownMenuCheckboxItem=I5,x.DropdownMenuContent=rs,x.DropdownMenuGroup=DS,x.DropdownMenuItem=os,x.DropdownMenuLabel=T5,x.DropdownMenuPortal=OS,x.DropdownMenuRadioGroup=HS,x.DropdownMenuRadioItem=k5,x.DropdownMenuSeparator=D5,x.DropdownMenuShortcut=O5,x.DropdownMenuSub=VS,x.DropdownMenuSubContent=_5,x.DropdownMenuSubTrigger=P5,x.DropdownMenuTrigger=ns,x.EditIcon=TM,x.EditOutlineIcon=DM,x.ErrorBanner=j3,x.ErrorOutlineIcon=m1,x.EventAvailableIcon=OM,x.EventNoteIcon=VM,x.EventRepeatOutlinedIcon=HM,x.ExpandMoreIcon=A5,x.FactCheckOutlineIcon=AM,x.FactoryIcon=FM,x.FeaturedPlayListIcon=$M,x.FileCopyIcon=zM,x.FileCopyOutlineIcon=BM,x.FileDownloadIcon=ZM,x.FileIcon=Ln,x.FileInput=Z4,x.FilterAltOffOutlineIcon=B9,x.FiltersColumnHeader=GI,x.FirstPageIcon=WM,x.FlagFillIcon=GM,x.FlagIcon=RM,x.Form=$5,x.FormControl=Rn,x.FormDescription=Z5,x.FormField=z5,x.FormFieldContext=u1,x.FormItem=Wn,x.FormItemContext=d1,x.FormItemDatePicker=G5,x.FormItemInput=GS,x.FormItemMultiSelect=R5,x.FormItemSelect=W5,x.FormLabel=B5,x.FormMessage=g1,x.FormatAlignLeftIcon=jM,x.GalleryImages=_I,x.GearsAlarmIcon=YM,x.GroupOutlineIcon=UM,x.GroupWorkIcon=qM,x.HandPaperIcon=KM,x.HandymanIcon=XM,x.HardwareIcon=QM,x.HelpCenterIcon=JM,x.HelpCenterOutlineIcon=eL,x.HideImageIcon=Z9,x.HideOutlineIcon=nf,x.HistoryIcon=tL,x.HotelClassIcon=nL,x.ImageIcon=rL,x.ImageOutlineIcon=oL,x.ImgBoxFillIcon=W9,x.InfoIcon=j5,x.InfoTooltip=eP,x.Input=tn,x.InsertInvitationOutlineIcon=aL,x.InventoryIcon=sL,x.Label=f1,x.LanIcon=iL,x.LanOutlineIcon=lL,x.LastPageIcon=Bl,x.LegendToggleIcon=cL,x.LightModeIcon=uL,x.LightModeOutlineIcon=dL,x.Loader2=mr,x.LocalFireDepartmentIcon=fL,x.LocationMapOutlineIcon=hL,x.LocationOnIcon=gL,x.LockIcon=pL,x.LockOpenIcon=mL,x.LogoutOutlineIcon=vL,x.MAX_ARCHIVE_SIZE_MB=lc,x.MAX_AUDIO_SIZE_MB=rc,x.MAX_EXCEL_SIZE_MB=ic,x.MAX_IMAGE_SIZE_MB=ac,x.MAX_PDF_SIZE_MB=oc,x.MAX_TOTAL_SIZE_MB=tc,x.MAX_VIDEO_SIZE_MB=nc,x.MAX_WORD_SIZE_MB=sc,x.MB_IN_BYTES=bs,x.MenuIcon=CL,x.MoreVertIcon=l1,x.MultiSelect=h1,x.MyLocationIcon=wL,x.N00Icon=kE,x.N01Icon=TE,x.N02Icon=DE,x.N03Icon=OE,x.N04Icon=VE,x.Nav=P3,x.NavPanel=I3,x.NavSeparator=_3,x.NetworkErrorIcon=R9,x.NetworkErrorMessage=Pa,x.NextWeekIcon=yL,x.NoAssignmentIcon=bL,x.NoDataBanner=Y3,x.NorthEastIcon=xL,x.Notification=U5,x.NumberInput=U8,x.OutputIcon=SL,x.PAGE_VIEW_TAB=Fc,x.PageHeader=YP,x.PageLayout=UP,x.PageViewModeToggle=tk,x.Pagination=U0,x.PauseCircleOutlineIcon=EL,x.PenOutlineIcon=ML,x.PeopleAltOutlinedIcon=LL,x.PersonIcon=NL,x.PersonOutlineIcon=PL,x.PhotoMusthaveIcon=_L,x.PlayIcon=IL,x.PlaylistAddCheckIcon=kL,x.Popover=zn,x.PopoverAnchor=yf,x.PopoverClose=sx,x.PopoverContent=Sn,x.PopoverTrigger=Bn,x.PortraitIcon=TL,x.PostCard=I9,x.PostCardBody=L9,x.PostCardHeader=M9,x.PostCardLeftPanel=_9,x.PostCardLeftPanelItem=P9,x.PostCardSidebar=N9,x.PrecisionManufacturingOutlineIcon=DL,x.Preloader=vr,x.Previews=t3,x.PreviewsCompactList=jP,x.PriorityIcon=OL,x.Profile=k9,x.PublishIcon=VL,x.PushPinIcon=HL,x.RadioGroup=W3,x.RadioGroupItem=R3,x.RectangleSplit4UnevenOutlineIcon=AL,x.RectanglesOutlineIcon=FL,x.RefreshIcon=$L,x.RemoveCircleOutlineIcon=zL,x.ReportProblemOutlineIcon=BL,x.ResizableHandle=E9,x.ResizablePanel=_1,x.ResizablePanelGroup=P1,x.RestartAltIcon=ZL,x.RestoreIcon=WL,x.RoomIcon=RL,x.RotateLeftIcon=G9,x.RotateRightIcon=j9,x.RoundStrokedIcon=GL,x.RouteErrorBanner=I_,x.SaveFillIcon=jL,x.SaveIcon=I2,x.ScrollArea=Oc,x.ScrollBar=Vc,x.SearchEmptyIcon=Y9,x.SearchIcon=Yl,x.SecondaryPanelSection=KI,x.SegmentedControl=v_,x.Select=Kr,x.SelectContent=ka,x.SelectItem=Xr,x.SelectLabel=P2,x.SelectSeparator=_2,x.SelectTrigger=Ia,x.SelectValue=_a,x.SellOutlineIcon=YL,x.Separator=Fn,x.SettingsIcon=UL,x.SettingsOutlineIcon=qL,x.Sheet=jI,x.SheetClose=UI,x.SheetContent=K8,x.SheetDescription=e6,x.SheetFooter=Q8,x.SheetHeader=X8,x.SheetOverlay=Hc,x.SheetPortal=q8,x.SheetTitle=J8,x.SheetTrigger=YI,x.ShoppingBasketIcon=KL,x.SimCardDownloadIcon=XL,x.SmsFailedIcon=QL,x.SortComponent=ek,x.SortIcon=gs,x.SortOrder=Ac,x.SortableHeader=IP,x.SouthIcon=JL,x.Square4OutlineIcon=eN,x.StarIcon=tN,x.StarsIcon=nN,x.StraightenIcon=rN,x.StrategyIcon=oN,x.SubdirectoryArrowRightIcon=aN,x.SupervisorAccountIcon=sN,x.Switch=q4,x.Table=Zl,x.TableBody=Rl,x.TableCaption=ef,x.TableCell=so,x.TableChartIcon=iN,x.TableFooter=J0,x.TableHead=Gl,x.TableHeader=Wl,x.TableRow=$n,x.TableRowsOutlineIcon=U9,x.Tabs=m3,x.TabsContent=v3,x.TabsList=Ls,x.TabsTrigger=_o,x.TargetOutlineIcon=lN,x.TextArea=J1,x.ThemeProvider=Rw,x.ThemeProviderContext=Na,x.ThermostatIcon=cN,x.TimeBadge=As,x.TimePicker=m8,x.Toast=G1,x.ToastAction=I4,x.ToastClose=j1,x.ToastDescription=U1,x.ToastProvider=_4,x.ToastTitle=Y1,x.ToastViewport=R1,x.Toaster=_P,x.TodayIcon=uN,x.TollIcon=dN,x.Tooltip=Wt,x.TooltipContent=kt,x.TooltipProvider=rn,x.TooltipTrigger=It,x.TourIcon=fN,x.TranslateIcon=hN,x.TreeView=tP,x.TruncatedCell=Hb,x.TuneOutlineIcon=gN,x.UnlockIcon=pN,x.UserIcon=mN,x.VideoFileIcon=k1,x.ViewListIcon=vN,x.ViewOutlineIcon=rf,x.ViewSidebarIcon=CN,x.ViewSidebarOutlineIcon=q9,x.WarehouseIcon=wN,x.WarehouseOutlineIcon=yN,x.WarningAmberIcon=bN,x.WatchLaterIcon=xN,x.WatchLaterOutlineIcon=K9,x.WebStoriesIcon=SN,x.WhatshotIcon=EN,x.WidgetPlanFact=r6,x.WorkspacesIcon=MN,x.WrenchToolIcon=LN,x.WriteIcon=NN,x.ZoomInOutlinedIcon=PN,x.ZoomOutMapOutlinedIcon=_N,x.ZoomOutOutlinedIcon=IN,x.acceptMap=X4,x.attachmentItemSchema=K4,x.attachmentsSchema=AP,x.badgeVariants=Jc,x.buttonVariants=Pn,x.bytesToMb=Q1,x.cn=N,x.compressFile=H4,x.compressImage=V4,x.cookies=$c,x.defaultAccepts=ec,x.filesToAttachments=B4,x.getErrorData=uc,x.getFileThumbnail=z4,x.getRefineArgs=gc,x.mbToBytes=Rt,x.notificationVariants=Y5,x.parseValueFromError=ZP,x.reducer=D4,x.toOptions=fk,x.toast=O4,x.useColumnFilters=uk,x.useColumnSizing=j0,x.useCombinedRefs=h8,x.useConfirm=cc,x.useConfirmStore=Ss,x.useFormField=Co,x.useNotify=Es,x.usePreviewsFilePicker=J4,x.useSidebar=rk,x.useStoredExpand=ik,x.useStoredFields=ck,x.useStoredTabs=ok,x.useTableStates=lk,x.useTheme=nk,x.useToast=X1,x.validateFile=$4,x.validateFileSize=A4,x.validateFileType=F4,x.zMin=n_,x.zRequired=C3,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|